diff --git a/stage0/src/Lean/Elab/Import.lean b/stage0/src/Lean/Elab/Import.lean index 002c8a8d45..8cc0c67219 100644 --- a/stage0/src/Lean/Elab/Import.lean +++ b/stage0/src/Lean/Elab/Import.lean @@ -40,27 +40,4 @@ def printImports (input : String) (fileName : Option String) : IO Unit := do let fname ← findOLean dep.module IO.println fname -deriving instance ToJson for Import - -structure PrintImportResult where - imports? : Option (Array Import) := none - errors : Array String := #[] - deriving ToJson - -structure PrintImportsResult where - imports : Array PrintImportResult - deriving ToJson - -@[export lean_print_imports_json] -def printImportsJson (fileNames : Array String) : IO Unit := do - let rs ← fileNames.mapM fun fn => do - try - let (deps, _, msgs) ← parseImports (← IO.FS.readFile ⟨fn⟩) fn - if msgs.hasErrors then - return { errors := (← msgs.toList.toArray.mapM (·.toString)) } - else - return { imports? := some deps.toArray } - catch e => return { errors := #[e.toString] } - IO.println (toJson { imports := rs : PrintImportsResult }) - end Lean.Elab diff --git a/stage0/src/Lean/Elab/ParseImportsFast.lean b/stage0/src/Lean/Elab/ParseImportsFast.lean index f1841ea48b..bcb5d83427 100644 --- a/stage0/src/Lean/Elab/ParseImportsFast.lean +++ b/stage0/src/Lean/Elab/ParseImportsFast.lean @@ -118,9 +118,6 @@ partial def whitespace : Parser := fun input s => @[inline] partial def keyword (k : String) : Parser := keywordCore k (fun _ s => s.mkError s!"`{k}` expected") (fun _ s => s) -@[inline] partial def keywordOpt (k : String) : Parser := - keywordCore k (fun _ s => s) (fun _ s => s) - @[inline] def isIdCont : String → State → Bool := fun input s => let i := s.pos let curr := input.get i @@ -186,8 +183,11 @@ partial def moduleIdent (runtimeOnly : Bool) : Parser := fun input s => | none => many p input s | some _ => { pos, error? := none, imports := s.imports.shrink size } +@[inline] partial def preludeOpt (k : String) : Parser := + keywordCore k (fun _ s => s.pushModule `Init false) (fun _ s => s) + def main : Parser := - keywordOpt "prelude" >> + preludeOpt "prelude" >> many (keyword "import" >> keywordCore "runtime" (moduleIdent false) (moduleIdent true)) end ParseImports @@ -201,4 +201,24 @@ def parseImports' (input : String) (fileName : String) : IO (Array Lean.Import) | none => return s.imports | some err => throw <| IO.userError s!"{fileName}: {err}" +deriving instance ToJson for Import + +structure PrintImportResult where + imports? : Option (Array Import) := none + errors : Array String := #[] + deriving ToJson + +structure PrintImportsResult where + imports : Array PrintImportResult + deriving ToJson + +@[export lean_print_imports_json] +def printImportsJson (fileNames : Array String) : IO Unit := do + let rs ← fileNames.mapM fun fn => do + try + let deps ← parseImports' (← IO.FS.readFile ⟨fn⟩) fn + return { imports? := some deps } + catch e => return { errors := #[e.toString] } + IO.println (toJson { imports := rs : PrintImportsResult } |>.compress) + end Lean diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index 34bb562e22..8f13208492 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -97,14 +97,11 @@ structure Config where the type of `t` with the goal target type. We claim this is not a hack and is defensible behavior because this last unification step is not really part of the term elaboration. -/ assignSyntheticOpaque : Bool := false - /-- When `ignoreLevelDepth` is `false`, only universe level metavariables with depth == metavariable context depth + /-- When `ignoreLevelDepth` is `false`, only universe level metavariables with `depth == metavariable` context depth can be assigned. We used to have `ignoreLevelDepth == false` always, but this setting produced counterintuitive behavior in a few cases. Recall that universe levels are often ignored by users, they may not even be aware they exist. - We still use this restriction for regular metavariables. See discussion at the beginning of `MetavarContext.lean`. - We claim it is reasonable to ignore this restriction for universe metavariables because their values are often - contrained by the terms is instances and simp theorems. - TODO: we should delete this configuration option and the method `isReadOnlyLevelMVar` after we have more tests. + We set `ignoreLevelMVarDepth := false` during `simp`. See comment at `withSimpConfig` and issue #1829. -/ ignoreLevelMVarDepth : Bool := true /-- Enable/Disable support for offset constraints such as `?x + 1 =?= e` -/ @@ -1325,12 +1322,11 @@ private def withNewMCtxDepthImp (x : MetaM α) : MetaM α := do modify fun s => { s with mctx := saved.mctx, postponed := saved.postponed } /-- - Save cache and `MetavarContext`, bump the `MetavarContext` depth, execute `x`, - and restore saved data. - - Metavariable context depths are used to control which metavariables may be assigned in `isDefEq`. + `withNewMCtxDepth k` executes `k` with a higher metavariable context depth, + where metavariables created outside the `withNewMCtxDepth` (with a lower depth) cannot be assigned. + Note that this does not affect level metavariables (by default). See the docstring of `isDefEq` for more information. - -/ +-/ def withNewMCtxDepth : n α → n α := mapMetaM withNewMCtxDepthImp @@ -1667,6 +1663,10 @@ def isExprDefEq (t s : Expr) : MetaM Bool := So, `withNewMCtxDepth (isDefEq a b)` is `isDefEq` without any mvar assignment happening whereas `isDefEq a b` will assign any metavariables of the current depth in `a` and `b` to unify them. + By default, level metavariables can be assigned at any depth. + That is, `withNewMCtxDepth (isDefEq a b)` will still assign level mvars in `a` and `b`. + Setting the option `ignoreLevelMVarDepth := false` will disable this behavior. + For matching (where only mvars in `b` should be assigned), we create the term inside the `withNewMCtxDepth`. For an example, see [Lean.Meta.Simp.tryTheoremWithExtraArgs?](https://github.com/leanprover/lean4/blob/master/src/Lean/Meta/Tactic/Simp/Rewrite.lean#L100-L106) -/ diff --git a/stage0/src/Lean/Meta/DiscrTree.lean b/stage0/src/Lean/Meta/DiscrTree.lean index c13d8c6607..53d67e8199 100644 --- a/stage0/src/Lean/Meta/DiscrTree.lean +++ b/stage0/src/Lean/Meta/DiscrTree.lean @@ -47,7 +47,7 @@ namespace Lean.Meta.DiscrTree 2- Distinguish partial applications `f a`, `f a b`, and `f a b c`. -/ -def Key.ctorIdx : Key → Nat +def Key.ctorIdx : Key s → Nat | .star => 0 | .other => 1 | .lit .. => 2 @@ -56,17 +56,17 @@ def Key.ctorIdx : Key → Nat | .arrow => 5 | .proj .. => 6 -def Key.lt : Key → Key → Bool +def Key.lt : Key s → Key s → Bool | .lit v₁, .lit v₂ => v₁ < v₂ | .fvar n₁ a₁, .fvar n₂ a₂ => Name.quickLt n₁.name n₂.name || (n₁ == n₂ && a₁ < a₂) | .const n₁ a₁, .const n₂ a₂ => Name.quickLt n₁ n₂ || (n₁ == n₂ && a₁ < a₂) | .proj s₁ i₁, .proj s₂ i₂ => Name.quickLt s₁ s₂ || (s₁ == s₂ && i₁ < i₂) | k₁, k₂ => k₁.ctorIdx < k₂.ctorIdx -instance : LT Key := ⟨fun a b => Key.lt a b⟩ -instance (a b : Key) : Decidable (a < b) := inferInstanceAs (Decidable (Key.lt a b)) +instance : LT (Key s) := ⟨fun a b => Key.lt a b⟩ +instance (a b : Key s) : Decidable (a < b) := inferInstanceAs (Decidable (Key.lt a b)) -def Key.format : Key → Format +def Key.format : Key s → Format | .star => "*" | .other => "◾" | .lit (Literal.natVal v) => Std.format v @@ -76,41 +76,41 @@ def Key.format : Key → Format | .fvar k _ => Std.format k.name | .arrow => "→" -instance : ToFormat Key := ⟨Key.format⟩ +instance : ToFormat (Key s) := ⟨Key.format⟩ -def Key.arity : Key → Nat +def Key.arity : (Key s) → Nat | .const _ a => a | .fvar _ a => a | .arrow => 2 | .proj .. => 1 | _ => 0 -instance : Inhabited (Trie α) := ⟨.node #[] #[]⟩ +instance : Inhabited (Trie α s) := ⟨.node #[] #[]⟩ -def empty : DiscrTree α := { root := {} } +def empty : DiscrTree α s := { root := {} } -partial def Trie.format [ToFormat α] : Trie α → Format +partial def Trie.format [ToFormat α] : Trie α s → Format | .node vs cs => Format.group $ Format.paren $ "node" ++ (if vs.isEmpty then Format.nil else " " ++ Std.format vs) ++ Format.join (cs.toList.map fun ⟨k, c⟩ => Format.line ++ Format.paren (Std.format k ++ " => " ++ format c)) -instance [ToFormat α] : ToFormat (Trie α) := ⟨Trie.format⟩ +instance [ToFormat α] : ToFormat (Trie α s) := ⟨Trie.format⟩ -partial def format [ToFormat α] (d : DiscrTree α) : Format := +partial def format [ToFormat α] (d : DiscrTree α s) : Format := let (_, r) := d.root.foldl (fun (p : Bool × Format) k c => (false, p.2 ++ (if p.1 then Format.nil else Format.line) ++ Format.paren (Std.format k ++ " => " ++ Std.format c))) (true, Format.nil) Format.group r -instance [ToFormat α] : ToFormat (DiscrTree α) := ⟨format⟩ +instance [ToFormat α] : ToFormat (DiscrTree α s) := ⟨format⟩ /-- The discrimination tree ignores implicit arguments and proofs. We use the following auxiliary id as a "mark". -/ private def tmpMVarId : MVarId := { name := `_discr_tree_tmp } private def tmpStar := mkMVar tmpMVarId -instance : Inhabited (DiscrTree α) where +instance : Inhabited (DiscrTree α s) where default := {} /-- @@ -223,11 +223,19 @@ def mkNoindexAnnotation (e : Expr) : Expr := def hasNoindexAnnotation (e : Expr) : Bool := annotation? `noindex e |>.isSome -private partial def whnfEta (e : Expr) : MetaM Expr := do - let e ← whnf e - match e.etaExpandedStrict? with - | some e => whnfEta e - | none => return e +/-- +Reduction procedure for the discrimination tree indexing. +The parameter `simpleReduce` controls how aggressive the term is reduced. +The parameter at type `DiscrTree` controls this value. +See comment at `DiscrTree`. +-/ +partial def reduce (e : Expr) (simpleReduce : Bool) : MetaM Expr := do + let e ← whnfCore e (simpleReduceOnly := simpleReduce) + match (← unfoldDefinition? e) with + | some e => reduce e simpleReduce + | none => match e.etaExpandedStrict? with + | some e => reduce e simpleReduce + | none => return e /-- Return `true` if `fn` is a "bad" key. That is, `pushArgs` would add `Key.other` or `Key.star`. @@ -247,32 +255,32 @@ private def isBadKey (fn : Expr) : Bool := /-- Reduce `e` until we get an irreducible term (modulo current reducibility setting) or the resulting term is a bad key (see comment at `isBadKey`). - We use this method instead of `whnfEta` for root terms at `pushArgs`. -/ -private partial def whnfUntilBadKey (e : Expr) : MetaM Expr := do + We use this method instead of `reduce` for root terms at `pushArgs`. -/ +private partial def reduceUntilBadKey (e : Expr) (simpleReduce : Bool) : MetaM Expr := do let e ← step e match e.etaExpandedStrict? with - | some e => whnfUntilBadKey e + | some e => reduceUntilBadKey e simpleReduce | none => return e where step (e : Expr) := do - let e ← whnfCore e + let e ← whnfCore e (simpleReduceOnly := simpleReduce) match (← unfoldDefinition? e) with | some e' => if isBadKey e'.getAppFn then return e else step e' | none => return e /-- whnf for the discrimination tree module -/ -def whnfDT (e : Expr) (root : Bool) : MetaM Expr := - if root then whnfUntilBadKey e else whnfEta e +def reduceDT (e : Expr) (root : Bool) (simpleReduce : Bool) : MetaM Expr := + if root then reduceUntilBadKey e simpleReduce else reduce e simpleReduce /- Remark: we use `shouldAddAsStar` only for nested terms, and `root == false` for nested terms -/ -private def pushArgs (root : Bool) (todo : Array Expr) (e : Expr) : MetaM (Key × Array Expr) := do +private def pushArgs (root : Bool) (todo : Array Expr) (e : Expr) : MetaM (Key s × Array Expr) := do if hasNoindexAnnotation e then return (.star, todo) else - let e ← whnfDT e root + let e ← reduceDT e root (simpleReduce := s) let fn := e.getAppFn - let push (k : Key) (nargs : Nat) : MetaM (Key × Array Expr) := do + let push (k : Key s) (nargs : Nat) : MetaM (Key s × Array Expr) := do let info ← getFunInfoNArgs fn nargs let todo ← pushArgsAux info.paramInfo (nargs-1) e todo return (k, todo) @@ -305,7 +313,7 @@ private def pushArgs (root : Bool) (todo : Array Expr) (e : Expr) : MetaM (Key | _ => return (.other, todo) -partial def mkPathAux (root : Bool) (todo : Array Expr) (keys : Array Key) : MetaM (Array Key) := do +partial def mkPathAux (root : Bool) (todo : Array Expr) (keys : Array (Key s)) : MetaM (Array (Key s)) := do if todo.isEmpty then return keys else @@ -316,13 +324,13 @@ partial def mkPathAux (root : Bool) (todo : Array Expr) (keys : Array Key) : Met private def initCapacity := 8 -def mkPath (e : Expr) : MetaM (Array Key) := do +def mkPath (e : Expr) : MetaM (Array (Key s)) := do withReducible do let todo : Array Expr := .mkEmpty initCapacity - let keys : Array Key := .mkEmpty initCapacity + let keys : Array (Key s) := .mkEmpty initCapacity mkPathAux (root := true) (todo.push e) keys -private partial def createNodes (keys : Array Key) (v : α) (i : Nat) : Trie α := +private partial def createNodes (keys : Array (Key s)) (v : α) (i : Nat) : Trie α s := if h : i < keys.size then let k := keys.get ⟨i, h⟩ let c := createNodes keys v (i+1) @@ -333,7 +341,7 @@ private partial def createNodes (keys : Array Key) (v : α) (i : Nat) : Trie α private def insertVal [BEq α] (vs : Array α) (v : α) : Array α := if vs.contains v then vs else vs.push v -private partial def insertAux [BEq α] (keys : Array Key) (v : α) : Nat → Trie α → Trie α +private partial def insertAux [BEq α] (keys : Array (Key s)) (v : α) : Nat → Trie α s → Trie α s | i, .node vs cs => if h : i < keys.size then let k := keys.get ⟨i, h⟩ @@ -346,7 +354,7 @@ private partial def insertAux [BEq α] (keys : Array Key) (v : α) : Nat → Tri else .node (insertVal vs v) cs -def insertCore [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) : DiscrTree α := +def insertCore [BEq α] (d : DiscrTree α s) (keys : Array (Key s)) (v : α) : DiscrTree α s := if keys.isEmpty then panic! "invalid key sequence" else let k := keys[0]! @@ -358,12 +366,12 @@ def insertCore [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) : DiscrTr let c := insertAux keys v 1 c { root := d.root.insert k c } -def insert [BEq α] (d : DiscrTree α) (e : Expr) (v : α) : MetaM (DiscrTree α) := do +def insert [BEq α] (d : DiscrTree α s) (e : Expr) (v : α) : MetaM (DiscrTree α s) := do let keys ← mkPath e return d.insertCore keys v -private def getKeyArgs (e : Expr) (isMatch root : Bool) : MetaM (Key × Array Expr) := do - let e ← whnfDT e root +private def getKeyArgs (e : Expr) (isMatch root : Bool) : MetaM (Key s × Array Expr) := do + let e ← reduceDT e root (simpleReduce := s) match e.getAppFn with | .lit v => return (.lit v, #[]) | .const c _ => @@ -435,22 +443,22 @@ private def getKeyArgs (e : Expr) (isMatch root : Bool) : MetaM (Key × Array Ex | _ => return (.other, #[]) -private abbrev getMatchKeyArgs (e : Expr) (root : Bool) : MetaM (Key × Array Expr) := +private abbrev getMatchKeyArgs (e : Expr) (root : Bool) : MetaM (Key s × Array Expr) := getKeyArgs e (isMatch := true) (root := root) -private abbrev getUnifyKeyArgs (e : Expr) (root : Bool) : MetaM (Key × Array Expr) := +private abbrev getUnifyKeyArgs (e : Expr) (root : Bool) : MetaM (Key s × Array Expr) := getKeyArgs e (isMatch := false) (root := root) -private def getStarResult (d : DiscrTree α) : Array α := +private def getStarResult (d : DiscrTree α s) : Array α := let result : Array α := .mkEmpty initCapacity match d.root.find? .star with | none => result | some (.node vs _) => result ++ vs -private abbrev findKey (cs : Array (Key × Trie α)) (k : Key) : Option (Key × Trie α) := +private abbrev findKey (cs : Array (Key s × Trie α s)) (k : Key s) : Option (Key s × Trie α s) := cs.binSearch (k, default) (fun a b => a.1 < b.1) -private partial def getMatchLoop (todo : Array Expr) (c : Trie α) (result : Array α) : MetaM (Array α) := do +private partial def getMatchLoop (todo : Array Expr) (c : Trie α s) (result : Array α) : MetaM (Array α) := do match c with | .node vs cs => if todo.isEmpty then @@ -470,7 +478,7 @@ private partial def getMatchLoop (todo : Array Expr) (c : Trie α) (result : Arr getMatchLoop todo first.2 result else return result - let visitNonStar (k : Key) (args : Array Expr) (result : Array α) : MetaM (Array α) := + let visitNonStar (k : Key s) (args : Array Expr) (result : Array α) : MetaM (Array α) := match findKey cs k with | none => return result | some c => getMatchLoop (todo ++ args) c.2 result @@ -485,12 +493,12 @@ private partial def getMatchLoop (todo : Array Expr) (c : Trie α) (result : Arr | .arrow => visitNonStar .other #[] (← visitNonStar k args result) | _ => visitNonStar k args result -private def getMatchRoot (d : DiscrTree α) (k : Key) (args : Array Expr) (result : Array α) : MetaM (Array α) := +private def getMatchRoot (d : DiscrTree α s) (k : Key s) (args : Array Expr) (result : Array α) : MetaM (Array α) := match d.root.find? k with | none => return result | some c => getMatchLoop args c result -private def getMatchCore (d : DiscrTree α) (e : Expr) : MetaM (Key × Array α) := +private def getMatchCore (d : DiscrTree α s) (e : Expr) : MetaM (Key s × Array α) := withReducible do let result := getStarResult d let (k, args) ← getMatchKeyArgs e (root := true) @@ -503,13 +511,13 @@ private def getMatchCore (d : DiscrTree α) (e : Expr) : MetaM (Key × Array α) /-- Find values that match `e` in `d`. -/ -def getMatch (d : DiscrTree α) (e : Expr) : MetaM (Array α) := +def getMatch (d : DiscrTree α s) (e : Expr) : MetaM (Array α) := return (← getMatchCore d e).2 /-- Similar to `getMatch`, but returns solutions that are prefixes of `e`. We store the number of ignored arguments in the result.-/ -partial def getMatchWithExtra (d : DiscrTree α) (e : Expr) : MetaM (Array (α × Nat)) := do +partial def getMatchWithExtra (d : DiscrTree α s) (e : Expr) : MetaM (Array (α × Nat)) := do let (k, result) ← getMatchCore d e let result := result.map (·, 0) if !e.isApp then @@ -519,8 +527,8 @@ partial def getMatchWithExtra (d : DiscrTree α) (e : Expr) : MetaM (Array (α else go e.appFn! 1 result where - mayMatchPrefix (k : Key) : MetaM Bool := - let cont (k : Key) : MetaM Bool := + mayMatchPrefix (k : Key s) : MetaM Bool := + let cont (k : Key s) : MetaM Bool := if d.root.find? k |>.isSome then return true else @@ -537,7 +545,7 @@ where else return result -partial def getUnify (d : DiscrTree α) (e : Expr) : MetaM (Array α) := +partial def getUnify (d : DiscrTree α s) (e : Expr) : MetaM (Array α) := withReducible do let (k, args) ← getUnifyKeyArgs e (root := true) match k with @@ -548,7 +556,7 @@ partial def getUnify (d : DiscrTree α) (e : Expr) : MetaM (Array α) := | none => return result | some c => process 0 args c result where - process (skip : Nat) (todo : Array Expr) (c : Trie α) (result : Array α) : MetaM (Array α) := do + process (skip : Nat) (todo : Array Expr) (c : Trie α s) (result : Array α) : MetaM (Array α) := do match skip, c with | skip+1, .node _ cs => if cs.isEmpty then @@ -570,7 +578,7 @@ where process 0 todo first.2 result else return result - let visitNonStar (k : Key) (args : Array Expr) (result : Array α) : MetaM (Array α) := + let visitNonStar (k : Key s) (args : Array Expr) (result : Array α) : MetaM (Array α) := match findKey cs k with | none => return result | some c => process 0 (todo ++ args) c.2 result diff --git a/stage0/src/Lean/Meta/DiscrTreeTypes.lean b/stage0/src/Lean/Meta/DiscrTreeTypes.lean index a8f49bbaa1..f100a857bf 100644 --- a/stage0/src/Lean/Meta/DiscrTreeTypes.lean +++ b/stage0/src/Lean/Meta/DiscrTreeTypes.lean @@ -10,18 +10,20 @@ namespace Lean.Meta /-! See file `DiscrTree.lean` for the actual implementation and documentation. -/ namespace DiscrTree - -inductive Key where - | const : Name → Nat → Key - | fvar : FVarId → Nat → Key - | lit : Literal → Key - | star : Key - | other : Key - | arrow : Key - | proj : Name → Nat → Key +/-- +Discrimination tree key. See `DiscrTree` +-/ +inductive Key (simpleReduce : Bool) where + | const : Name → Nat → Key simpleReduce + | fvar : FVarId → Nat → Key simpleReduce + | lit : Literal → Key simpleReduce + | star : Key simpleReduce + | other : Key simpleReduce + | arrow : Key simpleReduce + | proj : Name → Nat → Key simpleReduce deriving Inhabited, BEq, Repr -protected def Key.hash : Key → UInt64 +protected def Key.hash : Key s → UInt64 | Key.const n a => mixHash 5237 $ mixHash (hash n) (hash a) | Key.fvar n a => mixHash 3541 $ mixHash (hash n) (hash a) | Key.lit v => mixHash 1879 $ hash v @@ -30,16 +32,55 @@ protected def Key.hash : Key → UInt64 | Key.arrow => 17 | Key.proj s i => mixHash 11 $ mixHash (hash s) (hash i) -instance : Hashable Key := ⟨Key.hash⟩ +instance : Hashable (Key s) := ⟨Key.hash⟩ -inductive Trie (α : Type) where - | node (vs : Array α) (children : Array (Key × Trie α)) : Trie α +/-- +Discrimination tree trie. See `DiscrTree`. +-/ +inductive Trie (α : Type) (simpleReduce : Bool) where + | node (vs : Array α) (children : Array (Key simpleReduce × Trie α simpleReduce)) : Trie α simpleReduce end DiscrTree open DiscrTree -structure DiscrTree (α : Type) where - root : PersistentHashMap Key (Trie α) := {} +/-- +Discrimination trees. It is an index from terms to values of type `α`. + +If `simpleReduce := true`, then only simple reduction are performed while +indexing/retrieving terms. For example, `iota` reduction is not performed. + +We use `simpleReduce := false` in the type class resolution module, +and `simpleReduce := true` in `simp`. + +Motivations: +- In `simp`, we want to have `simp` theorem such as +``` +@[simp] theorem liftOn_mk (a : α) (f : α → γ) (h : ∀ a₁ a₂, r a₁ a₂ → f a₁ = f a₂) : + Quot.liftOn (Quot.mk r a) f h = f a := rfl +``` +If we enable `iota`, then the lhs is reduced to `f a`. + +- During type class resolution, we often want to reduce types using even `iota`. +Example: +``` +inductive Ty where + | int + | bool + +@[reducible] def Ty.interp (ty : Ty) : Type := + Ty.casesOn (motive := fun _ => Type) ty Int Bool + +def test {a b c : Ty} (f : a.interp → b.interp → c.interp) (x : a.interp) (y : b.interp) : c.interp := + f x y + +def f (a b : Ty.bool.interp) : Ty.bool.interp := + -- We want to synthesize `BEq Ty.bool.interp` here, and it will fail + -- if we do not reduce `Ty.bool.interp` to `Bool`. + test (.==.) a b +``` +-/ +structure DiscrTree (α : Type) (simpleReduce : Bool) where + root : PersistentHashMap (Key simpleReduce) (Trie α simpleReduce) := {} end Lean.Meta diff --git a/stage0/src/Lean/Meta/Instances.lean b/stage0/src/Lean/Meta/Instances.lean index 149baa4750..05d512e944 100644 --- a/stage0/src/Lean/Meta/Instances.lean +++ b/stage0/src/Lean/Meta/Instances.lean @@ -9,8 +9,32 @@ import Lean.Meta.DiscrTree namespace Lean.Meta +/- +Note: we want to use iota reduction when indexing instaces. Otherwise, +we cannot elaborate examples such as +``` +inductive Ty where + | int + | bool + +@[reducible] def Ty.interp (ty : Ty) : Type := + Ty.casesOn (motive := fun _ => Type) ty Int Bool + +def test {a b c : Ty} (f : a.interp → b.interp → c.interp) (x : a.interp) (y : b.interp) : c.interp := + f x y + +def f (a b : Ty.bool.interp) : Ty.bool.interp := + -- We want to synthesize `BEq Ty.bool.interp` here, and it will fail + -- if we do not reduce `Ty.bool.interp` to `Bool`. + test (.==.) a b +``` +See comment at `DiscrTree`. +-/ + +abbrev InstanceKey := DiscrTree.Key (simpleReduce := false) + structure InstanceEntry where - keys : Array DiscrTree.Key + keys : Array InstanceKey val : Expr priority : Nat globalName? : Option Name := none @@ -24,8 +48,10 @@ instance : ToFormat InstanceEntry where | some n => format n | _ => "" +abbrev InstanceTree := DiscrTree InstanceEntry (simpleReduce := false) + structure Instances where - discrTree : DiscrTree InstanceEntry := DiscrTree.empty + discrTree : InstanceTree := DiscrTree.empty instanceNames : PHashSet Name := {} erased : PHashSet Name := {} deriving Inhabited @@ -49,7 +75,7 @@ builtin_initialize instanceExtension : SimpleScopedEnvExtension InstanceEntry In addEntry := addInstanceEntry } -private def mkInstanceKey (e : Expr) : MetaM (Array DiscrTree.Key) := do +private def mkInstanceKey (e : Expr) : MetaM (Array InstanceKey) := do let type ← inferType e withNewMCtxDepth do let (_, _, type) ← forallMetaTelescopeReducing type @@ -74,7 +100,7 @@ builtin_initialize modifyEnv fun env => instanceExtension.modifyState env fun _ => s } -def getGlobalInstancesIndex : CoreM (DiscrTree InstanceEntry) := +def getGlobalInstancesIndex : CoreM (DiscrTree InstanceEntry (simpleReduce := false)) := return Meta.instanceExtension.getState (← getEnv) |>.discrTree def getErasedInstances : CoreM (PHashSet Name) := diff --git a/stage0/src/Lean/Meta/SynthInstance.lean b/stage0/src/Lean/Meta/SynthInstance.lean index 6a80c79a28..7c04e2f4db 100644 --- a/stage0/src/Lean/Meta/SynthInstance.lean +++ b/stage0/src/Lean/Meta/SynthInstance.lean @@ -668,7 +668,6 @@ def synthInstance? (type : Expr) (maxResultSize? : Option Nat := none) : MetaM ( -/ withConfig (fun config => { config with isDefEqStuckEx := true, transparency := TransparencyMode.instances, foApprox := true, ctxApprox := true, constApprox := false, - ignoreLevelMVarDepth := true, etaStruct := .notClasses }) do let type ← instantiateMVars type let type ← preprocess type diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean index 36eeb57164..ff0826d1eb 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean @@ -701,9 +701,31 @@ where modify fun s => { s with cache := s.cache.insert e { r with dischargeDepth } } return r +@[inline] def withSimpConfig (ctx : Context) (x : MetaM α) : MetaM α := + /- + We set `ignoreLevelMVarDepth := false` because we don't want a `simp` theorem to constraint a universe level metavariable. + For example, consider the following example from issue #1829 + ``` + @[simp] theorem eq_iff_true_of_subsingleton [Subsingleton α] (x y : α) : x = y ↔ True := + ⟨fun _ => ⟨⟩, fun _ => (Subsingleton.elim ..)⟩ + + structure Func' (α : Sort _) (β : Sort _) := + (toFun : α → β) + + def r : Func' α α := ⟨id⟩ + + example (x y : α) (h : x = y) : r.toFun x = y := by simp <;> rw [h] + ``` + `α` has type `Sort ?u`. If `ignoreLevelMVarDepth := true`, then `eq_iff_true_of_subsingleton` is applicable + by setting `?u := 0` and using instance `instance (p : Prop) : Subsingleton p`. + Moreover, the assignment is lost since `simp`, and a type error is produced later. Even if we prevented the assignment + from being lost, the situation is far from ideal since `simp` would be restricting the universe level. + -/ + withConfig (fun c => { c with etaStruct := ctx.config.etaStruct, ignoreLevelMVarDepth := false }) <| withReducible x + def main (e : Expr) (ctx : Context) (usedSimps : UsedSimps := {}) (methods : Methods := {}) : MetaM (Result × UsedSimps) := do let ctx := { ctx with config := (← ctx.config.updateArith) } - withConfig (fun c => { c with etaStruct := ctx.config.etaStruct }) <| withReducible do + withSimpConfig ctx do try let (r, s) ← simp e methods ctx |>.run { usedTheorems := usedSimps } pure (r, s.usedTheorems) @@ -711,7 +733,7 @@ def main (e : Expr) (ctx : Context) (usedSimps : UsedSimps := {}) (methods : Met if ex.isMaxHeartbeat then throwNestedTacticEx `simp ex else throw ex def dsimpMain (e : Expr) (ctx : Context) (usedSimps : UsedSimps := {}) (methods : Methods := {}) : MetaM (Expr × UsedSimps) := do - withConfig (fun c => { c with etaStruct := ctx.config.etaStruct }) <| withReducible do + withSimpConfig ctx do try let (r, s) ← dsimp e methods ctx |>.run { usedTheorems := usedSimps } pure (r, s.usedTheorems) diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean index 3cc8781d19..f0862794d1 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean @@ -134,7 +134,7 @@ def tryTheorem? (e : Expr) (thm : SimpTheorem) (discharge? : Expr → SimpM (Opt /-- Remark: the parameter tag is used for creating trace messages. It is irrelevant otherwise. -/ -def rewrite? (e : Expr) (s : DiscrTree SimpTheorem) (erased : PHashSet Origin) (discharge? : Expr → SimpM (Option Expr)) (tag : String) (rflOnly : Bool) : SimpM (Option Result) := do +def rewrite? (e : Expr) (s : SimpTheoremTree) (erased : PHashSet Origin) (discharge? : Expr → SimpM (Option Expr)) (tag : String) (rflOnly : Bool) : SimpM (Option Result) := do let candidates ← s.getMatchWithExtra e if candidates.isEmpty then trace[Debug.Meta.Tactic.simp] "no theorems found for {tag}-rewriting {e}" diff --git a/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean b/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean index ef5986abcd..87cea99d20 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean @@ -50,6 +50,19 @@ def Origin.key : Origin → Name instance : BEq Origin := ⟨(·.key == ·.key)⟩ instance : Hashable Origin := ⟨(hash ·.key)⟩ +/- +Note: we want to use iota reduction when indexing instaces. Otherwise, +we cannot use simp theorems such as +``` +@[simp] theorem liftOn_mk (a : α) (f : α → γ) (h : ∀ a₁ a₂, r a₁ a₂ → f a₁ = f a₂) : + Quot.liftOn (Quot.mk r a) f h = f a := rfl +``` +If we use `iota`, then the lhs is reduced to `f a`. +See comment at `DiscrTree`. +-/ + +abbrev SimpTheoremKey := DiscrTree.Key (simpleReduce := true) + /-- The fields `levelParams` and `proof` are used to encode the proof of the simp theorem. If the `proof` is a global declaration `c`, we store `Expr.const c []` at `proof` without the universe levels, and `levelParams` is set to `#[]` @@ -60,7 +73,7 @@ instance : Hashable Origin := ⟨(hash ·.key)⟩ Then, we use `abstractMVars` to abstract the universe metavariables and create new fresh universe parameters that are stored at the field `levelParams`. -/ structure SimpTheorem where - keys : Array DiscrTree.Key := #[] + keys : Array SimpTheoremKey := #[] /-- It stores universe parameter names for universe polymorphic proofs. Recall that it is non-empty only when we elaborate an expression provided by the user. @@ -137,9 +150,11 @@ def ppSimpTheorem [Monad m] [MonadLiftT IO m] [MonadEnv m] [MonadError m] (s : S instance : BEq SimpTheorem where beq e₁ e₂ := e₁.proof == e₂.proof +abbrev SimpTheoremTree := DiscrTree SimpTheorem (simpleReduce := true) + structure SimpTheorems where - pre : DiscrTree SimpTheorem := DiscrTree.empty - post : DiscrTree SimpTheorem := DiscrTree.empty + pre : SimpTheoremTree := DiscrTree.empty + post : SimpTheoremTree := DiscrTree.empty lemmaNames : PHashSet Origin := {} toUnfold : PHashSet Name := {} erased : PHashSet Origin := {} @@ -202,7 +217,7 @@ private partial def isPerm : Expr → Expr → MetaM Bool | s, t => return s == t private def checkBadRewrite (lhs rhs : Expr) : MetaM Unit := do - let lhs ← DiscrTree.whnfDT lhs (root := true) + let lhs ← DiscrTree.reduceDT lhs (root := true) (simpleReduce := true) if lhs == rhs && lhs.isFVar then throwError "invalid `simp` theorem, equation is equivalent to{indentExpr (← mkEq lhs rhs)}" diff --git a/stage0/src/Lean/Meta/UnificationHint.lean b/stage0/src/Lean/Meta/UnificationHint.lean index 9d2a8384f8..19e7247f02 100644 --- a/stage0/src/Lean/Meta/UnificationHint.lean +++ b/stage0/src/Lean/Meta/UnificationHint.lean @@ -10,13 +10,17 @@ import Lean.Meta.SynthInstance namespace Lean.Meta +abbrev UnificationHintKey := DiscrTree.Key (simpleReduce := true) + structure UnificationHintEntry where - keys : Array DiscrTree.Key + keys : Array UnificationHintKey val : Name deriving Inhabited +abbrev UnificationHintTree := DiscrTree Name (simpleReduce := true) + structure UnificationHints where - discrTree : DiscrTree Name := DiscrTree.empty + discrTree : UnificationHintTree := DiscrTree.empty deriving Inhabited instance : ToFormat UnificationHints where diff --git a/stage0/src/Lean/Meta/WHNF.lean b/stage0/src/Lean/Meta/WHNF.lean index d991870986..faadca91fe 100644 --- a/stage0/src/Lean/Meta/WHNF.lean +++ b/stage0/src/Lean/Meta/WHNF.lean @@ -485,14 +485,17 @@ private def whnfDelayedAssigned? (f' : Expr) (e : Expr) : MetaM (Option Expr) := return none /-- - Apply beta-reduction, zeta-reduction (i.e., unfold let local-decls), iota-reduction, - expand let-expressions, expand assigned meta-variables. +Apply beta-reduction, zeta-reduction (i.e., unfold let local-decls), iota-reduction, +expand let-expressions, expand assigned meta-variables. - The parameter `deltaAtProj` controls how to reduce projections `s.i`. If `deltaAtProj == true`, - then delta reduction is used to reduce `s` (i.e., `whnf` is used), otherwise `whnfCore`. - We only set this flag to `false` when implementing `isDefEq`. +The parameter `deltaAtProj` controls how to reduce projections `s.i`. If `deltaAtProj == true`, +then delta reduction is used to reduce `s` (i.e., `whnf` is used), otherwise `whnfCore`. +We only set this flag to `false` when implementing `isDefEq`. + +If `simpleReduceOnly`, then `iota` and projection reduction are not performed. +Note that the value of `deltaAtProj` is irrelevant if `simpleReduceOnly = true`. -/ -partial def whnfCore (e : Expr) (deltaAtProj : Bool := true) : MetaM Expr := +partial def whnfCore (e : Expr) (deltaAtProj : Bool := true) (simpleReduceOnly := false) : MetaM Expr := go e where go (e : Expr) : MetaM Expr := @@ -511,26 +514,32 @@ where go eNew else let e := if f == f' then e else e.updateFn f' - match (← reduceMatcher? e) with - | ReduceMatcherResult.reduced eNew => go eNew - | ReduceMatcherResult.partialApp => pure e - | ReduceMatcherResult.stuck _ => pure e - | ReduceMatcherResult.notMatcher => - matchConstAux f' (fun _ => return e) fun cinfo lvls => - match cinfo with - | ConstantInfo.recInfo rec => reduceRec rec lvls e.getAppArgs (fun _ => return e) go - | ConstantInfo.quotInfo rec => reduceQuotRec rec lvls e.getAppArgs (fun _ => return e) go - | c@(ConstantInfo.defnInfo _) => do - if (← isAuxDef c.name) then - deltaBetaDefinition c lvls e.getAppRevArgs (fun _ => return e) go - else - return e - | _ => return e + if simpleReduceOnly then + return e + else + match (← reduceMatcher? e) with + | ReduceMatcherResult.reduced eNew => go eNew + | ReduceMatcherResult.partialApp => pure e + | ReduceMatcherResult.stuck _ => pure e + | ReduceMatcherResult.notMatcher => + matchConstAux f' (fun _ => return e) fun cinfo lvls => + match cinfo with + | ConstantInfo.recInfo rec => reduceRec rec lvls e.getAppArgs (fun _ => return e) go + | ConstantInfo.quotInfo rec => reduceQuotRec rec lvls e.getAppArgs (fun _ => return e) go + | c@(ConstantInfo.defnInfo _) => do + if (← isAuxDef c.name) then + deltaBetaDefinition c lvls e.getAppRevArgs (fun _ => return e) go + else + return e + | _ => return e | Expr.proj _ i c => - let c ← if deltaAtProj then whnf c else whnfCore c - match (← projectCore? c i) with - | some e => go e - | none => return e + if simpleReduceOnly then + return e + else + let c ← if deltaAtProj then whnf c else whnfCore c + match (← projectCore? c i) with + | some e => go e + | none => return e | _ => unreachable! /-- diff --git a/stage0/src/runtime/mpz.cpp b/stage0/src/runtime/mpz.cpp index e2f5aad26c..92e9cecf8b 100644 --- a/stage0/src/runtime/mpz.cpp +++ b/stage0/src/runtime/mpz.cpp @@ -47,7 +47,7 @@ mpz::mpz(uint64 v): mpz::mpz(int64 v) { uint64 w; - if (v < 0) w = -v; + if (v < 0) w = -static_cast(v); else w = v; mpz_init_set_ui(m_val, static_cast(w)); mpz tmp(static_cast(w >> 32)); @@ -146,13 +146,13 @@ mpz & mpz::operator+=(mpz const & o) { mpz_add(m_val, m_val, o.m_val); return *t mpz & mpz::operator+=(unsigned u) { mpz_add_ui(m_val, m_val, u); return *this; } -mpz & mpz::operator+=(int u) { if (u >= 0) mpz_add_ui(m_val, m_val, u); else mpz_sub_ui(m_val, m_val, -u); return *this; } +mpz & mpz::operator+=(int u) { if (u >= 0) mpz_add_ui(m_val, m_val, u); else mpz_sub_ui(m_val, m_val, -static_cast(u)); return *this; } mpz & mpz::operator-=(mpz const & o) { mpz_sub(m_val, m_val, o.m_val); return *this; } mpz & mpz::operator-=(unsigned u) { mpz_sub_ui(m_val, m_val, u); return *this; } -mpz & mpz::operator-=(int u) { if (u >= 0) mpz_sub_ui(m_val, m_val, u); else mpz_add_ui(m_val, m_val, -u); return *this; } +mpz & mpz::operator-=(int u) { if (u >= 0) mpz_sub_ui(m_val, m_val, u); else mpz_add_ui(m_val, m_val, -static_cast(u)); return *this; } mpz & mpz::operator*=(mpz const & o) { mpz_mul(m_val, m_val, o.m_val); return *this; } diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index fd7ac3c720..a497831440 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -1142,7 +1142,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Elab_Term_ElabEli LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__39___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1(lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__4; @@ -32585,91 +32585,92 @@ return x_16; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits(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: { -uint8_t x_12; lean_object* x_13; +uint8_t x_12; uint8_t x_13; lean_object* x_14; x_12 = 1; +x_13 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_12, x_3, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_13) == 0) +x_14 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_12, x_13, x_3, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 7) -{ -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_43; uint8_t x_57; -x_15 = lean_ctor_get(x_13, 1); +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - x_16 = x_13; +if (lean_obj_tag(x_15) == 7) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_44; uint8_t x_58; +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_17 = x_14; } else { - lean_dec_ref(x_13); - x_16 = lean_box(0); + lean_dec_ref(x_14); + x_17 = lean_box(0); } -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -x_18 = lean_ctor_get(x_14, 2); +x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_14, sizeof(void*)*3 + 8); -x_57 = l_Lean_BinderInfo_isImplicit(x_19); -if (x_57 == 0) +x_19 = lean_ctor_get(x_15, 2); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_15, sizeof(void*)*3 + 8); +x_58 = l_Lean_BinderInfo_isImplicit(x_20); +if (x_58 == 0) { if (x_4 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -x_20 = x_58; -goto block_42; +lean_object* x_59; +x_59 = lean_box(0); +x_21 = x_59; +goto block_43; } else { -uint8_t x_59; -x_59 = l_Lean_BinderInfo_isStrictImplicit(x_19); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_box(0); -x_20 = x_60; -goto block_42; -} -else +uint8_t x_60; +x_60 = l_Lean_BinderInfo_isStrictImplicit(x_20); +if (x_60 == 0) { lean_object* x_61; -lean_dec(x_16); -lean_dec(x_14); x_61 = lean_box(0); -x_43 = x_61; -goto block_56; -} -} +x_21 = x_61; +goto block_43; } else { lean_object* x_62; -lean_dec(x_16); -lean_dec(x_14); -x_62 = lean_box(0); -x_43 = x_62; -goto block_56; -} -block_42: -{ -uint8_t x_21; -lean_dec(x_20); -x_21 = l_Lean_BinderInfo_isInstImplicit(x_19); -if (x_21 == 0) -{ -lean_object* x_22; -x_22 = l_Lean_Expr_getOptParamDefault_x3f(x_17); lean_dec(x_17); -if (lean_obj_tag(x_22) == 0) +lean_dec(x_15); +x_62 = lean_box(0); +x_44 = x_62; +goto block_57; +} +} +} +else { -lean_object* x_23; lean_object* x_24; +lean_object* x_63; +lean_dec(x_17); +lean_dec(x_15); +x_63 = lean_box(0); +x_44 = x_63; +goto block_57; +} +block_43: +{ +uint8_t x_22; +lean_dec(x_21); +x_22 = l_Lean_BinderInfo_isInstImplicit(x_20); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = l_Lean_Expr_getOptParamDefault_x3f(x_18); lean_dec(x_18); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_19); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -32677,182 +32678,79 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_2); -lean_ctor_set(x_23, 1, x_14); -if (lean_is_scalar(x_16)) { - x_24 = lean_alloc_ctor(0, 2, 0); -} else { - x_24 = x_16; -} -lean_ctor_set(x_24, 0, x_23); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_2); lean_ctor_set(x_24, 1, x_15); -return x_24; +if (lean_is_scalar(x_17)) { + x_25 = lean_alloc_ctor(0, 2, 0); +} else { + x_25 = x_17; +} +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_16); +return x_25; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_16); -lean_dec(x_14); -x_25 = lean_ctor_get(x_22, 0); -lean_inc(x_25); -lean_dec(x_22); -lean_inc(x_25); -x_26 = l_Lean_Expr_app___override(x_2, x_25); -x_27 = lean_expr_instantiate1(x_18, x_25); -lean_dec(x_25); -lean_dec(x_18); -x_2 = x_26; -x_3 = x_27; -x_11 = x_15; +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_17); +lean_dec(x_15); +x_26 = lean_ctor_get(x_23, 0); +lean_inc(x_26); +lean_dec(x_23); +lean_inc(x_26); +x_27 = l_Lean_Expr_app___override(x_2, x_26); +x_28 = lean_expr_instantiate1(x_19, x_26); +lean_dec(x_26); +lean_dec(x_19); +x_2 = x_27; +x_3 = x_28; +x_11 = x_16; goto _start; } } else { -lean_object* x_29; -lean_dec(x_16); -lean_dec(x_14); +lean_object* x_30; +lean_dec(x_17); +lean_dec(x_15); 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_29 = l_Lean_Elab_Term_mkInstMVar(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -if (lean_obj_tag(x_29) == 0) +x_30 = l_Lean_Elab_Term_mkInstMVar(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +if (lean_obj_tag(x_30) == 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; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); +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_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_dec(x_29); -lean_inc(x_30); -x_32 = l_Lean_Expr_app___override(x_2, x_30); -lean_inc(x_30); -x_33 = l_Lean_Expr_mvarId_x21(x_30); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -lean_inc(x_1); -x_34 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_33, x_1, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_31); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_expr_instantiate1(x_18, x_30); lean_dec(x_30); -lean_dec(x_18); -x_2 = x_32; -x_3 = x_36; -x_11 = x_35; -goto _start; -} -else -{ -uint8_t x_38; -lean_dec(x_18); -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); -x_38 = !lean_is_exclusive(x_29); -if (x_38 == 0) -{ -return x_29; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_29, 0); -x_40 = lean_ctor_get(x_29, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_29); -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; -} -} -} -} -block_56: -{ -lean_object* x_44; uint8_t 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_dec(x_43); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_17); -x_45 = 0; -x_46 = lean_box(0); -lean_inc(x_7); -x_47 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_44, x_45, x_46, x_7, x_8, x_9, x_10, x_15); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -lean_inc(x_48); -x_50 = l_Lean_Expr_mvarId_x21(x_48); +lean_inc(x_31); +x_33 = l_Lean_Expr_app___override(x_2, x_31); +lean_inc(x_31); +x_34 = l_Lean_Expr_mvarId_x21(x_31); +lean_inc(x_33); lean_inc(x_1); -x_51 = l_Lean_Elab_Term_registerMVarErrorHoleInfo(x_50, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_49); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -lean_inc(x_48); -x_53 = l_Lean_Expr_app___override(x_2, x_48); -x_54 = lean_expr_instantiate1(x_18, x_48); -lean_dec(x_48); -lean_dec(x_18); -x_2 = x_53; -x_3 = x_54; -x_11 = x_52; +x_35 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_34, x_1, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_32); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_expr_instantiate1(x_19, x_31); +lean_dec(x_31); +lean_dec(x_19); +x_2 = x_33; +x_3 = x_37; +x_11 = x_36; goto _start; } -} else { -uint8_t x_63; -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); -x_63 = !lean_is_exclusive(x_13); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_13, 0); -lean_dec(x_64); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_2); -lean_ctor_set(x_65, 1, x_14); -lean_ctor_set(x_13, 0, x_65); -return x_13; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_13, 1); -lean_inc(x_66); -lean_dec(x_13); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_2); -lean_ctor_set(x_67, 1, x_14); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -return x_68; -} -} -} -else -{ -uint8_t x_69; +uint8_t x_39; +lean_dec(x_19); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -32861,23 +32759,126 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_13); -if (x_69 == 0) +x_39 = !lean_is_exclusive(x_30); +if (x_39 == 0) { -return x_13; +return x_30; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_13, 0); -x_71 = lean_ctor_get(x_13, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_30, 0); +x_41 = lean_ctor_get(x_30, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_30); +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; +} +} +} +} +block_57: +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_44); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_18); +x_46 = 0; +x_47 = lean_box(0); +lean_inc(x_7); +x_48 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_45, x_46, x_47, x_7, x_8, x_9, x_10, x_16); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +lean_inc(x_49); +x_51 = l_Lean_Expr_mvarId_x21(x_49); +lean_inc(x_1); +x_52 = l_Lean_Elab_Term_registerMVarErrorHoleInfo(x_51, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +lean_inc(x_49); +x_54 = l_Lean_Expr_app___override(x_2, x_49); +x_55 = lean_expr_instantiate1(x_19, x_49); +lean_dec(x_49); +lean_dec(x_19); +x_2 = x_54; +x_3 = x_55; +x_11 = x_53; +goto _start; +} +} +else +{ +uint8_t x_64; +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); +x_64 = !lean_is_exclusive(x_14); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_14, 0); +lean_dec(x_65); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_2); +lean_ctor_set(x_66, 1, x_15); +lean_ctor_set(x_14, 0, x_66); +return x_14; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_14, 1); +lean_inc(x_67); +lean_dec(x_14); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_2); +lean_ctor_set(x_68, 1, x_15); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +} +else +{ +uint8_t x_70; +lean_dec(x_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); +x_70 = !lean_is_exclusive(x_14); +if (x_70 == 0) +{ +return x_14; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_14, 0); +x_72 = lean_ctor_get(x_14, 1); +lean_inc(x_72); lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_13); -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; +lean_dec(x_14); +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; } } } @@ -38109,7 +38110,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_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) { _start: { -lean_object* x_12; lean_object* x_13; 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_88; +lean_object* x_12; lean_object* x_13; 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_89; x_17 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); @@ -38126,175 +38127,157 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); lean_inc(x_21); -x_88 = l_Lean_Elab_Term_tryPostponeIfMVar(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_19); -if (lean_obj_tag(x_88) == 0) +x_89 = l_Lean_Elab_Term_tryPostponeIfMVar(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = l_Lean_Expr_cleanupAnnotations(x_21); -if (lean_obj_tag(x_90) == 4) +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_91 = l_Lean_Expr_cleanupAnnotations(x_21); +if (lean_obj_tag(x_91) == 4) { -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; uint8_t x_99; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -lean_dec(x_90); -x_92 = l_Lean_Syntax_getId(x_1); -x_93 = lean_erase_macro_scopes(x_92); -x_94 = l_Lean_Name_append(x_91, x_93); +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; uint8_t x_100; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); lean_dec(x_91); -x_95 = lean_st_ref_get(x_10, x_89); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); +x_93 = l_Lean_Syntax_getId(x_1); +x_94 = lean_erase_macro_scopes(x_93); +x_95 = l_Lean_Name_append(x_92, x_94); +lean_dec(x_92); +x_96 = lean_st_ref_get(x_10, x_90); +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_ctor_get(x_96, 0); +x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); lean_dec(x_96); -lean_inc(x_94); -x_99 = l_Lean_Environment_contains(x_98, x_94); -if (x_99 == 0) +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +lean_dec(x_97); +lean_inc(x_95); +x_100 = l_Lean_Environment_contains(x_99, x_95); +if (x_100 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_100 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_100, 0, x_94); -x_101 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; -x_102 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -x_103 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; -x_104 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); +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; +x_101 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_101, 0, x_95); +x_102 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; +x_103 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +x_104 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; +x_105 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); lean_inc(x_3); -x_105 = l_Lean_indentExpr(x_3); -x_106 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_108 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); +x_106 = l_Lean_indentExpr(x_3); +x_107 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_109 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); lean_inc(x_5); -x_109 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_108, x_5, x_6, x_7, x_8, x_9, x_10, x_97); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); +x_110 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_109, x_5, x_6, x_7, x_8, x_9, x_10, x_98); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -lean_dec(x_109); -x_22 = x_110; -x_23 = x_111; -goto block_87; +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_22 = x_111; +x_23 = x_112; +goto block_88; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_dec(x_18); lean_dec(x_4); lean_dec(x_3); -x_112 = lean_box(0); -x_113 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_94, x_112, x_5, x_6, x_7, x_8, x_9, x_10, x_97); +x_113 = lean_box(0); +x_114 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_95, x_113, x_5, x_6, x_7, x_8, x_9, x_10, x_98); 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_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_113); -x_12 = x_114; -x_13 = x_115; +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_12 = x_115; +x_13 = x_116; goto block_16; } } else { -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_dec(x_90); +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_dec(x_91); lean_inc(x_3); -x_116 = l_Lean_indentExpr(x_3); -x_117 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__2; -x_118 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_116); -x_119 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_120 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); +x_117 = l_Lean_indentExpr(x_3); +x_118 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__2; +x_119 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_117); +x_120 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_121 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); lean_inc(x_5); -x_121 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_120, x_5, x_6, x_7, x_8, x_9, x_10, x_89); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); +x_122 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_121, x_5, x_6, x_7, x_8, x_9, x_10, x_90); +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -lean_dec(x_121); -x_22 = x_122; -x_23 = x_123; -goto block_87; +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_22 = x_123; +x_23 = x_124; +goto block_88; } } else { -lean_object* x_124; +lean_object* x_125; lean_dec(x_21); -x_124 = lean_ctor_get(x_88, 0); -lean_inc(x_124); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_88, 1); +x_125 = lean_ctor_get(x_89, 0); lean_inc(x_125); -lean_dec(x_88); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; +x_126 = lean_ctor_get(x_89, 1); +lean_inc(x_126); +lean_dec(x_89); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_126 = l_Lean_Meta_unfoldDefinition_x3f(x_18, x_7, x_8, x_9, x_10, x_125); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); +x_127 = l_Lean_Meta_unfoldDefinition_x3f(x_18, x_7, x_8, x_9, x_10, x_126); if (lean_obj_tag(x_127) == 0) { -uint8_t x_128; +lean_object* x_128; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +if (lean_obj_tag(x_128) == 0) +{ +uint8_t x_129; lean_dec(x_3); -x_128 = !lean_is_exclusive(x_126); -if (x_128 == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; -x_129 = lean_ctor_get(x_126, 1); -x_130 = lean_ctor_get(x_126, 0); -lean_dec(x_130); -x_131 = lean_array_get_size(x_4); -x_132 = lean_unsigned_to_nat(0u); -x_133 = lean_nat_dec_lt(x_132, x_131); -if (x_133 == 0) +x_129 = !lean_is_exclusive(x_127); +if (x_129 == 0) { +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_130 = lean_ctor_get(x_127, 1); +x_131 = lean_ctor_get(x_127, 0); lean_dec(x_131); -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_ctor_set_tag(x_126, 1); -lean_ctor_set(x_126, 0, x_124); -return x_126; -} -else -{ -uint8_t x_134; -x_134 = lean_nat_dec_le(x_131, x_131); +x_132 = lean_array_get_size(x_4); +x_133 = lean_unsigned_to_nat(0u); +x_134 = lean_nat_dec_lt(x_133, x_132); if (x_134 == 0) { -lean_dec(x_131); +lean_dec(x_132); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -38302,66 +38285,84 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_ctor_set_tag(x_126, 1); -lean_ctor_set(x_126, 0, x_124); -return x_126; +lean_ctor_set_tag(x_127, 1); +lean_ctor_set(x_127, 0, x_125); +return x_127; } else { -size_t x_135; size_t x_136; lean_object* x_137; lean_object* x_138; -lean_free_object(x_126); -x_135 = 0; -x_136 = lean_usize_of_nat(x_131); -lean_dec(x_131); -x_137 = lean_box(0); -x_138 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_135, x_136, x_137, x_5, x_6, x_7, x_8, x_9, x_10, x_129); +uint8_t x_135; +x_135 = lean_nat_dec_le(x_132, x_132); +if (x_135 == 0) +{ +lean_dec(x_132); +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); -if (lean_obj_tag(x_138) == 0) -{ -uint8_t x_139; -x_139 = !lean_is_exclusive(x_138); -if (x_139 == 0) -{ -lean_object* x_140; -x_140 = lean_ctor_get(x_138, 0); -lean_dec(x_140); -lean_ctor_set_tag(x_138, 1); -lean_ctor_set(x_138, 0, x_124); -return x_138; +lean_ctor_set_tag(x_127, 1); +lean_ctor_set(x_127, 0, x_125); +return x_127; } else { -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec(x_138); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_124); -lean_ctor_set(x_142, 1, x_141); -return x_142; +size_t x_136; size_t x_137; lean_object* x_138; lean_object* x_139; +lean_free_object(x_127); +x_136 = 0; +x_137 = lean_usize_of_nat(x_132); +lean_dec(x_132); +x_138 = lean_box(0); +x_139 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_136, x_137, x_138, x_5, x_6, x_7, x_8, x_9, x_10, x_130); +lean_dec(x_4); +if (lean_obj_tag(x_139) == 0) +{ +uint8_t x_140; +x_140 = !lean_is_exclusive(x_139); +if (x_140 == 0) +{ +lean_object* x_141; +x_141 = lean_ctor_get(x_139, 0); +lean_dec(x_141); +lean_ctor_set_tag(x_139, 1); +lean_ctor_set(x_139, 0, x_125); +return x_139; +} +else +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +lean_dec(x_139); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_125); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } else { -uint8_t x_143; -lean_dec(x_124); -x_143 = !lean_is_exclusive(x_138); -if (x_143 == 0) +uint8_t x_144; +lean_dec(x_125); +x_144 = !lean_is_exclusive(x_139); +if (x_144 == 0) { -return x_138; +return x_139; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_138, 0); -x_145 = lean_ctor_get(x_138, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_139, 0); +x_146 = lean_ctor_get(x_139, 1); +lean_inc(x_146); lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_138); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_dec(x_139); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; } } } @@ -38369,17 +38370,17 @@ return x_146; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; -x_147 = lean_ctor_get(x_126, 1); -lean_inc(x_147); -lean_dec(x_126); -x_148 = lean_array_get_size(x_4); -x_149 = lean_unsigned_to_nat(0u); -x_150 = lean_nat_dec_lt(x_149, x_148); -if (x_150 == 0) +lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_148 = lean_ctor_get(x_127, 1); +lean_inc(x_148); +lean_dec(x_127); +x_149 = lean_array_get_size(x_4); +x_150 = lean_unsigned_to_nat(0u); +x_151 = lean_nat_dec_lt(x_150, x_149); +if (x_151 == 0) { -lean_object* x_151; -lean_dec(x_148); +lean_object* x_152; +lean_dec(x_149); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -38387,19 +38388,19 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_124); -lean_ctor_set(x_151, 1, x_147); -return x_151; +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_125); +lean_ctor_set(x_152, 1, x_148); +return x_152; } else { -uint8_t x_152; -x_152 = lean_nat_dec_le(x_148, x_148); -if (x_152 == 0) +uint8_t x_153; +x_153 = lean_nat_dec_le(x_149, x_149); +if (x_153 == 0) { -lean_object* x_153; -lean_dec(x_148); +lean_object* x_154; +lean_dec(x_149); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -38407,67 +38408,67 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_153 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_153, 0, x_124); -lean_ctor_set(x_153, 1, x_147); -return x_153; +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_125); +lean_ctor_set(x_154, 1, x_148); +return x_154; } else { -size_t x_154; size_t x_155; lean_object* x_156; lean_object* x_157; -x_154 = 0; -x_155 = lean_usize_of_nat(x_148); -lean_dec(x_148); -x_156 = lean_box(0); -x_157 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_154, x_155, x_156, x_5, x_6, x_7, x_8, x_9, x_10, x_147); +size_t x_155; size_t x_156; lean_object* x_157; lean_object* x_158; +x_155 = 0; +x_156 = lean_usize_of_nat(x_149); +lean_dec(x_149); +x_157 = lean_box(0); +x_158 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_155, x_156, x_157, x_5, x_6, x_7, x_8, x_9, x_10, x_148); lean_dec(x_4); -if (lean_obj_tag(x_157) == 0) +if (lean_obj_tag(x_158) == 0) { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_159 = x_157; +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_160 = x_158; } else { - lean_dec_ref(x_157); - x_159 = lean_box(0); + lean_dec_ref(x_158); + x_160 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); } else { - x_160 = x_159; - lean_ctor_set_tag(x_160, 1); + x_161 = x_160; + lean_ctor_set_tag(x_161, 1); } -lean_ctor_set(x_160, 0, x_124); -lean_ctor_set(x_160, 1, x_158); -return x_160; +lean_ctor_set(x_161, 0, x_125); +lean_ctor_set(x_161, 1, x_159); +return x_161; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_124); -x_161 = lean_ctor_get(x_157, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_157, 1); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_125); +x_162 = lean_ctor_get(x_158, 0); lean_inc(x_162); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_163 = x_157; +x_163 = lean_ctor_get(x_158, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_164 = x_158; } else { - lean_dec_ref(x_157); - x_163 = lean_box(0); + lean_dec_ref(x_158); + x_164 = lean_box(0); } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); } else { - x_164 = x_163; + x_165 = x_164; } -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; } } } @@ -38475,72 +38476,73 @@ return x_164; } else { -lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; -x_165 = lean_ctor_get(x_126, 1); -lean_inc(x_165); -lean_dec(x_126); -x_166 = lean_ctor_get(x_127, 0); +lean_object* x_166; lean_object* x_167; uint8_t x_168; uint8_t x_169; lean_object* x_170; +x_166 = lean_ctor_get(x_127, 1); lean_inc(x_166); lean_dec(x_127); -x_167 = 1; +x_167 = lean_ctor_get(x_128, 0); +lean_inc(x_167); +lean_dec(x_128); +x_168 = 1; +x_169 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_168 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_167, x_166, x_7, x_8, x_9, x_10, x_165); -if (lean_obj_tag(x_168) == 0) +x_170 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_168, x_169, x_167, x_7, x_8, x_9, x_10, x_166); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec(x_168); -x_171 = lean_array_push(x_4, x_124); -x_172 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_169, x_3, x_171, x_5, x_6, x_7, x_8, x_9, x_10, x_170); -if (lean_obj_tag(x_172) == 0) +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_array_push(x_4, x_125); +x_174 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_171, x_3, x_173, x_5, x_6, x_7, x_8, x_9, x_10, x_172); +if (lean_obj_tag(x_174) == 0) { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_175 = lean_box(0); -x_176 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_175); -x_12 = x_176; -x_13 = x_174; +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +x_177 = lean_box(0); +x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_177); +x_12 = x_178; +x_13 = x_176; goto block_16; } else { -uint8_t x_177; -x_177 = !lean_is_exclusive(x_172); -if (x_177 == 0) +uint8_t x_179; +x_179 = !lean_is_exclusive(x_174); +if (x_179 == 0) { -return x_172; +return x_174; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_172, 0); -x_179 = lean_ctor_get(x_172, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_172); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -return x_180; +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_174, 0); +x_181 = lean_ctor_get(x_174, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_174); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +return x_182; } } } else { -uint8_t x_181; -lean_dec(x_124); +uint8_t x_183; +lean_dec(x_125); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -38549,31 +38551,31 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_181 = !lean_is_exclusive(x_168); -if (x_181 == 0) +x_183 = !lean_is_exclusive(x_170); +if (x_183 == 0) { -return x_168; +return x_170; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_168, 0); -x_183 = lean_ctor_get(x_168, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_168); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_183); -return x_184; +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_170, 0); +x_185 = lean_ctor_get(x_170, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_170); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; } } } } else { -uint8_t x_185; -lean_dec(x_124); +uint8_t x_187; +lean_dec(x_125); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -38582,29 +38584,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_185 = !lean_is_exclusive(x_126); -if (x_185 == 0) +x_187 = !lean_is_exclusive(x_127); +if (x_187 == 0) { -return x_126; +return x_127; } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_126, 0); -x_187 = lean_ctor_get(x_126, 1); -lean_inc(x_187); -lean_inc(x_186); -lean_dec(x_126); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_186); -lean_ctor_set(x_188, 1, x_187); -return x_188; +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_ctor_get(x_127, 0); +x_189 = lean_ctor_get(x_127, 1); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_127); +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_188); +lean_ctor_set(x_190, 1, x_189); +return x_190; } } } else { -uint8_t x_189; +uint8_t x_191; lean_dec(x_18); lean_dec(x_10); lean_dec(x_9); @@ -38614,24 +38616,24 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_189 = !lean_is_exclusive(x_88); -if (x_189 == 0) +x_191 = !lean_is_exclusive(x_89); +if (x_191 == 0) { -lean_object* x_190; -x_190 = lean_ctor_get(x_88, 0); -lean_dec(x_190); -return x_88; +lean_object* x_192; +x_192 = lean_ctor_get(x_89, 0); +lean_dec(x_192); +return x_89; } else { -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_88, 1); -lean_inc(x_191); -lean_dec(x_88); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_124); -lean_ctor_set(x_192, 1, x_191); -return x_192; +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_89, 1); +lean_inc(x_193); +lean_dec(x_89); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_125); +lean_ctor_set(x_194, 1, x_193); +return x_194; } } } @@ -38646,7 +38648,7 @@ lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); return x_15; } -block_87: +block_88: { lean_object* x_24; lean_inc(x_10); @@ -38874,7 +38876,7 @@ return x_62; } else { -lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; +lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; x_63 = lean_ctor_get(x_24, 1); lean_inc(x_63); lean_dec(x_24); @@ -38882,63 +38884,64 @@ x_64 = lean_ctor_get(x_25, 0); lean_inc(x_64); lean_dec(x_25); x_65 = 1; +x_66 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_66 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_65, x_64, x_7, x_8, x_9, x_10, x_63); -if (lean_obj_tag(x_66) == 0) +x_67 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_65, x_66, x_64, x_7, x_8, x_9, x_10, x_63); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +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); -lean_dec(x_66); -x_69 = lean_array_push(x_4, x_22); -x_70 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_67, x_3, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_68); -if (lean_obj_tag(x_70) == 0) +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_array_push(x_4, x_22); +x_71 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_68, x_3, x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_69); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_73); -x_12 = x_74; -x_13 = x_72; +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_74); +x_12 = x_75; +x_13 = x_73; goto block_16; } else { -uint8_t x_75; -x_75 = !lean_is_exclusive(x_70); -if (x_75 == 0) +uint8_t x_76; +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) { -return x_70; +return x_71; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_70, 0); -x_77 = lean_ctor_get(x_70, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_71, 0); +x_78 = lean_ctor_get(x_71, 1); +lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_70); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +lean_dec(x_71); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } else { -uint8_t x_79; +uint8_t x_80; lean_dec(x_22); lean_dec(x_10); lean_dec(x_9); @@ -38948,30 +38951,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_79 = !lean_is_exclusive(x_66); -if (x_79 == 0) +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) { -return x_66; +return x_67; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_66, 0); -x_81 = lean_ctor_get(x_66, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_67, 0); +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_66); -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_dec(x_67); +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 { -uint8_t x_83; +uint8_t x_84; lean_dec(x_22); lean_dec(x_10); lean_dec(x_9); @@ -38981,23 +38984,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_83 = !lean_is_exclusive(x_24); -if (x_83 == 0) +x_84 = !lean_is_exclusive(x_24); +if (x_84 == 0) { return x_24; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_24, 0); -x_85 = lean_ctor_get(x_24, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_24, 0); +x_86 = lean_ctor_get(x_24, 1); +lean_inc(x_86); lean_inc(x_85); -lean_inc(x_84); lean_dec(x_24); -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_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; } } } diff --git a/stage0/stdlib/Lean/Elab/ComputedFields.c b/stage0/stdlib/Lean/Elab/ComputedFields.c index 74e5cd23b5..fbaa83ea31 100644 --- a/stage0/stdlib/Lean/Elab/ComputedFields.c +++ b/stage0/stdlib/Lean/Elab/ComputedFields.c @@ -306,7 +306,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mk static lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__2; lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__10___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* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*); @@ -1197,1065 +1197,1069 @@ goto _start; } case 4: { -uint8_t x_85; lean_object* x_86; +uint8_t x_85; uint8_t x_86; lean_object* x_87; x_85 = 1; +x_86 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_86 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_85, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_86) == 0) +x_87 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_85, x_86, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_87) == 0) { -uint8_t x_87; -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +uint8_t x_88; +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) { -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_88); +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_89); lean_inc(x_1); -x_90 = l_Lean_Expr_occurs(x_1, x_88); -if (x_90 == 0) +x_91 = l_Lean_Expr_occurs(x_1, x_89); +if (x_91 == 0) { lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_86; +return x_87; } else { -lean_object* x_91; -lean_free_object(x_86); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_88); -x_91 = l_Lean_Meta_unfoldDefinition_x3f(x_88, x_3, x_4, x_5, x_6, x_89); -if (lean_obj_tag(x_91) == 0) -{ lean_object* x_92; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -if (lean_obj_tag(x_92) == 0) -{ -uint8_t x_93; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_93 = !lean_is_exclusive(x_91); -if (x_93 == 0) -{ -lean_object* x_94; -x_94 = lean_ctor_get(x_91, 0); -lean_dec(x_94); -lean_ctor_set(x_91, 0, x_88); -return x_91; -} -else -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_dec(x_91); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_88); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; -lean_dec(x_88); -x_97 = lean_ctor_get(x_91, 1); -lean_inc(x_97); -lean_dec(x_91); -x_98 = lean_ctor_get(x_92, 0); -lean_inc(x_98); -lean_dec(x_92); -x_2 = x_98; -x_7 = x_97; -goto _start; -} -} -else -{ -uint8_t x_100; -lean_dec(x_88); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_100 = !lean_is_exclusive(x_91); -if (x_100 == 0) -{ -return x_91; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_91, 0); -x_102 = lean_ctor_get(x_91, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_91); -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; -} -} -} -} -else -{ -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_ctor_get(x_86, 0); -x_105 = lean_ctor_get(x_86, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_86); -lean_inc(x_104); -lean_inc(x_1); -x_106 = l_Lean_Expr_occurs(x_1, x_104); -if (x_106 == 0) -{ -lean_object* x_107; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_107 = lean_alloc_ctor(0, 2, 0); -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_free_object(x_87); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_104); -x_108 = l_Lean_Meta_unfoldDefinition_x3f(x_104, x_3, x_4, x_5, x_6, x_105); -if (lean_obj_tag(x_108) == 0) +lean_inc(x_89); +x_92 = l_Lean_Meta_unfoldDefinition_x3f(x_89, x_3, x_4, x_5, x_6, x_90); +if (lean_obj_tag(x_92) == 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_93; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; +uint8_t x_94; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; -} else { - lean_dec_ref(x_108); - x_111 = lean_box(0); -} -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(0, 2, 0); -} else { - x_112 = x_111; -} -lean_ctor_set(x_112, 0, x_104); -lean_ctor_set(x_112, 1, x_110); -return x_112; +x_94 = !lean_is_exclusive(x_92); +if (x_94 == 0) +{ +lean_object* x_95; +x_95 = lean_ctor_get(x_92, 0); +lean_dec(x_95); +lean_ctor_set(x_92, 0, x_89); +return x_92; } else { -lean_object* x_113; lean_object* x_114; -lean_dec(x_104); -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_dec(x_108); -x_114 = lean_ctor_get(x_109, 0); -lean_inc(x_114); -lean_dec(x_109); -x_2 = x_114; -x_7 = x_113; +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +lean_dec(x_92); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_89); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_89); +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +lean_dec(x_92); +x_99 = lean_ctor_get(x_93, 0); +lean_inc(x_99); +lean_dec(x_93); +x_2 = x_99; +x_7 = x_98; goto _start; } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_104); +uint8_t x_101; +lean_dec(x_89); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_116 = lean_ctor_get(x_108, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_108, 1); +x_101 = !lean_is_exclusive(x_92); +if (x_101 == 0) +{ +return x_92; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_92, 0); +x_103 = lean_ctor_get(x_92, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_92); +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 +{ +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_87, 0); +x_106 = lean_ctor_get(x_87, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_87); +lean_inc(x_105); +lean_inc(x_1); +x_107 = l_Lean_Expr_occurs(x_1, x_105); +if (x_107 == 0) +{ +lean_object* x_108; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_108 = lean_alloc_ctor(0, 2, 0); +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_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_105); +x_109 = l_Lean_Meta_unfoldDefinition_x3f(x_105, x_3, x_4, x_5, x_6, x_106); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; +} else { + lean_dec_ref(x_109); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_105); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_105); +x_114 = lean_ctor_get(x_109, 1); +lean_inc(x_114); +lean_dec(x_109); +x_115 = lean_ctor_get(x_110, 0); +lean_inc(x_115); +lean_dec(x_110); +x_2 = x_115; +x_7 = x_114; +goto _start; +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_105); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_117 = lean_ctor_get(x_109, 0); lean_inc(x_117); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_118 = x_108; +x_118 = lean_ctor_get(x_109, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_119 = x_109; } else { - lean_dec_ref(x_108); - x_118 = lean_box(0); + lean_dec_ref(x_109); + x_119 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_120 = x_119; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } } } else { -uint8_t x_120; +uint8_t x_121; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_120 = !lean_is_exclusive(x_86); -if (x_120 == 0) +x_121 = !lean_is_exclusive(x_87); +if (x_121 == 0) { -return x_86; +return x_87; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_86, 0); -x_122 = lean_ctor_get(x_86, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_87, 0); +x_123 = lean_ctor_get(x_87, 1); +lean_inc(x_123); lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_86); -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; +lean_dec(x_87); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } case 5: { -uint8_t x_124; lean_object* x_125; -x_124 = 1; +uint8_t x_125; uint8_t x_126; lean_object* x_127; +x_125 = 1; +x_126 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_125 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_124, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_125) == 0) +x_127 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_125, x_126, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_127) == 0) { -uint8_t x_126; -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) +uint8_t x_128; +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) { -lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_127 = lean_ctor_get(x_125, 0); -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_127); +lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_129 = lean_ctor_get(x_127, 0); +x_130 = lean_ctor_get(x_127, 1); +lean_inc(x_129); lean_inc(x_1); -x_129 = l_Lean_Expr_occurs(x_1, x_127); -if (x_129 == 0) +x_131 = l_Lean_Expr_occurs(x_1, x_129); +if (x_131 == 0) { lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_125; +return x_127; } else { -lean_object* x_130; -lean_free_object(x_125); +lean_object* x_132; +lean_free_object(x_127); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_127); -x_130 = l_Lean_Meta_unfoldDefinition_x3f(x_127, x_3, x_4, x_5, x_6, x_128); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -if (lean_obj_tag(x_131) == 0) -{ -uint8_t x_132; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_132 = !lean_is_exclusive(x_130); -if (x_132 == 0) +lean_inc(x_129); +x_132 = l_Lean_Meta_unfoldDefinition_x3f(x_129, x_3, x_4, x_5, x_6, x_130); +if (lean_obj_tag(x_132) == 0) { lean_object* x_133; -x_133 = lean_ctor_get(x_130, 0); -lean_dec(x_133); -lean_ctor_set(x_130, 0, x_127); -return x_130; -} -else +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_130, 1); -lean_inc(x_134); -lean_dec(x_130); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_127); -lean_ctor_set(x_135, 1, x_134); -return x_135; -} +uint8_t x_134; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_134 = !lean_is_exclusive(x_132); +if (x_134 == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_132, 0); +lean_dec(x_135); +lean_ctor_set(x_132, 0, x_129); +return x_132; } else { lean_object* x_136; lean_object* x_137; -lean_dec(x_127); -x_136 = lean_ctor_get(x_130, 1); +x_136 = lean_ctor_get(x_132, 1); lean_inc(x_136); -lean_dec(x_130); -x_137 = lean_ctor_get(x_131, 0); -lean_inc(x_137); -lean_dec(x_131); -x_2 = x_137; -x_7 = x_136; +lean_dec(x_132); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_129); +lean_ctor_set(x_137, 1, x_136); +return x_137; +} +} +else +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_129); +x_138 = lean_ctor_get(x_132, 1); +lean_inc(x_138); +lean_dec(x_132); +x_139 = lean_ctor_get(x_133, 0); +lean_inc(x_139); +lean_dec(x_133); +x_2 = x_139; +x_7 = x_138; goto _start; } } else { -uint8_t x_139; +uint8_t x_141; +lean_dec(x_129); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_141 = !lean_is_exclusive(x_132); +if (x_141 == 0) +{ +return x_132; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_132, 0); +x_143 = lean_ctor_get(x_132, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_132); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_145 = lean_ctor_get(x_127, 0); +x_146 = lean_ctor_get(x_127, 1); +lean_inc(x_146); +lean_inc(x_145); lean_dec(x_127); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_139 = !lean_is_exclusive(x_130); -if (x_139 == 0) -{ -return x_130; -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_130, 0); -x_141 = lean_ctor_get(x_130, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_130); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; -} -} -} -} -else -{ -lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_143 = lean_ctor_get(x_125, 0); -x_144 = lean_ctor_get(x_125, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_125); -lean_inc(x_143); +lean_inc(x_145); lean_inc(x_1); -x_145 = l_Lean_Expr_occurs(x_1, x_143); -if (x_145 == 0) +x_147 = l_Lean_Expr_occurs(x_1, x_145); +if (x_147 == 0) { -lean_object* x_146; +lean_object* x_148; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } else { -lean_object* x_147; +lean_object* x_149; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_143); -x_147 = l_Lean_Meta_unfoldDefinition_x3f(x_143, x_3, x_4, x_5, x_6, x_144); -if (lean_obj_tag(x_147) == 0) +lean_inc(x_145); +x_149 = l_Lean_Meta_unfoldDefinition_x3f(x_145, x_3, x_4, x_5, x_6, x_146); +if (lean_obj_tag(x_149) == 0) { -lean_object* x_148; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -if (lean_obj_tag(x_148) == 0) +lean_object* x_150; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +if (lean_obj_tag(x_150) == 0) { -lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_150 = x_147; +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; } else { - lean_dec_ref(x_147); - x_150 = lean_box(0); + lean_dec_ref(x_149); + x_152 = lean_box(0); } -if (lean_is_scalar(x_150)) { - x_151 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 2, 0); } else { - x_151 = x_150; + x_153 = x_152; } -lean_ctor_set(x_151, 0, x_143); -lean_ctor_set(x_151, 1, x_149); -return x_151; +lean_ctor_set(x_153, 0, x_145); +lean_ctor_set(x_153, 1, x_151); +return x_153; } else { -lean_object* x_152; lean_object* x_153; -lean_dec(x_143); -x_152 = lean_ctor_get(x_147, 1); -lean_inc(x_152); -lean_dec(x_147); -x_153 = lean_ctor_get(x_148, 0); -lean_inc(x_153); -lean_dec(x_148); -x_2 = x_153; -x_7 = x_152; +lean_object* x_154; lean_object* x_155; +lean_dec(x_145); +x_154 = lean_ctor_get(x_149, 1); +lean_inc(x_154); +lean_dec(x_149); +x_155 = lean_ctor_get(x_150, 0); +lean_inc(x_155); +lean_dec(x_150); +x_2 = x_155; +x_7 = x_154; goto _start; } } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_143); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_145); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_155 = lean_ctor_get(x_147, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_147, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_157 = x_147; +x_157 = lean_ctor_get(x_149, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_149, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_159 = x_149; } else { - lean_dec_ref(x_147); - x_157 = lean_box(0); + lean_dec_ref(x_149); + x_159 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_158 = x_157; + x_160 = x_159; } -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } } } } else { -uint8_t x_159; +uint8_t x_161; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_159 = !lean_is_exclusive(x_125); -if (x_159 == 0) +x_161 = !lean_is_exclusive(x_127); +if (x_161 == 0) { -return x_125; +return x_127; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_125, 0); -x_161 = lean_ctor_get(x_125, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_125); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_127, 0); +x_163 = lean_ctor_get(x_127, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_127); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } case 8: { -uint8_t x_163; lean_object* x_164; -x_163 = 1; +uint8_t x_165; uint8_t x_166; lean_object* x_167; +x_165 = 1; +x_166 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_164 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_163, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_164) == 0) +x_167 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_165, x_166, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_167) == 0) { -uint8_t x_165; -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_166 = lean_ctor_get(x_164, 0); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_inc(x_1); -x_168 = l_Lean_Expr_occurs(x_1, x_166); +uint8_t x_168; +x_168 = !lean_is_exclusive(x_167); if (x_168 == 0) { -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_164; -} -else -{ -lean_object* x_169; -lean_free_object(x_164); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_166); -x_169 = l_Lean_Meta_unfoldDefinition_x3f(x_166, x_3, x_4, x_5, x_6, x_167); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -if (lean_obj_tag(x_170) == 0) -{ -uint8_t x_171; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_171 = !lean_is_exclusive(x_169); +lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_169 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_inc(x_1); +x_171 = l_Lean_Expr_occurs(x_1, x_169); if (x_171 == 0) { +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_167; +} +else +{ lean_object* x_172; -x_172 = lean_ctor_get(x_169, 0); -lean_dec(x_172); -lean_ctor_set(x_169, 0, x_166); -return x_169; -} -else -{ -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_169, 1); -lean_inc(x_173); -lean_dec(x_169); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_166); -lean_ctor_set(x_174, 1, x_173); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; -lean_dec(x_166); -x_175 = lean_ctor_get(x_169, 1); -lean_inc(x_175); -lean_dec(x_169); -x_176 = lean_ctor_get(x_170, 0); -lean_inc(x_176); -lean_dec(x_170); -x_2 = x_176; -x_7 = x_175; -goto _start; -} -} -else -{ -uint8_t x_178; -lean_dec(x_166); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_178 = !lean_is_exclusive(x_169); -if (x_178 == 0) -{ -return x_169; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 0); -x_180 = lean_ctor_get(x_169, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_169); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; -} -} -} -} -else -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_ctor_get(x_164, 0); -x_183 = lean_ctor_get(x_164, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_164); -lean_inc(x_182); -lean_inc(x_1); -x_184 = l_Lean_Expr_occurs(x_1, x_182); -if (x_184 == 0) -{ -lean_object* x_185; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -return x_185; -} -else -{ -lean_object* x_186; +lean_free_object(x_167); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_182); -x_186 = l_Lean_Meta_unfoldDefinition_x3f(x_182, x_3, x_4, x_5, x_6, x_183); -if (lean_obj_tag(x_186) == 0) +lean_inc(x_169); +x_172 = l_Lean_Meta_unfoldDefinition_x3f(x_169, x_3, x_4, x_5, x_6, x_170); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_187; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -if (lean_obj_tag(x_187) == 0) +lean_object* x_173; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +if (lean_obj_tag(x_173) == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; +uint8_t x_174; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_189 = x_186; -} else { - lean_dec_ref(x_186); - x_189 = lean_box(0); -} -if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(0, 2, 0); -} else { - x_190 = x_189; -} -lean_ctor_set(x_190, 0, x_182); -lean_ctor_set(x_190, 1, x_188); -return x_190; +x_174 = !lean_is_exclusive(x_172); +if (x_174 == 0) +{ +lean_object* x_175; +x_175 = lean_ctor_get(x_172, 0); +lean_dec(x_175); +lean_ctor_set(x_172, 0, x_169); +return x_172; } else { -lean_object* x_191; lean_object* x_192; -lean_dec(x_182); -x_191 = lean_ctor_get(x_186, 1); -lean_inc(x_191); -lean_dec(x_186); -x_192 = lean_ctor_get(x_187, 0); -lean_inc(x_192); -lean_dec(x_187); -x_2 = x_192; -x_7 = x_191; +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_172, 1); +lean_inc(x_176); +lean_dec(x_172); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_176); +return x_177; +} +} +else +{ +lean_object* x_178; lean_object* x_179; +lean_dec(x_169); +x_178 = lean_ctor_get(x_172, 1); +lean_inc(x_178); +lean_dec(x_172); +x_179 = lean_ctor_get(x_173, 0); +lean_inc(x_179); +lean_dec(x_173); +x_2 = x_179; +x_7 = x_178; goto _start; } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_182); +uint8_t x_181; +lean_dec(x_169); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_194 = lean_ctor_get(x_186, 0); +x_181 = !lean_is_exclusive(x_172); +if (x_181 == 0) +{ +return x_172; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_172, 0); +x_183 = lean_ctor_get(x_172, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_172); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +return x_184; +} +} +} +} +else +{ +lean_object* x_185; lean_object* x_186; uint8_t x_187; +x_185 = lean_ctor_get(x_167, 0); +x_186 = lean_ctor_get(x_167, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_167); +lean_inc(x_185); +lean_inc(x_1); +x_187 = l_Lean_Expr_occurs(x_1, x_185); +if (x_187 == 0) +{ +lean_object* x_188; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +return x_188; +} +else +{ +lean_object* x_189; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_185); +x_189 = l_Lean_Meta_unfoldDefinition_x3f(x_185, x_3, x_4, x_5, x_6, x_186); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; +} else { + lean_dec_ref(x_189); + x_192 = lean_box(0); +} +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_192; +} +lean_ctor_set(x_193, 0, x_185); +lean_ctor_set(x_193, 1, x_191); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; +lean_dec(x_185); +x_194 = lean_ctor_get(x_189, 1); lean_inc(x_194); -x_195 = lean_ctor_get(x_186, 1); +lean_dec(x_189); +x_195 = lean_ctor_get(x_190, 0); lean_inc(x_195); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_196 = x_186; -} else { - lean_dec_ref(x_186); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -return x_197; -} -} +lean_dec(x_190); +x_2 = x_195; +x_7 = x_194; +goto _start; } } else { -uint8_t x_198; +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_185); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_198 = !lean_is_exclusive(x_164); -if (x_198 == 0) -{ -return x_164; +x_197 = lean_ctor_get(x_189, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_189, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_199 = x_189; +} else { + lean_dec_ref(x_189); + x_199 = lean_box(0); +} +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +return x_200; +} +} +} } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_164, 0); -x_200 = lean_ctor_get(x_164, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_164); -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; +uint8_t x_201; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_201 = !lean_is_exclusive(x_167); +if (x_201 == 0) +{ +return x_167; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_167, 0); +x_203 = lean_ctor_get(x_167, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_167); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_202); +lean_ctor_set(x_204, 1, x_203); +return x_204; } } } case 10: { -lean_object* x_202; -x_202 = lean_ctor_get(x_2, 1); -lean_inc(x_202); +lean_object* x_205; +x_205 = lean_ctor_get(x_2, 1); +lean_inc(x_205); lean_dec(x_2); -x_2 = x_202; +x_2 = x_205; goto _start; } case 11: { -uint8_t x_204; lean_object* x_205; -x_204 = 1; +uint8_t x_207; uint8_t x_208; lean_object* x_209; +x_207 = 1; +x_208 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_205 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_204, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_205) == 0) +x_209 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_207, x_208, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_209) == 0) { -uint8_t x_206; -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) +uint8_t x_210; +x_210 = !lean_is_exclusive(x_209); +if (x_210 == 0) { -lean_object* x_207; lean_object* x_208; uint8_t x_209; -x_207 = lean_ctor_get(x_205, 0); -x_208 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_inc(x_1); -x_209 = l_Lean_Expr_occurs(x_1, x_207); -if (x_209 == 0) -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_205; -} -else -{ -lean_object* x_210; -lean_free_object(x_205); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_207); -x_210 = l_Lean_Meta_unfoldDefinition_x3f(x_207, x_3, x_4, x_5, x_6, x_208); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; -x_211 = lean_ctor_get(x_210, 0); +lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_211 = lean_ctor_get(x_209, 0); +x_212 = lean_ctor_get(x_209, 1); lean_inc(x_211); -if (lean_obj_tag(x_211) == 0) +lean_inc(x_1); +x_213 = l_Lean_Expr_occurs(x_1, x_211); +if (x_213 == 0) { -uint8_t x_212; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_212 = !lean_is_exclusive(x_210); -if (x_212 == 0) -{ -lean_object* x_213; -x_213 = lean_ctor_get(x_210, 0); -lean_dec(x_213); -lean_ctor_set(x_210, 0, x_207); -return x_210; +return x_209; } else { -lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_210, 1); -lean_inc(x_214); -lean_dec(x_210); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_207); -lean_ctor_set(x_215, 1, x_214); -return x_215; +lean_object* x_214; +lean_free_object(x_209); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_211); +x_214 = l_Lean_Meta_unfoldDefinition_x3f(x_211, x_3, x_4, x_5, x_6, x_212); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +if (lean_obj_tag(x_215) == 0) +{ +uint8_t x_216; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_216 = !lean_is_exclusive(x_214); +if (x_216 == 0) +{ +lean_object* x_217; +x_217 = lean_ctor_get(x_214, 0); +lean_dec(x_217); +lean_ctor_set(x_214, 0, x_211); +return x_214; +} +else +{ +lean_object* x_218; lean_object* x_219; +x_218 = lean_ctor_get(x_214, 1); +lean_inc(x_218); +lean_dec(x_214); +x_219 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_219, 0, x_211); +lean_ctor_set(x_219, 1, x_218); +return x_219; } } else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_207); -x_216 = lean_ctor_get(x_210, 1); -lean_inc(x_216); -lean_dec(x_210); -x_217 = lean_ctor_get(x_211, 0); -lean_inc(x_217); +lean_object* x_220; lean_object* x_221; lean_dec(x_211); -x_2 = x_217; -x_7 = x_216; +x_220 = lean_ctor_get(x_214, 1); +lean_inc(x_220); +lean_dec(x_214); +x_221 = lean_ctor_get(x_215, 0); +lean_inc(x_221); +lean_dec(x_215); +x_2 = x_221; +x_7 = x_220; goto _start; } } else { -uint8_t x_219; -lean_dec(x_207); +uint8_t x_223; +lean_dec(x_211); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_219 = !lean_is_exclusive(x_210); -if (x_219 == 0) +x_223 = !lean_is_exclusive(x_214); +if (x_223 == 0) { -return x_210; +return x_214; } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_210, 0); -x_221 = lean_ctor_get(x_210, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_210); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; -} -} -} -} -else -{ -lean_object* x_223; lean_object* x_224; uint8_t x_225; -x_223 = lean_ctor_get(x_205, 0); -x_224 = lean_ctor_get(x_205, 1); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_214, 0); +x_225 = lean_ctor_get(x_214, 1); +lean_inc(x_225); lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_205); -lean_inc(x_223); -lean_inc(x_1); -x_225 = l_Lean_Expr_occurs(x_1, x_223); -if (x_225 == 0) -{ -lean_object* x_226; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_223); -lean_ctor_set(x_226, 1, x_224); +lean_dec(x_214); +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); return x_226; } +} +} +} else { -lean_object* x_227; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_223); -x_227 = l_Lean_Meta_unfoldDefinition_x3f(x_223, x_3, x_4, x_5, x_6, x_224); -if (lean_obj_tag(x_227) == 0) -{ -lean_object* x_228; -x_228 = lean_ctor_get(x_227, 0); +lean_object* x_227; lean_object* x_228; uint8_t x_229; +x_227 = lean_ctor_get(x_209, 0); +x_228 = lean_ctor_get(x_209, 1); lean_inc(x_228); -if (lean_obj_tag(x_228) == 0) +lean_inc(x_227); +lean_dec(x_209); +lean_inc(x_227); +lean_inc(x_1); +x_229 = l_Lean_Expr_occurs(x_1, x_227); +if (x_229 == 0) { -lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_object* x_230; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_230 = x_227; -} else { - lean_dec_ref(x_227); - x_230 = lean_box(0); -} -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(0, 2, 0); -} else { - x_231 = x_230; -} -lean_ctor_set(x_231, 0, x_223); -lean_ctor_set(x_231, 1, x_229); -return x_231; +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; } else { -lean_object* x_232; lean_object* x_233; -lean_dec(x_223); -x_232 = lean_ctor_get(x_227, 1); +lean_object* x_231; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_227); +x_231 = l_Lean_Meta_unfoldDefinition_x3f(x_227, x_3, x_4, x_5, x_6, x_228); +if (lean_obj_tag(x_231) == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_231, 0); lean_inc(x_232); -lean_dec(x_227); -x_233 = lean_ctor_get(x_228, 0); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_233 = lean_ctor_get(x_231, 1); lean_inc(x_233); -lean_dec(x_228); -x_2 = x_233; -x_7 = x_232; +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_234 = x_231; +} else { + lean_dec_ref(x_231); + x_234 = lean_box(0); +} +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_234; +} +lean_ctor_set(x_235, 0, x_227); +lean_ctor_set(x_235, 1, x_233); +return x_235; +} +else +{ +lean_object* x_236; lean_object* x_237; +lean_dec(x_227); +x_236 = lean_ctor_get(x_231, 1); +lean_inc(x_236); +lean_dec(x_231); +x_237 = lean_ctor_get(x_232, 0); +lean_inc(x_237); +lean_dec(x_232); +x_2 = x_237; +x_7 = x_236; goto _start; } } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_223); +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_227); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_235 = lean_ctor_get(x_227, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_227, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_237 = x_227; -} else { - lean_dec_ref(x_227); - x_237 = lean_box(0); -} -if (lean_is_scalar(x_237)) { - x_238 = lean_alloc_ctor(1, 2, 0); -} else { - x_238 = x_237; -} -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_236); -return x_238; -} -} -} -} -else -{ -uint8_t x_239; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_239 = !lean_is_exclusive(x_205); -if (x_239 == 0) -{ -return x_205; -} -else -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_205, 0); -x_241 = lean_ctor_get(x_205, 1); -lean_inc(x_241); +x_239 = lean_ctor_get(x_231, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_231, 1); lean_inc(x_240); -lean_dec(x_205); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_240); -lean_ctor_set(x_242, 1, x_241); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_241 = x_231; +} else { + lean_dec_ref(x_231); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); return x_242; } } } +} +else +{ +uint8_t x_243; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_243 = !lean_is_exclusive(x_209); +if (x_243 == 0) +{ +return x_209; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_209, 0); +x_245 = lean_ctor_get(x_209, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_209); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} +} default: { -lean_object* x_243; +lean_object* x_247; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_2); -lean_ctor_set(x_243, 1, x_7); -return x_243; +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_2); +lean_ctor_set(x_247, 1, x_7); +return x_247; } } } diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index c96f2f9c3e..ece7c6bb60 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -1258,7 +1258,7 @@ static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___c LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Term_Do_mkJmp___spec__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_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__22; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__4; @@ -2666,186 +2666,187 @@ x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; uint8_t x_11; lean_object* x_12; +lean_object* x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); x_11 = 1; +x_12 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_11, x_2, x_3, x_4, x_5, x_6, x_10); -if (lean_obj_tag(x_12) == 0) +x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -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; uint8_t x_16; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_expr_eqv(x_13, x_2); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_expr_eqv(x_14, x_2); lean_dec(x_2); -if (x_15 == 0) +if (x_16 == 0) { -x_2 = x_13; -x_7 = x_14; +x_2 = x_14; +x_7 = x_15; goto _start; } else { -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Expr_getAppFn(x_13); -x_18 = l_Lean_Expr_isMVar(x_17); -lean_dec(x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_Expr_getAppFn(x_14); +x_19 = l_Lean_Expr_isMVar(x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_19; +lean_object* x_20; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_19 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_3, x_4, x_5, x_6, x_14); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); +x_20 = l_Lean_Meta_unfoldDefinition_x3f(x_14, x_3, x_4, x_5, x_6, x_15); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -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_21); -return x_23; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_box(0); +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; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_ctor_get(x_20, 0); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 1); lean_inc(x_25); lean_dec(x_20); -x_2 = x_25; -x_7 = x_24; +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +lean_dec(x_21); +x_2 = x_26; +x_7 = x_25; goto _start; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_19, 1); +x_28 = lean_ctor_get(x_20, 0); lean_inc(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; +x_29 = lean_ctor_get(x_20, 1); +lean_inc(x_29); +lean_dec(x_20); +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 { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_13); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_14); lean_dec(x_1); -x_30 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(x_3, x_4, x_5, x_6, x_14); +x_31 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(x_3, x_4, x_5, x_6, x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_31); -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; +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_32); +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_35; lean_object* x_36; lean_object* x_37; +lean_object* x_36; lean_object* x_37; lean_object* x_38; 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_35 = lean_ctor_get(x_12, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_12, 1); +x_36 = lean_ctor_get(x_13, 0); lean_inc(x_36); -lean_dec(x_12); -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; +x_37 = lean_ctor_get(x_13, 1); +lean_inc(x_37); +lean_dec(x_13); +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_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 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_38 = lean_ctor_get(x_8, 1); -lean_inc(x_38); -lean_dec(x_8); -x_39 = lean_ctor_get(x_9, 0); +x_39 = lean_ctor_get(x_8, 1); lean_inc(x_39); +lean_dec(x_8); +x_40 = lean_ctor_get(x_9, 0); +lean_inc(x_40); lean_dec(x_9); -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 2, 0); +x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; +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 { -lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_object* x_43; lean_object* x_44; lean_object* x_45; 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_ctor_get(x_8, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_8, 1); +x_43 = lean_ctor_get(x_8, 0); lean_inc(x_43); +x_44 = lean_ctor_get(x_8, 1); +lean_inc(x_44); lean_dec(x_8); -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; } } } diff --git a/stage0/stdlib/Lean/Elab/Import.c b/stage0/stdlib/Lean/Elab/Import.c index 017191d7b7..d2917ecee9 100644 --- a/stage0/stdlib/Lean/Elab/Import.c +++ b/stage0/stdlib/Lean/Elab/Import.c @@ -14,87 +14,40 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_instToJsonImport; -static lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2; lean_object* lean_string_push(lean_object*, uint32_t); -size_t lean_usize_add(size_t, size_t); -lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__1(size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833_(lean_object*); static lean_object* l_Lean_Elab_headerToImports___closed__4; lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); -lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_io_error_to_string(lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_PrintImportResult_imports_x3f___default; static lean_object* l_Lean_Elab_headerToImports___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_headerToImports(lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_PrintImportResult_errors___default___closed__1; -lean_object* l_List_join___rarg(lean_object*); -uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Elab_headerToImports___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_headerToImports___boxed(lean_object*); -static lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____spec__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1; lean_object* l_Lean_findOLean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*); static lean_object* l_Lean_Elab_parseImports___closed__1; -lean_object* l_Lean_MessageLog_toList(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_headerToImports___closed__3; -lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_IO_print___at_IO_println___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_printImports___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_processHeader___boxed(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_processHeader___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_PrintImportResult_errors___default; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_CodeActions_0__Lean_Lsp_toJsonResolveSupport____x40_Lean_Data_Lsp_CodeActions___hyg_1822____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_FileMap_ofString(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761_(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683_(lean_object*); -size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); lean_object* lean_import_modules(lean_object*, lean_object*, uint32_t, lean_object*); -lean_object* l_List_redLength___rarg(lean_object*); -static lean_object* l_Lean_Elab_instToJsonPrintImportsResult___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); -static lean_object* l_Lean_Elab_instToJsonPrintImportResult___closed__1; -lean_object* l_Lean_Json_mkObj(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_instToJsonPrintImportResult; -lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_instToJsonImport___closed__1; -lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_headerToImports___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_parseImports(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2(size_t, size_t, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1; -lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_print_imports(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_println___at_Lean_Elab_printImports___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_println___at_Lean_Elab_printImportsJson___spec__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Message_toString(lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_instToJsonPrintImportsResult; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* lean_print_imports_json(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_headerToImports___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -1111,616 +1064,6 @@ return x_21; } } } -static lean_object* _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("module", 6); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("runtimeOnly", 11); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683_(lean_object* x_1) { -_start: -{ -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; uint8_t 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_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = 1; -x_4 = l_Lean_Name_toString(x_2, x_3); -x_5 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -lean_dec(x_1); -x_11 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_11, 0, x_10); -x_12 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_8); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_8); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_List_join___rarg(x_16); -x_18 = l_Lean_Json_mkObj(x_17); -return x_18; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonImport___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683_), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonImport() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_instToJsonImport___closed__1; -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_PrintImportResult_imports_x3f___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_PrintImportResult_errors___default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -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_Elab_PrintImportResult_errors___default() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_PrintImportResult_errors___default___closed__1; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683_(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -lean_dec(x_1); -x_3 = lean_box(0); -return x_3; -} -else -{ -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; -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_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2(x_6, x_7, x_4); -x_9 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_9, 0, x_8); -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_box(0); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -} -static lean_object* _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("imports", 7); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("errors", 6); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761_(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; 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* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1; -x_4 = l_Lean_Json_opt___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__1(x_3, x_2); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_array_get_size(x_5); -x_7 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_8 = 0; -x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_CodeActions_0__Lean_Lsp_toJsonResolveSupport____x40_Lean_Data_Lsp_CodeActions___hyg_1822____spec__1(x_7, x_8, x_5); -x_10 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_4); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_List_join___rarg(x_16); -x_18 = l_Lean_Json_mkObj(x_17); -return x_18; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2___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___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____spec__2(x_4, x_5, x_3); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonPrintImportResult___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761_), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonPrintImportResult() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_instToJsonPrintImportResult___closed__1; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761_(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833_(lean_object* x_1) { -_start: -{ -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; -x_2 = lean_array_get_size(x_1); -x_3 = lean_usize_of_nat(x_2); -lean_dec(x_2); -x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____spec__1(x_3, x_4, x_1); -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = l_List_join___rarg(x_11); -x_13 = l_Lean_Json_mkObj(x_12); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____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___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833____spec__1(x_4, x_5, x_3); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonPrintImportsResult___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833_), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_instToJsonPrintImportsResult() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_instToJsonPrintImportsResult___closed__1; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_lt(x_2, x_1); -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_7 = lean_array_uget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_3, x_2, x_8); -x_10 = 0; -x_11 = l_Lean_Message_toString(x_7, x_10, x_4); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; -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 = 1; -x_15 = lean_usize_add(x_2, x_14); -x_16 = lean_array_uset(x_9, x_2, x_12); -x_2 = x_15; -x_3 = x_16; -x_4 = x_13; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_9); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) -{ -return x_11; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_11); -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; -} -} -} -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(1u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_lt(x_2, x_1); -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_4); -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_22; -x_7 = lean_array_uget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_3, x_2, x_8); -x_22 = l_IO_FS_readFile(x_7, x_4); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* 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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_7); -x_26 = l_Lean_Elab_parseImports(x_23, x_25, x_24); -if (lean_obj_tag(x_26) == 0) -{ -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_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -lean_dec(x_27); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -lean_inc(x_31); -x_32 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_31); -if (x_32 == 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; size_t x_39; size_t x_40; lean_object* x_41; -lean_dec(x_31); -x_33 = l_List_redLength___rarg(x_30); -x_34 = lean_mk_empty_array_with_capacity(x_33); -lean_dec(x_33); -x_35 = l_List_toArrayAux___rarg(x_30, x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = l_Lean_Elab_PrintImportResult_errors___default___closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = 1; -x_40 = lean_usize_add(x_2, x_39); -x_41 = lean_array_uset(x_9, x_2, x_38); -x_2 = x_40; -x_3 = x_41; -x_4 = x_29; -goto _start; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; -lean_dec(x_30); -x_43 = l_Lean_MessageLog_toList(x_31); -x_44 = l_List_redLength___rarg(x_43); -x_45 = lean_mk_empty_array_with_capacity(x_44); -lean_dec(x_44); -x_46 = l_List_toArrayAux___rarg(x_43, x_45); -x_47 = lean_array_get_size(x_46); -x_48 = lean_usize_of_nat(x_47); -lean_dec(x_47); -x_49 = 0; -x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__1(x_48, x_49, x_46, x_29); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; size_t x_56; lean_object* x_57; -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_box(0); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -x_55 = 1; -x_56 = lean_usize_add(x_2, x_55); -x_57 = lean_array_uset(x_9, x_2, x_54); -x_2 = x_56; -x_3 = x_57; -x_4 = x_52; -goto _start; -} -else -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_50, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_50, 1); -lean_inc(x_60); -lean_dec(x_50); -x_10 = x_59; -x_11 = x_60; -goto block_21; -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_26, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_26, 1); -lean_inc(x_62); -lean_dec(x_26); -x_10 = x_61; -x_11 = x_62; -goto block_21; -} -} -else -{ -lean_object* x_63; lean_object* x_64; -lean_dec(x_7); -x_63 = lean_ctor_get(x_22, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_22, 1); -lean_inc(x_64); -lean_dec(x_22); -x_10 = x_63; -x_11 = x_64; -goto block_21; -} -block_21: -{ -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; -x_12 = lean_box(0); -x_13 = lean_io_error_to_string(x_10); -x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1; -x_15 = lean_array_push(x_14, x_13); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_15); -x_17 = 1; -x_18 = lean_usize_add(x_2, x_17); -x_19 = lean_array_uset(x_9, x_2, x_16); -x_2 = x_18; -x_3 = x_19; -x_4 = x_11; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_IO_println___at_Lean_Elab_printImportsJson___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint32_t x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_unsigned_to_nat(80u); -x_4 = l_Lean_Json_pretty(x_1, x_3); -x_5 = 10; -x_6 = lean_string_push(x_4, x_5); -x_7 = l_IO_print___at_IO_println___spec__1(x_6, x_2); -return x_7; -} -} -LEAN_EXPORT lean_object* lean_print_imports_json(lean_object* x_1, lean_object* x_2) { -_start: -{ -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; -x_3 = lean_array_get_size(x_1); -x_4 = lean_usize_of_nat(x_3); -lean_dec(x_3); -x_5 = 0; -x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2(x_4, x_5, x_1, x_2); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportsResult____x40_Lean_Elab_Import___hyg_833_(x_7); -x_10 = l_IO_println___at_Lean_Elab_printImportsJson___spec__3(x_9, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___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_1); -lean_dec(x_1); -x_6 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__1(x_5, x_6, x_3, x_4); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___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; -x_5 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_6 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2(x_5, x_6, x_3, x_4); -return x_7; -} -} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Parser_Module(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_Json(uint8_t builtin, lean_object*); @@ -1750,34 +1093,6 @@ l_Lean_Elab_processHeader___closed__1 = _init_l_Lean_Elab_processHeader___closed lean_mark_persistent(l_Lean_Elab_processHeader___closed__1); l_Lean_Elab_parseImports___closed__1 = _init_l_Lean_Elab_parseImports___closed__1(); lean_mark_persistent(l_Lean_Elab_parseImports___closed__1); -l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1 = _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__1); -l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2 = _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonImport____x40_Lean_Elab_Import___hyg_683____closed__2); -l_Lean_Elab_instToJsonImport___closed__1 = _init_l_Lean_Elab_instToJsonImport___closed__1(); -lean_mark_persistent(l_Lean_Elab_instToJsonImport___closed__1); -l_Lean_Elab_instToJsonImport = _init_l_Lean_Elab_instToJsonImport(); -lean_mark_persistent(l_Lean_Elab_instToJsonImport); -l_Lean_Elab_PrintImportResult_imports_x3f___default = _init_l_Lean_Elab_PrintImportResult_imports_x3f___default(); -lean_mark_persistent(l_Lean_Elab_PrintImportResult_imports_x3f___default); -l_Lean_Elab_PrintImportResult_errors___default___closed__1 = _init_l_Lean_Elab_PrintImportResult_errors___default___closed__1(); -lean_mark_persistent(l_Lean_Elab_PrintImportResult_errors___default___closed__1); -l_Lean_Elab_PrintImportResult_errors___default = _init_l_Lean_Elab_PrintImportResult_errors___default(); -lean_mark_persistent(l_Lean_Elab_PrintImportResult_errors___default); -l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1 = _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__1); -l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2 = _init_l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Import_0__Lean_Elab_toJsonPrintImportResult____x40_Lean_Elab_Import___hyg_761____closed__2); -l_Lean_Elab_instToJsonPrintImportResult___closed__1 = _init_l_Lean_Elab_instToJsonPrintImportResult___closed__1(); -lean_mark_persistent(l_Lean_Elab_instToJsonPrintImportResult___closed__1); -l_Lean_Elab_instToJsonPrintImportResult = _init_l_Lean_Elab_instToJsonPrintImportResult(); -lean_mark_persistent(l_Lean_Elab_instToJsonPrintImportResult); -l_Lean_Elab_instToJsonPrintImportsResult___closed__1 = _init_l_Lean_Elab_instToJsonPrintImportsResult___closed__1(); -lean_mark_persistent(l_Lean_Elab_instToJsonPrintImportsResult___closed__1); -l_Lean_Elab_instToJsonPrintImportsResult = _init_l_Lean_Elab_instToJsonPrintImportsResult(); -lean_mark_persistent(l_Lean_Elab_instToJsonPrintImportsResult); -l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_printImportsJson___spec__2___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/ParseImportsFast.c b/stage0/stdlib/Lean/Elab/ParseImportsFast.c index 15079ac195..ed2daf8211 100644 --- a/stage0/stdlib/Lean/Elab/ParseImportsFast.c +++ b/stage0/stdlib/Lean/Elab/ParseImportsFast.c @@ -13,21 +13,35 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_takeWhile___spec__1(lean_object*, lean_object*, lean_object*); +size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_ParseImports_instInhabitedState; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1; +static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1; static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keyword___spec__1___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keyword(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_many___at_Lean_ParseImports_main___spec__3___closed__1; +static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2; +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* lean_io_error_to_string(lean_object*); extern uint32_t l_Lean_idBeginEscape; static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keyword___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_instToJsonPrintImportResult; LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_takeWhile___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_print_imports_json(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2; +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_isIdRestCold___boxed(lean_object*); static lean_object* l_Lean_ParseImports_instInhabitedState___closed__1; static lean_object* l_Lean_ParseImports_moduleIdent_parse___closed__4; LEAN_EXPORT uint8_t l_Lean_ParseImports_isIdRestCold(uint32_t); -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704_(lean_object*); extern uint32_t l_Lean_idEndEscape; static lean_object* l_Lean_ParseImports_finishCommentBlock_eoi___closed__1; static lean_object* l_Lean_parseImports_x27___closed__1; @@ -43,10 +57,12 @@ uint8_t l_Char_isWhitespace(uint32_t); LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keyword___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keyword___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_instToJsonPrintImportsResult___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_moduleIdent(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_error_x3f___default; +lean_object* l_List_join___rarg(lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__3; -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordOpt___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_next_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -54,14 +70,21 @@ LEAN_EXPORT lean_object* l_Lean_ParseImports_instInhabitedParser___boxed(lean_ob lean_object* lean_string_utf8_next(lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_main___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_State_mkEOIError(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1(size_t, size_t, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2; LEAN_EXPORT lean_object* l_Lean_ParseImports_moduleIdent_parse(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instToJsonImport; +lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_moduleIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_andthen(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_imports___default; LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_moduleIdent_parse___spec__2___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1; +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_isIdCont___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620_(lean_object*); static lean_object* l_Lean_ParseImports_State_mkEOIError___closed__1; static lean_object* l_Lean_ParseImports_moduleIdent_parse___closed__3; LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,26 +92,33 @@ LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_instInhabitedParser___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_moduleIdent_parse___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_ParseImports_isIdRestFast(uint32_t); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_CodeActions_0__Lean_Lsp_toJsonResolveSupport____x40_Lean_Data_Lsp_CodeActions___hyg_1822____spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_isIdRestFast___boxed(lean_object*); static lean_object* l_Lean_ParseImports_moduleIdent_parse___closed__1; LEAN_EXPORT lean_object* l_Lean_parseImports_x27(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_mkError(lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__1; +size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_moduleIdent_parse___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ParseImports_preludeOpt___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instToJsonPrintImportsResult; LEAN_EXPORT lean_object* l_Lean_ParseImports_State_pushModule___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isLetterLike(uint32_t); +LEAN_EXPORT lean_object* l_Lean_ParseImports_preludeOpt(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeWhile___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_next(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_State_mkEOIError___closed__2; static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PrintImportResult_errors___default; LEAN_EXPORT lean_object* l_Lean_ParseImports_many___at_Lean_ParseImports_main___spec__3(lean_object*, lean_object*, lean_object*); uint8_t l_Char_isAlphanum(uint32_t); static lean_object* l_Lean_ParseImports_moduleIdent_parse___closed__2; @@ -96,27 +126,35 @@ LEAN_EXPORT lean_object* l_Lean_ParseImports_State_pushModule(lean_object*, uint LEAN_EXPORT lean_object* l_Lean_ParseImports_whitespace___boxed(lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_whitespace___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_many(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_mkObj(lean_object*); static lean_object* l_Lean_ParseImports_whitespace___closed__2; LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__4; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PrintImportResult_imports_x3f___default; +static lean_object* l_Lean_instToJsonImport___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_whitespace___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_instToJsonPrintImportResult___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_takeUntil___at_Lean_ParseImports_moduleIdent_parse___spec__2(lean_object*, lean_object*); uint8_t l_Lean_isIdFirst(uint32_t); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_next___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_instInhabitedParser(lean_object*); +lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_takeWhile(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isSubScriptAlnum(uint32_t); +lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_moduleIdent_parse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_whitespace(lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_State_imports___default___closed__1; LEAN_EXPORT lean_object* l_Lean_ParseImports_finishCommentBlock___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ParseImports_finishCommentBlock_eoi___closed__2; LEAN_EXPORT lean_object* l_Lean_ParseImports_State_pos___default; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_parseImports_x27___closed__2; LEAN_EXPORT lean_object* l_Lean_ParseImports_State_next_x27(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_State_setPos(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_finishCommentBlock(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_instAndThenParser(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_main(lean_object*, lean_object*); @@ -124,7 +162,8 @@ uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_instInhabitedParser___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_many___at_Lean_ParseImports_main___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ParseImports_keyword___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordOpt(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774_(lean_object*); LEAN_EXPORT uint8_t l_Lean_ParseImports_isIdCont(lean_object*, lean_object*); static lean_object* _init_l_Lean_ParseImports_State_imports___default___closed__1() { _start: @@ -1634,109 +1673,6 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_string_utf8_at_end(x_1, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -x_7 = lean_string_utf8_at_end(x_2, x_5); -if (x_7 == 0) -{ -uint32_t x_8; uint32_t x_9; uint8_t x_10; -x_8 = lean_string_utf8_get_fast(x_1, x_4); -x_9 = lean_string_utf8_get_fast(x_2, x_5); -x_10 = lean_uint32_dec_eq(x_8, x_9); -if (x_10 == 0) -{ -lean_dec(x_5); -lean_dec(x_4); -return x_3; -} -else -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_string_utf8_next_fast(x_1, x_4); -lean_dec(x_4); -x_12 = lean_string_utf8_next_fast(x_2, x_5); -lean_dec(x_5); -x_4 = x_11; -x_5 = x_12; -goto _start; -} -} -else -{ -lean_dec(x_5); -lean_dec(x_4); -return x_3; -} -} -else -{ -uint8_t x_14; -lean_dec(x_4); -x_14 = !lean_is_exclusive(x_3); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 1); -lean_dec(x_15); -lean_ctor_set(x_3, 1, x_5); -x_16 = l_Lean_ParseImports_whitespace(x_2, x_3); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_3, 0); -x_18 = lean_ctor_get(x_3, 2); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_3); -x_19 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_5); -lean_ctor_set(x_19, 2, x_18); -x_20 = l_Lean_ParseImports_whitespace(x_2, x_19); -return x_20; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordOpt(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; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1(x_1, x_2, x_3, x_5, x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___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_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordOpt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_ParseImports_keywordOpt(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} LEAN_EXPORT uint8_t l_Lean_ParseImports_isIdCont(lean_object* x_1, lean_object* x_2) { _start: { @@ -3157,6 +3093,135 @@ return x_22; } } } +static lean_object* _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Init", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__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_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_string_utf8_at_end(x_1, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +x_7 = lean_string_utf8_at_end(x_2, x_5); +if (x_7 == 0) +{ +uint32_t x_8; uint32_t x_9; uint8_t x_10; +x_8 = lean_string_utf8_get_fast(x_1, x_4); +x_9 = lean_string_utf8_get_fast(x_2, x_5); +x_10 = lean_uint32_dec_eq(x_8, x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; +lean_dec(x_5); +lean_dec(x_4); +x_11 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2; +x_12 = 0; +x_13 = l_Lean_ParseImports_State_pushModule(x_11, x_12, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_string_utf8_next_fast(x_1, x_4); +lean_dec(x_4); +x_15 = lean_string_utf8_next_fast(x_2, x_5); +lean_dec(x_5); +x_4 = x_14; +x_5 = x_15; +goto _start; +} +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; +lean_dec(x_5); +lean_dec(x_4); +x_17 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2; +x_18 = 0; +x_19 = l_Lean_ParseImports_State_pushModule(x_17, x_18, x_3); +return x_19; +} +} +else +{ +uint8_t x_20; +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_3); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_3, 1); +lean_dec(x_21); +lean_ctor_set(x_3, 1, x_5); +x_22 = l_Lean_ParseImports_whitespace(x_2, x_3); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_3, 0); +x_24 = lean_ctor_get(x_3, 2); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_3); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_5); +lean_ctor_set(x_25, 2, x_24); +x_26 = l_Lean_ParseImports_whitespace(x_2, x_25); +return x_26; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_ParseImports_preludeOpt(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; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1(x_1, x_2, x_3, x_5, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___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_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_ParseImports_preludeOpt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_ParseImports_preludeOpt(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} static lean_object* _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__1() { _start: { @@ -3565,7 +3630,7 @@ x_3 = lean_ctor_get(x_2, 1); lean_inc(x_3); x_4 = l_Lean_ParseImports_main___closed__1; x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_keywordOpt___spec__1(x_4, x_1, x_2, x_5, x_3); +x_6 = l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1(x_4, x_1, x_2, x_5, x_3); x_7 = lean_ctor_get(x_6, 2); lean_inc(x_7); if (lean_obj_tag(x_7) == 0) @@ -3680,6 +3745,458 @@ lean_dec(x_2); return x_4; } } +static lean_object* _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("module", 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("runtimeOnly", 11); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620_(lean_object* x_1) { +_start: +{ +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; uint8_t 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_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = 1; +x_4 = l_Lean_Name_toString(x_2, x_3); +x_5 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_5, 0, x_4); +x_6 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_11 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_11, 0, x_10); +x_12 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_8); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_List_join___rarg(x_16); +x_18 = l_Lean_Json_mkObj(x_17); +return x_18; +} +} +static lean_object* _init_l_Lean_instToJsonImport___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instToJsonImport() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instToJsonImport___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_PrintImportResult_imports_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_PrintImportResult_errors___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_ParseImports_State_imports___default___closed__1; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +lean_dec(x_1); +x_3 = lean_box(0); +return x_3; +} +else +{ +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; +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_usize_of_nat(x_5); +lean_dec(x_5); +x_7 = 0; +x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2(x_6, x_7, x_4); +x_9 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_9, 0, x_8); +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_box(0); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +static lean_object* _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("imports", 7); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("errors", 6); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704_(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; 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* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1; +x_4 = l_Lean_Json_opt___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__1(x_3, x_2); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_CodeActions_0__Lean_Lsp_toJsonResolveSupport____x40_Lean_Data_Lsp_CodeActions___hyg_1822____spec__1(x_7, x_8, x_5); +x_10 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_4); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_List_join___rarg(x_16); +x_18 = l_Lean_Json_mkObj(x_17); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2___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___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____spec__2(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_instToJsonPrintImportResult___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instToJsonPrintImportResult() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instToJsonPrintImportResult___closed__1; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774_(lean_object* x_1) { +_start: +{ +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; +x_2 = lean_array_get_size(x_1); +x_3 = lean_usize_of_nat(x_2); +lean_dec(x_2); +x_4 = 0; +x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____spec__1(x_3, x_4, x_1); +x_6 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_6, 0, x_5); +x_7 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l_List_join___rarg(x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____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___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774____spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_instToJsonPrintImportsResult___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instToJsonPrintImportsResult() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instToJsonPrintImportsResult___closed__1; +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_lt(x_2, x_1); +if (x_5 == 0) +{ +lean_object* x_6; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_array_uget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_uset(x_3, x_2, x_8); +x_10 = l_IO_FS_readFile(x_7, x_4); +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); +x_13 = l_Lean_parseImports_x27(x_11, x_7, x_12); +lean_dec(x_7); +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; size_t x_19; size_t x_20; lean_object* x_21; +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(1, 1, 0); +lean_ctor_set(x_16, 0, x_14); +x_17 = l_Lean_ParseImports_State_imports___default___closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = 1; +x_20 = lean_usize_add(x_2, x_19); +x_21 = lean_array_uset(x_9, x_2, x_18); +x_2 = x_20; +x_3 = x_21; +x_4 = x_15; +goto _start; +} +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; size_t x_30; size_t x_31; lean_object* x_32; +x_23 = lean_ctor_get(x_13, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_13, 1); +lean_inc(x_24); +lean_dec(x_13); +x_25 = lean_box(0); +x_26 = lean_io_error_to_string(x_23); +x_27 = l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1; +x_28 = lean_array_push(x_27, x_26); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_25); +lean_ctor_set(x_29, 1, x_28); +x_30 = 1; +x_31 = lean_usize_add(x_2, x_30); +x_32 = lean_array_uset(x_9, x_2, x_29); +x_2 = x_31; +x_3 = x_32; +x_4 = x_24; +goto _start; +} +} +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; size_t x_41; size_t x_42; lean_object* x_43; +lean_dec(x_7); +x_34 = lean_ctor_get(x_10, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +lean_dec(x_10); +x_36 = lean_box(0); +x_37 = lean_io_error_to_string(x_34); +x_38 = l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1; +x_39 = lean_array_push(x_38, x_37); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_40, 1, x_39); +x_41 = 1; +x_42 = lean_usize_add(x_2, x_41); +x_43 = lean_array_uset(x_9, x_2, x_40); +x_2 = x_42; +x_3 = x_43; +x_4 = x_35; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* lean_print_imports_json(lean_object* x_1, lean_object* x_2) { +_start: +{ +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; +x_3 = lean_array_get_size(x_1); +x_4 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_5 = 0; +x_6 = l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1(x_4, x_5, x_1, x_2); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportsResult____x40_Lean_Elab_ParseImportsFast___hyg_1774_(x_7); +x_10 = l_Lean_Json_compress(x_9); +x_11 = l_IO_println___at_Lean_instEval___spec__1(x_10, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_printImportsJson___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_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_7 = l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1(x_5, x_6, x_3, x_4); +return x_7; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Parser_Module(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -3729,6 +4246,10 @@ l_Lean_ParseImports_moduleIdent_parse___closed__3 = _init_l_Lean_ParseImports_mo lean_mark_persistent(l_Lean_ParseImports_moduleIdent_parse___closed__3); l_Lean_ParseImports_moduleIdent_parse___closed__4 = _init_l_Lean_ParseImports_moduleIdent_parse___closed__4(); lean_mark_persistent(l_Lean_ParseImports_moduleIdent_parse___closed__4); +l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1 = _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1(); +lean_mark_persistent(l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__1); +l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2 = _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2(); +lean_mark_persistent(l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_preludeOpt___spec__1___closed__2); l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__1 = _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__1(); lean_mark_persistent(l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__1); l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__2 = _init_l_Lean_ParseImports_keywordCore_go___at_Lean_ParseImports_main___spec__1___closed__2(); @@ -3745,6 +4266,32 @@ l_Lean_parseImports_x27___closed__1 = _init_l_Lean_parseImports_x27___closed__1( lean_mark_persistent(l_Lean_parseImports_x27___closed__1); l_Lean_parseImports_x27___closed__2 = _init_l_Lean_parseImports_x27___closed__2(); lean_mark_persistent(l_Lean_parseImports_x27___closed__2); +l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1 = _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1(); +lean_mark_persistent(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__1); +l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2 = _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2(); +lean_mark_persistent(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonImport____x40_Lean_Elab_ParseImportsFast___hyg_1620____closed__2); +l_Lean_instToJsonImport___closed__1 = _init_l_Lean_instToJsonImport___closed__1(); +lean_mark_persistent(l_Lean_instToJsonImport___closed__1); +l_Lean_instToJsonImport = _init_l_Lean_instToJsonImport(); +lean_mark_persistent(l_Lean_instToJsonImport); +l_Lean_PrintImportResult_imports_x3f___default = _init_l_Lean_PrintImportResult_imports_x3f___default(); +lean_mark_persistent(l_Lean_PrintImportResult_imports_x3f___default); +l_Lean_PrintImportResult_errors___default = _init_l_Lean_PrintImportResult_errors___default(); +lean_mark_persistent(l_Lean_PrintImportResult_errors___default); +l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1 = _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1(); +lean_mark_persistent(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__1); +l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2 = _init_l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2(); +lean_mark_persistent(l___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1704____closed__2); +l_Lean_instToJsonPrintImportResult___closed__1 = _init_l_Lean_instToJsonPrintImportResult___closed__1(); +lean_mark_persistent(l_Lean_instToJsonPrintImportResult___closed__1); +l_Lean_instToJsonPrintImportResult = _init_l_Lean_instToJsonPrintImportResult(); +lean_mark_persistent(l_Lean_instToJsonPrintImportResult); +l_Lean_instToJsonPrintImportsResult___closed__1 = _init_l_Lean_instToJsonPrintImportsResult___closed__1(); +lean_mark_persistent(l_Lean_instToJsonPrintImportsResult___closed__1); +l_Lean_instToJsonPrintImportsResult = _init_l_Lean_instToJsonPrintImportsResult(); +lean_mark_persistent(l_Lean_instToJsonPrintImportsResult); +l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_printImportsJson___spec__1___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index f2008b54cc..656da4905d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -535,7 +535,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(lean_object static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); @@ -9835,9 +9835,10 @@ return x_113; static lean_object* _init_l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); -return x_1; +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = l_Lean_Meta_DiscrTree_empty(lean_box(0), x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__2() { diff --git a/stage0/stdlib/Lean/Meta/DiscrTree.c b/stage0/stdlib/Lean/Meta/DiscrTree.c index 5a8f6bb80c..654f7cc99e 100644 --- a/stage0/stdlib/Lean/Meta/DiscrTree.c +++ b/stage0/stdlib/Lean/Meta/DiscrTree.c @@ -13,222 +13,243 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(uint8_t, lean_object*, lean_object*); uint8_t l_Lean_isRecCore(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9(lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_initCapacity; lean_object* l_Std_Format_join(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13(lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduceDT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify___spec__12(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_empty___closed__3; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__6; +uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify___spec__12___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore(lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__4; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__8; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNatType___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_isMatcherAppCore_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_DiscrTree_getUnify___spec__11(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3(lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_DiscrTree_getUnify___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*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14(lean_object*); lean_object* l___private_Init_Util_0__outOfBounds___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___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_Key_format___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduce(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1(uint8_t, 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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19(lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx(lean_object*); +lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx(uint8_t); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatch(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_whnfDT(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_hasNoindexAnnotation(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); -LEAN_EXPORT 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_EXPORT 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*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21(lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg___boxed(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_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18(lean_object*); lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__5; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult(lean_object*); size_t lean_usize_shift_right(size_t, size_t); lean_object* l_Lean_Expr_appArg_x21(lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__3; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(uint8_t, lean_object*, size_t, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_whnfDT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_empty___closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNatType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___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*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__4; -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__6; size_t lean_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(lean_object*, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3(lean_object*); -uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3(lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(uint8_t, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_DiscrTree_getUnify___spec__13___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* l_Lean_Expr_mvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(uint8_t, lean_object*, size_t, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8(lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(uint8_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_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__5; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_format___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal(lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwIsDefEqStuck___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId; -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__5; lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(uint8_t, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfEta(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity(uint8_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___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_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(lean_object*); @@ -238,215 +259,255 @@ static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNum lean_object* l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_ParamInfo_isInstImplicit(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_DiscrTree_getUnify___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId___closed__1; lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1(lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(uint8_t, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__1; lean_object* lean_array_to_list(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(uint8_t, lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(uint8_t, 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*); uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__8; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__7; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___boxed(lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatKey___boxed(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_instToFormatKey___closed__1; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpStar___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset___closed__7; +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7; size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation___closed__2; static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; static lean_object* l_Lean_Meta_DiscrTree_mkPath___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__4; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(uint8_t, lean_object*, lean_object*); uint8_t l_Array_contains___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -LEAN_EXPORT 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*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__1; -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7(lean_object*); -LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpStar; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(lean_object*); -extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(uint8_t, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__7; +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__2; static lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); lean_object* l_String_quote(lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___boxed(lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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_DiscrTree_empty___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__6; static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__3; +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ignoreArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatKey; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatKey(uint8_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_ParamInfo_isImplicit(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt(uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_empty___closed__2; LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_format___rarg___closed__1; LEAN_EXPORT 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_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduceDT(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_hasNoindexAnnotation___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(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_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; 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*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23(lean_object*); lean_object* lean_array_pop(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__7; LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__5; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT 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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6; +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22(lean_object*); lean_object* lean_string_length(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___rarg___boxed(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(uint8_t, lean_object*, size_t, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_etaExpandedStrict_x3f(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___rarg(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_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(uint8_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore(lean_object*); -lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -LEAN_EXPORT 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*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instLTKey; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instLTKey(uint8_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_DiscrTree_getUnify___spec__13(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_Key_lt___rarg(lean_object*, lean_object*); uint8_t l_Lean_Literal_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_empty___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(uint8_t, lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_getConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17(lean_object*); @@ -454,40 +515,43 @@ lean_object* l_Lean_Expr_constName_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4(lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instLTKey___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(size_t, size_t, lean_object*); lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___rarg(uint8_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_DiscrTree_Key_format___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2(lean_object*); lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie(lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(uint8_t, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_ParamInfo_isStrictImplicit(lean_object*); -static lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +LEAN_EXPORT 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_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10(lean_object*, uint8_t); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot(lean_object*); -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -536,16 +600,34 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx(uint8_t x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg___boxed), 1, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); lean_dec(x_1); return x_2; } } -LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_Key_lt___rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -586,8 +668,8 @@ return x_11; else { lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); -x_13 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +x_12 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); +x_13 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_2); x_14 = lean_nat_dec_lt(x_12, x_13); lean_dec(x_13); lean_dec(x_12); @@ -631,8 +713,8 @@ return x_23; else { lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); -x_25 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +x_24 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); +x_25 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_2); x_26 = lean_nat_dec_lt(x_24, x_25); lean_dec(x_25); lean_dec(x_24); @@ -652,8 +734,8 @@ return x_29; else { lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); -x_31 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +x_30 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); +x_31 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_2); x_32 = lean_nat_dec_lt(x_30, x_31); lean_dec(x_31); lean_dec(x_30); @@ -697,8 +779,8 @@ return x_41; else { lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); -x_43 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +x_42 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); +x_43 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_2); x_44 = lean_nat_dec_lt(x_42, x_43); lean_dec(x_43); lean_dec(x_42); @@ -708,8 +790,8 @@ return x_44; default: { lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_1); -x_46 = l_Lean_Meta_DiscrTree_Key_ctorIdx(x_2); +x_45 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_1); +x_46 = l_Lean_Meta_DiscrTree_Key_ctorIdx___rarg(x_2); x_47 = lean_nat_dec_lt(x_45, x_46); lean_dec(x_46); lean_dec(x_45); @@ -718,45 +800,91 @@ return x_47; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_lt___rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Meta_DiscrTree_Key_lt(x_1, x_2); +x_3 = l_Lean_Meta_DiscrTree_Key_lt___rarg(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_Meta_DiscrTree_instLTKey() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_lt___boxed(lean_object* x_1) { _start: { -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = l_Lean_Meta_DiscrTree_Key_lt(x_1, x_2); +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_Key_lt(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instLTKey(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instLTKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instLTKey(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(x_1, x_2); +x_3 = l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___rarg(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_Meta_DiscrTree_Key_format___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instDecidableLtKeyInstLTKey(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__1() { _start: { lean_object* x_1; @@ -764,17 +892,17 @@ x_1 = lean_mk_string_from_bytes("*", 1); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___closed__2() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DiscrTree_Key_format___closed__1; +x_1 = l_Lean_Meta_DiscrTree_Key_format___rarg___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_Meta_DiscrTree_Key_format___closed__3() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__3() { _start: { lean_object* x_1; @@ -782,17 +910,17 @@ x_1 = lean_mk_string_from_bytes("◾", 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___closed__4() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DiscrTree_Key_format___closed__3; +x_1 = l_Lean_Meta_DiscrTree_Key_format___rarg___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_DiscrTree_Key_format___closed__5() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5() { _start: { lean_object* x_1; @@ -800,17 +928,17 @@ x_1 = lean_mk_string_from_bytes("→", 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___closed__6() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DiscrTree_Key_format___closed__5; +x_1 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5; 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_DiscrTree_Key_format___closed__7() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7() { _start: { lean_object* x_1; @@ -818,17 +946,17 @@ x_1 = lean_mk_string_from_bytes(".", 1); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___closed__8() { +static lean_object* _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DiscrTree_Key_format___closed__7; +x_1 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -865,19 +993,19 @@ return x_8; case 3: { lean_object* x_9; -x_9 = l_Lean_Meta_DiscrTree_Key_format___closed__2; +x_9 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__2; return x_9; } case 4: { lean_object* x_10; -x_10 = l_Lean_Meta_DiscrTree_Key_format___closed__4; +x_10 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4; return x_10; } case 5: { lean_object* x_11; -x_11 = l_Lean_Meta_DiscrTree_Key_format___closed__6; +x_11 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6; return x_11; } case 6: @@ -892,7 +1020,7 @@ x_14 = 1; x_15 = l_Lean_Name_toString(x_12, x_14); x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_Meta_DiscrTree_Key_format___closed__8; +x_17 = l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -919,23 +1047,51 @@ return x_25; } } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_format___rarg), 1, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_format___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_Key_format(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_DiscrTree_instToFormatKey___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_format), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_format___rarg), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instToFormatKey() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatKey(uint8_t x_1) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instToFormatKey___closed__1; -return x_1; +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_instToFormatKey___closed__1; +return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instToFormatKey(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___rarg(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -974,16 +1130,34 @@ return x_6; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity(uint8_t x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_Key_arity(x_1); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_arity___rarg___boxed), 1, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___rarg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_Key_arity___rarg(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_arity___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_Key_arity(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -992,25 +1166,35 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(uint8_t x_1) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___boxed), 1, 0); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_DiscrTree_empty___closed__1() { _start: { @@ -1032,6 +1216,22 @@ return x_2; static lean_object* _init_l_Lean_Meta_DiscrTree_empty___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_empty___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_empty___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_DiscrTree_empty___closed__2; x_2 = lean_unsigned_to_nat(0u); @@ -1041,12 +1241,22 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_empty___closed__3; -return x_2; +lean_object* x_3; +x_3 = l_Lean_Meta_DiscrTree_empty___closed__5; +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_empty___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_Meta_DiscrTree_empty(x_1, x_3); +return x_4; } } static lean_object* _init_l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__1() { @@ -1121,118 +1331,118 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_3) == 0) { -lean_object* x_4; -lean_dec(x_1); -x_4 = l_List_reverse___rarg(x_3); -return x_4; +lean_object* x_5; +lean_dec(x_2); +x_5 = l_List_reverse___rarg(x_4); +return x_5; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) { -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; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -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_6, 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; 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; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_3, 1); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); -lean_dec(x_6); -x_10 = l_Lean_Meta_DiscrTree_Key_format(x_8); -x_11 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; -x_12 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -lean_inc(x_1); -x_13 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_9); -x_14 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -x_16 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; -x_18 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; -x_20 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = 0; -x_22 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*1, x_21); -x_23 = lean_box(1); -x_24 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_24); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_9); +x_12 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; +x_13 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +lean_inc(x_2); +x_14 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_2, x_10); +x_15 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; +x_17 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; +x_19 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; +x_21 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = 0; +x_23 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_22); +x_24 = lean_box(1); +x_25 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set(x_3, 1, x_4); +lean_ctor_set(x_3, 0, x_25); { -lean_object* _tmp_1 = x_7; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; +lean_object* _tmp_2 = x_8; +lean_object* _tmp_3 = x_3; x_3 = _tmp_2; +x_4 = _tmp_3; } goto _start; } 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; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_26 = lean_ctor_get(x_2, 0); -x_27 = lean_ctor_get(x_2, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_2); -x_28 = lean_ctor_get(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; 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; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_27 = lean_ctor_get(x_3, 0); +x_28 = lean_ctor_get(x_3, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_3); +x_29 = lean_ctor_get(x_27, 0); lean_inc(x_29); -lean_dec(x_26); -x_30 = l_Lean_Meta_DiscrTree_Key_format(x_28); -x_31 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; -x_32 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -lean_inc(x_1); -x_33 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_29); -x_34 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -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_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; -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 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; -x_40 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = 0; -x_42 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41); -x_43 = lean_box(1); -x_44 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = lean_alloc_ctor(1, 2, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_29); +x_32 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; +x_33 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +lean_inc(x_2); +x_34 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_2, x_30); +x_35 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; +x_37 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; +x_39 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; +x_41 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = 0; +x_43 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); +x_44 = lean_box(1); +x_45 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_3); -x_2 = x_27; -x_3 = x_45; +lean_ctor_set(x_45, 1, x_43); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_4); +x_3 = x_28; +x_4 = x_46; goto _start; } } @@ -1242,7 +1452,7 @@ LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___boxed), 4, 0); return x_2; } } @@ -1312,91 +1522,91 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -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; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); -lean_dec(x_2); -x_5 = l_Array_isEmpty___rarg(x_3); -x_6 = lean_array_to_list(lean_box(0), x_4); -x_7 = lean_box(0); -lean_inc(x_1); -x_8 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(x_1, x_6, x_7); -x_9 = l_Std_Format_join(x_8); -if (x_5 == 0) +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Array_isEmpty___rarg(x_4); +x_7 = lean_array_to_list(lean_box(0), x_5); +x_8 = lean_box(0); +lean_inc(x_2); +x_9 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(x_1, x_2, x_7, x_8); +x_10 = l_Std_Format_join(x_9); +if (x_6 == 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; uint8_t x_25; lean_object* x_26; lean_object* x_27; -x_10 = lean_array_to_list(lean_box(0), x_3); -x_11 = l_List_format___rarg(x_1, x_10); -x_12 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__6; -x_13 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__4; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__2; -x_17 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); +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; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_11 = lean_array_to_list(lean_box(0), x_4); +x_12 = l_List_format___rarg(x_2, x_11); +x_13 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__6; +x_14 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__4; +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__2; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_9); -x_19 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -x_20 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; -x_22 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; -x_24 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = 0; -x_26 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_25); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_10); +x_20 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; +x_21 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; +x_23 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; +x_25 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = 0; x_27 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_25); -return x_27; +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); +x_28 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_26); +return x_28; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_3); -lean_dec(x_1); -x_28 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__7; -x_29 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_9); -x_30 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -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_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; -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 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; -x_35 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = 0; -x_37 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); +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_38; lean_object* x_39; +lean_dec(x_4); +lean_dec(x_2); +x_29 = l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__7; +x_30 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_10); +x_31 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; +x_32 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; +x_34 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; +x_36 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = 0; x_38 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_36); -return x_38; +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); +x_39 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_37); +return x_39; } } } @@ -1404,27 +1614,59 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Trie_format___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Trie_format___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg(lean_object* x_1) { +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Trie_format___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg(uint8_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(x_1); +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Trie_format___rarg___boxed), 3, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +return x_4; } } LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instToFormatTrie___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instToFormatTrie___rarg___boxed), 2, 0); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatTrie___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Meta_DiscrTree_instToFormatTrie___rarg(x_3, x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1436,81 +1678,81 @@ x_5 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignm return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg), 3, 0); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg), 3, 0); +return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1(uint8_t 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; 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; uint8_t x_20; -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 0); -x_7 = l_Lean_Meta_DiscrTree_Key_format(x_3); -x_8 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; -x_9 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_4); -x_11 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; -x_13 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; -x_17 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = 0; -x_19 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); -x_20 = lean_unbox(x_6); -if (x_20 == 0) +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; uint8_t x_19; lean_object* x_20; uint8_t x_21; +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_3, 0); +x_8 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_4); +x_9 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2; +x_10 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_Meta_DiscrTree_Trie_format___rarg(x_1, x_2, x_5); +x_12 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; +x_14 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__8; +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__5; +x_18 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = 0; +x_20 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*1, x_19); +x_21 = lean_unbox(x_7); +if (x_21 == 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 = lean_box(1); -lean_inc(x_5); -x_22 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_22, 0, x_5); -lean_ctor_set(x_22, 1, x_21); +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_box(1); +lean_inc(x_6); x_23 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -x_24 = 0; -x_25 = lean_box(x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_23); -return x_26; +lean_ctor_set(x_23, 0, x_6); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +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_24); +return x_27; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; -x_27 = lean_box(0); -lean_inc(x_5); -x_28 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_28, 0, x_5); -lean_ctor_set(x_28, 1, x_27); +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_28 = lean_box(0); +lean_inc(x_6); x_29 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_19); -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_29); -return x_32; +lean_ctor_set(x_29, 0, x_6); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_20); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_30); +return x_33; } } } @@ -1527,58 +1769,94 @@ lean_ctor_set(x_4, 1, x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_3, 0, x_1); -x_4 = l_Lean_Meta_DiscrTree_format___rarg___closed__1; -x_5 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = 0; -x_8 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set_uint8(x_8, sizeof(void*)*1, x_7); -return x_8; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_4 = lean_box(x_1); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed), 5, 2); +lean_closure_set(x_5, 0, x_4); +lean_closure_set(x_5, 1, x_2); +x_6 = l_Lean_Meta_DiscrTree_format___rarg___closed__1; +x_7 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___rarg(x_3, x_5, x_6); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = 0; +x_10 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_9); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_5; -x_5 = l_Lean_Meta_DiscrTree_format___rarg___lambda__1(x_1, x_2, x_3, x_4); +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); lean_dec(x_2); +x_4 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__1(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_Lean_Meta_DiscrTree_format___rarg___lambda__1(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Meta_DiscrTree_format___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(x_1); +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___rarg___boxed), 3, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +return x_4; } } LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg___boxed), 2, 0); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Meta_DiscrTree_instToFormatDiscrTree___rarg(x_3, x_2); +return x_4; +} +} static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId___closed__1() { _start: { @@ -1622,12 +1900,22 @@ x_1 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpStar___closed__1 return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_empty___closed__3; -return x_2; +lean_object* x_3; +x_3 = l_Lean_Meta_DiscrTree_empty___closed__5; +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(x_1, x_3); +return x_4; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ignoreArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -2939,109 +3227,182 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfEta(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduce(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; +uint8_t x_8; lean_object* x_9; +x_8 = 1; +lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_7 = lean_whnf(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_8, x_2, x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -x_11 = l_Lean_Expr_etaExpandedStrict_x3f(x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -else -{ -lean_object* x_12; -lean_free_object(x_7); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_1 = x_12; -x_6 = x_10; -goto _start; -} -} -else +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_10); +x_12 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_7, 0); -x_15 = lean_ctor_get(x_7, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_7); -lean_inc(x_14); -x_16 = l_Lean_Expr_etaExpandedStrict_x3f(x_14); -if (lean_obj_tag(x_16) == 0) +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_17; +uint8_t x_14; +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +lean_inc(x_10); +x_17 = l_Lean_Expr_etaExpandedStrict_x3f(x_10); +if (lean_obj_tag(x_17) == 0) +{ +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_15); -return x_17; +lean_ctor_set(x_12, 0, x_10); +return x_12; } else { lean_object* x_18; -lean_dec(x_14); -x_18 = lean_ctor_get(x_16, 0); +lean_free_object(x_12); +lean_dec(x_10); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); +lean_dec(x_17); x_1 = x_18; -x_6 = x_15; +x_7 = x_15; +goto _start; +} +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_dec(x_12); +lean_inc(x_10); +x_21 = l_Lean_Expr_etaExpandedStrict_x3f(x_10); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_10); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_1 = x_23; +x_7 = x_20; goto _start; } } } else { -uint8_t x_20; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_7); -if (x_20 == 0) -{ -return x_7; +lean_object* x_25; lean_object* x_26; +lean_dec(x_10); +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_dec(x_12); +x_26 = lean_ctor_get(x_13, 0); +lean_inc(x_26); +lean_dec(x_13); +x_1 = x_26; +x_7 = x_25; +goto _start; +} } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_7); -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; +uint8_t x_28; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_12); +if (x_28 == 0) +{ +return x_12; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_12, 0); +x_30 = lean_ctor_get(x_12, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_12); +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_32; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_32 = !lean_is_exclusive(x_9); +if (x_32 == 0) +{ +return x_9; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_9, 0); +x_34 = lean_ctor_get(x_9, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_9); +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_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduce___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_Meta_DiscrTree_reduce(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} } LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(lean_object* x_1) { _start: @@ -3097,1519 +3458,295 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey_step(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = 1; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_8 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_7, x_1, x_2, x_3, 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; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_9); -x_11 = l_Lean_Meta_unfoldDefinition_x3f(x_9, x_2, x_3, x_4, x_5, 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) -{ -uint8_t x_13; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) -{ -lean_object* x_14; -x_14 = lean_ctor_get(x_11, 0); -lean_dec(x_14); -lean_ctor_set(x_11, 0, x_9); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_11, 1); -lean_inc(x_15); -lean_dec(x_11); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_11); -if (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_11, 1); -x_19 = lean_ctor_get(x_11, 0); -lean_dec(x_19); -x_20 = lean_ctor_get(x_12, 0); -lean_inc(x_20); -lean_dec(x_12); -x_21 = l_Lean_Expr_getAppFn(x_20); -x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(x_21); -lean_dec(x_21); -if (x_22 == 0) -{ -lean_free_object(x_11); -lean_dec(x_9); -x_1 = x_20; -x_6 = x_18; -goto _start; -} -else -{ -lean_dec(x_20); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_ctor_set(x_11, 0, x_9); -return x_11; -} -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_11, 1); -lean_inc(x_24); -lean_dec(x_11); -x_25 = lean_ctor_get(x_12, 0); -lean_inc(x_25); -lean_dec(x_12); -x_26 = l_Lean_Expr_getAppFn(x_25); -x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(x_26); -lean_dec(x_26); -if (x_27 == 0) -{ -lean_dec(x_9); -x_1 = x_25; -x_6 = x_24; -goto _start; -} -else -{ -lean_object* x_29; -lean_dec(x_25); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_9); -lean_ctor_set(x_29, 1, x_24); -return x_29; -} -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_9); -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; -} -} -} -else -{ -uint8_t x_34; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_8); -if (x_34 == 0) -{ -return x_8; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_8, 0); -x_36 = lean_ctor_get(x_8, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_8); -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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey(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_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey_step(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -x_11 = l_Lean_Expr_etaExpandedStrict_x3f(x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -else -{ -lean_object* x_12; -lean_free_object(x_7); -lean_dec(x_9); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_1 = x_12; -x_6 = x_10; -goto _start; -} -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_7, 0); -x_15 = lean_ctor_get(x_7, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_7); -lean_inc(x_14); -x_16 = l_Lean_Expr_etaExpandedStrict_x3f(x_14); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -else -{ -lean_object* x_18; -lean_dec(x_14); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_1 = x_18; -x_6 = x_15; -goto _start; -} -} -} -else -{ -uint8_t x_20; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_7); -if (x_20 == 0) -{ -return x_7; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_7); -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_EXPORT lean_object* l_Lean_Meta_DiscrTree_whnfDT(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -if (x_2 == 0) -{ -lean_object* x_8; -x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfEta(x_1, x_3, x_4, x_5, x_6, x_7); -return x_8; -} -else -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey(x_1, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_whnfDT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step(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: { uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_2); -lean_dec(x_2); -x_9 = l_Lean_Meta_DiscrTree_whnfDT(x_1, x_8, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_11); -lean_inc(x_12); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_2); -lean_ctor_set(x_13, 1, x_12); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); +x_8 = 1; lean_inc(x_6); -lean_inc(x_12); -x_14 = l_Lean_Meta_getFunInfoNArgs(x_3, x_12, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_14) == 0) +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 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; -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_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_sub(x_12, x_18); -lean_dec(x_12); -x_20 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_17, x_19, x_1, x_4, x_6, x_7, x_8, x_9, x_16); -lean_dec(x_17); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_13); -lean_ctor_set(x_23, 1, x_22); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_13); -lean_ctor_set(x_26, 1, x_24); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_13); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) -{ -return x_20; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -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_32; -lean_dec(x_13); -lean_dec(x_12); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_14); -if (x_32 == 0) -{ -return x_14; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_14, 0); -x_34 = lean_ctor_get(x_14, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_14); -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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = l_Lean_Meta_DiscrTree_hasNoindexAnnotation(x_3); -if (x_9 == 0) -{ -lean_object* x_10; -lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_10 = l_Lean_Meta_DiscrTree_whnfDT(x_3, x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_10) == 0) +lean_inc(x_3); +lean_inc(x_10); +x_12 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_12) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) { -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); -x_14 = l_Lean_Expr_getAppFn(x_12); -switch (lean_obj_tag(x_14)) { -case 1: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_free_object(x_10); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_unsigned_to_nat(0u); -x_17 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_16); -lean_inc(x_17); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_17); -x_19 = l_Lean_Meta_getFunInfoNArgs(x_14, x_17, x_4, x_5, x_6, x_7, x_13); -if (lean_obj_tag(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; -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 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_sub(x_17, x_23); -lean_dec(x_17); -x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_22, x_24, x_12, x_2, x_4, x_5, x_6, x_7, x_21); -lean_dec(x_22); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_18); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_25, 0, x_28); -return x_25; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -uint8_t x_33; -lean_dec(x_18); -x_33 = !lean_is_exclusive(x_25); -if (x_33 == 0) -{ -return x_25; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_37 = !lean_is_exclusive(x_19); -if (x_37 == 0) -{ -return x_19; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_19, 0); -x_39 = lean_ctor_get(x_19, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_19); -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; -} -} -} -case 2: -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -lean_dec(x_12); -x_41 = lean_ctor_get(x_14, 0); -lean_inc(x_41); -lean_dec(x_14); -x_42 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId; -x_43 = lean_name_eq(x_41, x_42); -if (x_43 == 0) -{ -lean_object* x_44; -lean_free_object(x_10); -x_44 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_41, x_4, x_5, x_6, x_7, x_13); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_unbox(x_45); -lean_dec(x_45); -if (x_46 == 0) -{ -uint8_t x_47; -x_47 = !lean_is_exclusive(x_44); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_44, 0); -lean_dec(x_48); -x_49 = lean_box(3); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_2); -lean_ctor_set(x_44, 0, x_50); -return x_44; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_44, 1); -lean_inc(x_51); -lean_dec(x_44); -x_52 = lean_box(3); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_2); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_54; -} -} -else -{ -uint8_t x_55; -x_55 = !lean_is_exclusive(x_44); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_44, 0); -lean_dec(x_56); -x_57 = lean_box(4); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_2); -lean_ctor_set(x_44, 0, x_58); -return x_44; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_44, 1); -lean_inc(x_59); -lean_dec(x_44); -x_60 = lean_box(4); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_2); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_59); -return x_62; -} -} -} -else -{ -uint8_t x_63; -lean_dec(x_2); -x_63 = !lean_is_exclusive(x_44); -if (x_63 == 0) -{ -return x_44; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_44, 0); -x_65 = lean_ctor_get(x_44, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_44); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; -lean_dec(x_41); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_67 = lean_box(3); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_2); -lean_ctor_set(x_10, 0, x_68); -return x_10; -} -} -case 4: -{ -lean_free_object(x_10); -if (x_1 == 0) -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_14, 0); -lean_inc(x_69); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_12); -x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_69, x_12, x_4, x_5, x_6, x_7, x_13); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; uint8_t x_72; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_unbox(x_71); -lean_dec(x_71); -if (x_72 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); -x_74 = lean_box(0); -x_75 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_12, x_69, x_14, x_2, x_74, x_4, x_5, x_6, x_7, x_73); -return x_75; -} -else -{ -uint8_t x_76; -lean_dec(x_69); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_76 = !lean_is_exclusive(x_70); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_70, 0); -lean_dec(x_77); -x_78 = lean_box(3); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_2); -lean_ctor_set(x_70, 0, x_79); -return x_70; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_70, 1); -lean_inc(x_80); -lean_dec(x_70); -x_81 = lean_box(3); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_2); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; -} -} -} -else -{ -uint8_t x_84; -lean_dec(x_69); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_84 = !lean_is_exclusive(x_70); -if (x_84 == 0) -{ -return x_70; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_70, 0); -x_86 = lean_ctor_get(x_70, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_70); -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; -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_14, 0); -lean_inc(x_88); -x_89 = lean_box(0); -x_90 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_12, x_88, x_14, x_2, x_89, x_4, x_5, x_6, x_7, x_13); -return x_90; -} -} -case 7: -{ -lean_object* x_91; lean_object* x_92; uint8_t x_93; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_91 = lean_ctor_get(x_14, 1); -lean_inc(x_91); -x_92 = lean_ctor_get(x_14, 2); -lean_inc(x_92); -lean_dec(x_14); -x_93 = l_Lean_Expr_hasLooseBVars(x_92); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_array_push(x_2, x_91); -x_95 = lean_array_push(x_94, x_92); -x_96 = lean_box(5); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -lean_ctor_set(x_10, 0, x_97); -return x_10; -} -else -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_92); -lean_dec(x_91); -x_98 = lean_box(4); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_2); -lean_ctor_set(x_10, 0, x_99); -return x_10; -} -} -case 9: -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_100 = lean_ctor_get(x_14, 0); -lean_inc(x_100); -lean_dec(x_14); -x_101 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_101, 0, x_100); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_2); -lean_ctor_set(x_10, 0, x_102); -return x_10; -} -case 11: -{ -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_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_103 = lean_ctor_get(x_14, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_14, 1); -lean_inc(x_104); -x_105 = lean_ctor_get(x_14, 2); -lean_inc(x_105); -lean_dec(x_14); -x_106 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_106, 0, x_103); -lean_ctor_set(x_106, 1, x_104); -x_107 = lean_array_push(x_2, x_105); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -lean_ctor_set(x_10, 0, x_108); -return x_10; -} -default: -{ -lean_object* x_109; lean_object* x_110; -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_109 = lean_box(4); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_2); -lean_ctor_set(x_10, 0, x_110); -return x_10; -} -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_10, 0); -x_112 = lean_ctor_get(x_10, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_10); -x_113 = l_Lean_Expr_getAppFn(x_111); -switch (lean_obj_tag(x_113)) { -case 1: -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_unsigned_to_nat(0u); -x_116 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_111, x_115); -lean_inc(x_116); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_116); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_116); -x_118 = l_Lean_Meta_getFunInfoNArgs(x_113, x_116, x_4, x_5, x_6, x_7, x_112); -if (lean_obj_tag(x_118) == 0) -{ -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_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = lean_ctor_get(x_119, 0); -lean_inc(x_121); -lean_dec(x_119); -x_122 = lean_unsigned_to_nat(1u); -x_123 = lean_nat_sub(x_116, x_122); -lean_dec(x_116); -x_124 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_121, x_123, x_111, x_2, x_4, x_5, x_6, x_7, x_120); -lean_dec(x_121); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_127 = x_124; -} else { - lean_dec_ref(x_124); - x_127 = lean_box(0); -} -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_117); -lean_ctor_set(x_128, 1, x_125); -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_dec(x_117); -x_130 = lean_ctor_get(x_124, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_124, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_132 = x_124; -} else { - lean_dec_ref(x_124); - x_132 = lean_box(0); -} -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); -} else { - x_133 = x_132; -} -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -return x_133; -} -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_134 = lean_ctor_get(x_118, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_118, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_136 = x_118; -} else { - lean_dec_ref(x_118); - x_136 = lean_box(0); -} -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(1, 2, 0); -} else { - x_137 = x_136; -} -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -return x_137; -} -} -case 2: -{ -lean_object* x_138; lean_object* x_139; uint8_t x_140; -lean_dec(x_111); -x_138 = lean_ctor_get(x_113, 0); -lean_inc(x_138); -lean_dec(x_113); -x_139 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId; -x_140 = lean_name_eq(x_138, x_139); -if (x_140 == 0) -{ -lean_object* x_141; -x_141 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_138, x_4, x_5, x_6, x_7, x_112); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; uint8_t x_143; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_unbox(x_142); -lean_dec(x_142); -if (x_143 == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_144 = lean_ctor_get(x_141, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_145 = x_141; -} else { - lean_dec_ref(x_141); - x_145 = lean_box(0); -} -x_146 = lean_box(3); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_2); -if (lean_is_scalar(x_145)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_145; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_144); -return x_148; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_ctor_get(x_141, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_150 = x_141; -} else { - lean_dec_ref(x_141); - x_150 = lean_box(0); -} -x_151 = lean_box(4); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_2); -if (lean_is_scalar(x_150)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_150; -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_149); -return x_153; -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_2); -x_154 = lean_ctor_get(x_141, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_141, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_156 = x_141; -} else { - lean_dec_ref(x_141); - 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_dec(x_138); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_158 = lean_box(3); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_2); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_112); -return x_160; -} -} -case 4: -{ -if (x_1 == 0) -{ -lean_object* x_161; lean_object* x_162; -x_161 = lean_ctor_get(x_113, 0); -lean_inc(x_161); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_111); -x_162 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_161, x_111, x_4, x_5, x_6, x_7, x_112); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; uint8_t x_164; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_unbox(x_163); -lean_dec(x_163); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_166 = lean_box(0); -x_167 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_111, x_161, x_113, x_2, x_166, x_4, x_5, x_6, x_7, x_165); -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_dec(x_161); -lean_dec(x_113); -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_168 = lean_ctor_get(x_162, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_169 = x_162; -} else { - lean_dec_ref(x_162); - x_169 = lean_box(0); -} -x_170 = lean_box(3); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_2); -if (lean_is_scalar(x_169)) { - x_172 = lean_alloc_ctor(0, 2, 0); -} else { - x_172 = x_169; -} -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_168); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -lean_dec(x_161); -lean_dec(x_113); -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_173 = lean_ctor_get(x_162, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_162, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_175 = x_162; -} else { - lean_dec_ref(x_162); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(1, 2, 0); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_174); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_113, 0); -lean_inc(x_177); -x_178 = lean_box(0); -x_179 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_111, x_177, x_113, x_2, x_178, x_4, x_5, x_6, x_7, x_112); -return x_179; -} -} -case 7: -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_180 = lean_ctor_get(x_113, 1); -lean_inc(x_180); -x_181 = lean_ctor_get(x_113, 2); -lean_inc(x_181); -lean_dec(x_113); -x_182 = l_Lean_Expr_hasLooseBVars(x_181); -if (x_182 == 0) -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_183 = lean_array_push(x_2, x_180); -x_184 = lean_array_push(x_183, x_181); -x_185 = lean_box(5); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_184); -x_187 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_112); -return x_187; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_181); -lean_dec(x_180); -x_188 = lean_box(4); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_2); -x_190 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_112); -return x_190; -} -} -case 9: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_191 = lean_ctor_get(x_113, 0); -lean_inc(x_191); -lean_dec(x_113); -x_192 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_192, 0, x_191); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_2); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_112); -return x_194; -} -case 11: -{ -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_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_195 = lean_ctor_get(x_113, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_113, 1); -lean_inc(x_196); -x_197 = lean_ctor_get(x_113, 2); -lean_inc(x_197); -lean_dec(x_113); -x_198 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_198, 0, x_195); -lean_ctor_set(x_198, 1, x_196); -x_199 = lean_array_push(x_2, x_197); -x_200 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_112); -return x_201; -} -default: -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_113); -lean_dec(x_111); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_202 = lean_box(4); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_2); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_112); -return x_204; -} -} -} -} -else -{ -uint8_t x_205; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_205 = !lean_is_exclusive(x_10); -if (x_205 == 0) -{ -return x_10; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_10, 0); -x_207 = lean_ctor_get(x_10, 1); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_10); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -return x_208; -} -} -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_7); +uint8_t x_14; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_209 = lean_box(3); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_2); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_8); -return x_211; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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: +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) { -lean_object* x_11; -x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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_5); -return x_11; +lean_object* x_15; +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +lean_ctor_set(x_12, 0, x_10); +return x_12; } -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___boxed(lean_object* x_1, lean_object* x_2, 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: +else { -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_1); -lean_dec(x_1); -x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = l_Array_isEmpty___rarg(x_2); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l_Lean_instInhabitedExpr; -x_11 = l_Array_back___rarg(x_10, x_2); -x_12 = lean_array_pop(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(x_1, x_12, x_11, x_4, x_5, x_6, x_7, x_8); -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; uint8_t x_19; -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_ctor_get(x_14, 0); +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_array_push(x_3, x_16); -x_19 = 0; -x_1 = x_19; -x_2 = x_17; -x_3 = x_18; -x_8 = x_15; +lean_dec(x_12); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +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_12, 1); +x_20 = lean_ctor_get(x_12, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_22 = l_Lean_Expr_getAppFn(x_21); +x_23 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_free_object(x_12); +lean_dec(x_10); +x_2 = x_21; +x_7 = x_19; goto _start; } else { -uint8_t x_21; -lean_dec(x_7); +lean_dec(x_21); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_21 = !lean_is_exclusive(x_13); +lean_ctor_set(x_12, 0, x_10); +return x_12; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_dec(x_12); +x_26 = lean_ctor_get(x_13, 0); +lean_inc(x_26); +lean_dec(x_13); +x_27 = l_Lean_Expr_getAppFn(x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isBadKey(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +lean_dec(x_10); +x_2 = x_26; +x_7 = x_25; +goto _start; +} +else +{ +lean_object* x_30; +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_10); +lean_ctor_set(x_30, 1, x_25); +return x_30; +} +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_12); +if (x_31 == 0) +{ +return x_12; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_12, 0); +x_33 = lean_ctor_get(x_12, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_12); +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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_9); +if (x_35 == 0) +{ +return x_9; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_9, 0); +x_37 = lean_ctor_get(x_9, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_9); +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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step___boxed(lean_object* x_1, 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___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey_step(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +x_12 = l_Lean_Expr_etaExpandedStrict_x3f(x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +else +{ +lean_object* x_13; +lean_free_object(x_8); +lean_dec(x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_1 = x_13; +x_7 = x_11; +goto _start; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_8); +lean_inc(x_15); +x_17 = l_Lean_Expr_etaExpandedStrict_x3f(x_15); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_15); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_1 = x_19; +x_7 = x_16; +goto _start; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_21 = !lean_is_exclusive(x_8); if (x_21 == 0) { -return x_13; +return x_8; } else { lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); lean_inc(x_23); lean_inc(x_22); -lean_dec(x_13); +lean_dec(x_8); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -4617,29 +3754,1281 @@ return x_24; } } } +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduceDT(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) { +_start: +{ +if (x_2 == 0) +{ +lean_object* x_9; +x_9 = l_Lean_Meta_DiscrTree_reduce(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; +} else { -lean_object* x_25; +lean_object* x_10; +x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_reduceUntilBadKey(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_reduceDT___boxed(lean_object* x_1, lean_object* x_2, 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; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Meta_DiscrTree_reduceDT(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_12); +lean_inc(x_13); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_13); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_13); +x_15 = l_Lean_Meta_getFunInfoNArgs(x_4, x_13, 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +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 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_13, x_19); +lean_dec(x_13); +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_18, x_20, x_1, x_5, x_7, x_8, x_9, x_10, x_17); +lean_dec(x_18); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_14); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_25); +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 +{ +uint8_t x_29; +lean_dec(x_14); +x_29 = !lean_is_exclusive(x_21); +if (x_29 == 0) +{ +return x_21; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_21, 0); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_21); +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_33; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_15); +if (x_33 == 0) +{ +return x_15; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_15, 0); +x_35 = lean_ctor_get(x_15, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_15); +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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(uint8_t 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) { +_start: +{ +uint8_t x_10; +x_10 = l_Lean_Meta_DiscrTree_hasNoindexAnnotation(x_4); +if (x_10 == 0) +{ +lean_object* x_11; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_11 = l_Lean_Meta_DiscrTree_reduceDT(x_4, x_2, x_1, x_5, x_6, x_7, x_8, x_9); +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; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = l_Lean_Expr_getAppFn(x_13); +switch (lean_obj_tag(x_15)) { +case 1: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_free_object(x_11); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_13, x_17); +lean_inc(x_18); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_18); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_18); +x_20 = l_Lean_Meta_getFunInfoNArgs(x_15, x_18, x_5, x_6, x_7, x_8, x_14); +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_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_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_18, x_24); +lean_dec(x_18); +x_26 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_23, x_25, x_13, x_3, x_5, x_6, x_7, x_8, x_22); +lean_dec(x_23); +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; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, 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; +} +} +else +{ +uint8_t x_34; +lean_dec(x_19); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) +{ +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_38 = !lean_is_exclusive(x_20); +if (x_38 == 0) +{ +return x_20; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_20, 0); +x_40 = lean_ctor_get(x_20, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_20); +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; +} +} +} +case 2: +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_dec(x_13); +x_42 = lean_ctor_get(x_15, 0); +lean_inc(x_42); +lean_dec(x_15); +x_43 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId; +x_44 = lean_name_eq(x_42, x_43); +if (x_44 == 0) +{ +lean_object* x_45; +lean_free_object(x_11); +x_45 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_42, x_5, x_6, x_7, x_8, x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_unbox(x_46); +lean_dec(x_46); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_45, 0); +lean_dec(x_49); +x_50 = lean_box(3); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_3); +lean_ctor_set(x_45, 0, x_51); +return x_45; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_dec(x_45); +x_53 = lean_box(3); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_3); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_52); +return x_55; +} +} +else +{ +uint8_t x_56; +x_56 = !lean_is_exclusive(x_45); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_45, 0); +lean_dec(x_57); +x_58 = lean_box(4); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_3); +lean_ctor_set(x_45, 0, x_59); +return x_45; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_45, 1); +lean_inc(x_60); +lean_dec(x_45); +x_61 = lean_box(4); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_3); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_3); +x_64 = !lean_is_exclusive(x_45); +if (x_64 == 0) +{ +return x_45; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_45, 0); +x_66 = lean_ctor_get(x_45, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_45); +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 +{ +lean_object* x_68; lean_object* x_69; +lean_dec(x_42); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_68 = lean_box(3); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_3); +lean_ctor_set(x_11, 0, x_69); +return x_11; +} +} +case 4: +{ +lean_free_object(x_11); +if (x_2 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_15, 0); +lean_inc(x_70); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_71 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_70, x_13, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +lean_dec(x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_box(0); +x_76 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_13, x_1, x_70, x_15, x_3, x_75, x_5, x_6, x_7, x_8, x_74); +return x_76; +} +else +{ +uint8_t x_77; +lean_dec(x_70); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_77 = !lean_is_exclusive(x_71); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_71, 0); +lean_dec(x_78); +x_79 = lean_box(3); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_3); +lean_ctor_set(x_71, 0, x_80); +return x_71; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_71, 1); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_box(3); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_3); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_81); +return x_84; +} +} +} +else +{ +uint8_t x_85; +lean_dec(x_70); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_85 = !lean_is_exclusive(x_71); +if (x_85 == 0) +{ +return x_71; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_71, 0); +x_87 = lean_ctor_get(x_71, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_71); +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_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_15, 0); +lean_inc(x_89); +x_90 = lean_box(0); +x_91 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_13, x_1, x_89, x_15, x_3, x_90, x_5, x_6, x_7, x_8, x_14); +return x_91; +} +} +case 7: +{ +lean_object* x_92; lean_object* x_93; uint8_t x_94; +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_92 = lean_ctor_get(x_15, 1); +lean_inc(x_92); +x_93 = lean_ctor_get(x_15, 2); +lean_inc(x_93); +lean_dec(x_15); +x_94 = l_Lean_Expr_hasLooseBVars(x_93); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_box(5); +x_96 = lean_array_push(x_3, x_92); +x_97 = lean_array_push(x_96, x_93); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_97); +lean_ctor_set(x_11, 0, x_98); +return x_11; +} +else +{ +lean_object* x_99; lean_object* x_100; +lean_dec(x_93); +lean_dec(x_92); +x_99 = lean_box(4); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_3); +lean_ctor_set(x_11, 0, x_100); +return x_11; +} +} +case 9: +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_101 = lean_ctor_get(x_15, 0); +lean_inc(x_101); +lean_dec(x_15); +x_102 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_3); +lean_ctor_set(x_11, 0, x_103); +return x_11; +} +case 11: +{ +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_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_104 = lean_ctor_get(x_15, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_15, 1); +lean_inc(x_105); +x_106 = lean_ctor_get(x_15, 2); +lean_inc(x_106); +lean_dec(x_15); +x_107 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +x_108 = lean_array_push(x_3, x_106); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_11, 0, x_109); +return x_11; +} +default: +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_110 = lean_box(4); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_3); +lean_ctor_set(x_11, 0, x_111); +return x_11; +} +} +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_11, 0); +x_113 = lean_ctor_get(x_11, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_11); +x_114 = l_Lean_Expr_getAppFn(x_112); +switch (lean_obj_tag(x_114)) { +case 1: +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_unsigned_to_nat(0u); +x_117 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_112, x_116); +lean_inc(x_117); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_117); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_117); +x_119 = l_Lean_Meta_getFunInfoNArgs(x_114, x_117, x_5, x_6, x_7, x_8, x_113); +if (lean_obj_tag(x_119) == 0) +{ +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_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_122 = lean_ctor_get(x_120, 0); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_unsigned_to_nat(1u); +x_124 = lean_nat_sub(x_117, x_123); +lean_dec(x_117); +x_125 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgsAux(x_122, x_124, x_112, x_3, x_5, x_6, x_7, x_8, x_121); +lean_dec(x_122); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; +} else { + lean_dec_ref(x_125); + x_128 = lean_box(0); +} +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_118); +lean_ctor_set(x_129, 1, x_126); +if (lean_is_scalar(x_128)) { + x_130 = lean_alloc_ctor(0, 2, 0); +} else { + x_130 = x_128; +} +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_127); +return x_130; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_118); +x_131 = lean_ctor_get(x_125, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_125, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_133 = x_125; +} else { + lean_dec_ref(x_125); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_118); +lean_dec(x_117); +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_135 = lean_ctor_get(x_119, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_119, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_137 = x_119; +} else { + lean_dec_ref(x_119); + x_137 = lean_box(0); +} +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 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; +} +} +case 2: +{ +lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_dec(x_112); +x_139 = lean_ctor_get(x_114, 0); +lean_inc(x_139); +lean_dec(x_114); +x_140 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_tmpMVarId; +x_141 = lean_name_eq(x_139, x_140); +if (x_141 == 0) +{ +lean_object* x_142; +x_142 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_139, x_5, x_6, x_7, x_8, x_113); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; uint8_t x_144; +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_unbox(x_143); +lean_dec(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_146 = x_142; +} else { + lean_dec_ref(x_142); + x_146 = lean_box(0); +} +x_147 = lean_box(3); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_3); +if (lean_is_scalar(x_146)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_146; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_145); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_150 = lean_ctor_get(x_142, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_151 = x_142; +} else { + lean_dec_ref(x_142); + x_151 = lean_box(0); +} +x_152 = lean_box(4); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_3); +if (lean_is_scalar(x_151)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_151; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_150); +return x_154; +} +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_3); +x_155 = lean_ctor_get(x_142, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_142, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_157 = x_142; +} else { + lean_dec_ref(x_142); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; +} +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_139); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_159 = lean_box(3); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_3); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_113); +return x_161; +} +} +case 4: +{ +if (x_2 == 0) +{ +lean_object* x_162; lean_object* x_163; +x_162 = lean_ctor_get(x_114, 0); +lean_inc(x_162); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_112); +x_163 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_162, x_112, x_5, x_6, x_7, x_8, x_113); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; uint8_t x_165; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_unbox(x_164); +lean_dec(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); +lean_dec(x_163); +x_167 = lean_box(0); +x_168 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_112, x_1, x_162, x_114, x_3, x_167, x_5, x_6, x_7, x_8, x_166); +return x_168; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +lean_dec(x_114); +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_169 = lean_ctor_get(x_163, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_170 = x_163; +} else { + lean_dec_ref(x_163); + x_170 = lean_box(0); +} +x_171 = lean_box(3); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_3); +if (lean_is_scalar(x_170)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_170; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_169); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_162); +lean_dec(x_114); +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_174 = lean_ctor_get(x_163, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_163, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_176 = x_163; +} else { + lean_dec_ref(x_163); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_114, 0); +lean_inc(x_178); +x_179 = lean_box(0); +x_180 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_112, x_1, x_178, x_114, x_3, x_179, x_5, x_6, x_7, x_8, x_113); +return x_180; +} +} +case 7: +{ +lean_object* x_181; lean_object* x_182; uint8_t x_183; +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_181 = lean_ctor_get(x_114, 1); +lean_inc(x_181); +x_182 = lean_ctor_get(x_114, 2); +lean_inc(x_182); +lean_dec(x_114); +x_183 = l_Lean_Expr_hasLooseBVars(x_182); +if (x_183 == 0) +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_184 = lean_box(5); +x_185 = lean_array_push(x_3, x_181); +x_186 = lean_array_push(x_185, x_182); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_186); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_113); +return x_188; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_182); +lean_dec(x_181); +x_189 = lean_box(4); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_3); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_113); +return x_191; +} +} +case 9: +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_192 = lean_ctor_get(x_114, 0); +lean_inc(x_192); +lean_dec(x_114); +x_193 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_193, 0, x_192); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_3); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_113); +return x_195; +} +case 11: +{ +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_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_196 = lean_ctor_get(x_114, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_114, 1); +lean_inc(x_197); +x_198 = lean_ctor_get(x_114, 2); +lean_inc(x_198); +lean_dec(x_114); +x_199 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +x_200 = lean_array_push(x_3, x_198); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_113); +return x_202; +} +default: +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_114); +lean_dec(x_112); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_203 = lean_box(4); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_3); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_113); +return x_205; +} +} +} +} +else +{ +uint8_t x_206; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_206 = !lean_is_exclusive(x_11); +if (x_206 == 0) +{ +return x_11; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_11, 0); +x_208 = lean_ctor_get(x_11, 1); +lean_inc(x_208); +lean_inc(x_207); +lean_dec(x_11); +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; lean_object* x_212; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +x_210 = lean_box(3); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_3); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_9); +return x_212; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_2); lean_dec(x_2); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_3); -lean_ctor_set(x_25, 1, x_8); +x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___lambda__1(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux(uint8_t 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) { +_start: +{ +uint8_t x_10; +x_10 = l_Array_isEmpty___rarg(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_instInhabitedExpr; +x_12 = l_Array_back___rarg(x_11, x_3); +x_13 = lean_array_pop(x_3); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_pushArgs(x_1, x_2, x_13, x_12, x_5, x_6, x_7, x_8, x_9); +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; uint8_t x_20; +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_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_array_push(x_4, x_17); +x_20 = 0; +x_2 = x_20; +x_3 = x_18; +x_4 = x_19; +x_9 = x_16; +goto _start; +} +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); +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +return x_14; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +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; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +else +{ +lean_object* x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_4); +lean_ctor_set(x_26, 1, x_9); +return x_26; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPathAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_9; lean_object* x_10; -x_9 = lean_unbox(x_1); +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_1); lean_dec(x_1); -x_10 = l_Lean_Meta_DiscrTree_mkPathAux(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Lean_Meta_DiscrTree_mkPathAux(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; } } static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_initCapacity() { @@ -4659,272 +5048,282 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath(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_7; lean_object* x_8; uint8_t x_9; -x_7 = l_Lean_Meta_DiscrTree_mkPath___closed__1; -x_8 = lean_array_push(x_7, x_1); -x_9 = !lean_is_exclusive(x_2); -if (x_9 == 0) +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = l_Lean_Meta_DiscrTree_mkPath___closed__1; +x_9 = lean_array_push(x_8, x_2); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_2, 0); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_3, 0); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 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; -x_14 = l_Lean_Meta_DiscrTree_mkPathAux(x_13, x_8, x_7, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_14) == 0) +uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_13 = 2; +lean_ctor_set_uint8(x_11, 5, x_13); +x_14 = 1; +x_15 = l_Lean_Meta_DiscrTree_mkPathAux(x_1, x_14, x_9, x_8, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -return x_14; +return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_14); -if (x_19 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -return x_14; +return x_15; } 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_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); 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_dec(x_15); +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; } } } else { -uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; -x_23 = lean_ctor_get_uint8(x_10, 0); -x_24 = lean_ctor_get_uint8(x_10, 1); -x_25 = lean_ctor_get_uint8(x_10, 2); -x_26 = lean_ctor_get_uint8(x_10, 3); -x_27 = lean_ctor_get_uint8(x_10, 4); -x_28 = lean_ctor_get_uint8(x_10, 6); -x_29 = lean_ctor_get_uint8(x_10, 7); -x_30 = lean_ctor_get_uint8(x_10, 8); -x_31 = lean_ctor_get_uint8(x_10, 9); -x_32 = lean_ctor_get_uint8(x_10, 10); -x_33 = lean_ctor_get_uint8(x_10, 11); -x_34 = lean_ctor_get_uint8(x_10, 12); -x_35 = lean_ctor_get_uint8(x_10, 13); -lean_dec(x_10); -x_36 = 2; -x_37 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_37, 0, x_23); -lean_ctor_set_uint8(x_37, 1, x_24); -lean_ctor_set_uint8(x_37, 2, x_25); -lean_ctor_set_uint8(x_37, 3, x_26); -lean_ctor_set_uint8(x_37, 4, x_27); -lean_ctor_set_uint8(x_37, 5, x_36); -lean_ctor_set_uint8(x_37, 6, x_28); -lean_ctor_set_uint8(x_37, 7, x_29); -lean_ctor_set_uint8(x_37, 8, x_30); -lean_ctor_set_uint8(x_37, 9, x_31); -lean_ctor_set_uint8(x_37, 10, x_32); -lean_ctor_set_uint8(x_37, 11, x_33); -lean_ctor_set_uint8(x_37, 12, x_34); -lean_ctor_set_uint8(x_37, 13, x_35); -lean_ctor_set(x_2, 0, x_37); -x_38 = 1; -x_39 = l_Lean_Meta_DiscrTree_mkPathAux(x_38, x_8, x_7, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_39) == 0) +uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_24 = lean_ctor_get_uint8(x_11, 0); +x_25 = lean_ctor_get_uint8(x_11, 1); +x_26 = lean_ctor_get_uint8(x_11, 2); +x_27 = lean_ctor_get_uint8(x_11, 3); +x_28 = lean_ctor_get_uint8(x_11, 4); +x_29 = lean_ctor_get_uint8(x_11, 6); +x_30 = lean_ctor_get_uint8(x_11, 7); +x_31 = lean_ctor_get_uint8(x_11, 8); +x_32 = lean_ctor_get_uint8(x_11, 9); +x_33 = lean_ctor_get_uint8(x_11, 10); +x_34 = lean_ctor_get_uint8(x_11, 11); +x_35 = lean_ctor_get_uint8(x_11, 12); +x_36 = lean_ctor_get_uint8(x_11, 13); +lean_dec(x_11); +x_37 = 2; +x_38 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_38, 0, x_24); +lean_ctor_set_uint8(x_38, 1, x_25); +lean_ctor_set_uint8(x_38, 2, x_26); +lean_ctor_set_uint8(x_38, 3, x_27); +lean_ctor_set_uint8(x_38, 4, x_28); +lean_ctor_set_uint8(x_38, 5, x_37); +lean_ctor_set_uint8(x_38, 6, x_29); +lean_ctor_set_uint8(x_38, 7, x_30); +lean_ctor_set_uint8(x_38, 8, x_31); +lean_ctor_set_uint8(x_38, 9, x_32); +lean_ctor_set_uint8(x_38, 10, x_33); +lean_ctor_set_uint8(x_38, 11, x_34); +lean_ctor_set_uint8(x_38, 12, x_35); +lean_ctor_set_uint8(x_38, 13, x_36); +lean_ctor_set(x_3, 0, x_38); +x_39 = 1; +x_40 = l_Lean_Meta_DiscrTree_mkPathAux(x_1, x_39, x_9, x_8, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_40) == 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_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; +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_39); - x_42 = lean_box(0); + lean_dec_ref(x_40); + x_43 = lean_box(0); } -if (lean_is_scalar(x_42)) { - x_43 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 2, 0); } else { - x_43 = x_42; + x_44 = x_43; } -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_41); -return x_43; +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_39, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_39, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_40, 0); lean_inc(x_45); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_46 = x_39; +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; } else { - lean_dec_ref(x_39); - x_46 = lean_box(0); + lean_dec_ref(x_40); + x_47 = lean_box(0); } -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); } else { - x_47 = x_46; + x_48 = x_47; } -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_45); -return x_47; +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } 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; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; 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; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_48 = lean_ctor_get(x_2, 0); -x_49 = lean_ctor_get(x_2, 1); -x_50 = lean_ctor_get(x_2, 2); -x_51 = lean_ctor_get(x_2, 3); -x_52 = lean_ctor_get(x_2, 4); -x_53 = lean_ctor_get(x_2, 5); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; 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; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_49 = lean_ctor_get(x_3, 0); +x_50 = lean_ctor_get(x_3, 1); +x_51 = lean_ctor_get(x_3, 2); +x_52 = lean_ctor_get(x_3, 3); +x_53 = lean_ctor_get(x_3, 4); +x_54 = lean_ctor_get(x_3, 5); +lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_2); -x_54 = lean_ctor_get_uint8(x_48, 0); -x_55 = lean_ctor_get_uint8(x_48, 1); -x_56 = lean_ctor_get_uint8(x_48, 2); -x_57 = lean_ctor_get_uint8(x_48, 3); -x_58 = lean_ctor_get_uint8(x_48, 4); -x_59 = lean_ctor_get_uint8(x_48, 6); -x_60 = lean_ctor_get_uint8(x_48, 7); -x_61 = lean_ctor_get_uint8(x_48, 8); -x_62 = lean_ctor_get_uint8(x_48, 9); -x_63 = lean_ctor_get_uint8(x_48, 10); -x_64 = lean_ctor_get_uint8(x_48, 11); -x_65 = lean_ctor_get_uint8(x_48, 12); -x_66 = lean_ctor_get_uint8(x_48, 13); -if (lean_is_exclusive(x_48)) { - x_67 = x_48; +lean_dec(x_3); +x_55 = lean_ctor_get_uint8(x_49, 0); +x_56 = lean_ctor_get_uint8(x_49, 1); +x_57 = lean_ctor_get_uint8(x_49, 2); +x_58 = lean_ctor_get_uint8(x_49, 3); +x_59 = lean_ctor_get_uint8(x_49, 4); +x_60 = lean_ctor_get_uint8(x_49, 6); +x_61 = lean_ctor_get_uint8(x_49, 7); +x_62 = lean_ctor_get_uint8(x_49, 8); +x_63 = lean_ctor_get_uint8(x_49, 9); +x_64 = lean_ctor_get_uint8(x_49, 10); +x_65 = lean_ctor_get_uint8(x_49, 11); +x_66 = lean_ctor_get_uint8(x_49, 12); +x_67 = lean_ctor_get_uint8(x_49, 13); +if (lean_is_exclusive(x_49)) { + x_68 = x_49; } else { - lean_dec_ref(x_48); - x_67 = lean_box(0); + lean_dec_ref(x_49); + x_68 = lean_box(0); } -x_68 = 2; -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 0, 14); +x_69 = 2; +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 0, 14); } else { - x_69 = x_67; + x_70 = x_68; } -lean_ctor_set_uint8(x_69, 0, x_54); -lean_ctor_set_uint8(x_69, 1, x_55); -lean_ctor_set_uint8(x_69, 2, x_56); -lean_ctor_set_uint8(x_69, 3, x_57); -lean_ctor_set_uint8(x_69, 4, x_58); -lean_ctor_set_uint8(x_69, 5, x_68); -lean_ctor_set_uint8(x_69, 6, x_59); -lean_ctor_set_uint8(x_69, 7, x_60); -lean_ctor_set_uint8(x_69, 8, x_61); -lean_ctor_set_uint8(x_69, 9, x_62); -lean_ctor_set_uint8(x_69, 10, x_63); -lean_ctor_set_uint8(x_69, 11, x_64); -lean_ctor_set_uint8(x_69, 12, x_65); -lean_ctor_set_uint8(x_69, 13, x_66); -x_70 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_49); -lean_ctor_set(x_70, 2, x_50); -lean_ctor_set(x_70, 3, x_51); -lean_ctor_set(x_70, 4, x_52); -lean_ctor_set(x_70, 5, x_53); -x_71 = 1; -x_72 = l_Lean_Meta_DiscrTree_mkPathAux(x_71, x_8, x_7, x_70, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_72) == 0) +lean_ctor_set_uint8(x_70, 0, x_55); +lean_ctor_set_uint8(x_70, 1, x_56); +lean_ctor_set_uint8(x_70, 2, x_57); +lean_ctor_set_uint8(x_70, 3, x_58); +lean_ctor_set_uint8(x_70, 4, x_59); +lean_ctor_set_uint8(x_70, 5, x_69); +lean_ctor_set_uint8(x_70, 6, x_60); +lean_ctor_set_uint8(x_70, 7, x_61); +lean_ctor_set_uint8(x_70, 8, x_62); +lean_ctor_set_uint8(x_70, 9, x_63); +lean_ctor_set_uint8(x_70, 10, x_64); +lean_ctor_set_uint8(x_70, 11, x_65); +lean_ctor_set_uint8(x_70, 12, x_66); +lean_ctor_set_uint8(x_70, 13, x_67); +x_71 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_50); +lean_ctor_set(x_71, 2, x_51); +lean_ctor_set(x_71, 3, x_52); +lean_ctor_set(x_71, 4, x_53); +lean_ctor_set(x_71, 5, x_54); +x_72 = 1; +x_73 = l_Lean_Meta_DiscrTree_mkPathAux(x_1, x_72, x_9, x_8, x_71, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_75 = x_72; +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_76 = x_73; } else { - lean_dec_ref(x_72); - x_75 = lean_box(0); + lean_dec_ref(x_73); + x_76 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(0, 2, 0); } else { - x_76 = x_75; + x_77 = x_76; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return 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_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_72, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_72, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 0); 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; +x_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_80 = x_73; } else { - lean_dec_ref(x_72); - x_79 = lean_box(0); + lean_dec_ref(x_73); + x_80 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; + x_81 = x_80; } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; } } } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_mkPath___boxed(lean_object* x_1, 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_Meta_DiscrTree_mkPath(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -4933,61 +5332,55 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_1); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_5, x_6); +lean_dec(x_6); +if (x_7 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1; -x_7 = lean_array_push(x_6, x_2); -x_8 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -return x_9; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1; +x_9 = lean_array_push(x_8, x_4); +x_10 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; } 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_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_array_fget(x_1, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_12); -lean_dec(x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_13); -x_15 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1; -x_16 = lean_array_push(x_15, x_14); -x_17 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -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; +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; +x_12 = lean_array_fget(x_3, x_5); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_5, x_13); +x_15 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_14); +lean_dec(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_12); +lean_ctor_set(x_16, 1, x_15); +x_17 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1; +x_18 = lean_array_push(x_17, x_16); +x_19 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___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_18); +return x_20; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___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___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___boxed), 3, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_3); -lean_dec(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); lean_dec(x_1); -return x_4; +x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -5018,124 +5411,124 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_Di return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _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; uint8_t x_16; -x_10 = lean_nat_add(x_8, x_9); -x_11 = lean_unsigned_to_nat(2u); -x_12 = lean_nat_div(x_10, x_11); -lean_dec(x_10); -lean_inc(x_7); -x_13 = lean_array_get(x_7, x_6, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_7, 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; +x_11 = lean_nat_add(x_9, x_10); +x_12 = lean_unsigned_to_nat(2u); +x_13 = lean_nat_div(x_11, x_12); +lean_dec(x_11); +lean_inc(x_8); +x_14 = lean_array_get(x_8, x_7, x_13); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = l_Lean_Meta_DiscrTree_Key_lt(x_14, x_15); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_9); -x_17 = l_Lean_Meta_DiscrTree_Key_lt(x_15, x_14); lean_dec(x_14); -lean_dec(x_15); +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +x_17 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_15, x_16); if (x_17 == 0) { -lean_object* x_18; uint8_t x_19; -lean_dec(x_8); -lean_dec(x_7); -x_18 = lean_array_get_size(x_6); -x_19 = lean_nat_dec_lt(x_12, x_18); -lean_dec(x_18); -if (x_19 == 0) -{ -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_array_fget(x_6, x_12); -x_21 = lean_box(0); -x_22 = lean_array_fset(x_6, x_12, x_21); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_24 = lean_ctor_get(x_20, 1); -x_25 = lean_ctor_get(x_20, 0); -lean_dec(x_25); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_add(x_4, x_26); -x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_27, x_24); -lean_dec(x_27); -lean_ctor_set(x_20, 1, x_28); -lean_ctor_set(x_20, 0, x_5); -x_29 = lean_array_fset(x_22, x_12, x_20); -lean_dec(x_12); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_dec(x_20); -x_31 = lean_unsigned_to_nat(1u); -x_32 = lean_nat_add(x_4, x_31); -x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_32, x_30); -lean_dec(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_5); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_array_fset(x_22, x_12, x_34); -lean_dec(x_12); -return x_35; -} -} -} -else -{ -x_9 = x_12; -goto _start; -} -} -else -{ -uint8_t x_37; +uint8_t x_18; +lean_dec(x_10); +x_18 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_16, x_15); lean_dec(x_15); -lean_dec(x_14); -x_37 = lean_nat_dec_eq(x_12, x_8); -if (x_37 == 0) +lean_dec(x_16); +if (x_18 == 0) { +lean_object* x_19; uint8_t x_20; +lean_dec(x_9); lean_dec(x_8); -x_8 = x_12; +x_19 = lean_array_get_size(x_7); +x_20 = lean_nat_dec_lt(x_13, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_7; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_array_fget(x_7, x_13); +x_22 = lean_box(0); +x_23 = lean_array_fset(x_7, x_13, x_22); +x_24 = !lean_is_exclusive(x_21); +if (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_21, 1); +x_26 = lean_ctor_get(x_21, 0); +lean_dec(x_26); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_5, x_27); +x_29 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_28, x_25); +lean_dec(x_28); +lean_ctor_set(x_21, 1, x_29); +lean_ctor_set(x_21, 0, x_6); +x_30 = lean_array_fset(x_23, x_13, x_21); +lean_dec(x_13); +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; +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_dec(x_21); +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_5, x_32); +x_34 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_33, x_31); +lean_dec(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_6); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_array_fset(x_23, x_13, x_35); +lean_dec(x_13); +return x_36; +} +} +} +else +{ +x_10 = x_13; +goto _start; +} +} +else +{ +uint8_t x_38; +lean_dec(x_16); +lean_dec(x_15); +x_38 = lean_nat_dec_eq(x_13, x_9); +if (x_38 == 0) +{ +lean_dec(x_9); +x_9 = x_13; goto _start; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_1); -x_39 = lean_unsigned_to_nat(1u); -x_40 = lean_nat_add(x_4, x_39); -x_41 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_40); -lean_dec(x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_5); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_nat_add(x_8, 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_dec(x_13); +lean_dec(x_10); lean_dec(x_8); -x_44 = l_Array_insertAt_x21___rarg(x_6, x_43, x_42); -lean_dec(x_43); -return x_44; +lean_dec(x_2); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_5, x_40); +x_42 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_41); +lean_dec(x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_6); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_nat_add(x_9, x_40); +lean_dec(x_9); +x_45 = l_Array_insertAt_x21___rarg(x_7, x_44, x_43); +lean_dec(x_44); +return x_45; } } } @@ -5144,221 +5537,221 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInser _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed), 10, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___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_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_8; -x_8 = l_Array_isEmpty___rarg(x_6); -if (x_8 == 0) +uint8_t x_9; +x_9 = l_Array_isEmpty___rarg(x_7); +if (x_9 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -x_10 = lean_array_get(x_7, x_6, x_9); -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_unsigned_to_nat(0u); +lean_inc(x_8); +x_11 = lean_array_get(x_8, x_7, x_10); +x_12 = lean_ctor_get(x_8, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_12); -if (x_13 == 0) -{ -uint8_t x_14; -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_11); -lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_12, x_13); if (x_14 == 0) { -lean_object* x_15; uint8_t x_16; -lean_dec(x_11); -lean_dec(x_7); -x_15 = lean_array_get_size(x_6); -x_16 = lean_nat_dec_lt(x_9, x_15); -lean_dec(x_15); -if (x_16 == 0) +uint8_t x_15; +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_12); +lean_dec(x_13); +if (x_15 == 0) { -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; +lean_object* x_16; uint8_t x_17; +lean_dec(x_12); +lean_dec(x_8); +x_16 = lean_array_get_size(x_7); +x_17 = lean_nat_dec_lt(x_10, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_7; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_17 = lean_array_fget(x_6, x_9); -x_18 = lean_box(0); -x_19 = lean_array_fset(x_6, x_9, x_18); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_array_fget(x_7, x_10); +x_19 = lean_box(0); +x_20 = lean_array_fset(x_7, x_10, x_19); +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 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_ctor_get(x_17, 1); -x_22 = lean_ctor_get(x_17, 0); -lean_dec(x_22); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_4, x_23); -x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_24, x_21); -lean_dec(x_24); -lean_ctor_set(x_17, 1, x_25); -lean_ctor_set(x_17, 0, x_5); -x_26 = lean_array_fset(x_19, x_9, x_17); -return x_26; +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_18, 1); +x_23 = lean_ctor_get(x_18, 0); +lean_dec(x_23); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_5, x_24); +x_26 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_25, x_22); +lean_dec(x_25); +lean_ctor_set(x_18, 1, x_26); +lean_ctor_set(x_18, 0, x_6); +x_27 = lean_array_fset(x_20, x_10, x_18); +return x_27; } 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; -x_27 = lean_ctor_get(x_17, 1); -lean_inc(x_27); -lean_dec(x_17); -x_28 = lean_unsigned_to_nat(1u); -x_29 = lean_nat_add(x_4, x_28); -x_30 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_29, x_27); -lean_dec(x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_5); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_array_fset(x_19, x_9, x_31); -return x_32; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_dec(x_18); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_add(x_5, x_29); +x_31 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_30, x_28); +lean_dec(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_6); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_fset(x_20, x_10, x_32); +return x_33; } } } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -lean_inc(x_7); -x_33 = l_Array_back___rarg(x_7, x_6); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -lean_dec(x_33); -x_35 = l_Lean_Meta_DiscrTree_Key_lt(x_34, x_11); -if (x_35 == 0) -{ -uint8_t x_36; -x_36 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_34); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_inc(x_8); +x_34 = l_Array_back___rarg(x_8, x_7); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); lean_dec(x_34); -lean_dec(x_11); +x_36 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_35, x_12); if (x_36 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -lean_dec(x_7); -x_37 = lean_array_get_size(x_6); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_sub(x_37, x_38); -x_40 = lean_nat_dec_lt(x_39, x_37); -lean_dec(x_37); -if (x_40 == 0) -{ -lean_dec(x_39); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_41 = lean_array_fget(x_6, x_39); -x_42 = lean_box(0); -x_43 = lean_array_fset(x_6, x_39, x_42); -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_45 = lean_ctor_get(x_41, 1); -x_46 = lean_ctor_get(x_41, 0); -lean_dec(x_46); -x_47 = lean_nat_add(x_4, x_38); -x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_47, x_45); -lean_dec(x_47); -lean_ctor_set(x_41, 1, x_48); -lean_ctor_set(x_41, 0, x_5); -x_49 = lean_array_fset(x_43, x_39, x_41); -lean_dec(x_39); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_41, 1); -lean_inc(x_50); -lean_dec(x_41); -x_51 = lean_nat_add(x_4, x_38); -x_52 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_51, x_50); -lean_dec(x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_5); -lean_ctor_set(x_53, 1, x_52); -x_54 = lean_array_fset(x_43, x_39, x_53); -lean_dec(x_39); -return x_54; -} -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_array_get_size(x_6); -x_56 = lean_unsigned_to_nat(1u); -x_57 = lean_nat_sub(x_55, x_56); -lean_dec(x_55); -x_58 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_57); -return x_58; -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_34); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_1); -x_59 = lean_unsigned_to_nat(1u); -x_60 = lean_nat_add(x_4, x_59); -x_61 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_60); -lean_dec(x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_5); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_array_push(x_6, x_62); -return x_63; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +uint8_t x_37; +x_37 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_12, x_35); +lean_dec(x_35); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_1); -x_64 = lean_unsigned_to_nat(1u); -x_65 = lean_nat_add(x_4, x_64); -x_66 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_65); -lean_dec(x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_5); -lean_ctor_set(x_67, 1, x_66); -x_68 = l_Array_insertAt_x21___rarg(x_6, x_9, x_67); -return x_68; +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_dec(x_8); +x_38 = lean_array_get_size(x_7); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_sub(x_38, x_39); +x_41 = lean_nat_dec_lt(x_40, x_38); +lean_dec(x_38); +if (x_41 == 0) +{ +lean_dec(x_40); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_7; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_array_fget(x_7, x_40); +x_43 = lean_box(0); +x_44 = lean_array_fset(x_7, x_40, x_43); +x_45 = !lean_is_exclusive(x_42); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_42, 1); +x_47 = lean_ctor_get(x_42, 0); +lean_dec(x_47); +x_48 = lean_nat_add(x_5, x_39); +x_49 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_48, x_46); +lean_dec(x_48); +lean_ctor_set(x_42, 1, x_49); +lean_ctor_set(x_42, 0, x_6); +x_50 = lean_array_fset(x_44, x_40, x_42); +lean_dec(x_40); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_42, 1); +lean_inc(x_51); +lean_dec(x_42); +x_52 = lean_nat_add(x_5, x_39); +x_53 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_52, x_51); +lean_dec(x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_6); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_array_fset(x_44, x_40, x_54); +lean_dec(x_40); +return x_55; +} } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_7); -lean_dec(x_1); -x_69 = lean_unsigned_to_nat(1u); -x_70 = lean_nat_add(x_4, x_69); -x_71 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_70); -lean_dec(x_70); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_5); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_array_push(x_6, x_72); -return x_73; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_array_get_size(x_7); +x_57 = lean_unsigned_to_nat(1u); +x_58 = lean_nat_sub(x_56, x_57); +lean_dec(x_56); +x_59 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_58); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_35); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_2); +x_60 = lean_unsigned_to_nat(1u); +x_61 = lean_nat_add(x_5, x_60); +x_62 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_61); +lean_dec(x_61); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_6); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_array_push(x_7, x_63); +return x_64; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_2); +x_65 = lean_unsigned_to_nat(1u); +x_66 = lean_nat_add(x_5, x_65); +x_67 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_66); +lean_dec(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_6); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Array_insertAt_x21___rarg(x_7, x_10, x_68); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_8); +lean_dec(x_2); +x_70 = lean_unsigned_to_nat(1u); +x_71 = lean_nat_add(x_5, x_70); +x_72 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_71); +lean_dec(x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_6); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_array_push(x_7, x_73); +return x_74; } } } @@ -5366,78 +5759,85 @@ LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0 _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed), 8, 0); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -x_9 = lean_array_get_size(x_2); -x_10 = lean_nat_dec_lt(x_4, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = lean_array_get_size(x_3); +x_11 = lean_nat_dec_lt(x_5, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; -x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(x_1, x_7, x_3); -lean_ctor_set(x_5, 0, x_11); -return x_5; +lean_object* x_12; +x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(x_2, x_8, x_4); +lean_ctor_set(x_6, 0, x_12); +return x_6; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_array_fget(x_2, x_4); -x_13 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -lean_inc(x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_12, x_8, x_14); -lean_ctor_set(x_5, 1, x_15); -return x_5; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_array_fget(x_3, x_5); +x_14 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +lean_ctor_set(x_6, 1, x_14); +lean_ctor_set(x_6, 0, x_14); +lean_inc(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_6); +x_16 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_13, x_9, x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_8); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_5); -x_18 = lean_array_get_size(x_2); -x_19 = lean_nat_dec_lt(x_4, x_18); -lean_dec(x_18); -if (x_19 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_6, 0); +x_19 = lean_ctor_get(x_6, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_6); +x_20 = lean_array_get_size(x_3); +x_21 = lean_nat_dec_lt(x_5, x_20); +lean_dec(x_20); +if (x_21 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(x_1, x_16, x_3); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_17); -return x_21; +lean_object* x_22; lean_object* x_23; +x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___rarg(x_2, x_18, x_4); +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; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_array_fget(x_2, x_4); -x_23 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -lean_inc(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_22, x_17, x_24); +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_array_fget(x_3, x_5); +x_25 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_16); +lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_24, x_19, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_18); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } @@ -5446,78 +5846,84 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(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); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___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_8; -x_8 = l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); return x_8; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___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_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -5526,7 +5932,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed), 6, 0); return x_2; } } @@ -5550,81 +5956,81 @@ x_3 = lean_usize_sub(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -5632,63 +6038,63 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_dec(x_5); -return x_6; +lean_dec(x_6); +return x_7; } else { -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); x_6 = x_20; +x_7 = x_21; goto _start; } } @@ -5697,97 +6103,97 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg___boxed), 7, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(uint8_t 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; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -5797,7 +6203,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg___boxed), 5, 0); return x_2; } } @@ -5809,274 +6215,274 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_1; +return x_2; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { case 0: { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; } else { -lean_object* x_25; +lean_object* x_26; +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); +lean_object* x_27; lean_object* x_28; uint8_t 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_inc(x_26); -lean_dec(x_15); -x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) +lean_dec(x_16); +x_29 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; } } } case 1: { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) { -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; } else { -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; } } default: { -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; } } } } else { -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { case 0: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; } else { - lean_dec_ref(x_57); - x_62 = lean_box(0); + lean_dec_ref(x_58); + x_63 = lean_box(0); } -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_62; + x_69 = x_63; } -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; } } case 1: { -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; } else { - lean_dec_ref(x_57); - x_72 = lean_box(0); + lean_dec_ref(x_58); + x_73 = lean_box(0); } -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); } else { - x_76 = x_72; + x_77 = x_73; } -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; } default: { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; } } } @@ -6084,90 +6490,90 @@ return x_81; } else { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_3, x_90, x_91, lean_box(0), x_83, x_92); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); -return x_93; +return x_94; } else { -return x_84; +return x_85; } } else { -return x_84; +return x_85; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) { -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_3, x_104, x_105, lean_box(0), x_97, x_106); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); lean_dec(x_105); -lean_dec(x_104); -return x_107; +return x_108; } else { -return x_98; +return x_99; } } else { -return x_98; +return x_99; } } } @@ -6177,50 +6583,50 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) { -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); -x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); -lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -6228,41 +6634,41 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTre _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_dec(x_5); -return x_6; +lean_dec(x_6); +return x_7; } else { -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); x_6 = x_20; +x_7 = x_21; goto _start; } } @@ -6271,97 +6677,97 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg___boxed), 7, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(uint8_t 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; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -6371,278 +6777,278 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg___boxed), 5, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_1; +return x_2; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { case 0: { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; } else { -lean_object* x_25; +lean_object* x_26; +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); +lean_object* x_27; lean_object* x_28; uint8_t 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_inc(x_26); -lean_dec(x_15); -x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) +lean_dec(x_16); +x_29 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; } } } case 1: { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) { -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; } else { -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; } } default: { -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; } } } } else { -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { case 0: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; } else { - lean_dec_ref(x_57); - x_62 = lean_box(0); + lean_dec_ref(x_58); + x_63 = lean_box(0); } -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_62; + x_69 = x_63; } -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; } } case 1: { -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; } else { - lean_dec_ref(x_57); - x_72 = lean_box(0); + lean_dec_ref(x_58); + x_73 = lean_box(0); } -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); } else { - x_76 = x_72; + x_77 = x_73; } -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; } default: { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; } } } @@ -6650,90 +7056,90 @@ return x_81; } else { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_3, x_90, x_91, lean_box(0), x_83, x_92); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); -return x_93; +return x_94; } else { -return x_84; +return x_85; } } else { -return x_84; +return x_85; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) { -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_3, x_104, x_105, lean_box(0), x_97, x_106); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); lean_dec(x_105); -lean_dec(x_104); -return x_107; +return x_108; } else { -return x_98; +return x_99; } } else { -return x_98; +return x_99; } } } @@ -6743,50 +7149,50 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) { -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); -x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); -lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -6794,169 +7200,11 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTre _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; -} -else -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; -goto _start; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed), 5, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { -case 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_12); -x_14 = lean_box(0); -return x_14; -} -else -{ -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; -} -} -case 1: -{ -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; -x_2 = x_17; -goto _start; -} -default: -{ -lean_object* x_19; -x_19 = lean_box(0); -return x_19; -} -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(x_20, x_21, lean_box(0), x_22, x_3); -lean_dec(x_21); -lean_dec(x_20); -return x_23; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed), 3, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(x_3, x_5, x_2); -lean_dec(x_2); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg), 2, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -6965,28 +7213,186 @@ x_8 = lean_nat_dec_lt(x_5, x_7); lean_dec(x_7); if (x_8 == 0) { +lean_object* x_9; lean_dec(x_5); -return x_6; +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_6, x_17, x_1, x_9, x_10); x_4 = lean_box(0); -x_5 = x_19; +x_5 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); +x_2 = x_17; +x_3 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +x_20 = lean_box(0); +return x_20; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); +lean_dec(x_21); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed), 4, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg___boxed), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); x_6 = x_20; +x_7 = x_21; goto _start; } } @@ -6995,97 +7401,97 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg___boxed), 7, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(uint8_t 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; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -7095,278 +7501,278 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg___boxed), 5, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_1; +return x_2; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { case 0: { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; } else { -lean_object* x_25; +lean_object* x_26; +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); +lean_object* x_27; lean_object* x_28; uint8_t 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_inc(x_26); -lean_dec(x_15); -x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) +lean_dec(x_16); +x_29 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; } } } case 1: { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) { -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; } else { -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; } } default: { -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; } } } } else { -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { case 0: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; } else { - lean_dec_ref(x_57); - x_62 = lean_box(0); + lean_dec_ref(x_58); + x_63 = lean_box(0); } -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_62; + x_69 = x_63; } -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; } } case 1: { -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; } else { - lean_dec_ref(x_57); - x_72 = lean_box(0); + lean_dec_ref(x_58); + x_73 = lean_box(0); } -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); } else { - x_76 = x_72; + x_77 = x_73; } -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; } default: { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; } } } @@ -7374,90 +7780,90 @@ return x_81; } else { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_3, x_90, x_91, lean_box(0), x_83, x_92); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); -return x_93; +return x_94; } else { -return x_84; +return x_85; } } else { -return x_84; +return x_85; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) { -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_3, x_104, x_105, lean_box(0), x_97, x_106); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); lean_dec(x_105); -lean_dec(x_104); -return x_107; +return x_108; } else { -return x_98; +return x_99; } } else { -return x_98; +return x_99; } } } @@ -7467,50 +7873,50 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) { -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); -x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); -lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -7518,41 +7924,41 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTre _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_dec(x_5); -return x_6; +lean_dec(x_6); +return x_7; } else { -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); x_6 = x_20; +x_7 = x_21; goto _start; } } @@ -7561,97 +7967,97 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg___boxed), 7, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(uint8_t 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; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -7661,278 +8067,278 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg___boxed), 5, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_1; +return x_2; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { case 0: { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; } else { -lean_object* x_25; +lean_object* x_26; +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); +lean_object* x_27; lean_object* x_28; uint8_t 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_inc(x_26); -lean_dec(x_15); -x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) +lean_dec(x_16); +x_29 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; } } } case 1: { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) { -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; } else { -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; } } default: { -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; } } } } else { -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { case 0: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; } else { - lean_dec_ref(x_57); - x_62 = lean_box(0); + lean_dec_ref(x_58); + x_63 = lean_box(0); } -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_62; + x_69 = x_63; } -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; } } case 1: { -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; } else { - lean_dec_ref(x_57); - x_72 = lean_box(0); + lean_dec_ref(x_58); + x_73 = lean_box(0); } -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); } else { - x_76 = x_72; + x_77 = x_73; } -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; } default: { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; } } } @@ -7940,90 +8346,90 @@ return x_81; } else { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_3, x_90, x_91, lean_box(0), x_83, x_92); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); -return x_93; +return x_94; } else { -return x_84; +return x_85; } } else { -return x_84; +return x_85; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) { -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_3, x_104, x_105, lean_box(0), x_97, x_106); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); lean_dec(x_105); -lean_dec(x_104); -return x_107; +return x_108; } else { -return x_98; +return x_99; } } else { -return x_98; +return x_99; } } } @@ -8033,50 +8439,50 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) { -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); -x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); -lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -8084,32 +8490,24 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTre _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg___boxed), 4, 0); return x_2; } } -static lean_object* _init_l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1() { +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0)); -return x_1; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0), x_1); +x_4 = lean_panic_fn(x_3, x_2); +return x_4; } } LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___boxed), 2, 0); return x_2; } } @@ -8143,97 +8541,101 @@ _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_DiscrTree_insertCore___rarg___closed__1; x_2 = l_Lean_Meta_DiscrTree_insertCore___rarg___closed__2; -x_3 = lean_unsigned_to_nat(350u); +x_3 = lean_unsigned_to_nat(358u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_DiscrTree_insertCore___rarg___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_5; -x_5 = l_Array_isEmpty___rarg(x_3); -if (x_5 == 0) +uint8_t x_6; +x_6 = l_Array_isEmpty___rarg(x_4); +if (x_6 == 0) { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_array_get_size(x_3); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -lean_dec(x_6); -if (x_8 == 0) +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_box(0); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +x_10 = lean_array_get_size(x_4); +x_11 = lean_nat_dec_lt(x_8, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Meta_DiscrTree_instInhabitedKey; -x_10 = l___private_Init_Util_0__outOfBounds___rarg(x_9); -lean_inc(x_10); -lean_inc(x_2); -x_11 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(x_2, x_10); -if (lean_obj_tag(x_11) == 0) +lean_object* x_12; lean_object* x_13; +x_12 = l___private_Init_Util_0__outOfBounds___rarg(x_9); +lean_inc(x_12); +lean_inc(x_3); +x_13 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(x_1, x_3, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_1); -x_12 = lean_unsigned_to_nat(1u); -x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_3, x_4, x_12); -lean_dec(x_3); -x_14 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(x_2, x_10, x_13); -return x_14; +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_2); +x_14 = lean_unsigned_to_nat(1u); +x_15 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_4, x_5, x_14); +lean_dec(x_4); +x_16 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(x_1, x_3, x_12, x_15); +return x_16; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -lean_inc(x_15); -lean_dec(x_11); -x_16 = lean_unsigned_to_nat(1u); -x_17 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_3, x_4, x_16, x_15); -lean_dec(x_3); -x_18 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(x_2, x_10, x_17); -return x_18; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_unsigned_to_nat(1u); +x_19 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_4, x_5, x_18, x_17); +lean_dec(x_4); +x_20 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(x_1, x_3, x_12, x_19); +return x_20; } } else { -lean_object* x_19; lean_object* x_20; -x_19 = lean_array_fget(x_3, x_7); -lean_inc(x_19); -lean_inc(x_2); -x_20 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(x_2, x_19); -if (lean_obj_tag(x_20) == 0) +lean_object* x_21; lean_object* x_22; +lean_dec(x_9); +x_21 = lean_array_fget(x_4, x_8); +lean_inc(x_21); +lean_inc(x_3); +x_22 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(x_1, x_3, x_21); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_1); -x_21 = lean_unsigned_to_nat(1u); -x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_3, x_4, x_21); -lean_dec(x_3); -x_23 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(x_2, x_19, x_22); -return x_23; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(1u); +x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_4, x_5, x_23); +lean_dec(x_4); +x_25 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(x_1, x_3, x_21, x_24); +return x_25; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -lean_dec(x_20); -x_25 = lean_unsigned_to_nat(1u); -x_26 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_3, x_4, x_25, x_24); -lean_dec(x_3); -x_27 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(x_2, x_19, x_26); -return x_27; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_22, 0); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_unsigned_to_nat(1u); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(x_1, x_2, x_4, x_5, x_27, x_26); +lean_dec(x_4); +x_29 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(x_1, x_3, x_21, x_28); +return x_29; } } } else { -lean_object* x_28; lean_object* x_29; +lean_object* x_30; lean_object* x_31; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_28 = l_Lean_Meta_DiscrTree_insertCore___rarg___closed__4; -x_29 = l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(x_28); -return x_29; +x_30 = l_Lean_Meta_DiscrTree_insertCore___rarg___closed__4; +x_31 = l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(x_1, x_30); +return x_31; } } } @@ -8241,205 +8643,349 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_insertCore___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_insertCore___rarg___boxed), 5, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(x_1, x_4, x_3); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); lean_dec(x_3); -return x_5; +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___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_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___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: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___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_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(x_1, x_4, x_3); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___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: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___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_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___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: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___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_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___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; -x_10 = l_Lean_Meta_DiscrTree_mkPath(x_3, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Meta_DiscrTree_insertCore___rarg(x_1, x_2, x_12, x_4); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l_Lean_Meta_DiscrTree_insertCore___rarg(x_1, x_2, x_14, x_4); -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 -{ -uint8_t x_18; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg(x_5, x_2, x_6, x_4); lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); return x_10; } +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__7___rarg(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__4___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__11___rarg(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__9___rarg(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__8___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_insertCore___spec__14___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__13___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_insertCore___spec__12___rarg(x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__17___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__18___rarg(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__16___rarg(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__15___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__21___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_DiscrTree_insertCore___spec__22___rarg(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__20___rarg(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_DiscrTree_insertCore___spec__19___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___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_Meta_DiscrTree_insertCore___rarg(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_DiscrTree_mkPath(x_1, x_4, x_6, x_7, x_8, x_9, x_10); +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; +x_13 = lean_ctor_get(x_11, 0); +x_14 = l_Lean_Meta_DiscrTree_insertCore___rarg(x_1, x_2, x_3, x_13, x_5); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = l_Lean_Meta_DiscrTree_insertCore___rarg(x_1, x_2, x_3, x_15, x_5); +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 +{ +uint8_t x_19; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_10); -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; +lean_dec(x_11); +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; } } } @@ -8448,10 +8994,20 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_insert___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_insert___rarg___boxed), 10, 0); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insert___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Meta_DiscrTree_insert___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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: { @@ -8547,62 +9103,38 @@ return x_23; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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) { _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; -x_9 = lean_unsigned_to_nat(0u); -x_10 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_9); -lean_inc(x_10); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_2); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_mk_empty_array_with_capacity(x_10); -lean_dec(x_10); -x_13 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_13); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_10); +lean_inc(x_11); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_mk_empty_array_with_capacity(x_11); +lean_dec(x_11); +x_14 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, 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_8); -return x_15; +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, 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_9); +return x_16; } } static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(4); -x_2 = l_Lean_Meta_DiscrTree_instInhabitedTrie___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); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(3); -x_2 = l_Lean_Meta_DiscrTree_instInhabitedTrie___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); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_levelZero; x_2 = l_Lean_Expr_sort___override(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4() { +static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -8611,414 +9143,438 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(uint8_t 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) { _start: { -lean_object* x_9; +lean_object* x_10; +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_9 = l_Lean_Meta_DiscrTree_whnfDT(x_1, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) +x_10 = l_Lean_Meta_DiscrTree_reduceDT(x_2, x_4, x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 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_9, 1); -x_13 = l_Lean_Expr_getAppFn(x_11); -switch (lean_obj_tag(x_13)) { +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); +x_14 = l_Lean_Expr_getAppFn(x_12); +switch (lean_obj_tag(x_14)) { case 1: { -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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_11, x_15); -lean_inc(x_16); -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 = lean_mk_empty_array_with_capacity(x_16); -lean_dec(x_16); -x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_11, x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_17); -lean_ctor_set(x_20, 1, x_19); -lean_ctor_set(x_9, 0, x_20); -return x_9; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_16); +lean_inc(x_17); +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 = lean_mk_empty_array_with_capacity(x_17); +lean_dec(x_17); +x_20 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_12, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_10, 0, x_21); +return x_10; } case 2: { -lean_dec(x_11); -if (x_2 == 0) +lean_dec(x_12); +if (x_3 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_4, 0); -lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_21, 4); -lean_dec(x_21); -if (x_22 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_5, 0); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_22, 4); +lean_dec(x_22); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; -lean_free_object(x_9); -x_23 = lean_ctor_get(x_13, 0); -lean_inc(x_23); -lean_dec(x_13); -x_24 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_23, x_4, x_5, x_6, x_7, x_12); +lean_object* x_24; lean_object* x_25; +lean_free_object(x_10); +x_24 = lean_ctor_get(x_14, 0); +lean_inc(x_24); +lean_dec(x_14); +x_25 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_24, x_5, x_6, x_7, x_8, x_13); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_24) == 0) +if (lean_obj_tag(x_25) == 0) { -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_unbox(x_25); -lean_dec(x_25); -if (x_26 == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_24); +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); if (x_27 == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_24, 0); -lean_dec(x_28); -x_29 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; -lean_ctor_set(x_24, 0, x_29); -return x_24; -} -else +uint8_t x_28; +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_24, 1); -lean_inc(x_30); -lean_dec(x_24); -x_31 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_25, 0); +lean_dec(x_29); +x_30 = lean_box(3); +x_31 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_25, 0, x_32); +return x_25; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_25, 1); +lean_inc(x_33); +lean_dec(x_25); +x_34 = lean_box(3); +x_35 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +return x_37; } } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_24); -if (x_33 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_25); +if (x_38 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_24, 0); -lean_dec(x_34); -x_35 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -lean_ctor_set(x_24, 0, x_35); -return x_24; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_24, 1); -lean_inc(x_36); -lean_dec(x_24); -x_37 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} -} -} -else -{ -uint8_t x_39; -x_39 = !lean_is_exclusive(x_24); -if (x_39 == 0) -{ -return x_24; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_24, 0); -x_41 = lean_ctor_get(x_24, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_24); -x_42 = lean_alloc_ctor(1, 2, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_25, 0); +lean_dec(x_39); +x_40 = lean_box(4); +x_41 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_42 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_ctor_set(x_25, 0, x_42); +return x_25; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_25, 1); +lean_inc(x_43); +lean_dec(x_25); +x_44 = lean_box(4); +x_45 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_44); +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_43); +return x_47; } } } else { -lean_object* x_43; -lean_dec(x_13); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_43 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; -lean_ctor_set(x_9, 0, x_43); -return x_9; +uint8_t x_48; +x_48 = !lean_is_exclusive(x_25); +if (x_48 == 0) +{ +return x_25; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_25, 0); +x_50 = lean_ctor_get(x_25, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_25); +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 { -lean_object* x_44; -lean_dec(x_13); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_14); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_44 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -lean_ctor_set(x_9, 0, x_44); -return x_9; +x_52 = lean_box(3); +x_53 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_10, 0, x_54); +return x_10; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_55 = lean_box(4); +x_56 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_10, 0, x_57); +return x_10; } } case 4: { -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_free_object(x_9); -x_45 = lean_ctor_get(x_13, 0); -lean_inc(x_45); -lean_dec(x_13); -x_46 = l_Lean_Meta_getConfig(x_4, x_5, x_6, x_7, x_12); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get_uint8(x_47, 4); -lean_dec(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = lean_box(0); -x_51 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_11, x_45, x_50, x_4, x_5, x_6, x_7, x_49); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_51; -} -else -{ -lean_object* x_52; uint8_t x_53; -x_52 = lean_ctor_get(x_46, 1); -lean_inc(x_52); -lean_dec(x_46); -x_53 = l_Lean_Expr_hasExprMVar(x_11); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_box(0); -x_55 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_11, x_45, x_54, x_4, x_5, x_6, x_7, x_52); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_inc(x_45); -x_56 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_45, x_4, x_5, x_6, x_7, x_52); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_unbox(x_57); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -x_60 = lean_st_ref_get(x_7, x_59); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_free_object(x_10); +x_58 = lean_ctor_get(x_14, 0); +lean_inc(x_58); +lean_dec(x_14); +x_59 = l_Lean_Meta_getConfig(x_5, x_6, x_7, x_8, x_13); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get_uint8(x_60, 4); lean_dec(x_60); -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); -lean_dec(x_61); -x_64 = l_Lean_Meta_isMatcherAppCore_x3f(x_63, x_11); -if (lean_obj_tag(x_64) == 0) +if (x_61 == 0) { -lean_object* x_65; lean_object* x_66; uint8_t x_67; -lean_inc(x_45); -x_65 = l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1(x_45, x_4, x_5, x_6, x_7, x_62); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_unbox(x_66); -lean_dec(x_66); -if (x_67 == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = lean_box(0); -x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_11, x_45, x_69, x_4, x_5, x_6, x_7, x_68); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_box(0); +x_64 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_12, x_1, x_58, x_63, x_5, x_6, x_7, x_8, x_62); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_70; +return x_64; } else { -lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_45); -lean_dec(x_11); +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +lean_dec(x_59); +x_66 = l_Lean_Expr_hasExprMVar(x_12); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_12, x_1, x_58, x_67, x_5, x_6, x_7, x_8, x_65); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_71 = lean_ctor_get(x_65, 1); -lean_inc(x_71); -lean_dec(x_65); -x_72 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_71); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -return x_72; +return x_68; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); +lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_inc(x_58); +x_69 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_58, x_5, x_6, x_7, x_8, x_65); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_unbox(x_70); +lean_dec(x_70); +if (x_71 == 0) +{ +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_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = lean_st_ref_get(x_8, x_72); +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -lean_dec(x_72); -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; -} -} -} -else +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +lean_dec(x_74); +x_77 = l_Lean_Meta_isMatcherAppCore_x3f(x_76, x_12); +if (lean_obj_tag(x_77) == 0) { -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; size_t x_90; lean_object* x_91; size_t x_92; lean_object* x_93; lean_object* x_94; -x_77 = lean_ctor_get(x_64, 0); -lean_inc(x_77); -lean_dec(x_64); -x_78 = lean_unsigned_to_nat(0u); -x_79 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_11, x_78); -x_80 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3; +lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_inc(x_58); +x_78 = l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1(x_58, x_5, x_6, x_7, x_8, x_75); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -x_81 = lean_mk_array(x_79, x_80); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_nat_sub(x_79, x_82); +x_80 = lean_unbox(x_79); lean_dec(x_79); -lean_inc(x_11); -x_84 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_11, x_81, x_83); -x_85 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_77); -x_86 = lean_ctor_get(x_77, 1); -lean_inc(x_86); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_dec(x_78); +x_82 = lean_box(0); +x_83 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_12, x_1, x_58, x_82, x_5, x_6, x_7, x_8, x_81); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_83; +} +else +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; +lean_dec(x_58); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +lean_dec(x_78); +x_85 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_84); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +return x_85; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_85, 0); +x_88 = lean_ctor_get(x_85, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_85); +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; +} +} +} +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; lean_object* x_102; size_t x_103; lean_object* x_104; size_t x_105; lean_object* x_106; lean_object* x_107; +x_90 = lean_ctor_get(x_77, 0); +lean_inc(x_90); lean_dec(x_77); -x_87 = lean_nat_add(x_85, x_86); -lean_dec(x_86); -x_88 = l_Array_toSubarray___rarg(x_84, x_85, x_87); -x_89 = lean_ctor_get(x_88, 2); -lean_inc(x_89); -x_90 = lean_usize_of_nat(x_89); -lean_dec(x_89); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -x_92 = lean_usize_of_nat(x_91); -lean_dec(x_91); -x_93 = lean_box(0); -x_94 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2(x_88, x_90, x_92, x_93, x_4, x_5, x_6, x_7, x_62); -lean_dec(x_88); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_11, x_45, x_93, x_4, x_5, x_6, x_7, x_95); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_96; -} -else -{ -uint8_t x_97; -lean_dec(x_45); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_97 = !lean_is_exclusive(x_94); -if (x_97 == 0) -{ -return x_94; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_94, 0); -x_99 = lean_ctor_get(x_94, 1); +x_91 = lean_unsigned_to_nat(0u); +x_92 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_91); +x_93 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; +lean_inc(x_92); +x_94 = lean_mk_array(x_92, x_93); +x_95 = lean_unsigned_to_nat(1u); +x_96 = lean_nat_sub(x_92, x_95); +lean_dec(x_92); +lean_inc(x_12); +x_97 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_94, x_96); +x_98 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_90); +x_99 = lean_ctor_get(x_90, 1); lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_94); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -} -else +lean_dec(x_90); +x_100 = lean_nat_add(x_98, x_99); +lean_dec(x_99); +x_101 = l_Array_toSubarray___rarg(x_97, x_98, x_100); +x_102 = lean_ctor_get(x_101, 2); +lean_inc(x_102); +x_103 = lean_usize_of_nat(x_102); +lean_dec(x_102); +x_104 = lean_ctor_get(x_101, 1); +lean_inc(x_104); +x_105 = lean_usize_of_nat(x_104); +lean_dec(x_104); +x_106 = lean_box(0); +x_107 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2(x_101, x_103, x_105, x_106, x_5, x_6, x_7, x_8, x_75); +lean_dec(x_101); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_101; lean_object* x_102; uint8_t x_103; -lean_dec(x_45); -lean_dec(x_11); +lean_object* x_108; lean_object* x_109; +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_12, x_1, x_58, x_106, x_5, x_6, x_7, x_8, x_108); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_101 = lean_ctor_get(x_56, 1); -lean_inc(x_101); -lean_dec(x_56); -x_102 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_101); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) -{ -return x_102; +return x_109; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 0); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_102); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; +uint8_t x_110; +lean_dec(x_58); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_110 = !lean_is_exclusive(x_107); +if (x_110 == 0) +{ +return x_107; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_107, 0); +x_112 = lean_ctor_get(x_107, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_107); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; +lean_dec(x_58); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_114 = lean_ctor_get(x_69, 1); +lean_inc(x_114); +lean_dec(x_69); +x_115 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_114); +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) +{ +return x_115; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_115, 0); +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_115); +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; } } } @@ -9026,644 +9582,676 @@ return x_106; } case 7: { -lean_object* x_107; lean_object* x_108; uint8_t x_109; -lean_dec(x_11); +lean_object* x_120; lean_object* x_121; uint8_t x_122; +lean_dec(x_12); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_107 = lean_ctor_get(x_13, 1); -lean_inc(x_107); -x_108 = lean_ctor_get(x_13, 2); -lean_inc(x_108); -lean_dec(x_13); -x_109 = l_Lean_Expr_hasLooseBVars(x_108); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_110 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4; -x_111 = lean_array_push(x_110, x_107); -x_112 = lean_array_push(x_111, x_108); -x_113 = lean_box(5); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -lean_ctor_set(x_9, 0, x_114); -return x_9; -} -else -{ -lean_object* x_115; -lean_dec(x_108); -lean_dec(x_107); -x_115 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -lean_ctor_set(x_9, 0, x_115); -return x_9; -} -} -case 9: -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_116 = lean_ctor_get(x_13, 0); -lean_inc(x_116); -lean_dec(x_13); -x_117 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_117, 0, x_116); -x_118 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set(x_9, 0, x_119); -return x_9; -} -case 11: -{ -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_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_120 = lean_ctor_get(x_13, 0); +x_120 = lean_ctor_get(x_14, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_13, 1); +x_121 = lean_ctor_get(x_14, 2); lean_inc(x_121); -x_122 = lean_ctor_get(x_13, 2); -lean_inc(x_122); -lean_dec(x_13); -x_123 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -x_124 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1; -x_125 = lean_array_push(x_124, x_122); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_9, 0, x_126); -return x_9; -} -default: +lean_dec(x_14); +x_122 = l_Lean_Expr_hasLooseBVars(x_121); +if (x_122 == 0) { -lean_object* x_127; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_127 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -lean_ctor_set(x_9, 0, x_127); -return x_9; -} -} +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_123 = lean_box(5); +x_124 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; +x_125 = lean_array_push(x_124, x_120); +x_126 = lean_array_push(x_125, x_121); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_126); +lean_ctor_set(x_10, 0, x_127); +return x_10; } else { lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_9, 0); -x_129 = lean_ctor_get(x_9, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_9); -x_130 = l_Lean_Expr_getAppFn(x_128); -switch (lean_obj_tag(x_130)) { -case 1: +lean_dec(x_121); +lean_dec(x_120); +x_128 = lean_box(4); +x_129 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +lean_ctor_set(x_10, 0, x_130); +return x_10; +} +} +case 9: { -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_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_12); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 0); +x_131 = lean_ctor_get(x_14, 0); lean_inc(x_131); -lean_dec(x_130); -x_132 = lean_unsigned_to_nat(0u); -x_133 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_128, x_132); -lean_inc(x_133); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_131); +lean_dec(x_14); +x_132 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_132, 0, x_131); +x_133 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); -x_135 = lean_mk_empty_array_with_capacity(x_133); -lean_dec(x_133); -x_136 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_128, x_135); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, 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; +lean_ctor_set(x_10, 0, x_134); +return x_10; +} +case 11: +{ +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_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_135 = lean_ctor_get(x_14, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_14, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_14, 2); +lean_inc(x_137); +lean_dec(x_14); +x_138 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +x_139 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1; +x_140 = lean_array_push(x_139, x_137); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_138); +lean_ctor_set(x_141, 1, x_140); +lean_ctor_set(x_10, 0, x_141); +return x_10; +} +default: +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_142 = lean_box(4); +x_143 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +lean_ctor_set(x_10, 0, x_144); +return x_10; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_10, 0); +x_146 = lean_ctor_get(x_10, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_10); +x_147 = l_Lean_Expr_getAppFn(x_145); +switch (lean_obj_tag(x_147)) { +case 1: +{ +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_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +lean_dec(x_147); +x_149 = lean_unsigned_to_nat(0u); +x_150 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_145, x_149); +lean_inc(x_150); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_150); +x_152 = lean_mk_empty_array_with_capacity(x_150); +lean_dec(x_150); +x_153 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_145, x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_146); +return x_155; } case 2: { -lean_dec(x_128); -if (x_2 == 0) +lean_dec(x_145); +if (x_3 == 0) { -lean_object* x_139; uint8_t x_140; -x_139 = lean_ctor_get(x_4, 0); -lean_inc(x_139); -x_140 = lean_ctor_get_uint8(x_139, 4); -lean_dec(x_139); -if (x_140 == 0) +lean_object* x_156; uint8_t x_157; +x_156 = lean_ctor_get(x_5, 0); +lean_inc(x_156); +x_157 = lean_ctor_get_uint8(x_156, 4); +lean_dec(x_156); +if (x_157 == 0) { -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_130, 0); -lean_inc(x_141); -lean_dec(x_130); -x_142 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_141, x_4, x_5, x_6, x_7, x_129); +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_147, 0); +lean_inc(x_158); +lean_dec(x_147); +x_159 = l_Lean_MVarId_isReadOnlyOrSyntheticOpaque(x_158, x_5, x_6, x_7, x_8, x_146); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_142) == 0) +if (lean_obj_tag(x_159) == 0) { -lean_object* x_143; uint8_t x_144; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_unbox(x_143); -lean_dec(x_143); -if (x_144 == 0) +lean_object* x_160; uint8_t x_161; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_unbox(x_160); +lean_dec(x_160); +if (x_161 == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_146 = x_142; +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_162 = lean_ctor_get(x_159, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_163 = x_159; } else { - lean_dec_ref(x_142); - x_146 = lean_box(0); + lean_dec_ref(x_159); + x_163 = lean_box(0); } -x_147 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; -if (lean_is_scalar(x_146)) { - x_148 = lean_alloc_ctor(0, 2, 0); +x_164 = lean_box(3); +x_165 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +if (lean_is_scalar(x_163)) { + x_167 = lean_alloc_ctor(0, 2, 0); } else { - x_148 = x_146; + x_167 = x_163; } -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_145); -return x_148; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -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); -} -x_151 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 2, 0); -} else { - x_152 = x_150; -} -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_149); -return x_152; -} -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_153 = lean_ctor_get(x_142, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_142, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_155 = x_142; -} else { - lean_dec_ref(x_142); - x_155 = lean_box(0); -} -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); -} else { - x_156 = x_155; -} -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return x_156; -} -} -else -{ -lean_object* x_157; lean_object* x_158; -lean_dec(x_130); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_157 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_129); -return x_158; -} -} -else -{ -lean_object* x_159; lean_object* x_160; -lean_dec(x_130); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_159 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_129); -return x_160; -} -} -case 4: -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; -x_161 = lean_ctor_get(x_130, 0); -lean_inc(x_161); -lean_dec(x_130); -x_162 = l_Lean_Meta_getConfig(x_4, x_5, x_6, x_7, x_129); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get_uint8(x_163, 4); -lean_dec(x_163); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_166 = lean_box(0); -x_167 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_128, x_161, x_166, x_4, x_5, x_6, x_7, x_165); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_162); return x_167; } else { -lean_object* x_168; uint8_t x_169; -x_168 = lean_ctor_get(x_162, 1); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_168 = lean_ctor_get(x_159, 1); lean_inc(x_168); -lean_dec(x_162); -x_169 = l_Lean_Expr_hasExprMVar(x_128); -if (x_169 == 0) -{ -lean_object* x_170; lean_object* x_171; -x_170 = lean_box(0); -x_171 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_128, x_161, x_170, x_4, x_5, x_6, x_7, x_168); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_171; +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_169 = x_159; +} else { + lean_dec_ref(x_159); + x_169 = lean_box(0); +} +x_170 = lean_box(4); +x_171 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +if (lean_is_scalar(x_169)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_169; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_168); +return x_173; +} } else { -lean_object* x_172; lean_object* x_173; uint8_t x_174; -lean_inc(x_161); -x_172 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_161, x_4, x_5, x_6, x_7, x_168); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_unbox(x_173); -lean_dec(x_173); -if (x_174 == 0) -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_175 = lean_ctor_get(x_172, 1); +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_174 = lean_ctor_get(x_159, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_159, 1); lean_inc(x_175); -lean_dec(x_172); -x_176 = lean_st_ref_get(x_7, x_175); -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_179 = lean_ctor_get(x_177, 0); -lean_inc(x_179); -lean_dec(x_177); -x_180 = l_Lean_Meta_isMatcherAppCore_x3f(x_179, x_128); -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_181; lean_object* x_182; uint8_t x_183; -lean_inc(x_161); -x_181 = l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1(x_161, x_4, x_5, x_6, x_7, x_178); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = lean_box(0); -x_186 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_128, x_161, x_185, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_186; +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_176 = x_159; +} else { + lean_dec_ref(x_159); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} } else { -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_dec(x_161); -lean_dec(x_128); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_147); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_187 = lean_ctor_get(x_181, 1); -lean_inc(x_187); -lean_dec(x_181); -x_188 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_187); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); +x_178 = lean_box(3); +x_179 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +x_181 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_146); +return x_181; +} +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_147); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_182 = lean_box(4); +x_183 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +x_185 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_146); +return x_185; +} +} +case 4: +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_186 = lean_ctor_get(x_147, 0); +lean_inc(x_186); +lean_dec(x_147); +x_187 = l_Lean_Meta_getConfig(x_5, x_6, x_7, x_8, x_146); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get_uint8(x_188, 4); +lean_dec(x_188); +if (x_189 == 0) +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_191 = x_188; -} else { - lean_dec_ref(x_188); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); +lean_dec(x_187); +x_191 = lean_box(0); +x_192 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_145, x_1, x_186, x_191, x_5, x_6, x_7, x_8, x_190); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_192; } -} else { -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; size_t x_206; lean_object* x_207; size_t x_208; lean_object* x_209; lean_object* x_210; -x_193 = lean_ctor_get(x_180, 0); +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_187, 1); lean_inc(x_193); -lean_dec(x_180); -x_194 = lean_unsigned_to_nat(0u); -x_195 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_128, x_194); -x_196 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3; -lean_inc(x_195); -x_197 = lean_mk_array(x_195, x_196); -x_198 = lean_unsigned_to_nat(1u); -x_199 = lean_nat_sub(x_195, x_198); -lean_dec(x_195); -lean_inc(x_128); -x_200 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_128, x_197, x_199); -x_201 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_193); -x_202 = lean_ctor_get(x_193, 1); +lean_dec(x_187); +x_194 = l_Lean_Expr_hasExprMVar(x_145); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; +x_195 = lean_box(0); +x_196 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_145, x_1, x_186, x_195, x_5, x_6, x_7, x_8, x_193); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_196; +} +else +{ +lean_object* x_197; lean_object* x_198; uint8_t x_199; +lean_inc(x_186); +x_197 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_186, x_5, x_6, x_7, x_8, x_193); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_unbox(x_198); +lean_dec(x_198); +if (x_199 == 0) +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_200 = lean_ctor_get(x_197, 1); +lean_inc(x_200); +lean_dec(x_197); +x_201 = lean_st_ref_get(x_8, x_200); +x_202 = lean_ctor_get(x_201, 0); lean_inc(x_202); -lean_dec(x_193); -x_203 = lean_nat_add(x_201, x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = lean_ctor_get(x_202, 0); +lean_inc(x_204); lean_dec(x_202); -x_204 = l_Array_toSubarray___rarg(x_200, x_201, x_203); -x_205 = lean_ctor_get(x_204, 2); -lean_inc(x_205); -x_206 = lean_usize_of_nat(x_205); -lean_dec(x_205); -x_207 = lean_ctor_get(x_204, 1); +x_205 = l_Lean_Meta_isMatcherAppCore_x3f(x_204, x_145); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; lean_object* x_207; uint8_t x_208; +lean_inc(x_186); +x_206 = l_Lean_isRec___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__1(x_186, x_5, x_6, x_7, x_8, x_203); +x_207 = lean_ctor_get(x_206, 0); lean_inc(x_207); -x_208 = lean_usize_of_nat(x_207); +x_208 = lean_unbox(x_207); lean_dec(x_207); -x_209 = lean_box(0); -x_210 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2(x_204, x_206, x_208, x_209, x_4, x_5, x_6, x_7, x_178); -lean_dec(x_204); -if (lean_obj_tag(x_210) == 0) +if (x_208 == 0) { -lean_object* x_211; lean_object* x_212; -x_211 = lean_ctor_get(x_210, 1); -lean_inc(x_211); -lean_dec(x_210); -x_212 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_128, x_161, x_209, x_4, x_5, x_6, x_7, x_211); +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_206, 1); +lean_inc(x_209); +lean_dec(x_206); +x_210 = lean_box(0); +x_211 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_145, x_1, x_186, x_210, x_5, x_6, x_7, x_8, x_209); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_212; +return x_211; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -lean_dec(x_161); -lean_dec(x_128); +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_186); +lean_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_213 = lean_ctor_get(x_210, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_210, 1); +x_212 = lean_ctor_get(x_206, 1); +lean_inc(x_212); +lean_dec(x_206); +x_213 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_212); +x_214 = lean_ctor_get(x_213, 0); lean_inc(x_214); -if (lean_is_exclusive(x_210)) { - lean_ctor_release(x_210, 0); - lean_ctor_release(x_210, 1); - x_215 = x_210; +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_216 = x_213; } else { - lean_dec_ref(x_210); - x_215 = lean_box(0); + lean_dec_ref(x_213); + x_216 = lean_box(0); } -if (lean_is_scalar(x_215)) { - x_216 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_216)) { + x_217 = lean_alloc_ctor(1, 2, 0); } else { - x_216 = x_215; + x_217 = x_216; } -lean_ctor_set(x_216, 0, x_213); -lean_ctor_set(x_216, 1, x_214); -return x_216; +lean_ctor_set(x_217, 0, x_214); +lean_ctor_set(x_217, 1, x_215); +return x_217; +} +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; size_t x_231; lean_object* x_232; size_t x_233; lean_object* x_234; lean_object* x_235; +x_218 = lean_ctor_get(x_205, 0); +lean_inc(x_218); +lean_dec(x_205); +x_219 = lean_unsigned_to_nat(0u); +x_220 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_145, x_219); +x_221 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; +lean_inc(x_220); +x_222 = lean_mk_array(x_220, x_221); +x_223 = lean_unsigned_to_nat(1u); +x_224 = lean_nat_sub(x_220, x_223); +lean_dec(x_220); +lean_inc(x_145); +x_225 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_145, x_222, x_224); +x_226 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_218); +x_227 = lean_ctor_get(x_218, 1); +lean_inc(x_227); +lean_dec(x_218); +x_228 = lean_nat_add(x_226, x_227); +lean_dec(x_227); +x_229 = l_Array_toSubarray___rarg(x_225, x_226, x_228); +x_230 = lean_ctor_get(x_229, 2); +lean_inc(x_230); +x_231 = lean_usize_of_nat(x_230); +lean_dec(x_230); +x_232 = lean_ctor_get(x_229, 1); +lean_inc(x_232); +x_233 = lean_usize_of_nat(x_232); +lean_dec(x_232); +x_234 = lean_box(0); +x_235 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___spec__2(x_229, x_231, x_233, x_234, x_5, x_6, x_7, x_8, x_203); +lean_dec(x_229); +if (lean_obj_tag(x_235) == 0) +{ +lean_object* x_236; lean_object* x_237; +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +lean_dec(x_235); +x_237 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_145, x_1, x_186, x_234, x_5, x_6, x_7, x_8, x_236); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_237; +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_186); +lean_dec(x_145); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_238 = lean_ctor_get(x_235, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_235, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_235)) { + lean_ctor_release(x_235, 0); + lean_ctor_release(x_235, 1); + x_240 = x_235; +} else { + lean_dec_ref(x_235); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +return x_241; } } } else { -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_dec(x_161); -lean_dec(x_128); +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_dec(x_186); +lean_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_217 = lean_ctor_get(x_172, 1); -lean_inc(x_217); -lean_dec(x_172); -x_218 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_217); -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_221 = x_218; +x_242 = lean_ctor_get(x_197, 1); +lean_inc(x_242); +lean_dec(x_197); +x_243 = l_Lean_Meta_throwIsDefEqStuck___rarg(x_242); +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_246 = x_243; } else { - lean_dec_ref(x_218); - x_221 = lean_box(0); + lean_dec_ref(x_243); + x_246 = lean_box(0); } -if (lean_is_scalar(x_221)) { - x_222 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); } else { - x_222 = x_221; + x_247 = x_246; } -lean_ctor_set(x_222, 0, x_219); -lean_ctor_set(x_222, 1, x_220); -return x_222; +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; } } } } case 7: { -lean_object* x_223; lean_object* x_224; uint8_t x_225; -lean_dec(x_128); +lean_object* x_248; lean_object* x_249; uint8_t x_250; +lean_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_223 = lean_ctor_get(x_130, 1); -lean_inc(x_223); -x_224 = lean_ctor_get(x_130, 2); -lean_inc(x_224); -lean_dec(x_130); -x_225 = l_Lean_Expr_hasLooseBVars(x_224); -if (x_225 == 0) +x_248 = lean_ctor_get(x_147, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_147, 2); +lean_inc(x_249); +lean_dec(x_147); +x_250 = l_Lean_Expr_hasLooseBVars(x_249); +if (x_250 == 0) { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_226 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4; -x_227 = lean_array_push(x_226, x_223); -x_228 = lean_array_push(x_227, x_224); -x_229 = lean_box(5); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_228); -x_231 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_129); -return x_231; +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_251 = lean_box(5); +x_252 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2; +x_253 = lean_array_push(x_252, x_248); +x_254 = lean_array_push(x_253, x_249); +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_251); +lean_ctor_set(x_255, 1, x_254); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_146); +return x_256; } else { -lean_object* x_232; lean_object* x_233; -lean_dec(x_224); -lean_dec(x_223); -x_232 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_129); -return x_233; +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_dec(x_249); +lean_dec(x_248); +x_257 = lean_box(4); +x_258 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_146); +return x_260; } } case 9: { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_128); +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_234 = lean_ctor_get(x_130, 0); -lean_inc(x_234); -lean_dec(x_130); -x_235 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_235, 0, x_234); -x_236 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_237 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -x_238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_129); -return x_238; +x_261 = lean_ctor_get(x_147, 0); +lean_inc(x_261); +lean_dec(x_147); +x_262 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_262, 0, x_261); +x_263 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_146); +return x_265; } case 11: { -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_dec(x_128); +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_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_239 = lean_ctor_get(x_130, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_130, 1); -lean_inc(x_240); -x_241 = lean_ctor_get(x_130, 2); -lean_inc(x_241); -lean_dec(x_130); -x_242 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_242, 0, x_239); -lean_ctor_set(x_242, 1, x_240); -x_243 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1; -x_244 = lean_array_push(x_243, x_241); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_242); -lean_ctor_set(x_245, 1, x_244); -x_246 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_129); -return x_246; +x_266 = lean_ctor_get(x_147, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_147, 1); +lean_inc(x_267); +x_268 = lean_ctor_get(x_147, 2); +lean_inc(x_268); +lean_dec(x_147); +x_269 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_269, 0, x_266); +lean_ctor_set(x_269, 1, x_267); +x_270 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1; +x_271 = lean_array_push(x_270, x_268); +x_272 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_272, 0, x_269); +lean_ctor_set(x_272, 1, x_271); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_146); +return x_273; } default: { -lean_object* x_247; lean_object* x_248; -lean_dec(x_130); -lean_dec(x_128); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_147); +lean_dec(x_145); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_247 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1; -x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_129); -return x_248; +x_274 = lean_box(4); +x_275 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_277, 0, x_276); +lean_ctor_set(x_277, 1, x_146); +return x_277; } } } } else { -uint8_t x_249; +uint8_t x_278; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_249 = !lean_is_exclusive(x_9); -if (x_249 == 0) +x_278 = !lean_is_exclusive(x_10); +if (x_278 == 0) { -return x_9; +return x_10; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_9, 0); -x_251 = lean_ctor_get(x_9, 1); -lean_inc(x_251); -lean_inc(x_250); -lean_dec(x_9); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_251); -return x_252; +lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_279 = lean_ctor_get(x_10, 0); +x_280 = lean_ctor_get(x_10, 1); +lean_inc(x_280); +lean_inc(x_279); +lean_dec(x_10); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_279); +lean_ctor_set(x_281, 1, x_280); +return x_281; } } } @@ -9697,107 +10285,115 @@ lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___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_9; -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +lean_dec(x_2); +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___lambda__1(x_1, x_10, 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); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___boxed(lean_object* x_1, lean_object* x_2, 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; uint8_t x_10; lean_object* x_11; -x_9 = lean_unbox(x_2); -lean_dec(x_2); -x_10 = lean_unbox(x_3); -lean_dec(x_3); -x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_8; lean_object* x_9; -x_8 = 1; -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_2); -lean_dec(x_2); -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(x_1, x_8, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = 0; -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_2); -lean_dec(x_2); -x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(x_1, x_8, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; +uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = lean_unbox(x_4); lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_10, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = 1; +x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_2, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs___boxed(lean_object* x_1, lean_object* x_2, 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; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs(x_9, x_2, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = 0; +x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_2, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs___boxed(lean_object* x_1, lean_object* x_2, 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; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyKeyArgs(x_9, x_2, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -9806,85 +10402,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -9892,56 +10488,56 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Me _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = lean_box(3); -x_3 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(x_1, x_2); -if (lean_obj_tag(x_3) == 0) +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(3); +x_4 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_4; -x_4 = l_Lean_Meta_DiscrTree_mkPath___closed__1; -return x_4; +lean_object* x_5; +x_5 = l_Lean_Meta_DiscrTree_mkPath___closed__1; +return x_5; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); -lean_dec(x_5); -x_7 = l_Lean_Meta_DiscrTree_mkPath___closed__1; -x_8 = l_Array_append___rarg(x_7, x_6); -return x_8; +lean_dec(x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec(x_6); +x_8 = l_Lean_Meta_DiscrTree_mkPath___closed__1; +x_9 = l_Array_append___rarg(x_8, x_7); +return x_9; } } } @@ -9949,260 +10545,285 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg___boxed), 2, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_8 = lean_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 0); -lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; -} -else -{ -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; -goto _start; -} -else -{ -lean_object* x_22; -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_3, x_2); +return x_4; } } -} -else -{ -lean_object* x_23; lean_object* x_24; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___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_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg___boxed), 5, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___rarg(lean_object* x_1, lean_object* x_2) { -_start: +uint8_t x_8; +x_8 = lean_nat_dec_le(x_6, x_7); +if (x_8 == 0) { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_3 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_2); -lean_ctor_set(x_4, 1, x_3); -x_5 = lean_array_get_size(x_1); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_sub(x_5, x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_lt(x_8, x_5); -lean_dec(x_5); -if (x_9 == 0) -{ -lean_object* x_10; +lean_object* x_9; lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_10 = lean_box(0); -return x_10; +lean_dec(x_6); +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_11; lean_object* x_12; -x_11 = lean_box(0); -x_12 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg(x_11, x_1, x_4, x_8, x_7); -lean_dec(x_1); -return x_12; +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; +x_10 = lean_nat_add(x_6, x_7); +x_11 = lean_unsigned_to_nat(2u); +x_12 = lean_nat_div(x_10, x_11); +lean_dec(x_10); +lean_inc(x_5); +x_13 = lean_array_get(x_5, x_4, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_5, 0); +lean_inc(x_15); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_15); +if (x_16 == 0) +{ +uint8_t x_17; +lean_dec(x_7); +x_17 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_15, x_14); +lean_dec(x_14); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_5); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_13); +return x_18; +} +else +{ +lean_object* x_19; uint8_t x_20; +lean_dec(x_13); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_nat_dec_eq(x_12, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_sub(x_12, x_21); +lean_dec(x_12); +x_2 = lean_box(0); +x_7 = x_22; +goto _start; +} +else +{ +lean_object* x_24; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_5); +x_24 = lean_box(0); +return x_24; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(lean_object* x_1) { +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_6); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_12, x_25); +lean_dec(x_12); +x_2 = lean_box(0); +x_6 = x_26; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___rarg), 2, 0); -return x_2; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_5 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_4); +lean_ctor_set(x_7, 1, x_6); +x_8 = lean_array_get_size(x_3); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_8, x_9); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_lt(x_11, x_8); +lean_dec(x_8); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_13 = lean_box(0); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1(x_1, lean_box(0), x_14, x_3, x_7, x_11, x_10); +lean_dec(x_3); +return x_15; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___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_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); lean_dec(x_1); +x_9 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___spec__1(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(x_5, x_2, x_3, x_4); return x_6; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10212,92 +10833,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10307,92 +10928,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10402,92 +11023,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10497,92 +11118,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10592,92 +11213,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10687,92 +11308,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -10782,759 +11403,765 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed), 6, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1() { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(4); -x_2 = l_Lean_Meta_DiscrTree_instInhabitedTrie___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; -} -} -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedTrie(lean_box(0)); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedKey; -x_2 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___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; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___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; uint8_t x_11; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_2, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_3, 0); lean_inc(x_10); -lean_dec(x_2); -x_11 = l_Array_isEmpty___rarg(x_1); -if (x_11 == 0) +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + x_12 = x_3; +} else { + lean_dec_ref(x_3); + x_12 = lean_box(0); +} +x_13 = l_Array_isEmpty___rarg(x_2); +if (x_13 == 0) { -uint8_t x_12; -lean_dec(x_9); -x_12 = l_Array_isEmpty___rarg(x_10); -if (x_12 == 0) +uint8_t x_14; +lean_dec(x_10); +x_14 = l_Array_isEmpty___rarg(x_11); +if (x_14 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_163; lean_object* x_164; uint8_t x_165; -x_13 = l_Lean_instInhabitedExpr; -x_14 = l_Array_back___rarg(x_13, x_1); -x_15 = lean_array_pop(x_1); -x_163 = lean_array_get_size(x_10); -x_164 = lean_unsigned_to_nat(0u); -x_165 = lean_nat_dec_lt(x_164, x_163); -lean_dec(x_163); -if (x_165 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_15 = l_Lean_instInhabitedExpr; +x_16 = l_Array_back___rarg(x_15, x_2); +x_17 = lean_array_pop(x_2); +x_173 = lean_box(0); +x_174 = lean_unsigned_to_nat(0u); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +x_176 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +x_178 = lean_array_get_size(x_11); +x_179 = lean_nat_dec_lt(x_174, x_178); +lean_dec(x_178); +if (x_179 == 0) { -lean_object* x_166; lean_object* x_167; -x_166 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3; -x_167 = l___private_Init_Util_0__outOfBounds___rarg(x_166); -x_16 = x_167; -goto block_162; +lean_object* x_180; +x_180 = l___private_Init_Util_0__outOfBounds___rarg(x_177); +x_18 = x_180; +goto block_172; } else { -lean_object* x_168; -x_168 = lean_array_fget(x_10, x_164); -x_16 = x_168; -goto block_162; +lean_object* x_181; +lean_dec(x_177); +x_181 = lean_array_fget(x_11, x_174); +x_18 = x_181; +goto block_172; } -block_162: +block_172: { -uint8_t x_17; uint8_t x_18; lean_object* x_19; -x_17 = 1; -x_18 = 0; +uint8_t x_19; uint8_t x_20; lean_object* x_21; +x_19 = 1; +x_20 = 0; +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_19 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_14, x_17, x_18, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_19) == 0) +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_16, x_19, x_20, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_21) == 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; uint8_t x_28; uint8_t x_29; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_22 = x_19; -} else { - lean_dec_ref(x_19); - x_22 = lean_box(0); -} -x_23 = lean_ctor_get(x_20, 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; uint8_t x_30; uint8_t x_31; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_20, 1); -lean_inc(x_24); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_25 = x_20; +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_24 = x_21; } else { - lean_dec_ref(x_20); - x_25 = lean_box(0); + lean_dec_ref(x_21); + x_24 = lean_box(0); } -x_26 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_22, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_22, 1); lean_inc(x_26); -x_27 = lean_box(3); -x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_26, x_27); -lean_dec(x_26); -if (x_28 == 0) +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_27 = x_22; +} else { + lean_dec_ref(x_22); + x_27 = lean_box(0); +} +x_28 = lean_ctor_get(x_18, 0); +lean_inc(x_28); +x_29 = lean_box(3); +x_30 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_28, x_29); +lean_dec(x_28); +if (x_30 == 0) { -x_29 = x_18; -goto block_157; +x_31 = x_20; +goto block_167; } else { -x_29 = x_17; -goto block_157; +x_31 = x_19; +goto block_167; } -block_157: +block_167: { -lean_object* x_30; lean_object* x_31; -if (x_29 == 0) +lean_object* x_32; lean_object* x_33; +if (x_31 == 0) { -lean_dec(x_16); -x_30 = x_3; -x_31 = x_21; -goto block_148; +lean_dec(x_18); +x_32 = x_4; +x_33 = x_23; +goto block_158; } else { -lean_object* x_149; lean_object* x_150; -x_149 = lean_ctor_get(x_16, 1); -lean_inc(x_149); -lean_dec(x_16); +lean_object* x_159; lean_object* x_160; +x_159 = lean_ctor_get(x_18, 1); +lean_inc(x_159); +lean_dec(x_18); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_15); -x_150 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_15, x_149, x_3, x_4, x_5, x_6, x_7, x_21); -if (lean_obj_tag(x_150) == 0) +lean_inc(x_17); +x_160 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_1, x_17, x_159, x_4, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_160) == 0) { -lean_object* x_151; lean_object* x_152; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -x_30 = x_151; -x_31 = x_152; -goto block_148; +lean_object* x_161; lean_object* x_162; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_32 = x_161; +x_33 = x_162; +goto block_158; } else { -uint8_t x_153; +uint8_t x_163; +lean_dec(x_27); +lean_dec(x_26); lean_dec(x_25); lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_10); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_153 = !lean_is_exclusive(x_150); -if (x_153 == 0) +x_163 = !lean_is_exclusive(x_160); +if (x_163 == 0) { -return x_150; +return x_160; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_150, 0); -x_155 = lean_ctor_get(x_150, 1); -lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_150); -x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -return x_156; +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_160, 0); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_160); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; } } } -block_148: +block_158: { -lean_object* x_32; -switch (lean_obj_tag(x_23)) { +lean_object* x_34; +switch (lean_obj_tag(x_25)) { case 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; uint8_t x_68; -lean_dec(x_22); -x_62 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_63 = lean_alloc_ctor(0, 2, 0); -} else { - x_63 = x_25; -} -lean_ctor_set(x_63, 0, x_23); -lean_ctor_set(x_63, 1, x_62); -x_64 = lean_array_get_size(x_10); -x_65 = lean_unsigned_to_nat(1u); -x_66 = lean_nat_sub(x_64, x_65); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_nat_dec_lt(x_67, x_64); -lean_dec(x_64); -if (x_68 == 0) -{ -lean_object* x_69; -lean_dec(x_66); -lean_dec(x_63); +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_dec(x_27); lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_30); -lean_ctor_set(x_69, 1, x_31); -return x_69; -} -else +lean_dec(x_12); +x_66 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_25); +lean_ctor_set(x_68, 1, x_67); +x_69 = lean_array_get_size(x_11); +x_70 = lean_unsigned_to_nat(1u); +x_71 = lean_nat_sub(x_69, x_70); +x_72 = lean_unsigned_to_nat(0u); +x_73 = lean_nat_dec_lt(x_72, x_69); +lean_dec(x_69); +if (x_73 == 0) { -lean_object* x_70; lean_object* x_71; -x_70 = lean_box(0); -x_71 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(x_70, x_10, x_63, x_67, x_66); -lean_dec(x_10); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; -lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_30); -lean_ctor_set(x_72, 1, x_31); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); +lean_object* x_74; lean_dec(x_71); -x_74 = l_Array_append___rarg(x_15, x_24); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_1 = x_74; -x_2 = x_75; -x_3 = x_30; -x_8 = x_31; +lean_dec(x_68); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_32); +lean_ctor_set(x_74, 1, x_33); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_box(0); +x_76 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(x_1, x_75, x_11, x_68, x_72, x_71); +lean_dec(x_11); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_32); +lean_ctor_set(x_77, 1, x_33); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Array_append___rarg(x_17, x_26); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_2 = x_79; +x_3 = x_80; +x_4 = x_32; +x_9 = x_33; goto _start; } } } case 1: { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -lean_dec(x_22); -x_77 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_25; -} -lean_ctor_set(x_78, 0, x_23); -lean_ctor_set(x_78, 1, x_77); -x_79 = lean_array_get_size(x_10); -x_80 = lean_unsigned_to_nat(1u); -x_81 = lean_nat_sub(x_79, x_80); -x_82 = lean_unsigned_to_nat(0u); -x_83 = lean_nat_dec_lt(x_82, x_79); -lean_dec(x_79); -if (x_83 == 0) -{ -lean_object* x_84; -lean_dec(x_81); -lean_dec(x_78); +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; uint8_t x_89; +lean_dec(x_27); lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_12); +x_82 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_82); x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_30); -lean_ctor_set(x_84, 1, x_31); -return x_84; -} -else +lean_ctor_set(x_84, 0, x_25); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_array_get_size(x_11); +x_86 = lean_unsigned_to_nat(1u); +x_87 = lean_nat_sub(x_85, x_86); +x_88 = lean_unsigned_to_nat(0u); +x_89 = lean_nat_dec_lt(x_88, x_85); +lean_dec(x_85); +if (x_89 == 0) { -lean_object* x_85; lean_object* x_86; -x_85 = lean_box(0); -x_86 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(x_85, x_10, x_78, x_82, x_81); -lean_dec(x_10); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; -lean_dec(x_24); -lean_dec(x_15); +lean_object* x_90; +lean_dec(x_87); +lean_dec(x_84); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_30); -lean_ctor_set(x_87, 1, x_31); -return x_87; +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_32); +lean_ctor_set(x_90, 1, x_33); +return x_90; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -lean_dec(x_86); -x_89 = l_Array_append___rarg(x_15, x_24); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_1 = x_89; -x_2 = x_90; -x_3 = x_30; -x_8 = x_31; +lean_object* x_91; lean_object* x_92; +x_91 = lean_box(0); +x_92 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(x_1, x_91, x_11, x_84, x_88, x_87); +lean_dec(x_11); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_32); +lean_ctor_set(x_93, 1, x_33); +return x_93; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Array_append___rarg(x_17, x_26); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_2 = x_95; +x_3 = x_96; +x_4 = x_32; +x_9 = x_33; goto _start; } } } case 2: { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -lean_dec(x_22); -x_92 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_93 = lean_alloc_ctor(0, 2, 0); -} else { - x_93 = x_25; -} -lean_ctor_set(x_93, 0, x_23); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_array_get_size(x_10); -x_95 = lean_unsigned_to_nat(1u); -x_96 = lean_nat_sub(x_94, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = lean_nat_dec_lt(x_97, x_94); -lean_dec(x_94); -if (x_98 == 0) -{ -lean_object* x_99; -lean_dec(x_96); -lean_dec(x_93); +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; +lean_dec(x_27); lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_12); +x_98 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_30); -lean_ctor_set(x_99, 1, x_31); -return x_99; -} -else +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_25); +lean_ctor_set(x_100, 1, x_99); +x_101 = lean_array_get_size(x_11); +x_102 = lean_unsigned_to_nat(1u); +x_103 = lean_nat_sub(x_101, x_102); +x_104 = lean_unsigned_to_nat(0u); +x_105 = lean_nat_dec_lt(x_104, x_101); +lean_dec(x_101); +if (x_105 == 0) { -lean_object* x_100; lean_object* x_101; -x_100 = lean_box(0); -x_101 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(x_100, x_10, x_93, x_97, x_96); -lean_dec(x_10); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; -lean_dec(x_24); -lean_dec(x_15); +lean_object* x_106; +lean_dec(x_103); +lean_dec(x_100); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_30); -lean_ctor_set(x_102, 1, x_31); -return x_102; +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_32); +lean_ctor_set(x_106, 1, x_33); +return x_106; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_101, 0); -lean_inc(x_103); -lean_dec(x_101); -x_104 = l_Array_append___rarg(x_15, x_24); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_1 = x_104; -x_2 = x_105; -x_3 = x_30; -x_8 = x_31; +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(x_1, x_107, x_11, x_100, x_104, x_103); +lean_dec(x_11); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_32); +lean_ctor_set(x_109, 1, x_33); +return x_109; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_108, 0); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Array_append___rarg(x_17, x_26); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_2 = x_111; +x_3 = x_112; +x_4 = x_32; +x_9 = x_33; goto _start; } } } case 3: { -lean_object* x_107; -lean_dec(x_25); +lean_object* x_114; +lean_dec(x_27); +lean_dec(x_26); lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_10); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_30); -lean_ctor_set(x_107, 1, x_31); -return x_107; +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_32); +lean_ctor_set(x_114, 1, x_33); +return x_114; } case 4: { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -lean_dec(x_22); -x_108 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_109 = lean_alloc_ctor(0, 2, 0); -} else { - x_109 = x_25; -} -lean_ctor_set(x_109, 0, x_23); -lean_ctor_set(x_109, 1, x_108); -x_110 = lean_array_get_size(x_10); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_sub(x_110, x_111); -x_113 = lean_unsigned_to_nat(0u); -x_114 = lean_nat_dec_lt(x_113, x_110); -lean_dec(x_110); -if (x_114 == 0) -{ -lean_object* x_115; -lean_dec(x_112); -lean_dec(x_109); +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; uint8_t x_122; +lean_dec(x_27); lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_30); -lean_ctor_set(x_115, 1, x_31); -return x_115; -} -else +lean_dec(x_12); +x_115 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_25); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_array_get_size(x_11); +x_119 = lean_unsigned_to_nat(1u); +x_120 = lean_nat_sub(x_118, x_119); +x_121 = lean_unsigned_to_nat(0u); +x_122 = lean_nat_dec_lt(x_121, x_118); +lean_dec(x_118); +if (x_122 == 0) { -lean_object* x_116; lean_object* x_117; -x_116 = lean_box(0); -x_117 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(x_116, x_10, x_109, x_113, x_112); -lean_dec(x_10); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; -lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_30); -lean_ctor_set(x_118, 1, x_31); -return x_118; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_117, 0); -lean_inc(x_119); +lean_object* x_123; +lean_dec(x_120); lean_dec(x_117); -x_120 = l_Array_append___rarg(x_15, x_24); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -x_1 = x_120; -x_2 = x_121; -x_3 = x_30; -x_8 = x_31; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_32); +lean_ctor_set(x_123, 1, x_33); +return x_123; +} +else +{ +lean_object* x_124; lean_object* x_125; +x_124 = lean_box(0); +x_125 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(x_1, x_124, x_11, x_117, x_121, x_120); +lean_dec(x_11); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_32); +lean_ctor_set(x_126, 1, x_33); +return x_126; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_125, 0); +lean_inc(x_127); +lean_dec(x_125); +x_128 = l_Array_append___rarg(x_17, x_26); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_2 = x_128; +x_3 = x_129; +x_4 = x_32; +x_9 = x_33; goto _start; } } } case 5: { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_123 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_25; -} -lean_ctor_set(x_124, 0, x_23); -lean_ctor_set(x_124, 1, x_123); -x_125 = lean_array_get_size(x_10); -x_126 = lean_unsigned_to_nat(1u); -x_127 = lean_nat_sub(x_125, x_126); -x_128 = lean_unsigned_to_nat(0u); -x_129 = lean_nat_dec_lt(x_128, x_125); -lean_dec(x_125); -if (x_129 == 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; uint8_t x_138; +x_131 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_25); +lean_ctor_set(x_133, 1, x_132); +x_134 = lean_array_get_size(x_11); +x_135 = lean_unsigned_to_nat(1u); +x_136 = lean_nat_sub(x_134, x_135); +x_137 = lean_unsigned_to_nat(0u); +x_138 = lean_nat_dec_lt(x_137, x_134); +lean_dec(x_134); +if (x_138 == 0) { -lean_object* x_130; -lean_dec(x_127); -lean_dec(x_124); -x_130 = lean_box(0); -x_32 = x_130; -goto block_61; +lean_object* x_139; +lean_dec(x_136); +lean_dec(x_133); +x_139 = lean_box(0); +x_34 = x_139; +goto block_65; } else { -lean_object* x_131; lean_object* x_132; -x_131 = lean_box(0); -x_132 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(x_131, x_10, x_124, x_128, x_127); -x_32 = x_132; -goto block_61; +lean_object* x_140; lean_object* x_141; +x_140 = lean_box(0); +x_141 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(x_1, x_140, x_11, x_133, x_137, x_136); +x_34 = x_141; +goto block_65; } } default: { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -lean_dec(x_22); -x_133 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_25)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_25; -} -lean_ctor_set(x_134, 0, x_23); -lean_ctor_set(x_134, 1, x_133); -x_135 = lean_array_get_size(x_10); -x_136 = lean_unsigned_to_nat(1u); -x_137 = lean_nat_sub(x_135, x_136); -x_138 = lean_unsigned_to_nat(0u); -x_139 = lean_nat_dec_lt(x_138, x_135); -lean_dec(x_135); -if (x_139 == 0) -{ -lean_object* x_140; -lean_dec(x_137); -lean_dec(x_134); +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; uint8_t x_149; +lean_dec(x_27); lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_30); -lean_ctor_set(x_140, 1, x_31); -return x_140; -} -else -{ -lean_object* x_141; lean_object* x_142; -x_141 = lean_box(0); -x_142 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(x_141, x_10, x_134, x_138, x_137); -lean_dec(x_10); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; -lean_dec(x_24); -lean_dec(x_15); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_12); +x_142 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_30); -lean_ctor_set(x_143, 1, x_31); -return x_143; +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_25); +lean_ctor_set(x_144, 1, x_143); +x_145 = lean_array_get_size(x_11); +x_146 = lean_unsigned_to_nat(1u); +x_147 = lean_nat_sub(x_145, x_146); +x_148 = lean_unsigned_to_nat(0u); +x_149 = lean_nat_dec_lt(x_148, x_145); +lean_dec(x_145); +if (x_149 == 0) +{ +lean_object* x_150; +lean_dec(x_147); +lean_dec(x_144); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_32); +lean_ctor_set(x_150, 1, x_33); +return x_150; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_142, 0); -lean_inc(x_144); -lean_dec(x_142); -x_145 = l_Array_append___rarg(x_15, x_24); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -lean_dec(x_144); -x_1 = x_145; -x_2 = x_146; -x_3 = x_30; -x_8 = x_31; +lean_object* x_151; lean_object* x_152; +x_151 = lean_box(0); +x_152 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(x_1, x_151, x_11, x_144, x_148, x_147); +lean_dec(x_11); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_32); +lean_ctor_set(x_153, 1, x_33); +return x_153; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_152, 0); +lean_inc(x_154); +lean_dec(x_152); +x_155 = l_Array_append___rarg(x_17, x_26); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_2 = x_155; +x_3 = x_156; +x_4 = x_32; +x_9 = x_33; goto _start; } } } } -block_61: +block_65: { -lean_object* x_33; lean_object* x_34; -if (lean_obj_tag(x_32) == 0) +lean_object* x_35; lean_object* x_36; +if (lean_obj_tag(x_34) == 0) { -lean_dec(x_24); -x_33 = x_30; -x_34 = x_31; -goto block_50; +lean_dec(x_26); +x_35 = x_32; +x_36 = x_33; +goto block_54; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_32, 0); -lean_inc(x_51); -lean_dec(x_32); -lean_inc(x_15); -x_52 = l_Array_append___rarg(x_15, x_24); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_34, 0); +lean_inc(x_55); +lean_dec(x_34); +lean_inc(x_17); +x_56 = l_Array_append___rarg(x_17, x_26); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_54 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_52, x_53, x_30, x_4, x_5, x_6, x_7, x_31); -if (lean_obj_tag(x_54) == 0) +x_58 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_1, x_56, x_57, x_32, x_5, x_6, x_7, x_8, x_33); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_33 = x_55; -x_34 = x_56; -goto block_50; -} -else -{ -uint8_t x_57; -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_57 = !lean_is_exclusive(x_54); -if (x_57 == 0) -{ -return x_54; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 0); -x_59 = lean_ctor_get(x_54, 1); +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_54); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_35 = x_59; +x_36 = x_60; +goto block_54; } -} -} -block_50: +else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_35 = lean_array_get_size(x_10); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_sub(x_35, x_36); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_nat_dec_lt(x_38, x_35); -lean_dec(x_35); -if (x_39 == 0) -{ -lean_object* x_40; -lean_dec(x_37); -lean_dec(x_15); -lean_dec(x_10); +uint8_t x_61; +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_22)) { +x_61 = !lean_is_exclusive(x_58); +if (x_61 == 0) +{ +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 0); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_58); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +block_54: +{ +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; uint8_t x_45; +x_37 = lean_box(4); +x_38 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_12)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_12; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_38); +if (lean_is_scalar(x_27)) { x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_40 = x_22; + x_40 = x_27; } -lean_ctor_set(x_40, 0, x_33); -lean_ctor_set(x_40, 1, x_34); -return x_40; -} -else +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_array_get_size(x_11); +x_42 = lean_unsigned_to_nat(1u); +x_43 = lean_nat_sub(x_41, x_42); +x_44 = lean_unsigned_to_nat(0u); +x_45 = lean_nat_dec_lt(x_44, x_41); +lean_dec(x_41); +if (x_45 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_box(0); -x_42 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1; -x_43 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(x_41, x_10, x_42, x_38, x_37); -lean_dec(x_10); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; -lean_dec(x_15); +lean_object* x_46; +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_22)) { - x_44 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_24)) { + x_46 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_22; + x_46 = x_24; } -lean_ctor_set(x_44, 0, x_33); -lean_ctor_set(x_44, 1, x_34); -return x_44; +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +return x_46; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_22); -x_45 = lean_ctor_get(x_43, 0); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_47 = l_Array_append___rarg(x_15, x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_1 = x_47; -x_2 = x_48; -x_3 = x_33; -x_8 = x_34; +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +x_48 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(x_1, x_47, x_11, x_40, x_44, x_43); +lean_dec(x_11); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_24)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_24; +} +lean_ctor_set(x_49, 0, x_35); +lean_ctor_set(x_49, 1, x_36); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_24); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Array_append___rarg(x_17, x_38); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_2 = x_51; +x_3 = x_52; +x_4 = x_35; +x_9 = x_36; goto _start; } } @@ -11545,184 +12172,211 @@ goto _start; } else { -uint8_t x_158; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_10); +uint8_t x_168; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +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_158 = !lean_is_exclusive(x_19); -if (x_158 == 0) +x_168 = !lean_is_exclusive(x_21); +if (x_168 == 0) { -return x_19; +return x_21; } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_19, 0); -x_160 = lean_ctor_get(x_19, 1); -lean_inc(x_160); -lean_inc(x_159); -lean_dec(x_19); -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_object* x_169; -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_3); -lean_ctor_set(x_169, 1, x_8); -return x_169; -} -} -else -{ -lean_object* x_170; lean_object* x_171; -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_170 = l_Array_append___rarg(x_3, x_9); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_8); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_21, 0); +x_170 = lean_ctor_get(x_21, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_21); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); return x_171; } } } +} +else +{ +lean_object* x_182; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_4); +lean_ctor_set(x_182, 1, x_9); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_183 = l_Array_append___rarg(x_4, x_10); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_9); +return x_184; +} +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___boxed), 9, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__1___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___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: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); return x_8; } +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__2___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__4___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__5___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__6___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___spec__7___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___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, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -11731,85 +12385,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -11817,58 +12471,58 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Me _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(x_1, x_2); -if (lean_obj_tag(x_10) == 0) -{ lean_object* x_11; +x_11 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(x_1, x_2, x_3); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* 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_3); -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_dec(x_4); +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; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg(x_1, x_4, x_13, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; } } } @@ -11876,472 +12530,496 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg___boxed), 10, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__2___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___spec__1___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___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, lean_object* x_9, lean_object* x_10) { _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) +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_3, 0); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +lean_inc(x_2); +x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_10 = !lean_is_exclusive(x_4); +if (x_10 == 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; +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_4, 0); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_13 = 2; +lean_ctor_set_uint8(x_11, 5, x_13); +x_14 = 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_15 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_14, x_14, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); +lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -switch (lean_obj_tag(x_16)) { +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +switch (lean_obj_tag(x_17)) { case 3: { -uint8_t x_17; -lean_dec(x_3); +uint8_t x_18; +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_15); -if (x_17 == 0) +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_15, 1); -lean_dec(x_18); -x_19 = lean_ctor_get(x_15, 0); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_16, 1); lean_dec(x_19); -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) +x_20 = lean_ctor_get(x_16, 0); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) { -lean_object* x_21; -x_21 = lean_ctor_get(x_14, 0); -lean_dec(x_21); -lean_ctor_set(x_15, 1, x_8); -return x_14; +lean_object* x_22; +x_22 = lean_ctor_get(x_15, 0); +lean_dec(x_22); +lean_ctor_set(x_16, 1, x_9); +return x_15; } else { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_14, 1); -lean_inc(x_22); -lean_dec(x_14); -lean_ctor_set(x_15, 1, x_8); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_15); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); lean_dec(x_15); -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_25 = x_14; -} else { - lean_dec_ref(x_14); - x_25 = lean_box(0); +lean_ctor_set(x_16, 1, x_9); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_16); +lean_ctor_set(x_24, 1, x_23); +return x_24; } -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_16); -lean_ctor_set(x_26, 1, x_8); -if (lean_is_scalar(x_25)) { - x_27 = lean_alloc_ctor(0, 2, 0); -} else { - x_27 = x_25; } -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_16); +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_26 = x_15; +} else { + lean_dec_ref(x_15); + x_26 = lean_box(0); +} +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_17); +lean_ctor_set(x_27, 1, x_9); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; } } case 5: { -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); -lean_dec(x_14); -x_29 = !lean_is_exclusive(x_15); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_15, 1); -x_31 = lean_ctor_get(x_15, 0); -lean_dec(x_31); -x_32 = lean_box(4); -x_33 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_34 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_32, x_33, x_8, x_3, x_4, x_5, x_6, x_28); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_16, x_30, x_35, x_3, x_4, x_5, x_6, x_36); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_ctor_set(x_15, 1, x_39); -lean_ctor_set(x_37, 0, x_15); -return x_37; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_37, 0); -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_37); -lean_ctor_set(x_15, 1, x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -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_free_object(x_15); -x_43 = !lean_is_exclusive(x_37); -if (x_43 == 0) -{ -return x_37; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_37, 0); -x_45 = lean_ctor_get(x_37, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_37); -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_free_object(x_15); -lean_dec(x_30); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_47 = !lean_is_exclusive(x_34); -if (x_47 == 0) -{ -return x_34; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_34, 0); -x_49 = lean_ctor_get(x_34, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_34); -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 -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_15, 1); -lean_inc(x_51); +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); lean_dec(x_15); -x_52 = lean_box(4); -x_53 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; +x_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_16, 1); +x_32 = lean_ctor_get(x_16, 0); +lean_dec(x_32); +x_33 = lean_box(4); +x_34 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___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_1); -x_54 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_52, x_53, x_8, x_3, x_4, x_5, x_6, x_28); -if (lean_obj_tag(x_54) == 0) +lean_inc(x_2); +x_35 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_33, x_34, x_9, x_4, x_5, x_6, x_7, x_29); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_16, x_51, x_55, x_3, x_4, x_5, x_6, x_56); -if (lean_obj_tag(x_57) == 0) +lean_object* x_36; lean_object* x_37; lean_object* x_38; +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 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_17, x_31, x_36, x_4, x_5, x_6, x_7, x_37); +if (lean_obj_tag(x_38) == 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); -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); -} -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_16); -lean_ctor_set(x_61, 1, x_58); -if (lean_is_scalar(x_60)) { - x_62 = lean_alloc_ctor(0, 2, 0); -} else { - x_62 = x_60; -} -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_59); -return x_62; +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_ctor_set(x_16, 1, x_40); +lean_ctor_set(x_38, 0, x_16); +return x_38; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_57, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_57, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_65 = x_57; -} else { - lean_dec_ref(x_57); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; -} -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_38, 0); +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_38); +lean_ctor_set(x_16, 1, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_16); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_51); -lean_dec(x_3); +uint8_t x_44; +lean_free_object(x_16); +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) +{ +return x_38; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_38); +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; +} +} +} +else +{ +uint8_t x_48; +lean_free_object(x_16); +lean_dec(x_31); +lean_dec(x_4); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) +{ +return x_35; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +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 +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_16, 1); +lean_inc(x_52); +lean_dec(x_16); +x_53 = lean_box(4); +x_54 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_55 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_53, x_54, x_9, x_4, x_5, x_6, x_7, x_29); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_17, x_52, x_56, x_4, x_5, x_6, x_7, x_57); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_17); +lean_ctor_set(x_62, 1, x_59); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_61; +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_58, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_58, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_66 = x_58; +} else { + lean_dec_ref(x_58); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_52); lean_dec(x_4); -lean_dec(x_1); -x_67 = lean_ctor_get(x_54, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_54, 1); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_68 = lean_ctor_get(x_55, 0); lean_inc(x_68); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_69 = x_54; +x_69 = lean_ctor_get(x_55, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_70 = x_55; } else { - lean_dec_ref(x_54); - x_69 = lean_box(0); + lean_dec_ref(x_55); + x_70 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; + x_71 = x_70; } -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } } default: { -lean_object* x_71; uint8_t x_72; -x_71 = lean_ctor_get(x_14, 1); -lean_inc(x_71); -lean_dec(x_14); -x_72 = !lean_is_exclusive(x_15); -if (x_72 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_15, 1); -x_74 = lean_ctor_get(x_15, 0); -lean_dec(x_74); -lean_inc(x_16); -x_75 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_16, x_73, x_8, x_3, x_4, x_5, x_6, x_71); -if (lean_obj_tag(x_75) == 0) -{ -uint8_t x_76; -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ -lean_object* x_77; -x_77 = lean_ctor_get(x_75, 0); -lean_ctor_set(x_15, 1, x_77); -lean_ctor_set(x_75, 0, x_15); -return x_75; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_75, 0); -x_79 = lean_ctor_get(x_75, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_75); -lean_ctor_set(x_15, 1, x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_15); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -else -{ -uint8_t x_81; -lean_free_object(x_15); -lean_dec(x_16); -x_81 = !lean_is_exclusive(x_75); -if (x_81 == 0) -{ -return x_75; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_75, 0); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_75); -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; -} -} -} -else -{ -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_15, 1); -lean_inc(x_85); +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_15, 1); +lean_inc(x_72); lean_dec(x_15); -lean_inc(x_16); -x_86 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_16, x_85, x_8, x_3, x_4, x_5, x_6, x_71); -if (lean_obj_tag(x_86) == 0) +x_73 = !lean_is_exclusive(x_16); +if (x_73 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -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; -} else { - lean_dec_ref(x_86); - x_89 = lean_box(0); -} -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_16); -lean_ctor_set(x_90, 1, x_87); -if (lean_is_scalar(x_89)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_89; -} -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_88); -return x_91; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_16, 1); +x_75 = lean_ctor_get(x_16, 0); +lean_dec(x_75); +lean_inc(x_17); +x_76 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_17, x_74, x_9, x_4, x_5, x_6, x_7, x_72); +if (lean_obj_tag(x_76) == 0) +{ +uint8_t x_77; +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_ctor_set(x_16, 1, x_78); +lean_ctor_set(x_76, 0, x_16); +return x_76; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_76, 0); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_76); +lean_ctor_set(x_16, 1, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_16); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +else +{ +uint8_t x_82; +lean_free_object(x_16); +lean_dec(x_17); +x_82 = !lean_is_exclusive(x_76); +if (x_82 == 0) +{ +return x_76; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_76, 0); +x_84 = lean_ctor_get(x_76, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_76); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +else +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_16, 1); +lean_inc(x_86); lean_dec(x_16); -x_92 = lean_ctor_get(x_86, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_86, 1); +lean_inc(x_17); +x_87 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_17, x_86, x_9, x_4, x_5, x_6, x_7, x_72); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_17); +lean_ctor_set(x_91, 1, x_88); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); +return x_92; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_17); +x_93 = lean_ctor_get(x_87, 0); lean_inc(x_93); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_94 = x_86; +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_95 = x_87; } else { - lean_dec_ref(x_86); - x_94 = lean_box(0); + lean_dec_ref(x_87); + x_95 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_94; + x_96 = x_95; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } } @@ -12349,702 +13027,702 @@ return x_95; } else { -uint8_t x_96; -lean_dec(x_3); -lean_dec(x_8); +uint8_t x_97; +lean_dec(x_4); +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_96 = !lean_is_exclusive(x_14); -if (x_96 == 0) +lean_dec(x_2); +x_97 = !lean_is_exclusive(x_15); +if (x_97 == 0) { -return x_14; +return x_15; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_14, 0); -x_98 = lean_ctor_get(x_14, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_15, 0); +x_99 = lean_ctor_get(x_15, 1); +lean_inc(x_99); lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_14); -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; +lean_dec(x_15); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } else { -uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t 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; lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_100 = lean_ctor_get_uint8(x_10, 0); -x_101 = lean_ctor_get_uint8(x_10, 1); -x_102 = lean_ctor_get_uint8(x_10, 2); -x_103 = lean_ctor_get_uint8(x_10, 3); -x_104 = lean_ctor_get_uint8(x_10, 4); -x_105 = lean_ctor_get_uint8(x_10, 6); -x_106 = lean_ctor_get_uint8(x_10, 7); -x_107 = lean_ctor_get_uint8(x_10, 8); -x_108 = lean_ctor_get_uint8(x_10, 9); -x_109 = lean_ctor_get_uint8(x_10, 10); -x_110 = lean_ctor_get_uint8(x_10, 11); -x_111 = lean_ctor_get_uint8(x_10, 12); -x_112 = lean_ctor_get_uint8(x_10, 13); -lean_dec(x_10); -x_113 = 2; -x_114 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_114, 0, x_100); -lean_ctor_set_uint8(x_114, 1, x_101); -lean_ctor_set_uint8(x_114, 2, x_102); -lean_ctor_set_uint8(x_114, 3, x_103); -lean_ctor_set_uint8(x_114, 4, x_104); -lean_ctor_set_uint8(x_114, 5, x_113); -lean_ctor_set_uint8(x_114, 6, x_105); -lean_ctor_set_uint8(x_114, 7, x_106); -lean_ctor_set_uint8(x_114, 8, x_107); -lean_ctor_set_uint8(x_114, 9, x_108); -lean_ctor_set_uint8(x_114, 10, x_109); -lean_ctor_set_uint8(x_114, 11, x_110); -lean_ctor_set_uint8(x_114, 12, x_111); -lean_ctor_set_uint8(x_114, 13, x_112); -lean_ctor_set(x_3, 0, x_114); -x_115 = 1; +uint8_t x_101; uint8_t x_102; uint8_t 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; +x_101 = lean_ctor_get_uint8(x_11, 0); +x_102 = lean_ctor_get_uint8(x_11, 1); +x_103 = lean_ctor_get_uint8(x_11, 2); +x_104 = lean_ctor_get_uint8(x_11, 3); +x_105 = lean_ctor_get_uint8(x_11, 4); +x_106 = lean_ctor_get_uint8(x_11, 6); +x_107 = lean_ctor_get_uint8(x_11, 7); +x_108 = lean_ctor_get_uint8(x_11, 8); +x_109 = lean_ctor_get_uint8(x_11, 9); +x_110 = lean_ctor_get_uint8(x_11, 10); +x_111 = lean_ctor_get_uint8(x_11, 11); +x_112 = lean_ctor_get_uint8(x_11, 12); +x_113 = lean_ctor_get_uint8(x_11, 13); +lean_dec(x_11); +x_114 = 2; +x_115 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_115, 0, x_101); +lean_ctor_set_uint8(x_115, 1, x_102); +lean_ctor_set_uint8(x_115, 2, x_103); +lean_ctor_set_uint8(x_115, 3, x_104); +lean_ctor_set_uint8(x_115, 4, x_105); +lean_ctor_set_uint8(x_115, 5, x_114); +lean_ctor_set_uint8(x_115, 6, x_106); +lean_ctor_set_uint8(x_115, 7, x_107); +lean_ctor_set_uint8(x_115, 8, x_108); +lean_ctor_set_uint8(x_115, 9, x_109); +lean_ctor_set_uint8(x_115, 10, x_110); +lean_ctor_set_uint8(x_115, 11, x_111); +lean_ctor_set_uint8(x_115, 12, x_112); +lean_ctor_set_uint8(x_115, 13, x_113); +lean_ctor_set(x_4, 0, x_115); +x_116 = 1; +lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_116 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_115, x_115, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_116) == 0) +x_117 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_116, x_116, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); +lean_object* x_118; lean_object* x_119; x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -switch (lean_obj_tag(x_118)) { +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +switch (lean_obj_tag(x_119)) { case 3: { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_3); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_4); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); +lean_dec(x_2); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); +} +x_121 = lean_ctor_get(x_117, 1); +lean_inc(x_121); if (lean_is_exclusive(x_117)) { lean_ctor_release(x_117, 0); lean_ctor_release(x_117, 1); - x_119 = x_117; + x_122 = x_117; } else { lean_dec_ref(x_117); - x_119 = lean_box(0); + x_122 = lean_box(0); } -x_120 = lean_ctor_get(x_116, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_121 = x_116; -} else { - lean_dec_ref(x_116); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_119; -} -lean_ctor_set(x_122, 0, x_118); -lean_ctor_set(x_122, 1, x_8); -if (lean_is_scalar(x_121)) { +if (lean_is_scalar(x_120)) { x_123 = lean_alloc_ctor(0, 2, 0); } else { - x_123 = x_121; + x_123 = x_120; } -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_120); -return x_123; +lean_ctor_set(x_123, 0, x_119); +lean_ctor_set(x_123, 1, x_9); +if (lean_is_scalar(x_122)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_122; +} +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_121); +return x_124; } case 5: { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_124 = lean_ctor_get(x_116, 1); -lean_inc(x_124); -lean_dec(x_116); +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; x_125 = lean_ctor_get(x_117, 1); lean_inc(x_125); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_126 = x_117; +lean_dec(x_117); +x_126 = lean_ctor_get(x_118, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_127 = x_118; } else { - lean_dec_ref(x_117); - x_126 = lean_box(0); + lean_dec_ref(x_118); + x_127 = lean_box(0); } -x_127 = lean_box(4); -x_128 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; +x_128 = lean_box(4); +x_129 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___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_1); -x_129 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_127, x_128, x_8, x_3, x_4, x_5, x_6, x_124); -if (lean_obj_tag(x_129) == 0) +lean_inc(x_2); +x_130 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_128, x_129, x_9, x_4, x_5, x_6, x_7, x_125); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_130, 0); lean_inc(x_131); -lean_dec(x_129); -x_132 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_118, x_125, x_130, x_3, x_4, x_5, x_6, x_131); -if (lean_obj_tag(x_132) == 0) +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_119, x_126, x_131, x_4, x_5, x_6, x_7, x_132); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_135 = x_132; +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_136 = x_133; } else { - lean_dec_ref(x_132); - x_135 = lean_box(0); + lean_dec_ref(x_133); + x_136 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_136 = lean_alloc_ctor(0, 2, 0); -} else { - x_136 = x_126; -} -lean_ctor_set(x_136, 0, x_118); -lean_ctor_set(x_136, 1, x_133); -if (lean_is_scalar(x_135)) { +if (lean_is_scalar(x_127)) { x_137 = lean_alloc_ctor(0, 2, 0); } else { - x_137 = x_135; + x_137 = x_127; } -lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 0, x_119); lean_ctor_set(x_137, 1, x_134); -return x_137; +if (lean_is_scalar(x_136)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_136; +} +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_135); +return x_138; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_126); -x_138 = lean_ctor_get(x_132, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_132, 1); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_127); +x_139 = lean_ctor_get(x_133, 0); lean_inc(x_139); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_140 = x_132; +x_140 = lean_ctor_get(x_133, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_141 = x_133; } else { - lean_dec_ref(x_132); - x_140 = lean_box(0); + lean_dec_ref(x_133); + x_141 = lean_box(0); } -if (lean_is_scalar(x_140)) { - x_141 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_141 = x_140; + x_142 = x_141; } -lean_ctor_set(x_141, 0, x_138); -lean_ctor_set(x_141, 1, x_139); -return x_141; +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_127); lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_3); +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_142 = lean_ctor_get(x_129, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_129, 1); +lean_dec(x_2); +x_143 = lean_ctor_get(x_130, 0); lean_inc(x_143); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_144 = x_129; +x_144 = lean_ctor_get(x_130, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_145 = x_130; } else { - lean_dec_ref(x_129); - x_144 = lean_box(0); + lean_dec_ref(x_130); + x_145 = lean_box(0); } -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); } else { - x_145 = x_144; + x_146 = x_145; } -lean_ctor_set(x_145, 0, x_142); -lean_ctor_set(x_145, 1, x_143); -return x_145; +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; } } default: { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_146 = lean_ctor_get(x_116, 1); -lean_inc(x_146); -lean_dec(x_116); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; x_147 = lean_ctor_get(x_117, 1); lean_inc(x_147); +lean_dec(x_117); +x_148 = lean_ctor_get(x_118, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_149 = x_118; +} else { + lean_dec_ref(x_118); + x_149 = lean_box(0); +} +lean_inc(x_119); +x_150 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_119, x_148, x_9, x_4, x_5, x_6, x_7, x_147); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_153 = x_150; +} else { + lean_dec_ref(x_150); + x_153 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_149; +} +lean_ctor_set(x_154, 0, x_119); +lean_ctor_set(x_154, 1, x_151); +if (lean_is_scalar(x_153)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_153; +} +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_152); +return x_155; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_149); +lean_dec(x_119); +x_156 = lean_ctor_get(x_150, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_150, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_158 = x_150; +} else { + lean_dec_ref(x_150); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_158; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; +} +} +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_160 = lean_ctor_get(x_117, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_117, 1); +lean_inc(x_161); if (lean_is_exclusive(x_117)) { lean_ctor_release(x_117, 0); lean_ctor_release(x_117, 1); - x_148 = x_117; + x_162 = x_117; } else { lean_dec_ref(x_117); - x_148 = lean_box(0); + x_162 = lean_box(0); } -lean_inc(x_118); -x_149 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_118, x_147, x_8, x_3, x_4, x_5, x_6, x_146); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -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_118); -lean_ctor_set(x_153, 1, x_150); -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_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_148); -lean_dec(x_118); -x_155 = lean_ctor_get(x_149, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_149, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_157 = x_149; -} else { - lean_dec_ref(x_149); - x_157 = lean_box(0); -} -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); -} else { - x_158 = x_157; -} -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; + x_163 = x_162; } +lean_ctor_set(x_163, 0, x_160); +lean_ctor_set(x_163, 1, x_161); +return x_163; } } } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -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_159 = lean_ctor_get(x_116, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_116, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_161 = x_116; -} else { - lean_dec_ref(x_116); - x_161 = lean_box(0); -} -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); -} else { - x_162 = x_161; -} -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_160); -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; uint8_t x_169; uint8_t x_170; uint8_t x_171; uint8_t x_172; uint8_t x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; -x_163 = lean_ctor_get(x_3, 0); -x_164 = lean_ctor_get(x_3, 1); -x_165 = lean_ctor_get(x_3, 2); -x_166 = lean_ctor_get(x_3, 3); -x_167 = lean_ctor_get(x_3, 4); -x_168 = lean_ctor_get(x_3, 5); +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; uint8_t x_171; uint8_t x_172; uint8_t x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; +x_164 = lean_ctor_get(x_4, 0); +x_165 = lean_ctor_get(x_4, 1); +x_166 = lean_ctor_get(x_4, 2); +x_167 = lean_ctor_get(x_4, 3); +x_168 = lean_ctor_get(x_4, 4); +x_169 = lean_ctor_get(x_4, 5); +lean_inc(x_169); lean_inc(x_168); lean_inc(x_167); lean_inc(x_166); lean_inc(x_165); lean_inc(x_164); -lean_inc(x_163); -lean_dec(x_3); -x_169 = lean_ctor_get_uint8(x_163, 0); -x_170 = lean_ctor_get_uint8(x_163, 1); -x_171 = lean_ctor_get_uint8(x_163, 2); -x_172 = lean_ctor_get_uint8(x_163, 3); -x_173 = lean_ctor_get_uint8(x_163, 4); -x_174 = lean_ctor_get_uint8(x_163, 6); -x_175 = lean_ctor_get_uint8(x_163, 7); -x_176 = lean_ctor_get_uint8(x_163, 8); -x_177 = lean_ctor_get_uint8(x_163, 9); -x_178 = lean_ctor_get_uint8(x_163, 10); -x_179 = lean_ctor_get_uint8(x_163, 11); -x_180 = lean_ctor_get_uint8(x_163, 12); -x_181 = lean_ctor_get_uint8(x_163, 13); -if (lean_is_exclusive(x_163)) { - x_182 = x_163; +lean_dec(x_4); +x_170 = lean_ctor_get_uint8(x_164, 0); +x_171 = lean_ctor_get_uint8(x_164, 1); +x_172 = lean_ctor_get_uint8(x_164, 2); +x_173 = lean_ctor_get_uint8(x_164, 3); +x_174 = lean_ctor_get_uint8(x_164, 4); +x_175 = lean_ctor_get_uint8(x_164, 6); +x_176 = lean_ctor_get_uint8(x_164, 7); +x_177 = lean_ctor_get_uint8(x_164, 8); +x_178 = lean_ctor_get_uint8(x_164, 9); +x_179 = lean_ctor_get_uint8(x_164, 10); +x_180 = lean_ctor_get_uint8(x_164, 11); +x_181 = lean_ctor_get_uint8(x_164, 12); +x_182 = lean_ctor_get_uint8(x_164, 13); +if (lean_is_exclusive(x_164)) { + x_183 = x_164; } else { - lean_dec_ref(x_163); - x_182 = lean_box(0); + lean_dec_ref(x_164); + x_183 = lean_box(0); } -x_183 = 2; -if (lean_is_scalar(x_182)) { - x_184 = lean_alloc_ctor(0, 0, 14); +x_184 = 2; +if (lean_is_scalar(x_183)) { + x_185 = lean_alloc_ctor(0, 0, 14); } else { - x_184 = x_182; + x_185 = x_183; } -lean_ctor_set_uint8(x_184, 0, x_169); -lean_ctor_set_uint8(x_184, 1, x_170); -lean_ctor_set_uint8(x_184, 2, x_171); -lean_ctor_set_uint8(x_184, 3, x_172); -lean_ctor_set_uint8(x_184, 4, x_173); -lean_ctor_set_uint8(x_184, 5, x_183); -lean_ctor_set_uint8(x_184, 6, x_174); -lean_ctor_set_uint8(x_184, 7, x_175); -lean_ctor_set_uint8(x_184, 8, x_176); -lean_ctor_set_uint8(x_184, 9, x_177); -lean_ctor_set_uint8(x_184, 10, x_178); -lean_ctor_set_uint8(x_184, 11, x_179); -lean_ctor_set_uint8(x_184, 12, x_180); -lean_ctor_set_uint8(x_184, 13, x_181); -x_185 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_164); -lean_ctor_set(x_185, 2, x_165); -lean_ctor_set(x_185, 3, x_166); -lean_ctor_set(x_185, 4, x_167); -lean_ctor_set(x_185, 5, x_168); -x_186 = 1; +lean_ctor_set_uint8(x_185, 0, x_170); +lean_ctor_set_uint8(x_185, 1, x_171); +lean_ctor_set_uint8(x_185, 2, x_172); +lean_ctor_set_uint8(x_185, 3, x_173); +lean_ctor_set_uint8(x_185, 4, x_174); +lean_ctor_set_uint8(x_185, 5, x_184); +lean_ctor_set_uint8(x_185, 6, x_175); +lean_ctor_set_uint8(x_185, 7, x_176); +lean_ctor_set_uint8(x_185, 8, x_177); +lean_ctor_set_uint8(x_185, 9, x_178); +lean_ctor_set_uint8(x_185, 10, x_179); +lean_ctor_set_uint8(x_185, 11, x_180); +lean_ctor_set_uint8(x_185, 12, x_181); +lean_ctor_set_uint8(x_185, 13, x_182); +x_186 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_165); +lean_ctor_set(x_186, 2, x_166); +lean_ctor_set(x_186, 3, x_167); +lean_ctor_set(x_186, 4, x_168); +lean_ctor_set(x_186, 5, x_169); +x_187 = 1; +lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_185); -x_187 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_186, x_186, x_185, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_187) == 0) +lean_inc(x_186); +x_188 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_187, x_187, x_186, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_188; lean_object* x_189; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); +lean_object* x_189; lean_object* x_190; x_189 = lean_ctor_get(x_188, 0); lean_inc(x_189); -switch (lean_obj_tag(x_189)) { +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +switch (lean_obj_tag(x_190)) { case 3: { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_185); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_186); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); +lean_dec(x_2); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_191 = x_189; +} else { + lean_dec_ref(x_189); + x_191 = lean_box(0); +} +x_192 = lean_ctor_get(x_188, 1); +lean_inc(x_192); if (lean_is_exclusive(x_188)) { lean_ctor_release(x_188, 0); lean_ctor_release(x_188, 1); - x_190 = x_188; + x_193 = x_188; } else { lean_dec_ref(x_188); - x_190 = lean_box(0); + x_193 = lean_box(0); } -x_191 = lean_ctor_get(x_187, 1); -lean_inc(x_191); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_192 = x_187; -} else { - lean_dec_ref(x_187); - x_192 = lean_box(0); -} -if (lean_is_scalar(x_190)) { - x_193 = lean_alloc_ctor(0, 2, 0); -} else { - x_193 = x_190; -} -lean_ctor_set(x_193, 0, x_189); -lean_ctor_set(x_193, 1, x_8); -if (lean_is_scalar(x_192)) { +if (lean_is_scalar(x_191)) { x_194 = lean_alloc_ctor(0, 2, 0); } else { - x_194 = x_192; + x_194 = x_191; } -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_191); -return x_194; +lean_ctor_set(x_194, 0, x_190); +lean_ctor_set(x_194, 1, x_9); +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_192); +return x_195; } case 5: { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_195 = lean_ctor_get(x_187, 1); -lean_inc(x_195); -lean_dec(x_187); +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; x_196 = lean_ctor_get(x_188, 1); lean_inc(x_196); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_197 = x_188; +lean_dec(x_188); +x_197 = lean_ctor_get(x_189, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_198 = x_189; } else { - lean_dec_ref(x_188); - x_197 = lean_box(0); + lean_dec_ref(x_189); + x_198 = lean_box(0); } -x_198 = lean_box(4); -x_199 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; +x_199 = lean_box(4); +x_200 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_185); -lean_inc(x_1); -x_200 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_198, x_199, x_8, x_185, x_4, x_5, x_6, x_195); -if (lean_obj_tag(x_200) == 0) +lean_inc(x_186); +lean_inc(x_2); +x_201 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_199, x_200, x_9, x_186, x_5, x_6, x_7, x_196); +if (lean_obj_tag(x_201) == 0) { -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_200, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_200, 1); +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_201, 0); lean_inc(x_202); -lean_dec(x_200); -x_203 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_189, x_196, x_201, x_185, x_4, x_5, x_6, x_202); -if (lean_obj_tag(x_203) == 0) +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_190, x_197, x_202, x_186, x_5, x_6, x_7, x_203); +if (lean_obj_tag(x_204) == 0) { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_205 = lean_ctor_get(x_204, 0); lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; } else { - lean_dec_ref(x_203); - x_206 = lean_box(0); + lean_dec_ref(x_204); + x_207 = lean_box(0); } -if (lean_is_scalar(x_197)) { - x_207 = lean_alloc_ctor(0, 2, 0); -} else { - x_207 = x_197; -} -lean_ctor_set(x_207, 0, x_189); -lean_ctor_set(x_207, 1, x_204); -if (lean_is_scalar(x_206)) { +if (lean_is_scalar(x_198)) { x_208 = lean_alloc_ctor(0, 2, 0); } else { - x_208 = x_206; + x_208 = x_198; } -lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 0, x_190); lean_ctor_set(x_208, 1, x_205); -return x_208; +if (lean_is_scalar(x_207)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_207; +} +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_206); +return x_209; } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_197); -x_209 = lean_ctor_get(x_203, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_203, 1); +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +lean_dec(x_198); +x_210 = lean_ctor_get(x_204, 0); lean_inc(x_210); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_211 = x_203; +x_211 = lean_ctor_get(x_204, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_212 = x_204; } else { - lean_dec_ref(x_203); - x_211 = lean_box(0); + lean_dec_ref(x_204); + x_212 = lean_box(0); } -if (lean_is_scalar(x_211)) { - x_212 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_212)) { + x_213 = lean_alloc_ctor(1, 2, 0); } else { - x_212 = x_211; + x_213 = x_212; } -lean_ctor_set(x_212, 0, x_209); -lean_ctor_set(x_212, 1, x_210); -return x_212; +lean_ctor_set(x_213, 0, x_210); +lean_ctor_set(x_213, 1, x_211); +return x_213; } } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_198); lean_dec(x_197); -lean_dec(x_196); -lean_dec(x_185); +lean_dec(x_186); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_213 = lean_ctor_get(x_200, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_200, 1); +lean_dec(x_2); +x_214 = lean_ctor_get(x_201, 0); lean_inc(x_214); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_215 = x_200; +x_215 = lean_ctor_get(x_201, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_216 = x_201; } else { - lean_dec_ref(x_200); - x_215 = lean_box(0); + lean_dec_ref(x_201); + x_216 = lean_box(0); } -if (lean_is_scalar(x_215)) { - x_216 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_216)) { + x_217 = lean_alloc_ctor(1, 2, 0); } else { - x_216 = x_215; + x_217 = x_216; } -lean_ctor_set(x_216, 0, x_213); -lean_ctor_set(x_216, 1, x_214); -return x_216; +lean_ctor_set(x_217, 0, x_214); +lean_ctor_set(x_217, 1, x_215); +return x_217; } } default: { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_217 = lean_ctor_get(x_187, 1); -lean_inc(x_217); -lean_dec(x_187); +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; x_218 = lean_ctor_get(x_188, 1); lean_inc(x_218); +lean_dec(x_188); +x_219 = lean_ctor_get(x_189, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_220 = x_189; +} else { + lean_dec_ref(x_189); + x_220 = lean_box(0); +} +lean_inc(x_190); +x_221 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_2, x_190, x_219, x_9, x_186, x_5, x_6, x_7, x_218); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); +lean_inc(x_223); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_224 = x_221; +} else { + lean_dec_ref(x_221); + x_224 = lean_box(0); +} +if (lean_is_scalar(x_220)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_220; +} +lean_ctor_set(x_225, 0, x_190); +lean_ctor_set(x_225, 1, x_222); +if (lean_is_scalar(x_224)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_224; +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_223); +return x_226; +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_220); +lean_dec(x_190); +x_227 = lean_ctor_get(x_221, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_221, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_229 = x_221; +} else { + lean_dec_ref(x_221); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +} +} +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_186); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_231 = lean_ctor_get(x_188, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_188, 1); +lean_inc(x_232); if (lean_is_exclusive(x_188)) { lean_ctor_release(x_188, 0); lean_ctor_release(x_188, 1); - x_219 = x_188; + x_233 = x_188; } else { lean_dec_ref(x_188); - x_219 = lean_box(0); + x_233 = lean_box(0); } -lean_inc(x_189); -x_220 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchRoot___rarg(x_1, x_189, x_218, x_8, x_185, x_4, x_5, x_6, x_217); -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; -x_221 = lean_ctor_get(x_220, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_220, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_223 = x_220; +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_220); - x_223 = lean_box(0); + x_234 = x_233; } -if (lean_is_scalar(x_219)) { - x_224 = lean_alloc_ctor(0, 2, 0); -} else { - x_224 = x_219; -} -lean_ctor_set(x_224, 0, x_189); -lean_ctor_set(x_224, 1, x_221); -if (lean_is_scalar(x_223)) { - x_225 = lean_alloc_ctor(0, 2, 0); -} else { - x_225 = x_223; -} -lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_222); -return x_225; -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_dec(x_219); -lean_dec(x_189); -x_226 = lean_ctor_get(x_220, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_220, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_228 = x_220; -} else { - lean_dec_ref(x_220); - x_228 = lean_box(0); -} -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(1, 2, 0); -} else { - x_229 = x_228; -} -lean_ctor_set(x_229, 0, x_226); -lean_ctor_set(x_229, 1, x_227); -return x_229; -} -} -} -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -lean_dec(x_185); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_230 = lean_ctor_get(x_187, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_187, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_232 = x_187; -} else { - lean_dec_ref(x_187); - x_232 = lean_box(0); -} -if (lean_is_scalar(x_232)) { - x_233 = lean_alloc_ctor(1, 2, 0); -} else { - x_233 = x_232; -} -lean_ctor_set(x_233, 0, x_230); -lean_ctor_set(x_233, 1, x_231); -return x_233; +lean_ctor_set(x_234, 0, x_231); +lean_ctor_set(x_234, 1, x_232); +return x_234; } } } @@ -13053,66 +13731,76 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg___boxed), 8, 0); return x_2; } } -LEAN_EXPORT 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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___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: { -lean_object* x_8; -x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -lean_ctor_set(x_8, 0, x_11); -return x_8; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; } -else +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); +lean_object* x_9; +x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(x_1, x_2, x_3, 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; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); -lean_dec(x_8); -x_14 = lean_ctor_get(x_12, 1); +lean_dec(x_11); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; +lean_inc(x_13); +lean_dec(x_9); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; } } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_8); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) { -return x_8; +return x_9; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_8, 0); -x_18 = lean_ctor_get(x_8, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_8); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_dec(x_9); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } @@ -13121,48 +13809,58 @@ LEAN_EXPORT 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_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_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: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -13171,85 +13869,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -13257,70 +13955,70 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -13329,85 +14027,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -13415,267 +14113,267 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -switch (lean_obj_tag(x_2)) { +switch (lean_obj_tag(x_3)) { case 0: { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_2); -if (x_8 == 0) +uint8_t x_9; +x_9 = !lean_is_exclusive(x_3); +if (x_9 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_ctor_get(x_2, 0); -x_10 = lean_ctor_get(x_2, 1); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_nat_dec_eq(x_10, x_11); -if (x_12 == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_eq(x_11, x_12); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_10, x_13); -lean_dec(x_10); -lean_ctor_set(x_2, 1, x_14); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_11, x_14); +lean_dec(x_11); +lean_ctor_set(x_3, 1, x_15); +lean_inc(x_3); lean_inc(x_2); -lean_inc(x_1); -x_15 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(x_1, x_2); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(x_1, x_2, x_3); +if (lean_obj_tag(x_16) == 0) { goto _start; } else { -uint8_t x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_15); +uint8_t x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_16); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_17 = 1; -x_18 = lean_box(x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_7); -return x_19; +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_8); +return x_20; } } else { -uint8_t x_20; lean_object* x_21; lean_object* x_22; -lean_free_object(x_2); +uint8_t x_21; lean_object* x_22; lean_object* x_23; +lean_free_object(x_3); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_1); -x_20 = 0; -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_7); -return x_22; +lean_dec(x_2); +x_21 = 0; +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_8); +return x_23; } } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = lean_ctor_get(x_2, 0); -x_24 = lean_ctor_get(x_2, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_3, 0); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_2); -x_25 = lean_unsigned_to_nat(0u); -x_26 = lean_nat_dec_eq(x_24, x_25); -if (x_26 == 0) +lean_dec(x_3); +x_26 = lean_unsigned_to_nat(0u); +x_27 = lean_nat_dec_eq(x_25, x_26); +if (x_27 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_sub(x_24, x_27); -lean_dec(x_24); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_23); -lean_ctor_set(x_29, 1, x_28); -lean_inc(x_29); -lean_inc(x_1); -x_30 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(x_1, x_29); -if (lean_obj_tag(x_30) == 0) +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_sub(x_25, x_28); +lean_dec(x_25); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_29); +lean_inc(x_30); +lean_inc(x_2); +x_31 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(x_1, x_2, x_30); +if (lean_obj_tag(x_31) == 0) { -x_2 = x_29; +x_3 = x_30; goto _start; } else { -uint8_t x_32; lean_object* x_33; lean_object* x_34; +uint8_t x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_31); lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_1); -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_7); -return x_34; +lean_dec(x_2); +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_8); +return x_35; } } else { -uint8_t x_35; lean_object* x_36; lean_object* x_37; +uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_25); lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_1); -x_35 = 0; -x_36 = lean_box(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_7); -return x_37; +lean_dec(x_2); +x_36 = 0; +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_8); +return x_38; } } } case 1: { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_2); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_3); +if (x_39 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_ctor_get(x_2, 0); -x_40 = lean_ctor_get(x_2, 1); -x_41 = lean_unsigned_to_nat(0u); -x_42 = lean_nat_dec_eq(x_40, x_41); -if (x_42 == 0) +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_3, 0); +x_41 = lean_ctor_get(x_3, 1); +x_42 = lean_unsigned_to_nat(0u); +x_43 = lean_nat_dec_eq(x_41, x_42); +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_sub(x_40, x_43); -lean_dec(x_40); -lean_ctor_set(x_2, 1, x_44); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_sub(x_41, x_44); +lean_dec(x_41); +lean_ctor_set(x_3, 1, x_45); +lean_inc(x_3); lean_inc(x_2); -lean_inc(x_1); -x_45 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(x_1, x_2); -if (lean_obj_tag(x_45) == 0) +x_46 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(x_1, x_2, x_3); +if (lean_obj_tag(x_46) == 0) { goto _start; } else { -uint8_t x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_45); +uint8_t x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_46); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_47 = 1; -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_7); -return x_49; +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_8); +return x_50; } } else { -uint8_t x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_2); +uint8_t x_51; lean_object* x_52; lean_object* x_53; +lean_free_object(x_3); +lean_dec(x_41); lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_1); -x_50 = 0; -x_51 = lean_box(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_7); -return x_52; +lean_dec(x_2); +x_51 = 0; +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_8); +return x_53; } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = lean_ctor_get(x_2, 0); -x_54 = lean_ctor_get(x_2, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_54 = lean_ctor_get(x_3, 0); +x_55 = lean_ctor_get(x_3, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_2); -x_55 = lean_unsigned_to_nat(0u); -x_56 = lean_nat_dec_eq(x_54, x_55); -if (x_56 == 0) +lean_dec(x_3); +x_56 = lean_unsigned_to_nat(0u); +x_57 = lean_nat_dec_eq(x_55, x_56); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_sub(x_54, x_57); -lean_dec(x_54); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_53); -lean_ctor_set(x_59, 1, x_58); -lean_inc(x_59); -lean_inc(x_1); -x_60 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(x_1, x_59); -if (lean_obj_tag(x_60) == 0) +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_unsigned_to_nat(1u); +x_59 = lean_nat_sub(x_55, x_58); +lean_dec(x_55); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_54); +lean_ctor_set(x_60, 1, x_59); +lean_inc(x_60); +lean_inc(x_2); +x_61 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(x_1, x_2, x_60); +if (lean_obj_tag(x_61) == 0) { -x_2 = x_59; +x_3 = x_60; goto _start; } else { -uint8_t x_62; lean_object* x_63; lean_object* x_64; +uint8_t x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_61); lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_1); -x_62 = 1; -x_63 = lean_box(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_7); -return x_64; +lean_dec(x_2); +x_63 = 1; +x_64 = lean_box(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_8); +return x_65; } } else { -uint8_t x_65; lean_object* x_66; lean_object* x_67; +uint8_t x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_55); lean_dec(x_54); -lean_dec(x_53); -lean_dec(x_1); -x_65 = 0; -x_66 = lean_box(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_7); -return x_67; +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_8); +return x_68; } } } default: { -uint8_t x_68; lean_object* x_69; lean_object* x_70; +uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_68 = 0; -x_69 = lean_box(x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_7); -return x_70; +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_8); +return x_71; } } } @@ -13684,64 +14382,94 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix( _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg___boxed), 8, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__2___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__1___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__6___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__5___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___spec__4___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___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: { -lean_object* x_8; -x_8 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_9, 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); -return x_8; +return x_10; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { @@ -13781,112 +14509,113 @@ x_2 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; +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_3); lean_inc(x_2); -lean_inc(x_1); -x_10 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_1, x_2, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_11 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -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; uint8_t x_19; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -x_14 = lean_array_get_size(x_12); -x_15 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_16 = 0; -lean_inc(x_3); -x_17 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(x_3, x_15, x_16, x_12); -x_18 = l_Array_append___rarg(x_4, x_17); -x_19 = l_Lean_Expr_isApp(x_2); -if (x_19 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +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_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +lean_inc(x_4); +x_18 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(x_4, x_16, x_17, x_13); +x_19 = l_Array_append___rarg(x_5, x_18); +x_20 = l_Lean_Expr_isApp(x_3); +if (x_20 == 0) { +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); -lean_ctor_set(x_10, 0, x_18); -return x_10; +lean_ctor_set(x_11, 0, x_19); +return x_11; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_free_object(x_10); -x_20 = l_Lean_Expr_appFn_x21(x_2); -lean_dec(x_2); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_3, x_21); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_free_object(x_11); +x_21 = l_Lean_Expr_appFn_x21(x_3); lean_dec(x_3); -x_2 = x_20; -x_3 = x_22; -x_4 = x_18; -x_9 = x_13; +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_4, x_22); +lean_dec(x_4); +x_3 = x_21; +x_4 = x_23; +x_5 = x_19; +x_10 = x_14; goto _start; } } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_24 = lean_ctor_get(x_10, 0); -x_25 = lean_ctor_get(x_10, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_25 = lean_ctor_get(x_11, 0); +x_26 = lean_ctor_get(x_11, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_10); -x_26 = lean_array_get_size(x_24); -x_27 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_28 = 0; -lean_inc(x_3); -x_29 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(x_3, x_27, x_28, x_24); -x_30 = l_Array_append___rarg(x_4, x_29); -x_31 = l_Lean_Expr_isApp(x_2); -if (x_31 == 0) +lean_dec(x_11); +x_27 = lean_array_get_size(x_25); +x_28 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_29 = 0; +lean_inc(x_4); +x_30 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spec__1___rarg(x_4, x_28, x_29, x_25); +x_31 = l_Array_append___rarg(x_5, x_30); +x_32 = l_Lean_Expr_isApp(x_3); +if (x_32 == 0) { -lean_object* x_32; +lean_object* x_33; +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_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_25); -return x_32; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_26); +return x_33; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = l_Lean_Expr_appFn_x21(x_2); -lean_dec(x_2); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_3, x_34); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = l_Lean_Expr_appFn_x21(x_3); lean_dec(x_3); -x_2 = x_33; -x_3 = x_35; -x_4 = x_30; -x_9 = x_25; +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_4, x_35); +lean_dec(x_4); +x_3 = x_34; +x_4 = x_36; +x_5 = x_31; +x_10 = x_26; goto _start; } } } else { -uint8_t x_37; +uint8_t x_38; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -13894,24 +14623,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_10); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_11); +if (x_38 == 0) { -return x_10; +return x_11; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_10, 0); -x_39 = lean_ctor_get(x_10, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +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_inc(x_38); -lean_dec(x_10); -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_11); +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; } } } @@ -13920,7 +14648,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go(lean_object* _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg___boxed), 10, 0); return x_2; } } @@ -13936,6 +14664,16 @@ x_7 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra_go___spe return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra_go___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -13971,215 +14709,215 @@ x_2 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; +lean_object* x_9; +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_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchCore___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_10; 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; uint8_t x_18; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_10, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; uint8_t x_19; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); -lean_dec(x_10); -x_14 = lean_array_get_size(x_13); -x_15 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_16 = 0; -x_17 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(x_15, x_16, x_13); -x_18 = l_Lean_Expr_isApp(x_2); -if (x_18 == 0) +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(x_16, x_17, x_14); +x_19 = l_Lean_Expr_isApp(x_3); +if (x_19 == 0) { -lean_dec(x_12); +lean_dec(x_13); +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); -lean_ctor_set(x_8, 0, x_17); -return x_8; +lean_ctor_set(x_9, 0, x_18); +return x_9; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_free_object(x_8); -lean_inc(x_1); -x_19 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_11); -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) -{ -uint8_t x_22; -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_19); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_free_object(x_9); +lean_inc(x_2); +x_20 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_12); +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; -x_23 = lean_ctor_get(x_19, 0); -lean_dec(x_23); -lean_ctor_set(x_19, 0, x_17); -return x_19; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); -lean_dec(x_19); -x_27 = l_Lean_Expr_appFn_x21(x_2); +uint8_t x_23; +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_28 = lean_unsigned_to_nat(1u); -x_29 = l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(x_1, x_27, x_28, x_17, x_3, x_4, x_5, x_6, x_26); -return x_29; +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_20, 0); +lean_dec(x_24); +lean_ctor_set(x_20, 0, x_18); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_18); +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; +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l_Lean_Expr_appFn_x21(x_3); +lean_dec(x_3); +x_29 = lean_unsigned_to_nat(1u); +x_30 = l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(x_1, x_2, x_28, x_29, x_18, x_4, x_5, x_6, x_7, x_27); +return x_30; } } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; lean_object* x_37; uint8_t x_38; -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 = lean_ctor_get(x_30, 0); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; uint8_t x_39; +x_31 = lean_ctor_get(x_9, 0); +x_32 = lean_ctor_get(x_9, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_9); +x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_array_get_size(x_33); -x_35 = lean_usize_of_nat(x_34); -lean_dec(x_34); -x_36 = 0; -x_37 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(x_35, x_36, x_33); -x_38 = l_Lean_Expr_isApp(x_2); -if (x_38 == 0) +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_array_get_size(x_34); +x_36 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_37 = 0; +x_38 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__1___rarg(x_36, x_37, x_34); +x_39 = l_Lean_Expr_isApp(x_3); +if (x_39 == 0) { -lean_object* x_39; -lean_dec(x_32); +lean_object* x_40; +lean_dec(x_33); +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_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_31); -return x_39; +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_32); +return x_40; } else { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -lean_inc(x_1); -x_40 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_1, x_32, x_3, x_4, x_5, x_6, x_31); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); +lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_inc(x_2); +x_41 = l_Lean_Meta_DiscrTree_getMatchWithExtra_mayMatchPrefix___rarg(x_1, x_2, x_33, x_4, x_5, x_6, x_7, x_32); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +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_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_45 = x_41; +} else { + lean_dec_ref(x_41); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_38); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); lean_dec(x_41); -if (x_42 == 0) +x_48 = l_Lean_Expr_appFn_x21(x_3); +lean_dec(x_3); +x_49 = lean_unsigned_to_nat(1u); +x_50 = l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(x_1, x_2, x_48, x_49, x_38, x_4, x_5, x_6, x_7, x_47); +return x_50; +} +} +} +} +else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; +uint8_t x_51; +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_ctor_get(x_40, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_44 = x_40; -} else { - lean_dec_ref(x_40); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_37); -lean_ctor_set(x_45, 1, x_43); -return x_45; +x_51 = !lean_is_exclusive(x_9); +if (x_51 == 0) +{ +return x_9; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_dec(x_40); -x_47 = l_Lean_Expr_appFn_x21(x_2); -lean_dec(x_2); -x_48 = lean_unsigned_to_nat(1u); -x_49 = l_Lean_Meta_DiscrTree_getMatchWithExtra_go___rarg(x_1, x_47, x_48, x_37, x_3, x_4, x_5, x_6, x_46); -return x_49; -} -} -} -} -else -{ -uint8_t x_50; -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_50 = !lean_is_exclusive(x_8); -if (x_50 == 0) -{ -return x_8; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_8, 0); -x_52 = lean_ctor_get(x_8, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_9, 0); +x_53 = lean_ctor_get(x_9, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_8); -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_9); +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; } } } @@ -14188,7 +14926,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra(lean_object* x_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg___boxed), 8, 0); return x_2; } } @@ -14204,88 +14942,98 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Meta_DiscrTree_getMatchWithExtra___spec__ return x_6; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___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_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: { -lean_object* x_7; +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -14295,92 +15043,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -14390,92 +15138,92 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_le(x_4, x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) { -lean_object* x_7; +lean_object* x_8; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; +x_8 = lean_box(0); +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_nat_add(x_4, x_5); -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_div(x_8, x_9); -lean_dec(x_8); -lean_inc(x_3); -x_11 = lean_array_get(x_3, x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 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; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_5); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_12); -lean_dec(x_12); -lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); if (x_15 == 0) { -lean_object* x_16; -lean_dec(x_10); +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_10, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_10, x_19); -lean_dec(x_10); -x_5 = x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; +x_23 = lean_box(0); +return x_23; } } } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); -lean_dec(x_4); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_10, x_23); -lean_dec(x_10); -x_4 = x_24; +x_5 = x_25; goto _start; } } @@ -14485,87 +15233,87 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(uint8_t 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_11; -x_11 = lean_usize_dec_eq(x_3, x_4); -if (x_11 == 0) +uint8_t x_12; +x_12 = lean_usize_dec_eq(x_4, x_5); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_array_uget(x_2, x_3); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_array_uget(x_3, x_4); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Meta_DiscrTree_Key_arity(x_13); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); lean_dec(x_13); +x_16 = l_Lean_Meta_DiscrTree_Key_arity___rarg(x_14); +lean_dec(x_14); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_1); -x_16 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_15, x_1, x_14, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_16) == 0) +lean_inc(x_2); +x_17 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_16, x_2, x_15, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_3, x_19); -x_3 = x_20; -x_5 = x_17; -x_10 = x_18; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = lean_usize_add(x_4, x_20); +x_4 = x_21; +x_6 = x_18; +x_11 = x_19; goto _start; } else { -uint8_t x_22; +uint8_t x_23; +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_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) { -return x_16; +return x_17; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_16, 0); -x_24 = lean_ctor_get(x_16, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_17, 0); +x_25 = lean_ctor_get(x_17, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_16); -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; +lean_dec(x_17); +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_26; +lean_object* x_27; +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_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_5); -lean_ctor_set(x_26, 1, x_10); -return x_26; +lean_dec(x_2); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_6); +lean_ctor_set(x_27, 1, x_11); +return x_27; } } } @@ -14573,809 +15321,3498 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getU _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg___boxed), 11, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(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_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_12; -x_12 = lean_usize_dec_eq(x_4, x_5); -if (x_12 == 0) +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 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; -x_13 = lean_array_uget(x_3, x_4); -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 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_Meta_DiscrTree_Key_arity(x_14); -lean_dec(x_14); -x_17 = lean_nat_add(x_2, x_16); -lean_dec(x_16); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_1); -x_18 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_17, x_1, x_15, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_18) == 0) +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); +if (x_15 == 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 = lean_usize_add(x_4, x_21); -x_4 = x_22; -x_6 = x_19; -x_11 = x_20; +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; goto _start; } else { -uint8_t x_24; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -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_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_6); -lean_ctor_set(x_28, 1, x_11); -return x_28; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg___boxed), 11, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___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; uint8_t x_11; -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_eq(x_1, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_1, x_12); -lean_dec(x_1); -x_14 = lean_ctor_get(x_3, 1); -lean_inc(x_14); -lean_dec(x_3); -x_15 = l_Array_isEmpty___rarg(x_14); -if (x_15 == 0) -{ -lean_object* x_16; uint8_t x_17; -x_16 = lean_array_get_size(x_14); -x_17 = lean_nat_dec_lt(x_10, x_16); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_23; +lean_dec(x_11); lean_dec(x_5); -lean_dec(x_2); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_4); -lean_ctor_set(x_18, 1, x_9); -return x_18; -} -else -{ -uint8_t x_19; -x_19 = lean_nat_dec_le(x_16, x_16); -if (x_19 == 0) -{ -lean_object* x_20; -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_9); -return x_20; -} -else -{ -size_t x_21; size_t x_22; lean_object* x_23; -x_21 = 0; -x_22 = lean_usize_of_nat(x_16); -lean_dec(x_16); -x_23 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(x_2, x_13, x_14, x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_14); -lean_dec(x_13); +lean_dec(x_4); +x_23 = lean_box(0); return x_23; } } } else { -lean_object* x_24; +lean_object* x_24; lean_object* x_25; lean_dec(x_14); lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); +lean_dec(x_11); +x_5 = x_25; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); +if (x_15 == 0) +{ +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; +goto _start; +} +else +{ +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_23 = lean_box(0); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); +lean_dec(x_11); +x_5 = x_25; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); +if (x_15 == 0) +{ +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; +goto _start; +} +else +{ +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_23 = lean_box(0); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); +lean_dec(x_11); +x_5 = x_25; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_nat_dec_le(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_nat_add(x_5, x_6); +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_div(x_9, x_10); +lean_dec(x_9); +lean_inc(x_4); +x_12 = lean_array_get(x_4, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_13, x_14); +if (x_15 == 0) +{ +uint8_t x_16; +lean_dec(x_6); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_13); +lean_dec(x_13); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_11, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_6 = x_21; +goto _start; +} +else +{ +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +x_23 = lean_box(0); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_5); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_11, x_24); +lean_dec(x_11); +x_5 = x_25; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___rarg(uint8_t 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 = lean_usize_dec_eq(x_5, x_6); +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; +x_14 = lean_array_uget(x_4, x_5); +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_Meta_DiscrTree_Key_arity___rarg(x_15); +lean_dec(x_15); +x_18 = lean_nat_add(x_3, x_17); +lean_dec(x_17); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_2); +x_19 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_18, x_2, x_16, x_7, x_8, x_9, x_10, x_11, x_12); +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 = lean_usize_add(x_5, x_22); +x_5 = x_23; +x_7 = x_20; +x_12 = x_21; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +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_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_7); +lean_ctor_set(x_29, 1, x_12); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___rarg___boxed), 12, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_eq(x_2, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_2, x_13); +lean_dec(x_2); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +lean_dec(x_4); +x_16 = l_Array_isEmpty___rarg(x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_get_size(x_15); +x_18 = lean_nat_dec_lt(x_11, x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +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_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_4); -lean_ctor_set(x_24, 1, x_9); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_5); +lean_ctor_set(x_19, 1, x_10); +return x_19; +} +else +{ +uint8_t x_20; +x_20 = lean_nat_dec_le(x_17, x_17); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_5); +lean_ctor_set(x_21, 1, x_10); +return x_21; +} +else +{ +size_t x_22; size_t x_23; lean_object* x_24; +x_22 = 0; +x_23 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_24 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___rarg(x_1, x_3, x_14, x_15, x_22, x_23, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_15); +lean_dec(x_14); return x_24; } } +} else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -lean_dec(x_1); -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_25; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_3); -x_27 = l_Array_isEmpty___rarg(x_2); -if (x_27 == 0) +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_5); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +} +else { -uint8_t x_28; -lean_dec(x_25); -x_28 = l_Array_isEmpty___rarg(x_26); -if (x_28 == 0) +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_2); +x_26 = lean_ctor_get(x_4, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_4, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + x_28 = x_4; +} else { + lean_dec_ref(x_4); + x_28 = lean_box(0); +} +x_29 = l_Array_isEmpty___rarg(x_3); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; -x_29 = l_Lean_instInhabitedExpr; -x_30 = l_Array_back___rarg(x_29, x_2); -x_31 = lean_array_pop(x_2); -x_32 = 0; +uint8_t x_30; +lean_dec(x_26); +x_30 = l_Array_isEmpty___rarg(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_31 = l_Lean_instInhabitedExpr; +x_32 = l_Array_back___rarg(x_31, x_3); +x_33 = lean_array_pop(x_3); +x_34 = 0; +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_30, x_32, x_32, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_33) == 0) +x_35 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_32, x_34, x_34, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_35) == 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_73; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -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; -} else { - lean_dec_ref(x_33); - x_36 = lean_box(0); -} -x_37 = lean_ctor_get(x_34, 0); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -x_38 = lean_ctor_get(x_34, 1); +switch (lean_obj_tag(x_37)) { +case 0: +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_35, 1); lean_inc(x_38); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_39 = x_34; +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_39 = x_35; } else { - lean_dec_ref(x_34); + lean_dec_ref(x_35); x_39 = lean_box(0); } -switch (lean_obj_tag(x_37)) { +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 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; uint8_t x_47; lean_object* x_48; lean_object* x_49; +x_41 = lean_ctor_get(x_36, 1); +x_42 = lean_ctor_get(x_36, 0); +lean_dec(x_42); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_11); +x_45 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_45); +lean_ctor_set(x_36, 0, x_44); +x_46 = lean_array_get_size(x_27); +x_47 = lean_nat_dec_lt(x_11, x_46); +x_48 = lean_box(3); +if (x_47 == 0) +{ +lean_object* x_80; +x_80 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_49 = x_80; +goto block_79; +} +else +{ +lean_object* x_81; +lean_dec(x_36); +x_81 = lean_array_fget(x_27, x_11); +x_49 = x_81; +goto block_79; +} +block_79: +{ +lean_object* x_50; uint8_t x_51; uint8_t x_52; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_50, x_48); +lean_dec(x_50); +if (x_51 == 0) +{ +x_52 = x_34; +goto block_77; +} +else +{ +uint8_t x_78; +x_78 = 1; +x_52 = x_78; +goto block_77; +} +block_77: +{ +lean_object* x_53; lean_object* x_54; +if (x_52 == 0) +{ +lean_dec(x_49); +x_53 = x_5; +x_54 = x_38; +goto block_68; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_49, 1); +lean_inc(x_69); +lean_dec(x_49); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_70 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_69, x_5, x_6, x_7, x_8, x_9, x_38); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_53 = x_71; +x_54 = x_72; +goto block_68; +} +else +{ +uint8_t x_73; +lean_dec(x_46); +lean_dec(x_41); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +return x_70; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_70, 0); +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_70); +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; +} +} +} +block_68: +{ +if (x_47 == 0) +{ +lean_object* x_55; +lean_dec(x_46); +lean_dec(x_41); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_39)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_39; +} +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +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; +x_56 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_28; +} +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_37); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_sub(x_46, x_59); +lean_dec(x_46); +x_61 = lean_box(0); +x_62 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(x_1, x_61, x_27, x_58, x_11, x_60); +lean_dec(x_27); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; +lean_dec(x_41); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_39)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_39; +} +lean_ctor_set(x_63, 0, x_53); +lean_ctor_set(x_63, 1, x_54); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_39); +x_64 = lean_ctor_get(x_62, 0); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l_Array_append___rarg(x_33, x_41); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_2 = x_11; +x_3 = x_65; +x_4 = x_66; +x_5 = x_53; +x_10 = x_54; +goto _start; +} +} +} +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; +x_82 = lean_ctor_get(x_36, 1); +lean_inc(x_82); +lean_dec(x_36); +x_83 = lean_box(0); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_11); +x_85 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +x_87 = lean_array_get_size(x_27); +x_88 = lean_nat_dec_lt(x_11, x_87); +x_89 = lean_box(3); +if (x_88 == 0) +{ +lean_object* x_121; +x_121 = l___private_Init_Util_0__outOfBounds___rarg(x_86); +x_90 = x_121; +goto block_120; +} +else +{ +lean_object* x_122; +lean_dec(x_86); +x_122 = lean_array_fget(x_27, x_11); +x_90 = x_122; +goto block_120; +} +block_120: +{ +lean_object* x_91; uint8_t x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_91, x_89); +lean_dec(x_91); +if (x_92 == 0) +{ +x_93 = x_34; +goto block_118; +} +else +{ +uint8_t x_119; +x_119 = 1; +x_93 = x_119; +goto block_118; +} +block_118: +{ +lean_object* x_94; lean_object* x_95; +if (x_93 == 0) +{ +lean_dec(x_90); +x_94 = x_5; +x_95 = x_38; +goto block_109; +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_90, 1); +lean_inc(x_110); +lean_dec(x_90); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_111 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_110, x_5, x_6, x_7, x_8, x_9, x_38); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_94 = x_112; +x_95 = x_113; +goto block_109; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_87); +lean_dec(x_82); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_114 = lean_ctor_get(x_111, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_116 = x_111; +} else { + lean_dec_ref(x_111); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +block_109: +{ +if (x_88 == 0) +{ +lean_object* x_96; +lean_dec(x_87); +lean_dec(x_82); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_39)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_39; +} +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_97 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_28; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_37); +lean_ctor_set(x_99, 1, x_98); +x_100 = lean_unsigned_to_nat(1u); +x_101 = lean_nat_sub(x_87, x_100); +lean_dec(x_87); +x_102 = lean_box(0); +x_103 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(x_1, x_102, x_27, x_99, x_11, x_101); +lean_dec(x_27); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; +lean_dec(x_82); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_39)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_39; +} +lean_ctor_set(x_104, 0, x_94); +lean_ctor_set(x_104, 1, x_95); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_39); +x_105 = lean_ctor_get(x_103, 0); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l_Array_append___rarg(x_33, x_82); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_2 = x_11; +x_3 = x_106; +x_4 = x_107; +x_5 = x_94; +x_10 = x_95; +goto _start; +} +} +} +} +} +} +} +case 1: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_35, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_124 = x_35; +} else { + lean_dec_ref(x_35); + x_124 = lean_box(0); +} +x_125 = !lean_is_exclusive(x_36); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; +x_126 = lean_ctor_get(x_36, 1); +x_127 = lean_ctor_get(x_36, 0); +lean_dec(x_127); +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_11); +x_130 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_130); +lean_ctor_set(x_36, 0, x_129); +x_131 = lean_array_get_size(x_27); +x_132 = lean_nat_dec_lt(x_11, x_131); +x_133 = lean_box(3); +if (x_132 == 0) +{ +lean_object* x_165; +x_165 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_134 = x_165; +goto block_164; +} +else +{ +lean_object* x_166; +lean_dec(x_36); +x_166 = lean_array_fget(x_27, x_11); +x_134 = x_166; +goto block_164; +} +block_164: +{ +lean_object* x_135; uint8_t x_136; uint8_t x_137; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_135, x_133); +lean_dec(x_135); +if (x_136 == 0) +{ +x_137 = x_34; +goto block_162; +} +else +{ +uint8_t x_163; +x_163 = 1; +x_137 = x_163; +goto block_162; +} +block_162: +{ +lean_object* x_138; lean_object* x_139; +if (x_137 == 0) +{ +lean_dec(x_134); +x_138 = x_5; +x_139 = x_123; +goto block_153; +} +else +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_134, 1); +lean_inc(x_154); +lean_dec(x_134); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_155 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_154, x_5, x_6, x_7, x_8, x_9, x_123); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_138 = x_156; +x_139 = x_157; +goto block_153; +} +else +{ +uint8_t x_158; +lean_dec(x_131); +lean_dec(x_126); +lean_dec(x_124); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_158 = !lean_is_exclusive(x_155); +if (x_158 == 0) +{ +return x_155; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_155, 0); +x_160 = lean_ctor_get(x_155, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_155); +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; +} +} +} +block_153: +{ +if (x_132 == 0) +{ +lean_object* x_140; +lean_dec(x_131); +lean_dec(x_126); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_124)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_124; +} +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_141 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_28; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_37); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_unsigned_to_nat(1u); +x_145 = lean_nat_sub(x_131, x_144); +lean_dec(x_131); +x_146 = lean_box(0); +x_147 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(x_1, x_146, x_27, x_143, x_11, x_145); +lean_dec(x_27); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; +lean_dec(x_126); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_124)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_124; +} +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_139); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_dec(x_124); +x_149 = lean_ctor_get(x_147, 0); +lean_inc(x_149); +lean_dec(x_147); +x_150 = l_Array_append___rarg(x_33, x_126); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_2 = x_11; +x_3 = x_150; +x_4 = x_151; +x_5 = x_138; +x_10 = x_139; +goto _start; +} +} +} +} +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; +x_167 = lean_ctor_get(x_36, 1); +lean_inc(x_167); +lean_dec(x_36); +x_168 = lean_box(0); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_11); +x_170 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_array_get_size(x_27); +x_173 = lean_nat_dec_lt(x_11, x_172); +x_174 = lean_box(3); +if (x_173 == 0) +{ +lean_object* x_206; +x_206 = l___private_Init_Util_0__outOfBounds___rarg(x_171); +x_175 = x_206; +goto block_205; +} +else +{ +lean_object* x_207; +lean_dec(x_171); +x_207 = lean_array_fget(x_27, x_11); +x_175 = x_207; +goto block_205; +} +block_205: +{ +lean_object* x_176; uint8_t x_177; uint8_t x_178; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_176, x_174); +lean_dec(x_176); +if (x_177 == 0) +{ +x_178 = x_34; +goto block_203; +} +else +{ +uint8_t x_204; +x_204 = 1; +x_178 = x_204; +goto block_203; +} +block_203: +{ +lean_object* x_179; lean_object* x_180; +if (x_178 == 0) +{ +lean_dec(x_175); +x_179 = x_5; +x_180 = x_123; +goto block_194; +} +else +{ +lean_object* x_195; lean_object* x_196; +x_195 = lean_ctor_get(x_175, 1); +lean_inc(x_195); +lean_dec(x_175); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_196 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_195, x_5, x_6, x_7, x_8, x_9, x_123); +if (lean_obj_tag(x_196) == 0) +{ +lean_object* x_197; lean_object* x_198; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +x_179 = x_197; +x_180 = x_198; +goto block_194; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_172); +lean_dec(x_167); +lean_dec(x_124); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_199 = lean_ctor_get(x_196, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_196, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_201 = x_196; +} else { + lean_dec_ref(x_196); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +block_194: +{ +if (x_173 == 0) +{ +lean_object* x_181; +lean_dec(x_172); +lean_dec(x_167); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_124)) { + x_181 = lean_alloc_ctor(0, 2, 0); +} else { + x_181 = x_124; +} +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +return x_181; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_182 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_183 = lean_alloc_ctor(0, 2, 0); +} else { + x_183 = x_28; +} +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_37); +lean_ctor_set(x_184, 1, x_183); +x_185 = lean_unsigned_to_nat(1u); +x_186 = lean_nat_sub(x_172, x_185); +lean_dec(x_172); +x_187 = lean_box(0); +x_188 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(x_1, x_187, x_27, x_184, x_11, x_186); +lean_dec(x_27); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; +lean_dec(x_167); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_124)) { + x_189 = lean_alloc_ctor(0, 2, 0); +} else { + x_189 = x_124; +} +lean_ctor_set(x_189, 0, x_179); +lean_ctor_set(x_189, 1, x_180); +return x_189; +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_124); +x_190 = lean_ctor_get(x_188, 0); +lean_inc(x_190); +lean_dec(x_188); +x_191 = l_Array_append___rarg(x_33, x_167); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec(x_190); +x_2 = x_11; +x_3 = x_191; +x_4 = x_192; +x_5 = x_179; +x_10 = x_180; +goto _start; +} +} +} +} +} +} +} +case 2: +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; +x_208 = lean_ctor_get(x_35, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_209 = x_35; +} else { + lean_dec_ref(x_35); + x_209 = lean_box(0); +} +x_210 = !lean_is_exclusive(x_36); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; lean_object* x_218; lean_object* x_219; +x_211 = lean_ctor_get(x_36, 1); +x_212 = lean_ctor_get(x_36, 0); +lean_dec(x_212); +x_213 = lean_box(0); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_11); +x_215 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_215); +lean_ctor_set(x_36, 0, x_214); +x_216 = lean_array_get_size(x_27); +x_217 = lean_nat_dec_lt(x_11, x_216); +x_218 = lean_box(3); +if (x_217 == 0) +{ +lean_object* x_250; +x_250 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_219 = x_250; +goto block_249; +} +else +{ +lean_object* x_251; +lean_dec(x_36); +x_251 = lean_array_fget(x_27, x_11); +x_219 = x_251; +goto block_249; +} +block_249: +{ +lean_object* x_220; uint8_t x_221; uint8_t x_222; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_220, x_218); +lean_dec(x_220); +if (x_221 == 0) +{ +x_222 = x_34; +goto block_247; +} +else +{ +uint8_t x_248; +x_248 = 1; +x_222 = x_248; +goto block_247; +} +block_247: +{ +lean_object* x_223; lean_object* x_224; +if (x_222 == 0) +{ +lean_dec(x_219); +x_223 = x_5; +x_224 = x_208; +goto block_238; +} +else +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_ctor_get(x_219, 1); +lean_inc(x_239); +lean_dec(x_219); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_240 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_239, x_5, x_6, x_7, x_8, x_9, x_208); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +lean_dec(x_240); +x_223 = x_241; +x_224 = x_242; +goto block_238; +} +else +{ +uint8_t x_243; +lean_dec(x_216); +lean_dec(x_211); +lean_dec(x_209); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_243 = !lean_is_exclusive(x_240); +if (x_243 == 0) +{ +return x_240; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_240, 0); +x_245 = lean_ctor_get(x_240, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_240); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} +} +block_238: +{ +if (x_217 == 0) +{ +lean_object* x_225; +lean_dec(x_216); +lean_dec(x_211); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_209)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_209; +} +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; +} +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; +x_226 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_28; +} +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_226); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_37); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_unsigned_to_nat(1u); +x_230 = lean_nat_sub(x_216, x_229); +lean_dec(x_216); +x_231 = lean_box(0); +x_232 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(x_1, x_231, x_27, x_228, x_11, x_230); +lean_dec(x_27); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; +lean_dec(x_211); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_209)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_209; +} +lean_ctor_set(x_233, 0, x_223); +lean_ctor_set(x_233, 1, x_224); +return x_233; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_209); +x_234 = lean_ctor_get(x_232, 0); +lean_inc(x_234); +lean_dec(x_232); +x_235 = l_Array_append___rarg(x_33, x_211); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +lean_dec(x_234); +x_2 = x_11; +x_3 = x_235; +x_4 = x_236; +x_5 = x_223; +x_10 = x_224; +goto _start; +} +} +} +} +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; lean_object* x_259; lean_object* x_260; +x_252 = lean_ctor_get(x_36, 1); +lean_inc(x_252); +lean_dec(x_36); +x_253 = lean_box(0); +x_254 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_11); +x_255 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set(x_256, 1, x_255); +x_257 = lean_array_get_size(x_27); +x_258 = lean_nat_dec_lt(x_11, x_257); +x_259 = lean_box(3); +if (x_258 == 0) +{ +lean_object* x_291; +x_291 = l___private_Init_Util_0__outOfBounds___rarg(x_256); +x_260 = x_291; +goto block_290; +} +else +{ +lean_object* x_292; +lean_dec(x_256); +x_292 = lean_array_fget(x_27, x_11); +x_260 = x_292; +goto block_290; +} +block_290: +{ +lean_object* x_261; uint8_t x_262; uint8_t x_263; +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_261, x_259); +lean_dec(x_261); +if (x_262 == 0) +{ +x_263 = x_34; +goto block_288; +} +else +{ +uint8_t x_289; +x_289 = 1; +x_263 = x_289; +goto block_288; +} +block_288: +{ +lean_object* x_264; lean_object* x_265; +if (x_263 == 0) +{ +lean_dec(x_260); +x_264 = x_5; +x_265 = x_208; +goto block_279; +} +else +{ +lean_object* x_280; lean_object* x_281; +x_280 = lean_ctor_get(x_260, 1); +lean_inc(x_280); +lean_dec(x_260); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_281 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_280, x_5, x_6, x_7, x_8, x_9, x_208); +if (lean_obj_tag(x_281) == 0) +{ +lean_object* x_282; lean_object* x_283; +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +x_264 = x_282; +x_265 = x_283; +goto block_279; +} +else +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +lean_dec(x_257); +lean_dec(x_252); +lean_dec(x_209); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_284 = lean_ctor_get(x_281, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_281, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + x_286 = x_281; +} else { + lean_dec_ref(x_281); + x_286 = lean_box(0); +} +if (lean_is_scalar(x_286)) { + x_287 = lean_alloc_ctor(1, 2, 0); +} else { + x_287 = x_286; +} +lean_ctor_set(x_287, 0, x_284); +lean_ctor_set(x_287, 1, x_285); +return x_287; +} +} +block_279: +{ +if (x_258 == 0) +{ +lean_object* x_266; +lean_dec(x_257); +lean_dec(x_252); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_209)) { + x_266 = lean_alloc_ctor(0, 2, 0); +} else { + x_266 = x_209; +} +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set(x_266, 1, x_265); +return x_266; +} +else +{ +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; +x_267 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_268 = lean_alloc_ctor(0, 2, 0); +} else { + x_268 = x_28; +} +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_267); +x_269 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_269, 0, x_37); +lean_ctor_set(x_269, 1, x_268); +x_270 = lean_unsigned_to_nat(1u); +x_271 = lean_nat_sub(x_257, x_270); +lean_dec(x_257); +x_272 = lean_box(0); +x_273 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(x_1, x_272, x_27, x_269, x_11, x_271); +lean_dec(x_27); +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; +lean_dec(x_252); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_209)) { + x_274 = lean_alloc_ctor(0, 2, 0); +} else { + x_274 = x_209; +} +lean_ctor_set(x_274, 0, x_264); +lean_ctor_set(x_274, 1, x_265); +return x_274; +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_209); +x_275 = lean_ctor_get(x_273, 0); +lean_inc(x_275); +lean_dec(x_273); +x_276 = l_Array_append___rarg(x_33, x_252); +x_277 = lean_ctor_get(x_275, 1); +lean_inc(x_277); +lean_dec(x_275); +x_2 = x_11; +x_3 = x_276; +x_4 = x_277; +x_5 = x_264; +x_10 = x_265; +goto _start; +} +} +} +} +} +} +} case 3: { -lean_object* x_123; uint8_t x_124; -lean_dec(x_39); -lean_dec(x_38); +uint8_t x_293; lean_dec(x_36); -x_123 = lean_array_get_size(x_26); -x_124 = lean_nat_dec_lt(x_10, x_123); -if (x_124 == 0) +lean_dec(x_28); +x_293 = !lean_is_exclusive(x_35); +if (x_293 == 0) { -lean_object* x_125; -lean_dec(x_123); -lean_dec(x_31); -lean_dec(x_26); +lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; +x_294 = lean_ctor_get(x_35, 1); +x_295 = lean_ctor_get(x_35, 0); +lean_dec(x_295); +x_296 = lean_array_get_size(x_27); +x_297 = lean_nat_dec_lt(x_11, x_296); +if (x_297 == 0) +{ +lean_dec(x_296); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_4); -lean_ctor_set(x_125, 1, x_35); -return x_125; +lean_ctor_set(x_35, 0, x_5); +return x_35; } else { -uint8_t x_126; -x_126 = lean_nat_dec_le(x_123, x_123); -if (x_126 == 0) +uint8_t x_298; +x_298 = lean_nat_dec_le(x_296, x_296); +if (x_298 == 0) { -lean_object* x_127; -lean_dec(x_123); -lean_dec(x_31); -lean_dec(x_26); +lean_dec(x_296); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_4); -lean_ctor_set(x_127, 1, x_35); -return x_127; +lean_ctor_set(x_35, 0, x_5); +return x_35; } else { -size_t x_128; size_t x_129; lean_object* x_130; -x_128 = 0; -x_129 = lean_usize_of_nat(x_123); -lean_dec(x_123); -x_130 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(x_31, x_26, x_128, x_129, x_4, x_5, x_6, x_7, x_8, x_35); -lean_dec(x_26); -return x_130; +size_t x_299; size_t x_300; lean_object* x_301; +lean_free_object(x_35); +x_299 = 0; +x_300 = lean_usize_of_nat(x_296); +lean_dec(x_296); +x_301 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(x_1, x_33, x_27, x_299, x_300, x_5, x_6, x_7, x_8, x_9, x_294); +lean_dec(x_27); +return x_301; +} +} +} +else +{ +lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_302 = lean_ctor_get(x_35, 1); +lean_inc(x_302); +lean_dec(x_35); +x_303 = lean_array_get_size(x_27); +x_304 = lean_nat_dec_lt(x_11, x_303); +if (x_304 == 0) +{ +lean_object* x_305; +lean_dec(x_303); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_305 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_5); +lean_ctor_set(x_305, 1, x_302); +return x_305; +} +else +{ +uint8_t x_306; +x_306 = lean_nat_dec_le(x_303, x_303); +if (x_306 == 0) +{ +lean_object* x_307; +lean_dec(x_303); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_307, 0, x_5); +lean_ctor_set(x_307, 1, x_302); +return x_307; +} +else +{ +size_t x_308; size_t x_309; lean_object* x_310; +x_308 = 0; +x_309 = lean_usize_of_nat(x_303); +lean_dec(x_303); +x_310 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(x_1, x_33, x_27, x_308, x_309, x_5, x_6, x_7, x_8, x_9, x_302); +lean_dec(x_27); +return x_310; +} +} +} +} +case 4: +{ +lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_311 = lean_ctor_get(x_35, 1); +lean_inc(x_311); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_312 = x_35; +} else { + lean_dec_ref(x_35); + x_312 = lean_box(0); +} +x_313 = !lean_is_exclusive(x_36); +if (x_313 == 0) +{ +lean_object* x_314; lean_object* x_315; 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; +x_314 = lean_ctor_get(x_36, 1); +x_315 = lean_ctor_get(x_36, 0); +lean_dec(x_315); +x_316 = lean_box(0); +x_317 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_11); +x_318 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_318); +lean_ctor_set(x_36, 0, x_317); +x_319 = lean_array_get_size(x_27); +x_320 = lean_nat_dec_lt(x_11, x_319); +x_321 = lean_box(3); +if (x_320 == 0) +{ +lean_object* x_353; +x_353 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_322 = x_353; +goto block_352; +} +else +{ +lean_object* x_354; +lean_dec(x_36); +x_354 = lean_array_fget(x_27, x_11); +x_322 = x_354; +goto block_352; +} +block_352: +{ +lean_object* x_323; uint8_t x_324; uint8_t x_325; +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_323, x_321); +lean_dec(x_323); +if (x_324 == 0) +{ +x_325 = x_34; +goto block_350; +} +else +{ +uint8_t x_351; +x_351 = 1; +x_325 = x_351; +goto block_350; +} +block_350: +{ +lean_object* x_326; lean_object* x_327; +if (x_325 == 0) +{ +lean_dec(x_322); +x_326 = x_5; +x_327 = x_311; +goto block_341; +} +else +{ +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_322, 1); +lean_inc(x_342); +lean_dec(x_322); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_343 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_342, x_5, x_6, x_7, x_8, x_9, x_311); +if (lean_obj_tag(x_343) == 0) +{ +lean_object* x_344; lean_object* x_345; +x_344 = lean_ctor_get(x_343, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_343, 1); +lean_inc(x_345); +lean_dec(x_343); +x_326 = x_344; +x_327 = x_345; +goto block_341; +} +else +{ +uint8_t x_346; +lean_dec(x_319); +lean_dec(x_314); +lean_dec(x_312); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_346 = !lean_is_exclusive(x_343); +if (x_346 == 0) +{ +return x_343; +} +else +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_343, 0); +x_348 = lean_ctor_get(x_343, 1); +lean_inc(x_348); +lean_inc(x_347); +lean_dec(x_343); +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +return x_349; +} +} +} +block_341: +{ +if (x_320 == 0) +{ +lean_object* x_328; +lean_dec(x_319); +lean_dec(x_314); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_312)) { + x_328 = lean_alloc_ctor(0, 2, 0); +} else { + x_328 = x_312; +} +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_329 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_330 = lean_alloc_ctor(0, 2, 0); +} else { + x_330 = x_28; +} +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_329); +x_331 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_331, 0, x_37); +lean_ctor_set(x_331, 1, x_330); +x_332 = lean_unsigned_to_nat(1u); +x_333 = lean_nat_sub(x_319, x_332); +lean_dec(x_319); +x_334 = lean_box(0); +x_335 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(x_1, x_334, x_27, x_331, x_11, x_333); +lean_dec(x_27); +if (lean_obj_tag(x_335) == 0) +{ +lean_object* x_336; +lean_dec(x_314); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_312)) { + x_336 = lean_alloc_ctor(0, 2, 0); +} else { + x_336 = x_312; +} +lean_ctor_set(x_336, 0, x_326); +lean_ctor_set(x_336, 1, x_327); +return x_336; +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +lean_dec(x_312); +x_337 = lean_ctor_get(x_335, 0); +lean_inc(x_337); +lean_dec(x_335); +x_338 = l_Array_append___rarg(x_33, x_314); +x_339 = lean_ctor_get(x_337, 1); +lean_inc(x_339); +lean_dec(x_337); +x_2 = x_11; +x_3 = x_338; +x_4 = x_339; +x_5 = x_326; +x_10 = x_327; +goto _start; +} +} +} +} +} +} +else +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_object* x_362; lean_object* x_363; +x_355 = lean_ctor_get(x_36, 1); +lean_inc(x_355); +lean_dec(x_36); +x_356 = lean_box(0); +x_357 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_11); +x_358 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_357); +lean_ctor_set(x_359, 1, x_358); +x_360 = lean_array_get_size(x_27); +x_361 = lean_nat_dec_lt(x_11, x_360); +x_362 = lean_box(3); +if (x_361 == 0) +{ +lean_object* x_394; +x_394 = l___private_Init_Util_0__outOfBounds___rarg(x_359); +x_363 = x_394; +goto block_393; +} +else +{ +lean_object* x_395; +lean_dec(x_359); +x_395 = lean_array_fget(x_27, x_11); +x_363 = x_395; +goto block_393; +} +block_393: +{ +lean_object* x_364; uint8_t x_365; uint8_t x_366; +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_364, x_362); +lean_dec(x_364); +if (x_365 == 0) +{ +x_366 = x_34; +goto block_391; +} +else +{ +uint8_t x_392; +x_392 = 1; +x_366 = x_392; +goto block_391; +} +block_391: +{ +lean_object* x_367; lean_object* x_368; +if (x_366 == 0) +{ +lean_dec(x_363); +x_367 = x_5; +x_368 = x_311; +goto block_382; +} +else +{ +lean_object* x_383; lean_object* x_384; +x_383 = lean_ctor_get(x_363, 1); +lean_inc(x_383); +lean_dec(x_363); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_384 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_383, x_5, x_6, x_7, x_8, x_9, x_311); +if (lean_obj_tag(x_384) == 0) +{ +lean_object* x_385; lean_object* x_386; +x_385 = lean_ctor_get(x_384, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_384, 1); +lean_inc(x_386); +lean_dec(x_384); +x_367 = x_385; +x_368 = x_386; +goto block_382; +} +else +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +lean_dec(x_360); +lean_dec(x_355); +lean_dec(x_312); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_387 = lean_ctor_get(x_384, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_384, 1); +lean_inc(x_388); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_389 = x_384; +} else { + lean_dec_ref(x_384); + x_389 = lean_box(0); +} +if (lean_is_scalar(x_389)) { + x_390 = lean_alloc_ctor(1, 2, 0); +} else { + x_390 = x_389; +} +lean_ctor_set(x_390, 0, x_387); +lean_ctor_set(x_390, 1, x_388); +return x_390; +} +} +block_382: +{ +if (x_361 == 0) +{ +lean_object* x_369; +lean_dec(x_360); +lean_dec(x_355); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_312)) { + x_369 = lean_alloc_ctor(0, 2, 0); +} else { + x_369 = x_312; +} +lean_ctor_set(x_369, 0, x_367); +lean_ctor_set(x_369, 1, x_368); +return x_369; +} +else +{ +lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_370 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_371 = lean_alloc_ctor(0, 2, 0); +} else { + x_371 = x_28; +} +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_370); +x_372 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_372, 0, x_37); +lean_ctor_set(x_372, 1, x_371); +x_373 = lean_unsigned_to_nat(1u); +x_374 = lean_nat_sub(x_360, x_373); +lean_dec(x_360); +x_375 = lean_box(0); +x_376 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(x_1, x_375, x_27, x_372, x_11, x_374); +lean_dec(x_27); +if (lean_obj_tag(x_376) == 0) +{ +lean_object* x_377; +lean_dec(x_355); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_312)) { + x_377 = lean_alloc_ctor(0, 2, 0); +} else { + x_377 = x_312; +} +lean_ctor_set(x_377, 0, x_367); +lean_ctor_set(x_377, 1, x_368); +return x_377; +} +else +{ +lean_object* x_378; lean_object* x_379; lean_object* x_380; +lean_dec(x_312); +x_378 = lean_ctor_get(x_376, 0); +lean_inc(x_378); +lean_dec(x_376); +x_379 = l_Array_append___rarg(x_33, x_355); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +lean_dec(x_378); +x_2 = x_11; +x_3 = x_379; +x_4 = x_380; +x_5 = x_367; +x_10 = x_368; +goto _start; +} +} +} +} } } } case 5: { -lean_object* x_131; uint8_t x_132; -lean_dec(x_39); -lean_dec(x_36); -x_131 = lean_array_get_size(x_26); -x_132 = lean_nat_dec_lt(x_10, x_131); -lean_dec(x_131); -if (x_132 == 0) +lean_object* x_396; lean_object* x_397; uint8_t x_398; +x_396 = lean_ctor_get(x_35, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_397 = x_35; +} else { + lean_dec_ref(x_35); + x_397 = lean_box(0); +} +x_398 = !lean_is_exclusive(x_36); +if (x_398 == 0) { -lean_object* x_133; lean_object* x_134; -x_133 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3; -x_134 = l___private_Init_Util_0__outOfBounds___rarg(x_133); -x_73 = x_134; -goto block_122; +lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; uint8_t x_405; lean_object* x_406; lean_object* x_407; +x_399 = lean_ctor_get(x_36, 1); +x_400 = lean_ctor_get(x_36, 0); +lean_dec(x_400); +x_401 = lean_box(0); +x_402 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_402, 0, x_401); +lean_ctor_set(x_402, 1, x_11); +x_403 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_403); +lean_ctor_set(x_36, 0, x_402); +x_404 = lean_array_get_size(x_27); +x_405 = lean_nat_dec_lt(x_11, x_404); +x_406 = lean_box(3); +if (x_405 == 0) +{ +lean_object* x_455; +x_455 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_407 = x_455; +goto block_454; } else { -lean_object* x_135; -x_135 = lean_array_fget(x_26, x_10); -x_73 = x_135; -goto block_122; +lean_object* x_456; +lean_dec(x_36); +x_456 = lean_array_fget(x_27, x_11); +x_407 = x_456; +goto block_454; +} +block_454: +{ +lean_object* x_408; uint8_t x_409; uint8_t x_410; +x_408 = lean_ctor_get(x_407, 0); +lean_inc(x_408); +x_409 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_408, x_406); +lean_dec(x_408); +if (x_409 == 0) +{ +x_410 = x_34; +goto block_452; +} +else +{ +uint8_t x_453; +x_453 = 1; +x_410 = x_453; +goto block_452; +} +block_452: +{ +lean_object* x_411; lean_object* x_412; +if (x_410 == 0) +{ +lean_dec(x_407); +x_411 = x_5; +x_412 = x_396; +goto block_443; +} +else +{ +lean_object* x_444; lean_object* x_445; +x_444 = lean_ctor_get(x_407, 1); +lean_inc(x_444); +lean_dec(x_407); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_445 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_444, x_5, x_6, x_7, x_8, x_9, x_396); +if (lean_obj_tag(x_445) == 0) +{ +lean_object* x_446; lean_object* x_447; +x_446 = lean_ctor_get(x_445, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_445, 1); +lean_inc(x_447); +lean_dec(x_445); +x_411 = x_446; +x_412 = x_447; +goto block_443; +} +else +{ +uint8_t x_448; +lean_dec(x_404); +lean_dec(x_399); +lean_dec(x_397); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_448 = !lean_is_exclusive(x_445); +if (x_448 == 0) +{ +return x_445; +} +else +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_449 = lean_ctor_get(x_445, 0); +x_450 = lean_ctor_get(x_445, 1); +lean_inc(x_450); +lean_inc(x_449); +lean_dec(x_445); +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_449); +lean_ctor_set(x_451, 1, x_450); +return x_451; +} +} +} +block_443: +{ +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_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_414 = lean_alloc_ctor(0, 2, 0); +} else { + x_414 = x_28; +} +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_413); +lean_inc(x_414); +x_415 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_415, 0, x_37); +lean_ctor_set(x_415, 1, x_414); +x_416 = lean_unsigned_to_nat(1u); +x_417 = lean_nat_sub(x_404, x_416); +lean_dec(x_404); +if (x_405 == 0) +{ +lean_dec(x_415); +lean_dec(x_399); +x_418 = x_411; +x_419 = x_412; +goto block_430; +} +else +{ +lean_object* x_431; lean_object* x_432; +x_431 = lean_box(0); +lean_inc(x_417); +x_432 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg(x_1, x_431, x_27, x_415, x_11, x_417); +if (lean_obj_tag(x_432) == 0) +{ +lean_dec(x_399); +x_418 = x_411; +x_419 = x_412; +goto block_430; +} +else +{ +lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_433 = lean_ctor_get(x_432, 0); +lean_inc(x_433); +lean_dec(x_432); +lean_inc(x_33); +x_434 = l_Array_append___rarg(x_33, x_399); +x_435 = lean_ctor_get(x_433, 1); +lean_inc(x_435); +lean_dec(x_433); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_436 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_434, x_435, x_411, x_6, x_7, x_8, x_9, x_412); +if (lean_obj_tag(x_436) == 0) +{ +lean_object* x_437; lean_object* x_438; +x_437 = lean_ctor_get(x_436, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_436, 1); +lean_inc(x_438); +lean_dec(x_436); +x_418 = x_437; +x_419 = x_438; +goto block_430; +} +else +{ +uint8_t x_439; +lean_dec(x_417); +lean_dec(x_414); +lean_dec(x_397); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_439 = !lean_is_exclusive(x_436); +if (x_439 == 0) +{ +return x_436; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; +x_440 = lean_ctor_get(x_436, 0); +x_441 = lean_ctor_get(x_436, 1); +lean_inc(x_441); +lean_inc(x_440); +lean_dec(x_436); +x_442 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_442, 0, x_440); +lean_ctor_set(x_442, 1, x_441); +return x_442; +} +} +} +} +block_430: +{ +if (x_405 == 0) +{ +lean_object* x_420; +lean_dec(x_417); +lean_dec(x_414); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_397)) { + x_420 = lean_alloc_ctor(0, 2, 0); +} else { + x_420 = x_397; +} +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +return x_420; +} +else +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; +x_421 = lean_box(4); +x_422 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_414); +x_423 = lean_box(0); +x_424 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg(x_1, x_423, x_27, x_422, x_11, x_417); +lean_dec(x_27); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_397)) { + x_425 = lean_alloc_ctor(0, 2, 0); +} else { + x_425 = x_397; +} +lean_ctor_set(x_425, 0, x_418); +lean_ctor_set(x_425, 1, x_419); +return x_425; +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; +lean_dec(x_397); +x_426 = lean_ctor_get(x_424, 0); +lean_inc(x_426); +lean_dec(x_424); +x_427 = l_Array_append___rarg(x_33, x_413); +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +x_2 = x_11; +x_3 = x_427; +x_4 = x_428; +x_5 = x_418; +x_10 = x_419; +goto _start; +} +} +} +} +} +} +} +else +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; lean_object* x_464; lean_object* x_465; +x_457 = lean_ctor_get(x_36, 1); +lean_inc(x_457); +lean_dec(x_36); +x_458 = lean_box(0); +x_459 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_459, 0, x_458); +lean_ctor_set(x_459, 1, x_11); +x_460 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_461 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_461, 0, x_459); +lean_ctor_set(x_461, 1, x_460); +x_462 = lean_array_get_size(x_27); +x_463 = lean_nat_dec_lt(x_11, x_462); +x_464 = lean_box(3); +if (x_463 == 0) +{ +lean_object* x_513; +x_513 = l___private_Init_Util_0__outOfBounds___rarg(x_461); +x_465 = x_513; +goto block_512; +} +else +{ +lean_object* x_514; +lean_dec(x_461); +x_514 = lean_array_fget(x_27, x_11); +x_465 = x_514; +goto block_512; +} +block_512: +{ +lean_object* x_466; uint8_t x_467; uint8_t x_468; +x_466 = lean_ctor_get(x_465, 0); +lean_inc(x_466); +x_467 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_466, x_464); +lean_dec(x_466); +if (x_467 == 0) +{ +x_468 = x_34; +goto block_510; +} +else +{ +uint8_t x_511; +x_511 = 1; +x_468 = x_511; +goto block_510; +} +block_510: +{ +lean_object* x_469; lean_object* x_470; +if (x_468 == 0) +{ +lean_dec(x_465); +x_469 = x_5; +x_470 = x_396; +goto block_501; +} +else +{ +lean_object* x_502; lean_object* x_503; +x_502 = lean_ctor_get(x_465, 1); +lean_inc(x_502); +lean_dec(x_465); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_503 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_502, x_5, x_6, x_7, x_8, x_9, x_396); +if (lean_obj_tag(x_503) == 0) +{ +lean_object* x_504; lean_object* x_505; +x_504 = lean_ctor_get(x_503, 0); +lean_inc(x_504); +x_505 = lean_ctor_get(x_503, 1); +lean_inc(x_505); +lean_dec(x_503); +x_469 = x_504; +x_470 = x_505; +goto block_501; +} +else +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; +lean_dec(x_462); +lean_dec(x_457); +lean_dec(x_397); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_506 = lean_ctor_get(x_503, 0); +lean_inc(x_506); +x_507 = lean_ctor_get(x_503, 1); +lean_inc(x_507); +if (lean_is_exclusive(x_503)) { + lean_ctor_release(x_503, 0); + lean_ctor_release(x_503, 1); + x_508 = x_503; +} else { + lean_dec_ref(x_503); + x_508 = lean_box(0); +} +if (lean_is_scalar(x_508)) { + x_509 = lean_alloc_ctor(1, 2, 0); +} else { + x_509 = x_508; +} +lean_ctor_set(x_509, 0, x_506); +lean_ctor_set(x_509, 1, x_507); +return x_509; +} +} +block_501: +{ +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; +x_471 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_472 = lean_alloc_ctor(0, 2, 0); +} else { + x_472 = x_28; +} +lean_ctor_set(x_472, 0, x_471); +lean_ctor_set(x_472, 1, x_471); +lean_inc(x_472); +x_473 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_473, 0, x_37); +lean_ctor_set(x_473, 1, x_472); +x_474 = lean_unsigned_to_nat(1u); +x_475 = lean_nat_sub(x_462, x_474); +lean_dec(x_462); +if (x_463 == 0) +{ +lean_dec(x_473); +lean_dec(x_457); +x_476 = x_469; +x_477 = x_470; +goto block_488; +} +else +{ +lean_object* x_489; lean_object* x_490; +x_489 = lean_box(0); +lean_inc(x_475); +x_490 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg(x_1, x_489, x_27, x_473, x_11, x_475); +if (lean_obj_tag(x_490) == 0) +{ +lean_dec(x_457); +x_476 = x_469; +x_477 = x_470; +goto block_488; +} +else +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +lean_dec(x_490); +lean_inc(x_33); +x_492 = l_Array_append___rarg(x_33, x_457); +x_493 = lean_ctor_get(x_491, 1); +lean_inc(x_493); +lean_dec(x_491); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_494 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_492, x_493, x_469, x_6, x_7, x_8, x_9, x_470); +if (lean_obj_tag(x_494) == 0) +{ +lean_object* x_495; lean_object* x_496; +x_495 = lean_ctor_get(x_494, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_494, 1); +lean_inc(x_496); +lean_dec(x_494); +x_476 = x_495; +x_477 = x_496; +goto block_488; +} +else +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +lean_dec(x_475); +lean_dec(x_472); +lean_dec(x_397); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_497 = lean_ctor_get(x_494, 0); +lean_inc(x_497); +x_498 = lean_ctor_get(x_494, 1); +lean_inc(x_498); +if (lean_is_exclusive(x_494)) { + lean_ctor_release(x_494, 0); + lean_ctor_release(x_494, 1); + x_499 = x_494; +} else { + lean_dec_ref(x_494); + x_499 = lean_box(0); +} +if (lean_is_scalar(x_499)) { + x_500 = lean_alloc_ctor(1, 2, 0); +} else { + x_500 = x_499; +} +lean_ctor_set(x_500, 0, x_497); +lean_ctor_set(x_500, 1, x_498); +return x_500; +} +} +} +block_488: +{ +if (x_463 == 0) +{ +lean_object* x_478; +lean_dec(x_475); +lean_dec(x_472); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_397)) { + x_478 = lean_alloc_ctor(0, 2, 0); +} else { + x_478 = x_397; +} +lean_ctor_set(x_478, 0, x_476); +lean_ctor_set(x_478, 1, x_477); +return x_478; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; +x_479 = lean_box(4); +x_480 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_480, 0, x_479); +lean_ctor_set(x_480, 1, x_472); +x_481 = lean_box(0); +x_482 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg(x_1, x_481, x_27, x_480, x_11, x_475); +lean_dec(x_27); +if (lean_obj_tag(x_482) == 0) +{ +lean_object* x_483; +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_397)) { + x_483 = lean_alloc_ctor(0, 2, 0); +} else { + x_483 = x_397; +} +lean_ctor_set(x_483, 0, x_476); +lean_ctor_set(x_483, 1, x_477); +return x_483; +} +else +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; +lean_dec(x_397); +x_484 = lean_ctor_get(x_482, 0); +lean_inc(x_484); +lean_dec(x_482); +x_485 = l_Array_append___rarg(x_33, x_471); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); +lean_dec(x_484); +x_2 = x_11; +x_3 = x_485; +x_4 = x_486; +x_5 = x_476; +x_10 = x_477; +goto _start; +} +} +} +} +} +} } } default: { -lean_object* x_136; uint8_t x_137; -x_136 = lean_array_get_size(x_26); -x_137 = lean_nat_dec_lt(x_10, x_136); -lean_dec(x_136); -if (x_137 == 0) +lean_object* x_515; lean_object* x_516; uint8_t x_517; +x_515 = lean_ctor_get(x_35, 1); +lean_inc(x_515); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_516 = x_35; +} else { + lean_dec_ref(x_35); + x_516 = lean_box(0); +} +x_517 = !lean_is_exclusive(x_36); +if (x_517 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3; -x_139 = l___private_Init_Util_0__outOfBounds___rarg(x_138); -x_40 = x_139; -goto block_72; +lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; uint8_t x_524; lean_object* x_525; lean_object* x_526; +x_518 = lean_ctor_get(x_36, 1); +x_519 = lean_ctor_get(x_36, 0); +lean_dec(x_519); +x_520 = lean_box(0); +x_521 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_521, 0, x_520); +lean_ctor_set(x_521, 1, x_11); +x_522 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +lean_ctor_set(x_36, 1, x_522); +lean_ctor_set(x_36, 0, x_521); +x_523 = lean_array_get_size(x_27); +x_524 = lean_nat_dec_lt(x_11, x_523); +x_525 = lean_box(3); +if (x_524 == 0) +{ +lean_object* x_557; +x_557 = l___private_Init_Util_0__outOfBounds___rarg(x_36); +x_526 = x_557; +goto block_556; } else { -lean_object* x_140; -x_140 = lean_array_fget(x_26, x_10); -x_40 = x_140; -goto block_72; -} -} -} -block_72: -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_box(3); -x_43 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_41, x_42); -lean_dec(x_41); -if (x_43 == 0) -{ -x_44 = x_32; -goto block_70; -} -else -{ -uint8_t x_71; -x_71 = 1; -x_44 = x_71; -goto block_70; -} -block_70: -{ -lean_object* x_45; lean_object* x_46; -if (x_44 == 0) -{ -lean_dec(x_40); -x_45 = x_4; -x_46 = x_35; -goto block_61; -} -else -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_40, 1); -lean_inc(x_62); -lean_dec(x_40); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_31); -x_63 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_10, x_31, x_62, x_4, x_5, x_6, x_7, x_8, x_35); -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); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_45 = x_64; -x_46 = x_65; -goto block_61; -} -else -{ -uint8_t x_66; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); +lean_object* x_558; lean_dec(x_36); -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_66 = !lean_is_exclusive(x_63); -if (x_66 == 0) +x_558 = lean_array_fget(x_27, x_11); +x_526 = x_558; +goto block_556; +} +block_556: { -return x_63; +lean_object* x_527; uint8_t x_528; uint8_t x_529; +x_527 = lean_ctor_get(x_526, 0); +lean_inc(x_527); +x_528 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_527, x_525); +lean_dec(x_527); +if (x_528 == 0) +{ +x_529 = x_34; +goto block_554; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_63, 0); -x_68 = lean_ctor_get(x_63, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_63); -x_69 = 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; +uint8_t x_555; +x_555 = 1; +x_529 = x_555; +goto block_554; } -} -} -block_61: +block_554: { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_47 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -if (lean_is_scalar(x_39)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_39; -} -lean_ctor_set(x_48, 0, x_37); -lean_ctor_set(x_48, 1, x_47); -x_49 = lean_array_get_size(x_26); -x_50 = lean_unsigned_to_nat(1u); -x_51 = lean_nat_sub(x_49, x_50); -x_52 = lean_nat_dec_lt(x_10, x_49); -lean_dec(x_49); -if (x_52 == 0) +lean_object* x_530; lean_object* x_531; +if (x_529 == 0) { -lean_object* x_53; -lean_dec(x_51); -lean_dec(x_48); -lean_dec(x_38); -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_36)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_36; -} -lean_ctor_set(x_53, 0, x_45); -lean_ctor_set(x_53, 1, x_46); -return x_53; +lean_dec(x_526); +x_530 = x_5; +x_531 = x_515; +goto block_545; } else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_box(0); -x_55 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(x_54, x_26, x_48, x_10, x_51); -lean_dec(x_26); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; -lean_dec(x_38); -lean_dec(x_31); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_36)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_36; -} -lean_ctor_set(x_56, 0, x_45); -lean_ctor_set(x_56, 1, x_46); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_36); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Array_append___rarg(x_31, x_38); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_1 = x_10; -x_2 = x_58; -x_3 = x_59; -x_4 = x_45; -x_9 = x_46; -goto _start; -} -} -} -} -} -block_122: -{ -lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_box(3); -x_76 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_74, x_75); -lean_dec(x_74); -if (x_76 == 0) -{ -x_77 = x_32; -goto block_120; -} -else -{ -uint8_t x_121; -x_121 = 1; -x_77 = x_121; -goto block_120; -} -block_120: -{ -lean_object* x_78; lean_object* x_79; -if (x_77 == 0) -{ -lean_dec(x_73); -x_78 = x_4; -x_79 = x_35; -goto block_111; -} -else -{ -lean_object* x_112; lean_object* x_113; -x_112 = lean_ctor_get(x_73, 1); -lean_inc(x_112); -lean_dec(x_73); +lean_object* x_546; lean_object* x_547; +x_546 = lean_ctor_get(x_526, 1); +lean_inc(x_546); +lean_dec(x_526); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_31); -x_113 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_10, x_31, x_112, x_4, x_5, x_6, x_7, x_8, x_35); -if (lean_obj_tag(x_113) == 0) +lean_inc(x_33); +x_547 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_546, x_5, x_6, x_7, x_8, x_9, x_515); +if (lean_obj_tag(x_547) == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_78 = x_114; -x_79 = x_115; -goto block_111; +lean_object* x_548; lean_object* x_549; +x_548 = lean_ctor_get(x_547, 0); +lean_inc(x_548); +x_549 = lean_ctor_get(x_547, 1); +lean_inc(x_549); +lean_dec(x_547); +x_530 = x_548; +x_531 = x_549; +goto block_545; } else { -uint8_t x_116; -lean_dec(x_38); +uint8_t x_550; +lean_dec(x_523); +lean_dec(x_518); +lean_dec(x_516); lean_dec(x_37); -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_116 = !lean_is_exclusive(x_113); -if (x_116 == 0) -{ -return x_113; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_113, 0); -x_118 = lean_ctor_get(x_113, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_113); -x_119 = 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; -} -} -} -block_111: -{ -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; -x_80 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_37); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_array_get_size(x_26); -x_83 = lean_unsigned_to_nat(1u); -x_84 = lean_nat_sub(x_82, x_83); -x_85 = lean_nat_dec_lt(x_10, x_82); -lean_dec(x_82); -if (x_85 == 0) -{ -lean_dec(x_81); -lean_dec(x_38); -x_86 = x_78; -x_87 = x_79; -goto block_98; -} -else -{ -lean_object* x_99; lean_object* x_100; -x_99 = lean_box(0); -lean_inc(x_84); -x_100 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(x_99, x_26, x_81, x_10, x_84); -if (lean_obj_tag(x_100) == 0) -{ -lean_dec(x_38); -x_86 = x_78; -x_87 = x_79; -goto block_98; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -lean_dec(x_100); -lean_inc(x_31); -x_102 = l_Array_append___rarg(x_31, x_38); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_104 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_10, x_102, x_103, x_78, x_5, x_6, x_7, x_8, x_79); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_86 = x_105; -x_87 = x_106; -goto block_98; -} -else -{ -uint8_t x_107; -lean_dec(x_84); -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_107 = !lean_is_exclusive(x_104); -if (x_107 == 0) -{ -return x_104; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_104, 0); -x_109 = lean_ctor_get(x_104, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_104); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; -} -} -} -} -block_98: -{ -if (x_85 == 0) -{ -lean_object* x_88; -lean_dec(x_84); -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -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_object* x_90; lean_object* x_91; -x_89 = lean_box(0); -x_90 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1; -x_91 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(x_89, x_26, x_90, x_10, x_84); -lean_dec(x_26); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; -lean_dec(x_31); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_86); -lean_ctor_set(x_92, 1, x_87); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_91, 0); -lean_inc(x_93); -lean_dec(x_91); -x_94 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_95 = l_Array_append___rarg(x_31, x_94); -x_96 = lean_ctor_get(x_93, 1); -lean_inc(x_96); -lean_dec(x_93); -x_1 = x_10; -x_2 = x_95; -x_3 = x_96; -x_4 = x_86; -x_9 = x_87; -goto _start; -} -} -} -} -} -} -} -else -{ -uint8_t x_141; -lean_dec(x_31); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_141 = !lean_is_exclusive(x_33); -if (x_141 == 0) -{ -return x_33; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_33, 0); -x_143 = lean_ctor_get(x_33, 1); -lean_inc(x_143); -lean_inc(x_142); lean_dec(x_33); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_550 = !lean_is_exclusive(x_547); +if (x_550 == 0) +{ +return x_547; +} +else +{ +lean_object* x_551; lean_object* x_552; lean_object* x_553; +x_551 = lean_ctor_get(x_547, 0); +x_552 = lean_ctor_get(x_547, 1); +lean_inc(x_552); +lean_inc(x_551); +lean_dec(x_547); +x_553 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_553, 0, x_551); +lean_ctor_set(x_553, 1, x_552); +return x_553; +} +} +} +block_545: +{ +if (x_524 == 0) +{ +lean_object* x_532; +lean_dec(x_523); +lean_dec(x_518); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_516)) { + x_532 = lean_alloc_ctor(0, 2, 0); +} else { + x_532 = x_516; +} +lean_ctor_set(x_532, 0, x_530); +lean_ctor_set(x_532, 1, x_531); +return x_532; +} +else +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_533 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_534 = lean_alloc_ctor(0, 2, 0); +} else { + x_534 = x_28; +} +lean_ctor_set(x_534, 0, x_533); +lean_ctor_set(x_534, 1, x_533); +x_535 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_535, 0, x_37); +lean_ctor_set(x_535, 1, x_534); +x_536 = lean_unsigned_to_nat(1u); +x_537 = lean_nat_sub(x_523, x_536); +lean_dec(x_523); +x_538 = lean_box(0); +x_539 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg(x_1, x_538, x_27, x_535, x_11, x_537); +lean_dec(x_27); +if (lean_obj_tag(x_539) == 0) +{ +lean_object* x_540; +lean_dec(x_518); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_516)) { + x_540 = lean_alloc_ctor(0, 2, 0); +} else { + x_540 = x_516; +} +lean_ctor_set(x_540, 0, x_530); +lean_ctor_set(x_540, 1, x_531); +return x_540; +} +else +{ +lean_object* x_541; lean_object* x_542; lean_object* x_543; +lean_dec(x_516); +x_541 = lean_ctor_get(x_539, 0); +lean_inc(x_541); +lean_dec(x_539); +x_542 = l_Array_append___rarg(x_33, x_518); +x_543 = lean_ctor_get(x_541, 1); +lean_inc(x_543); +lean_dec(x_541); +x_2 = x_11; +x_3 = x_542; +x_4 = x_543; +x_5 = x_530; +x_10 = x_531; +goto _start; +} +} +} } } } else { -lean_object* x_145; -lean_dec(x_26); +lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; uint8_t x_565; lean_object* x_566; lean_object* x_567; +x_559 = lean_ctor_get(x_36, 1); +lean_inc(x_559); +lean_dec(x_36); +x_560 = lean_box(0); +x_561 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_561, 0, x_560); +lean_ctor_set(x_561, 1, x_11); +x_562 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg(x_1); +x_563 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_563, 0, x_561); +lean_ctor_set(x_563, 1, x_562); +x_564 = lean_array_get_size(x_27); +x_565 = lean_nat_dec_lt(x_11, x_564); +x_566 = lean_box(3); +if (x_565 == 0) +{ +lean_object* x_598; +x_598 = l___private_Init_Util_0__outOfBounds___rarg(x_563); +x_567 = x_598; +goto block_597; +} +else +{ +lean_object* x_599; +lean_dec(x_563); +x_599 = lean_array_fget(x_27, x_11); +x_567 = x_599; +goto block_597; +} +block_597: +{ +lean_object* x_568; uint8_t x_569; uint8_t x_570; +x_568 = lean_ctor_get(x_567, 0); +lean_inc(x_568); +x_569 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_568, x_566); +lean_dec(x_568); +if (x_569 == 0) +{ +x_570 = x_34; +goto block_595; +} +else +{ +uint8_t x_596; +x_596 = 1; +x_570 = x_596; +goto block_595; +} +block_595: +{ +lean_object* x_571; lean_object* x_572; +if (x_570 == 0) +{ +lean_dec(x_567); +x_571 = x_5; +x_572 = x_515; +goto block_586; +} +else +{ +lean_object* x_587; lean_object* x_588; +x_587 = lean_ctor_get(x_567, 1); +lean_inc(x_587); +lean_dec(x_567); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_33); +x_588 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_11, x_33, x_587, x_5, x_6, x_7, x_8, x_9, x_515); +if (lean_obj_tag(x_588) == 0) +{ +lean_object* x_589; lean_object* x_590; +x_589 = lean_ctor_get(x_588, 0); +lean_inc(x_589); +x_590 = lean_ctor_get(x_588, 1); +lean_inc(x_590); +lean_dec(x_588); +x_571 = x_589; +x_572 = x_590; +goto block_586; +} +else +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; +lean_dec(x_564); +lean_dec(x_559); +lean_dec(x_516); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +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_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_4); -lean_ctor_set(x_145, 1, x_9); -return x_145; +x_591 = lean_ctor_get(x_588, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_588, 1); +lean_inc(x_592); +if (lean_is_exclusive(x_588)) { + lean_ctor_release(x_588, 0); + lean_ctor_release(x_588, 1); + x_593 = x_588; +} else { + lean_dec_ref(x_588); + x_593 = lean_box(0); +} +if (lean_is_scalar(x_593)) { + x_594 = lean_alloc_ctor(1, 2, 0); +} else { + x_594 = x_593; +} +lean_ctor_set(x_594, 0, x_591); +lean_ctor_set(x_594, 1, x_592); +return x_594; +} +} +block_586: +{ +if (x_565 == 0) +{ +lean_object* x_573; +lean_dec(x_564); +lean_dec(x_559); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_516)) { + x_573 = lean_alloc_ctor(0, 2, 0); +} else { + x_573 = x_516; +} +lean_ctor_set(x_573, 0, x_571); +lean_ctor_set(x_573, 1, x_572); +return x_573; +} +else +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_574 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +if (lean_is_scalar(x_28)) { + x_575 = lean_alloc_ctor(0, 2, 0); +} else { + x_575 = x_28; +} +lean_ctor_set(x_575, 0, x_574); +lean_ctor_set(x_575, 1, x_574); +x_576 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_576, 0, x_37); +lean_ctor_set(x_576, 1, x_575); +x_577 = lean_unsigned_to_nat(1u); +x_578 = lean_nat_sub(x_564, x_577); +lean_dec(x_564); +x_579 = lean_box(0); +x_580 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg(x_1, x_579, x_27, x_576, x_11, x_578); +lean_dec(x_27); +if (lean_obj_tag(x_580) == 0) +{ +lean_object* x_581; +lean_dec(x_559); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_516)) { + x_581 = lean_alloc_ctor(0, 2, 0); +} else { + x_581 = x_516; +} +lean_ctor_set(x_581, 0, x_571); +lean_ctor_set(x_581, 1, x_572); +return x_581; +} +else +{ +lean_object* x_582; lean_object* x_583; lean_object* x_584; +lean_dec(x_516); +x_582 = lean_ctor_get(x_580, 0); +lean_inc(x_582); +lean_dec(x_580); +x_583 = l_Array_append___rarg(x_33, x_559); +x_584 = lean_ctor_get(x_582, 1); +lean_inc(x_584); +lean_dec(x_582); +x_2 = x_11; +x_3 = x_583; +x_4 = x_584; +x_5 = x_571; +x_10 = x_572; +goto _start; +} +} +} +} +} +} +} } } else { -lean_object* x_146; lean_object* x_147; -lean_dec(x_26); +uint8_t x_600; +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_27); +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_146 = l_Array_append___rarg(x_4, x_25); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_9); -return x_147; +x_600 = !lean_is_exclusive(x_35); +if (x_600 == 0) +{ +return x_35; +} +else +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; +x_601 = lean_ctor_get(x_35, 0); +x_602 = lean_ctor_get(x_35, 1); +lean_inc(x_602); +lean_inc(x_601); +lean_dec(x_35); +x_603 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_603, 0, x_601); +lean_ctor_set(x_603, 1, x_602); +return x_603; +} +} +} +else +{ +lean_object* x_604; +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_604 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_604, 0, x_5); +lean_ctor_set(x_604, 1, x_10); +return x_604; +} +} +else +{ +lean_object* x_605; lean_object* x_606; +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_605 = l_Array_append___rarg(x_5, x_26); +x_606 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_606, 0, x_605); +lean_ctor_set(x_606, 1, x_10); +return x_606; } } } @@ -15384,105 +18821,173 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process(lean_object* x_1 _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify_process___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify_process___rarg___boxed), 10, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___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, 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_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___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, 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_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__1___rarg(x_7, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); return x_8; } +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; size_t x_13; size_t x_14; lean_object* x_15; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +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_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(x_12, x_2, 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_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__5___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__6___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__7___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__8___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_13 = lean_unbox(x_1); +lean_dec(x_1); +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_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__9___rarg(x_13, x_2, x_3, 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_3); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify_process___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -15491,85 +18996,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -15577,70 +19082,70 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -15649,85 +19154,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -15735,70 +19240,70 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -15807,85 +19312,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -15893,29 +19398,29 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg___boxed), 3, 0); return x_2; } } @@ -16255,52 +19760,52 @@ x_10 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_DiscrTree_getUnify___sp return x_10; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg), 8, 0); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg), 8, 0); +return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -16309,85 +19814,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -16395,70 +19900,70 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -16467,85 +19972,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -16553,70 +20058,70 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -16625,85 +20130,85 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Discr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg___boxed), 6, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } @@ -16711,1462 +20216,1460 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTr _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed), 4, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg___boxed), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__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, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Meta_DiscrTree_Key_arity(x_2); -x_10 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_11 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_9, x_10, x_3, x_1, x_4, x_5, x_6, x_7, x_8); -return x_11; -} -} -static lean_object* _init_l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed), 8, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___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; uint8_t x_18; -x_18 = !lean_is_exclusive(x_3); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_3, 0); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; -x_21 = 2; -lean_ctor_set_uint8(x_19, 5, x_21); -x_22 = 0; -x_23 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_22, x_23, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -switch (lean_obj_tag(x_26)) { -case 0: -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_24); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_24, 1); -x_29 = lean_ctor_get(x_24, 0); -lean_dec(x_29); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -lean_inc(x_1); -x_31 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_32 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_26); -if (lean_obj_tag(x_32) == 0) -{ -lean_dec(x_30); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_31); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_free_object(x_24); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -lean_dec(x_32); -x_34 = lean_unsigned_to_nat(0u); -x_35 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_34, x_30, x_33, x_31, x_3, x_4, x_5, x_6, x_28); -x_8 = x_35; -goto block_17; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_24, 1); -lean_inc(x_36); -lean_dec(x_24); -x_37 = lean_ctor_get(x_25, 1); -lean_inc(x_37); -lean_dec(x_25); -lean_inc(x_1); -x_38 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_39 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_26); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; -lean_dec(x_37); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_36); -x_8 = x_40; -goto block_17; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_unsigned_to_nat(0u); -x_43 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_42, x_37, x_41, x_38, x_3, x_4, x_5, x_6, x_36); -x_8 = x_43; -goto block_17; -} -} -} -case 1: -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_24); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_45 = lean_ctor_get(x_24, 1); -x_46 = lean_ctor_get(x_24, 0); -lean_dec(x_46); -x_47 = lean_ctor_get(x_25, 1); -lean_inc(x_47); -lean_dec(x_25); -lean_inc(x_1); -x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_49 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_26); -if (lean_obj_tag(x_49) == 0) -{ -lean_dec(x_47); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_48); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_24); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -lean_dec(x_49); -x_51 = lean_unsigned_to_nat(0u); -x_52 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_51, x_47, x_50, x_48, x_3, x_4, x_5, x_6, x_45); -x_8 = x_52; -goto block_17; -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_24, 1); -lean_inc(x_53); -lean_dec(x_24); -x_54 = lean_ctor_get(x_25, 1); -lean_inc(x_54); -lean_dec(x_25); -lean_inc(x_1); -x_55 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_56 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_26); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; -lean_dec(x_54); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_53); -x_8 = x_57; -goto block_17; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_unsigned_to_nat(0u); -x_60 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_59, x_54, x_58, x_55, x_3, x_4, x_5, x_6, x_53); -x_8 = x_60; -goto block_17; -} -} -} -case 2: -{ -uint8_t x_61; -x_61 = !lean_is_exclusive(x_24); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_62 = lean_ctor_get(x_24, 1); -x_63 = lean_ctor_get(x_24, 0); -lean_dec(x_63); -x_64 = lean_ctor_get(x_25, 1); -lean_inc(x_64); -lean_dec(x_25); -lean_inc(x_1); -x_65 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_66 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_26); -if (lean_obj_tag(x_66) == 0) -{ -lean_dec(x_64); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_65); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_free_object(x_24); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -lean_dec(x_66); -x_68 = lean_unsigned_to_nat(0u); -x_69 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_68, x_64, x_67, x_65, x_3, x_4, x_5, x_6, x_62); -x_8 = x_69; -goto block_17; -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_24, 1); -lean_inc(x_70); -lean_dec(x_24); -x_71 = lean_ctor_get(x_25, 1); -lean_inc(x_71); -lean_dec(x_25); -lean_inc(x_1); -x_72 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_73 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_26); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; -lean_dec(x_71); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_70); -x_8 = x_74; -goto block_17; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -lean_dec(x_73); -x_76 = lean_unsigned_to_nat(0u); -x_77 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_76, x_71, x_75, x_72, x_3, x_4, x_5, x_6, x_70); -x_8 = x_77; -goto block_17; -} -} -} -case 3: -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_25); -x_78 = lean_ctor_get(x_24, 1); -lean_inc(x_78); -lean_dec(x_24); -x_79 = l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1; -x_80 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_81 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_1, x_79, x_80, x_3, x_4, x_5, x_6, x_78); -x_8 = x_81; -goto block_17; -} -case 4: -{ -uint8_t x_82; -x_82 = !lean_is_exclusive(x_24); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_83 = lean_ctor_get(x_24, 1); -x_84 = lean_ctor_get(x_24, 0); -lean_dec(x_84); -x_85 = lean_ctor_get(x_25, 1); -lean_inc(x_85); -lean_dec(x_25); -lean_inc(x_1); -x_86 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_87 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_26); -if (lean_obj_tag(x_87) == 0) -{ -lean_dec(x_85); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_86); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_free_object(x_24); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_unsigned_to_nat(0u); -x_90 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_89, x_85, x_88, x_86, x_3, x_4, x_5, x_6, x_83); -x_8 = x_90; -goto block_17; -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_24, 1); -lean_inc(x_91); -lean_dec(x_24); -x_92 = lean_ctor_get(x_25, 1); -lean_inc(x_92); -lean_dec(x_25); -lean_inc(x_1); -x_93 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_94 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_26); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; -lean_dec(x_92); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_91); -x_8 = x_95; -goto block_17; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_94, 0); -lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_97, x_92, x_96, x_93, x_3, x_4, x_5, x_6, x_91); -x_8 = x_98; -goto block_17; -} -} -} -case 5: -{ -uint8_t x_99; -x_99 = !lean_is_exclusive(x_24); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_100 = lean_ctor_get(x_24, 1); -x_101 = lean_ctor_get(x_24, 0); -lean_dec(x_101); -x_102 = lean_ctor_get(x_25, 1); -lean_inc(x_102); -lean_dec(x_25); -lean_inc(x_1); -x_103 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_104 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_26); -if (lean_obj_tag(x_104) == 0) -{ -lean_dec(x_102); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_103); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_free_object(x_24); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_unsigned_to_nat(0u); -x_107 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_106, x_102, x_105, x_103, x_3, x_4, x_5, x_6, x_100); -x_8 = x_107; -goto block_17; -} -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_108 = lean_ctor_get(x_24, 1); -lean_inc(x_108); -lean_dec(x_24); -x_109 = lean_ctor_get(x_25, 1); -lean_inc(x_109); -lean_dec(x_25); -lean_inc(x_1); -x_110 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_111 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_26); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; -lean_dec(x_109); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_108); -x_8 = x_112; -goto block_17; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_111, 0); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_unsigned_to_nat(0u); -x_115 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_114, x_109, x_113, x_110, x_3, x_4, x_5, x_6, x_108); -x_8 = x_115; -goto block_17; -} -} -} -default: -{ -uint8_t x_116; -x_116 = !lean_is_exclusive(x_24); -if (x_116 == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_117 = lean_ctor_get(x_24, 1); -x_118 = lean_ctor_get(x_24, 0); -lean_dec(x_118); -x_119 = lean_ctor_get(x_25, 1); -lean_inc(x_119); -lean_dec(x_25); -lean_inc(x_1); -x_120 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_121 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_26); -if (lean_obj_tag(x_121) == 0) -{ -lean_dec(x_119); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_24, 0, x_120); -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_free_object(x_24); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -lean_dec(x_121); -x_123 = lean_unsigned_to_nat(0u); -x_124 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_123, x_119, x_122, x_120, x_3, x_4, x_5, x_6, x_117); -x_8 = x_124; -goto block_17; -} -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_125 = lean_ctor_get(x_24, 1); -lean_inc(x_125); -lean_dec(x_24); -x_126 = lean_ctor_get(x_25, 1); -lean_inc(x_126); -lean_dec(x_25); -lean_inc(x_1); -x_127 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_128 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_26); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; -lean_dec(x_126); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_125); -x_8 = x_129; -goto block_17; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_128, 0); -lean_inc(x_130); -lean_dec(x_128); -x_131 = lean_unsigned_to_nat(0u); -x_132 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_131, x_126, x_130, x_127, x_3, x_4, x_5, x_6, x_125); -x_8 = x_132; -goto block_17; -} -} -} -} -} -else -{ -uint8_t x_133; -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_133 = !lean_is_exclusive(x_24); -if (x_133 == 0) -{ -x_8 = x_24; -goto block_17; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_24, 0); -x_135 = lean_ctor_get(x_24, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_24); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_8 = x_136; -goto block_17; -} -} -} -else -{ -uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; uint8_t x_152; uint8_t x_153; lean_object* x_154; -x_137 = lean_ctor_get_uint8(x_19, 0); -x_138 = lean_ctor_get_uint8(x_19, 1); -x_139 = lean_ctor_get_uint8(x_19, 2); -x_140 = lean_ctor_get_uint8(x_19, 3); -x_141 = lean_ctor_get_uint8(x_19, 4); -x_142 = lean_ctor_get_uint8(x_19, 6); -x_143 = lean_ctor_get_uint8(x_19, 7); -x_144 = lean_ctor_get_uint8(x_19, 8); -x_145 = lean_ctor_get_uint8(x_19, 9); -x_146 = lean_ctor_get_uint8(x_19, 10); -x_147 = lean_ctor_get_uint8(x_19, 11); -x_148 = lean_ctor_get_uint8(x_19, 12); -x_149 = lean_ctor_get_uint8(x_19, 13); -lean_dec(x_19); -x_150 = 2; -x_151 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_151, 0, x_137); -lean_ctor_set_uint8(x_151, 1, x_138); -lean_ctor_set_uint8(x_151, 2, x_139); -lean_ctor_set_uint8(x_151, 3, x_140); -lean_ctor_set_uint8(x_151, 4, x_141); -lean_ctor_set_uint8(x_151, 5, x_150); -lean_ctor_set_uint8(x_151, 6, x_142); -lean_ctor_set_uint8(x_151, 7, x_143); -lean_ctor_set_uint8(x_151, 8, x_144); -lean_ctor_set_uint8(x_151, 9, x_145); -lean_ctor_set_uint8(x_151, 10, x_146); -lean_ctor_set_uint8(x_151, 11, x_147); -lean_ctor_set_uint8(x_151, 12, x_148); -lean_ctor_set_uint8(x_151, 13, x_149); -lean_ctor_set(x_3, 0, x_151); -x_152 = 0; -x_153 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_154 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_152, x_153, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_154) == 0) -{ -lean_object* x_155; lean_object* x_156; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -switch (lean_obj_tag(x_156)) { -case 0: -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_158 = x_154; -} else { - lean_dec_ref(x_154); - x_158 = lean_box(0); -} -x_159 = lean_ctor_get(x_155, 1); -lean_inc(x_159); -lean_dec(x_155); -lean_inc(x_1); -x_160 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_161 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_156); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; -lean_dec(x_159); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_158)) { - x_162 = lean_alloc_ctor(0, 2, 0); -} else { - x_162 = x_158; -} -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_157); -x_8 = x_162; -goto block_17; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_158); -x_163 = lean_ctor_get(x_161, 0); -lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_unsigned_to_nat(0u); -x_165 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_164, x_159, x_163, x_160, x_3, x_4, x_5, x_6, x_157); -x_8 = x_165; -goto block_17; -} -} -case 1: -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_166 = lean_ctor_get(x_154, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_167 = x_154; -} else { - lean_dec_ref(x_154); - x_167 = lean_box(0); -} -x_168 = lean_ctor_get(x_155, 1); -lean_inc(x_168); -lean_dec(x_155); -lean_inc(x_1); -x_169 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_170 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_156); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; -lean_dec(x_168); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_167)) { - x_171 = lean_alloc_ctor(0, 2, 0); -} else { - x_171 = x_167; -} -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_166); -x_8 = x_171; -goto block_17; -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_167); -x_172 = lean_ctor_get(x_170, 0); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_unsigned_to_nat(0u); -x_174 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_173, x_168, x_172, x_169, x_3, x_4, x_5, x_6, x_166); -x_8 = x_174; -goto block_17; -} -} -case 2: -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_175 = lean_ctor_get(x_154, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_176 = x_154; -} else { - lean_dec_ref(x_154); - x_176 = lean_box(0); -} -x_177 = lean_ctor_get(x_155, 1); -lean_inc(x_177); -lean_dec(x_155); -lean_inc(x_1); -x_178 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_179 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_156); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; -lean_dec(x_177); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_176)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_176; -} -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_175); -x_8 = x_180; -goto block_17; -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; -lean_dec(x_176); -x_181 = lean_ctor_get(x_179, 0); -lean_inc(x_181); -lean_dec(x_179); -x_182 = lean_unsigned_to_nat(0u); -x_183 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_182, x_177, x_181, x_178, x_3, x_4, x_5, x_6, x_175); -x_8 = x_183; -goto block_17; -} -} -case 3: -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_155); -x_184 = lean_ctor_get(x_154, 1); -lean_inc(x_184); -lean_dec(x_154); -x_185 = l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1; -x_186 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_187 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_1, x_185, x_186, x_3, x_4, x_5, x_6, x_184); -x_8 = x_187; -goto block_17; -} -case 4: -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_188 = lean_ctor_get(x_154, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_189 = x_154; -} else { - lean_dec_ref(x_154); - x_189 = lean_box(0); -} -x_190 = lean_ctor_get(x_155, 1); -lean_inc(x_190); -lean_dec(x_155); -lean_inc(x_1); -x_191 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_192 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_156); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_193; -lean_dec(x_190); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_189)) { - x_193 = lean_alloc_ctor(0, 2, 0); -} else { - x_193 = x_189; -} -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_188); -x_8 = x_193; -goto block_17; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_189); -x_194 = lean_ctor_get(x_192, 0); -lean_inc(x_194); -lean_dec(x_192); -x_195 = lean_unsigned_to_nat(0u); -x_196 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_195, x_190, x_194, x_191, x_3, x_4, x_5, x_6, x_188); -x_8 = x_196; -goto block_17; -} -} -case 5: -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_197 = lean_ctor_get(x_154, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_198 = x_154; -} else { - lean_dec_ref(x_154); - x_198 = lean_box(0); -} -x_199 = lean_ctor_get(x_155, 1); -lean_inc(x_199); -lean_dec(x_155); -lean_inc(x_1); -x_200 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_201 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_156); -if (lean_obj_tag(x_201) == 0) -{ -lean_object* x_202; -lean_dec(x_199); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_198)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_198; -} -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_197); -x_8 = x_202; -goto block_17; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; -lean_dec(x_198); -x_203 = lean_ctor_get(x_201, 0); -lean_inc(x_203); -lean_dec(x_201); -x_204 = lean_unsigned_to_nat(0u); -x_205 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_204, x_199, x_203, x_200, x_3, x_4, x_5, x_6, x_197); -x_8 = x_205; -goto block_17; -} -} -default: -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_206 = lean_ctor_get(x_154, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_207 = x_154; -} else { - lean_dec_ref(x_154); - x_207 = lean_box(0); -} -x_208 = lean_ctor_get(x_155, 1); -lean_inc(x_208); -lean_dec(x_155); -lean_inc(x_1); -x_209 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_210 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_156); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; -lean_dec(x_208); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_207)) { - x_211 = lean_alloc_ctor(0, 2, 0); -} else { - x_211 = x_207; -} -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_206); -x_8 = x_211; -goto block_17; -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_207); -x_212 = lean_ctor_get(x_210, 0); -lean_inc(x_212); -lean_dec(x_210); -x_213 = lean_unsigned_to_nat(0u); -x_214 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_213, x_208, x_212, x_209, x_3, x_4, x_5, x_6, x_206); -x_8 = x_214; -goto block_17; -} -} -} -} -else -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_215 = lean_ctor_get(x_154, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_154, 1); -lean_inc(x_216); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_217 = x_154; -} else { - lean_dec_ref(x_154); - 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); -x_8 = x_218; -goto block_17; -} -} -} -else -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; uint8_t x_226; uint8_t x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; uint8_t x_231; uint8_t x_232; uint8_t x_233; uint8_t x_234; uint8_t x_235; uint8_t x_236; uint8_t x_237; lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; uint8_t x_243; lean_object* x_244; -x_219 = lean_ctor_get(x_3, 0); -x_220 = lean_ctor_get(x_3, 1); -x_221 = lean_ctor_get(x_3, 2); -x_222 = lean_ctor_get(x_3, 3); -x_223 = lean_ctor_get(x_3, 4); -x_224 = lean_ctor_get(x_3, 5); -lean_inc(x_224); -lean_inc(x_223); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_inc(x_219); -lean_dec(x_3); -x_225 = lean_ctor_get_uint8(x_219, 0); -x_226 = lean_ctor_get_uint8(x_219, 1); -x_227 = lean_ctor_get_uint8(x_219, 2); -x_228 = lean_ctor_get_uint8(x_219, 3); -x_229 = lean_ctor_get_uint8(x_219, 4); -x_230 = lean_ctor_get_uint8(x_219, 6); -x_231 = lean_ctor_get_uint8(x_219, 7); -x_232 = lean_ctor_get_uint8(x_219, 8); -x_233 = lean_ctor_get_uint8(x_219, 9); -x_234 = lean_ctor_get_uint8(x_219, 10); -x_235 = lean_ctor_get_uint8(x_219, 11); -x_236 = lean_ctor_get_uint8(x_219, 12); -x_237 = lean_ctor_get_uint8(x_219, 13); -if (lean_is_exclusive(x_219)) { - x_238 = x_219; -} else { - lean_dec_ref(x_219); - x_238 = lean_box(0); -} -x_239 = 2; -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 0, 14); -} else { - x_240 = x_238; -} -lean_ctor_set_uint8(x_240, 0, x_225); -lean_ctor_set_uint8(x_240, 1, x_226); -lean_ctor_set_uint8(x_240, 2, x_227); -lean_ctor_set_uint8(x_240, 3, x_228); -lean_ctor_set_uint8(x_240, 4, x_229); -lean_ctor_set_uint8(x_240, 5, x_239); -lean_ctor_set_uint8(x_240, 6, x_230); -lean_ctor_set_uint8(x_240, 7, x_231); -lean_ctor_set_uint8(x_240, 8, x_232); -lean_ctor_set_uint8(x_240, 9, x_233); -lean_ctor_set_uint8(x_240, 10, x_234); -lean_ctor_set_uint8(x_240, 11, x_235); -lean_ctor_set_uint8(x_240, 12, x_236); -lean_ctor_set_uint8(x_240, 13, x_237); -x_241 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_220); -lean_ctor_set(x_241, 2, x_221); -lean_ctor_set(x_241, 3, x_222); -lean_ctor_set(x_241, 4, x_223); -lean_ctor_set(x_241, 5, x_224); -x_242 = 0; -x_243 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_241); -x_244 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_242, x_243, x_241, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_244) == 0) -{ -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -switch (lean_obj_tag(x_246)) { -case 0: -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_247 = lean_ctor_get(x_244, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_248 = x_244; -} else { - lean_dec_ref(x_244); - x_248 = lean_box(0); -} -x_249 = lean_ctor_get(x_245, 1); -lean_inc(x_249); -lean_dec(x_245); -lean_inc(x_1); -x_250 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_251 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_246); -if (lean_obj_tag(x_251) == 0) -{ -lean_object* x_252; -lean_dec(x_249); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_248)) { - x_252 = lean_alloc_ctor(0, 2, 0); -} else { - x_252 = x_248; -} -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_247); -x_8 = x_252; -goto block_17; -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; -lean_dec(x_248); -x_253 = lean_ctor_get(x_251, 0); -lean_inc(x_253); -lean_dec(x_251); -x_254 = lean_unsigned_to_nat(0u); -x_255 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_254, x_249, x_253, x_250, x_241, x_4, x_5, x_6, x_247); -x_8 = x_255; -goto block_17; -} -} -case 1: -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_256 = lean_ctor_get(x_244, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_257 = x_244; -} else { - lean_dec_ref(x_244); - x_257 = lean_box(0); -} -x_258 = lean_ctor_get(x_245, 1); -lean_inc(x_258); -lean_dec(x_245); -lean_inc(x_1); -x_259 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_260 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_246); -if (lean_obj_tag(x_260) == 0) -{ -lean_object* x_261; -lean_dec(x_258); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_257)) { - x_261 = lean_alloc_ctor(0, 2, 0); -} else { - x_261 = x_257; -} -lean_ctor_set(x_261, 0, x_259); -lean_ctor_set(x_261, 1, x_256); -x_8 = x_261; -goto block_17; -} -else -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; -lean_dec(x_257); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_unsigned_to_nat(0u); -x_264 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_263, x_258, x_262, x_259, x_241, x_4, x_5, x_6, x_256); -x_8 = x_264; -goto block_17; -} -} -case 2: -{ -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_265 = lean_ctor_get(x_244, 1); -lean_inc(x_265); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_266 = x_244; -} else { - lean_dec_ref(x_244); - x_266 = lean_box(0); -} -x_267 = lean_ctor_get(x_245, 1); -lean_inc(x_267); -lean_dec(x_245); -lean_inc(x_1); -x_268 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_269 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_246); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; -lean_dec(x_267); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_266)) { - x_270 = lean_alloc_ctor(0, 2, 0); -} else { - x_270 = x_266; -} -lean_ctor_set(x_270, 0, x_268); -lean_ctor_set(x_270, 1, x_265); -x_8 = x_270; -goto block_17; -} -else -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; -lean_dec(x_266); -x_271 = lean_ctor_get(x_269, 0); -lean_inc(x_271); -lean_dec(x_269); -x_272 = lean_unsigned_to_nat(0u); -x_273 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_272, x_267, x_271, x_268, x_241, x_4, x_5, x_6, x_265); -x_8 = x_273; -goto block_17; -} -} -case 3: -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_245); -x_274 = lean_ctor_get(x_244, 1); -lean_inc(x_274); -lean_dec(x_244); -x_275 = l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1; -x_276 = l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; -x_277 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_1, x_275, x_276, x_241, x_4, x_5, x_6, x_274); -x_8 = x_277; -goto block_17; -} -case 4: -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_278 = lean_ctor_get(x_244, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_279 = x_244; -} else { - lean_dec_ref(x_244); - x_279 = lean_box(0); -} -x_280 = lean_ctor_get(x_245, 1); -lean_inc(x_280); -lean_dec(x_245); -lean_inc(x_1); -x_281 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_282 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_246); -if (lean_obj_tag(x_282) == 0) -{ -lean_object* x_283; -lean_dec(x_280); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_279)) { - x_283 = lean_alloc_ctor(0, 2, 0); -} else { - x_283 = x_279; -} -lean_ctor_set(x_283, 0, x_281); -lean_ctor_set(x_283, 1, x_278); -x_8 = x_283; -goto block_17; -} -else -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_279); -x_284 = lean_ctor_get(x_282, 0); -lean_inc(x_284); -lean_dec(x_282); -x_285 = lean_unsigned_to_nat(0u); -x_286 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_285, x_280, x_284, x_281, x_241, x_4, x_5, x_6, x_278); -x_8 = x_286; -goto block_17; -} -} -case 5: -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_287 = lean_ctor_get(x_244, 1); -lean_inc(x_287); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_288 = x_244; -} else { - lean_dec_ref(x_244); - x_288 = lean_box(0); -} -x_289 = lean_ctor_get(x_245, 1); -lean_inc(x_289); -lean_dec(x_245); -lean_inc(x_1); -x_290 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_291 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_246); -if (lean_obj_tag(x_291) == 0) -{ -lean_object* x_292; -lean_dec(x_289); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_288)) { - x_292 = lean_alloc_ctor(0, 2, 0); -} else { - x_292 = x_288; -} -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_287); -x_8 = x_292; -goto block_17; -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -lean_dec(x_288); -x_293 = lean_ctor_get(x_291, 0); -lean_inc(x_293); -lean_dec(x_291); -x_294 = lean_unsigned_to_nat(0u); -x_295 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_294, x_289, x_293, x_290, x_241, x_4, x_5, x_6, x_287); -x_8 = x_295; -goto block_17; -} -} -default: -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_296 = lean_ctor_get(x_244, 1); -lean_inc(x_296); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_297 = x_244; -} else { - lean_dec_ref(x_244); - x_297 = lean_box(0); -} -x_298 = lean_ctor_get(x_245, 1); -lean_inc(x_298); -lean_dec(x_245); -lean_inc(x_1); -x_299 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_300 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_246); -if (lean_obj_tag(x_300) == 0) -{ -lean_object* x_301; -lean_dec(x_298); -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_297)) { - x_301 = lean_alloc_ctor(0, 2, 0); -} else { - x_301 = x_297; -} -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set(x_301, 1, x_296); -x_8 = x_301; -goto block_17; -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_297); -x_302 = lean_ctor_get(x_300, 0); -lean_inc(x_302); -lean_dec(x_300); -x_303 = lean_unsigned_to_nat(0u); -x_304 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_303, x_298, x_302, x_299, x_241, x_4, x_5, x_6, x_296); -x_8 = x_304; -goto block_17; -} -} -} -} -else -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_241); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_305 = lean_ctor_get(x_244, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_244, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_307 = x_244; -} else { - lean_dec_ref(x_244); - x_307 = lean_box(0); -} -if (lean_is_scalar(x_307)) { - x_308 = lean_alloc_ctor(1, 2, 0); -} else { - x_308 = x_307; -} -lean_ctor_set(x_308, 0, x_305); -lean_ctor_set(x_308, 1, x_306); -x_8 = x_308; -goto block_17; -} -} -block_17: -{ -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -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); +x_10 = l_Lean_Meta_DiscrTree_Key_arity___rarg(x_3); +x_11 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_12 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_10, x_11, x_4, x_2, x_5, x_6, x_7, x_8, x_9); return x_12; } } -else +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) +lean_object* x_9; uint8_t x_19; +x_19 = !lean_is_exclusive(x_4); +if (x_19 == 0) { -return x_8; +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_4, 0); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; +x_22 = 2; +lean_ctor_set_uint8(x_20, 5, x_22); +x_23 = 0; +x_24 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_23, x_24, x_4, x_5, x_6, x_7, x_8); +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); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +switch (lean_obj_tag(x_27)) { +case 0: +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_25); +if (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_25, 1); +x_30 = lean_ctor_get(x_25, 0); +lean_dec(x_30); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_dec(x_26); +lean_inc(x_2); +x_32 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_33 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_33) == 0) +{ +lean_dec(x_31); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_32); +x_9 = x_25; +goto block_18; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_free_object(x_25); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_35, x_31, x_34, x_32, x_4, x_5, x_6, x_7, x_29); +x_9 = x_36; +goto block_18; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_25, 1); +lean_inc(x_37); +lean_dec(x_25); +x_38 = lean_ctor_get(x_26, 1); +lean_inc(x_38); +lean_dec(x_26); +lean_inc(x_2); +x_39 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_40 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +lean_dec(x_38); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_37); +x_9 = x_41; +goto block_18; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_unsigned_to_nat(0u); +x_44 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_43, x_38, x_42, x_39, x_4, x_5, x_6, x_7, x_37); +x_9 = x_44; +goto block_18; +} +} +} +case 1: +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_25); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_25, 1); +x_47 = lean_ctor_get(x_25, 0); +lean_dec(x_47); +x_48 = lean_ctor_get(x_26, 1); +lean_inc(x_48); +lean_dec(x_26); +lean_inc(x_2); +x_49 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_50 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_50) == 0) +{ +lean_dec(x_48); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_49); +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_free_object(x_25); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_unsigned_to_nat(0u); +x_53 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_52, x_48, x_51, x_49, x_4, x_5, x_6, x_7, x_46); +x_9 = x_53; +goto block_18; +} +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_25, 1); +lean_inc(x_54); +lean_dec(x_25); +x_55 = lean_ctor_get(x_26, 1); +lean_inc(x_55); +lean_dec(x_26); +lean_inc(x_2); +x_56 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_57 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; +lean_dec(x_55); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_54); +x_9 = x_58; +goto block_18; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_unsigned_to_nat(0u); +x_61 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_60, x_55, x_59, x_56, x_4, x_5, x_6, x_7, x_54); +x_9 = x_61; +goto block_18; +} +} +} +case 2: +{ +uint8_t x_62; +x_62 = !lean_is_exclusive(x_25); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_25, 1); +x_64 = lean_ctor_get(x_25, 0); +lean_dec(x_64); +x_65 = lean_ctor_get(x_26, 1); +lean_inc(x_65); +lean_dec(x_26); +lean_inc(x_2); +x_66 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_67 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_67) == 0) +{ +lean_dec(x_65); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_66); +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_free_object(x_25); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_unsigned_to_nat(0u); +x_70 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_69, x_65, x_68, x_66, x_4, x_5, x_6, x_7, x_63); +x_9 = x_70; +goto block_18; +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_25, 1); +lean_inc(x_71); +lean_dec(x_25); +x_72 = lean_ctor_get(x_26, 1); +lean_inc(x_72); +lean_dec(x_26); +lean_inc(x_2); +x_73 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_74 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; +lean_dec(x_72); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_71); +x_9 = x_75; +goto block_18; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +lean_dec(x_74); +x_77 = lean_unsigned_to_nat(0u); +x_78 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_77, x_72, x_76, x_73, x_4, x_5, x_6, x_7, x_71); +x_9 = x_78; +goto block_18; +} +} +} +case 3: +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_26); +x_79 = lean_ctor_get(x_25, 1); +lean_inc(x_79); +lean_dec(x_25); +x_80 = lean_box(x_1); +x_81 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_81, 0, x_80); +x_82 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_83 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_2, x_81, x_82, x_4, x_5, x_6, x_7, x_79); +x_9 = x_83; +goto block_18; +} +case 4: +{ +uint8_t x_84; +x_84 = !lean_is_exclusive(x_25); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_85 = lean_ctor_get(x_25, 1); +x_86 = lean_ctor_get(x_25, 0); +lean_dec(x_86); +x_87 = lean_ctor_get(x_26, 1); +lean_inc(x_87); +lean_dec(x_26); +lean_inc(x_2); +x_88 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_89 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_89) == 0) +{ +lean_dec(x_87); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_88); +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_free_object(x_25); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +lean_dec(x_89); +x_91 = lean_unsigned_to_nat(0u); +x_92 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_91, x_87, x_90, x_88, x_4, x_5, x_6, x_7, x_85); +x_9 = x_92; +goto block_18; +} +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_25, 1); +lean_inc(x_93); +lean_dec(x_25); +x_94 = lean_ctor_get(x_26, 1); +lean_inc(x_94); +lean_dec(x_26); +lean_inc(x_2); +x_95 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_96 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; +lean_dec(x_94); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_93); +x_9 = x_97; +goto block_18; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_96, 0); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_unsigned_to_nat(0u); +x_100 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_99, x_94, x_98, x_95, x_4, x_5, x_6, x_7, x_93); +x_9 = x_100; +goto block_18; +} +} +} +case 5: +{ +uint8_t x_101; +x_101 = !lean_is_exclusive(x_25); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_25, 1); +x_103 = lean_ctor_get(x_25, 0); +lean_dec(x_103); +x_104 = lean_ctor_get(x_26, 1); +lean_inc(x_104); +lean_dec(x_26); +lean_inc(x_2); +x_105 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_106 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_106) == 0) +{ +lean_dec(x_104); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_105); +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_free_object(x_25); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +lean_dec(x_106); +x_108 = lean_unsigned_to_nat(0u); +x_109 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_108, x_104, x_107, x_105, x_4, x_5, x_6, x_7, x_102); +x_9 = x_109; +goto block_18; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_110 = lean_ctor_get(x_25, 1); +lean_inc(x_110); +lean_dec(x_25); +x_111 = lean_ctor_get(x_26, 1); +lean_inc(x_111); +lean_dec(x_26); +lean_inc(x_2); +x_112 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_113 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; +lean_dec(x_111); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_110); +x_9 = x_114; +goto block_18; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_113, 0); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unsigned_to_nat(0u); +x_117 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_116, x_111, x_115, x_112, x_4, x_5, x_6, x_7, x_110); +x_9 = x_117; +goto block_18; +} +} +} +default: +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_25); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_119 = lean_ctor_get(x_25, 1); +x_120 = lean_ctor_get(x_25, 0); +lean_dec(x_120); +x_121 = lean_ctor_get(x_26, 1); +lean_inc(x_121); +lean_dec(x_26); +lean_inc(x_2); +x_122 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_123 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_123) == 0) +{ +lean_dec(x_121); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_25, 0, x_122); +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_free_object(x_25); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +lean_dec(x_123); +x_125 = lean_unsigned_to_nat(0u); +x_126 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_125, x_121, x_124, x_122, x_4, x_5, x_6, x_7, x_119); +x_9 = x_126; +goto block_18; +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_25, 1); +lean_inc(x_127); +lean_dec(x_25); +x_128 = lean_ctor_get(x_26, 1); +lean_inc(x_128); +lean_dec(x_26); +lean_inc(x_2); +x_129 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_130 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_2, x_27); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; +lean_dec(x_128); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_127); +x_9 = x_131; +goto block_18; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_130, 0); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_unsigned_to_nat(0u); +x_134 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_133, x_128, x_132, x_129, x_4, x_5, x_6, x_7, x_127); +x_9 = x_134; +goto block_18; +} +} +} +} +} +else +{ +uint8_t x_135; +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_135 = !lean_is_exclusive(x_25); +if (x_135 == 0) +{ +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_25, 0); +x_137 = lean_ctor_get(x_25, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_25); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +x_9 = x_138; +goto block_18; +} +} +} +else +{ +uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; uint8_t x_152; lean_object* x_153; uint8_t x_154; uint8_t x_155; lean_object* x_156; +x_139 = lean_ctor_get_uint8(x_20, 0); +x_140 = lean_ctor_get_uint8(x_20, 1); +x_141 = lean_ctor_get_uint8(x_20, 2); +x_142 = lean_ctor_get_uint8(x_20, 3); +x_143 = lean_ctor_get_uint8(x_20, 4); +x_144 = lean_ctor_get_uint8(x_20, 6); +x_145 = lean_ctor_get_uint8(x_20, 7); +x_146 = lean_ctor_get_uint8(x_20, 8); +x_147 = lean_ctor_get_uint8(x_20, 9); +x_148 = lean_ctor_get_uint8(x_20, 10); +x_149 = lean_ctor_get_uint8(x_20, 11); +x_150 = lean_ctor_get_uint8(x_20, 12); +x_151 = lean_ctor_get_uint8(x_20, 13); +lean_dec(x_20); +x_152 = 2; +x_153 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_153, 0, x_139); +lean_ctor_set_uint8(x_153, 1, x_140); +lean_ctor_set_uint8(x_153, 2, x_141); +lean_ctor_set_uint8(x_153, 3, x_142); +lean_ctor_set_uint8(x_153, 4, x_143); +lean_ctor_set_uint8(x_153, 5, x_152); +lean_ctor_set_uint8(x_153, 6, x_144); +lean_ctor_set_uint8(x_153, 7, x_145); +lean_ctor_set_uint8(x_153, 8, x_146); +lean_ctor_set_uint8(x_153, 9, x_147); +lean_ctor_set_uint8(x_153, 10, x_148); +lean_ctor_set_uint8(x_153, 11, x_149); +lean_ctor_set_uint8(x_153, 12, x_150); +lean_ctor_set_uint8(x_153, 13, x_151); +lean_ctor_set(x_4, 0, x_153); +x_154 = 0; +x_155 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_156 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_154, x_155, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +switch (lean_obj_tag(x_158)) { +case 0: +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_160 = x_156; +} else { + lean_dec_ref(x_156); + x_160 = lean_box(0); +} +x_161 = lean_ctor_get(x_157, 1); +lean_inc(x_161); +lean_dec(x_157); +lean_inc(x_2); +x_162 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_163 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; +lean_dec(x_161); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_160)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_160; +} +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_159); +x_9 = x_164; +goto block_18; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_160); +x_165 = lean_ctor_get(x_163, 0); +lean_inc(x_165); +lean_dec(x_163); +x_166 = lean_unsigned_to_nat(0u); +x_167 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_166, x_161, x_165, x_162, x_4, x_5, x_6, x_7, x_159); +x_9 = x_167; +goto block_18; +} +} +case 1: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_168 = lean_ctor_get(x_156, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_169 = x_156; +} else { + lean_dec_ref(x_156); + x_169 = lean_box(0); +} +x_170 = lean_ctor_get(x_157, 1); +lean_inc(x_170); +lean_dec(x_157); +lean_inc(x_2); +x_171 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_172 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; +lean_dec(x_170); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_169)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_169; +} +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_168); +x_9 = x_173; +goto block_18; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_169); +x_174 = lean_ctor_get(x_172, 0); +lean_inc(x_174); +lean_dec(x_172); +x_175 = lean_unsigned_to_nat(0u); +x_176 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_175, x_170, x_174, x_171, x_4, x_5, x_6, x_7, x_168); +x_9 = x_176; +goto block_18; +} +} +case 2: +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_177 = lean_ctor_get(x_156, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_178 = x_156; +} else { + lean_dec_ref(x_156); + x_178 = lean_box(0); +} +x_179 = lean_ctor_get(x_157, 1); +lean_inc(x_179); +lean_dec(x_157); +lean_inc(x_2); +x_180 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_181 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; +lean_dec(x_179); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_178)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_178; +} +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_177); +x_9 = x_182; +goto block_18; +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_178); +x_183 = lean_ctor_get(x_181, 0); +lean_inc(x_183); +lean_dec(x_181); +x_184 = lean_unsigned_to_nat(0u); +x_185 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_184, x_179, x_183, x_180, x_4, x_5, x_6, x_7, x_177); +x_9 = x_185; +goto block_18; +} +} +case 3: +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_157); +x_186 = lean_ctor_get(x_156, 1); +lean_inc(x_186); +lean_dec(x_156); +x_187 = lean_box(x_1); +x_188 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_188, 0, x_187); +x_189 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_190 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_2, x_188, x_189, x_4, x_5, x_6, x_7, x_186); +x_9 = x_190; +goto block_18; +} +case 4: +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_191 = lean_ctor_get(x_156, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_192 = x_156; +} else { + lean_dec_ref(x_156); + x_192 = lean_box(0); +} +x_193 = lean_ctor_get(x_157, 1); +lean_inc(x_193); +lean_dec(x_157); +lean_inc(x_2); +x_194 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_195 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; +lean_dec(x_193); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_192)) { + x_196 = lean_alloc_ctor(0, 2, 0); +} else { + x_196 = x_192; +} +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_191); +x_9 = x_196; +goto block_18; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_192); +x_197 = lean_ctor_get(x_195, 0); +lean_inc(x_197); +lean_dec(x_195); +x_198 = lean_unsigned_to_nat(0u); +x_199 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_198, x_193, x_197, x_194, x_4, x_5, x_6, x_7, x_191); +x_9 = x_199; +goto block_18; +} +} +case 5: +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_200 = lean_ctor_get(x_156, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_201 = x_156; +} else { + lean_dec_ref(x_156); + x_201 = lean_box(0); +} +x_202 = lean_ctor_get(x_157, 1); +lean_inc(x_202); +lean_dec(x_157); +lean_inc(x_2); +x_203 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_204 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; +lean_dec(x_202); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_201)) { + x_205 = lean_alloc_ctor(0, 2, 0); +} else { + x_205 = x_201; +} +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_200); +x_9 = x_205; +goto block_18; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_201); +x_206 = lean_ctor_get(x_204, 0); +lean_inc(x_206); +lean_dec(x_204); +x_207 = lean_unsigned_to_nat(0u); +x_208 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_207, x_202, x_206, x_203, x_4, x_5, x_6, x_7, x_200); +x_9 = x_208; +goto block_18; +} +} +default: +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_209 = lean_ctor_get(x_156, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_210 = x_156; +} else { + lean_dec_ref(x_156); + x_210 = lean_box(0); +} +x_211 = lean_ctor_get(x_157, 1); +lean_inc(x_211); +lean_dec(x_157); +lean_inc(x_2); +x_212 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_213 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_2, x_158); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; +lean_dec(x_211); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_210)) { + x_214 = lean_alloc_ctor(0, 2, 0); +} else { + x_214 = x_210; +} +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_209); +x_9 = x_214; +goto block_18; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_210); +x_215 = lean_ctor_get(x_213, 0); +lean_inc(x_215); +lean_dec(x_213); +x_216 = lean_unsigned_to_nat(0u); +x_217 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_216, x_211, x_215, x_212, x_4, x_5, x_6, x_7, x_209); +x_9 = x_217; +goto block_18; +} +} +} +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_218 = lean_ctor_get(x_156, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_156, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_220 = x_156; +} else { + lean_dec_ref(x_156); + x_220 = lean_box(0); +} +if (lean_is_scalar(x_220)) { + x_221 = lean_alloc_ctor(1, 2, 0); +} else { + x_221 = x_220; +} +lean_ctor_set(x_221, 0, x_218); +lean_ctor_set(x_221, 1, x_219); +x_9 = x_221; +goto block_18; +} +} +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; uint8_t x_231; uint8_t x_232; uint8_t x_233; uint8_t x_234; uint8_t x_235; uint8_t x_236; uint8_t x_237; uint8_t x_238; uint8_t x_239; uint8_t x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; uint8_t x_246; lean_object* x_247; +x_222 = lean_ctor_get(x_4, 0); +x_223 = lean_ctor_get(x_4, 1); +x_224 = lean_ctor_get(x_4, 2); +x_225 = lean_ctor_get(x_4, 3); +x_226 = lean_ctor_get(x_4, 4); +x_227 = lean_ctor_get(x_4, 5); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_4); +x_228 = lean_ctor_get_uint8(x_222, 0); +x_229 = lean_ctor_get_uint8(x_222, 1); +x_230 = lean_ctor_get_uint8(x_222, 2); +x_231 = lean_ctor_get_uint8(x_222, 3); +x_232 = lean_ctor_get_uint8(x_222, 4); +x_233 = lean_ctor_get_uint8(x_222, 6); +x_234 = lean_ctor_get_uint8(x_222, 7); +x_235 = lean_ctor_get_uint8(x_222, 8); +x_236 = lean_ctor_get_uint8(x_222, 9); +x_237 = lean_ctor_get_uint8(x_222, 10); +x_238 = lean_ctor_get_uint8(x_222, 11); +x_239 = lean_ctor_get_uint8(x_222, 12); +x_240 = lean_ctor_get_uint8(x_222, 13); +if (lean_is_exclusive(x_222)) { + x_241 = x_222; +} else { + lean_dec_ref(x_222); + x_241 = lean_box(0); +} +x_242 = 2; +if (lean_is_scalar(x_241)) { + x_243 = lean_alloc_ctor(0, 0, 14); +} else { + x_243 = x_241; +} +lean_ctor_set_uint8(x_243, 0, x_228); +lean_ctor_set_uint8(x_243, 1, x_229); +lean_ctor_set_uint8(x_243, 2, x_230); +lean_ctor_set_uint8(x_243, 3, x_231); +lean_ctor_set_uint8(x_243, 4, x_232); +lean_ctor_set_uint8(x_243, 5, x_242); +lean_ctor_set_uint8(x_243, 6, x_233); +lean_ctor_set_uint8(x_243, 7, x_234); +lean_ctor_set_uint8(x_243, 8, x_235); +lean_ctor_set_uint8(x_243, 9, x_236); +lean_ctor_set_uint8(x_243, 10, x_237); +lean_ctor_set_uint8(x_243, 11, x_238); +lean_ctor_set_uint8(x_243, 12, x_239); +lean_ctor_set_uint8(x_243, 13, x_240); +x_244 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_223); +lean_ctor_set(x_244, 2, x_224); +lean_ctor_set(x_244, 3, x_225); +lean_ctor_set(x_244, 4, x_226); +lean_ctor_set(x_244, 5, x_227); +x_245 = 0; +x_246 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_244); +x_247 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_1, x_3, x_245, x_246, x_244, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_248, 0); +lean_inc(x_249); +switch (lean_obj_tag(x_249)) { +case 0: +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_250 = lean_ctor_get(x_247, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_251 = x_247; +} else { + lean_dec_ref(x_247); + x_251 = lean_box(0); +} +x_252 = lean_ctor_get(x_248, 1); +lean_inc(x_252); +lean_dec(x_248); +lean_inc(x_2); +x_253 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_254 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_254) == 0) +{ +lean_object* x_255; +lean_dec(x_252); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_251)) { + x_255 = lean_alloc_ctor(0, 2, 0); +} else { + x_255 = x_251; +} +lean_ctor_set(x_255, 0, x_253); +lean_ctor_set(x_255, 1, x_250); +x_9 = x_255; +goto block_18; +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_251); +x_256 = lean_ctor_get(x_254, 0); +lean_inc(x_256); +lean_dec(x_254); +x_257 = lean_unsigned_to_nat(0u); +x_258 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_257, x_252, x_256, x_253, x_244, x_5, x_6, x_7, x_250); +x_9 = x_258; +goto block_18; +} +} +case 1: +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_259 = lean_ctor_get(x_247, 1); +lean_inc(x_259); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_260 = x_247; +} else { + lean_dec_ref(x_247); + x_260 = lean_box(0); +} +x_261 = lean_ctor_get(x_248, 1); +lean_inc(x_261); +lean_dec(x_248); +lean_inc(x_2); +x_262 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_263 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_263) == 0) +{ +lean_object* x_264; +lean_dec(x_261); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_260)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_260; +} +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_259); +x_9 = x_264; +goto block_18; +} +else +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec(x_260); +x_265 = lean_ctor_get(x_263, 0); +lean_inc(x_265); +lean_dec(x_263); +x_266 = lean_unsigned_to_nat(0u); +x_267 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_266, x_261, x_265, x_262, x_244, x_5, x_6, x_7, x_259); +x_9 = x_267; +goto block_18; +} +} +case 2: +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_268 = lean_ctor_get(x_247, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_269 = x_247; +} else { + lean_dec_ref(x_247); + x_269 = lean_box(0); +} +x_270 = lean_ctor_get(x_248, 1); +lean_inc(x_270); +lean_dec(x_248); +lean_inc(x_2); +x_271 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_272 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; +lean_dec(x_270); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_269)) { + x_273 = lean_alloc_ctor(0, 2, 0); +} else { + x_273 = x_269; +} +lean_ctor_set(x_273, 0, x_271); +lean_ctor_set(x_273, 1, x_268); +x_9 = x_273; +goto block_18; +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec(x_269); +x_274 = lean_ctor_get(x_272, 0); +lean_inc(x_274); +lean_dec(x_272); +x_275 = lean_unsigned_to_nat(0u); +x_276 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_275, x_270, x_274, x_271, x_244, x_5, x_6, x_7, x_268); +x_9 = x_276; +goto block_18; +} +} +case 3: +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_248); +x_277 = lean_ctor_get(x_247, 1); +lean_inc(x_277); +lean_dec(x_247); +x_278 = lean_box(x_1); +x_279 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_279, 0, x_278); +x_280 = l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1; +x_281 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___rarg(x_2, x_279, x_280, x_244, x_5, x_6, x_7, x_277); +x_9 = x_281; +goto block_18; +} +case 4: +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_282 = lean_ctor_get(x_247, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_283 = x_247; +} else { + lean_dec_ref(x_247); + x_283 = lean_box(0); +} +x_284 = lean_ctor_get(x_248, 1); +lean_inc(x_284); +lean_dec(x_248); +lean_inc(x_2); +x_285 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_286 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_286) == 0) +{ +lean_object* x_287; +lean_dec(x_284); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_283)) { + x_287 = lean_alloc_ctor(0, 2, 0); +} else { + x_287 = x_283; +} +lean_ctor_set(x_287, 0, x_285); +lean_ctor_set(x_287, 1, x_282); +x_9 = x_287; +goto block_18; +} +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_283); +x_288 = lean_ctor_get(x_286, 0); +lean_inc(x_288); +lean_dec(x_286); +x_289 = lean_unsigned_to_nat(0u); +x_290 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_289, x_284, x_288, x_285, x_244, x_5, x_6, x_7, x_282); +x_9 = x_290; +goto block_18; +} +} +case 5: +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_291 = lean_ctor_get(x_247, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_292 = x_247; +} else { + lean_dec_ref(x_247); + x_292 = lean_box(0); +} +x_293 = lean_ctor_get(x_248, 1); +lean_inc(x_293); +lean_dec(x_248); +lean_inc(x_2); +x_294 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_295 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_295) == 0) +{ +lean_object* x_296; +lean_dec(x_293); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_292)) { + x_296 = lean_alloc_ctor(0, 2, 0); +} else { + x_296 = x_292; +} +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_291); +x_9 = x_296; +goto block_18; +} +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; +lean_dec(x_292); +x_297 = lean_ctor_get(x_295, 0); +lean_inc(x_297); +lean_dec(x_295); +x_298 = lean_unsigned_to_nat(0u); +x_299 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_298, x_293, x_297, x_294, x_244, x_5, x_6, x_7, x_291); +x_9 = x_299; +goto block_18; +} +} +default: +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_300 = lean_ctor_get(x_247, 1); +lean_inc(x_300); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_301 = x_247; +} else { + lean_dec_ref(x_247); + x_301 = lean_box(0); +} +x_302 = lean_ctor_get(x_248, 1); +lean_inc(x_302); +lean_dec(x_248); +lean_inc(x_2); +x_303 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1, x_2); +x_304 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_1, x_2, x_249); +if (lean_obj_tag(x_304) == 0) +{ +lean_object* x_305; +lean_dec(x_302); +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_301)) { + x_305 = lean_alloc_ctor(0, 2, 0); +} else { + x_305 = x_301; +} +lean_ctor_set(x_305, 0, x_303); +lean_ctor_set(x_305, 1, x_300); +x_9 = x_305; +goto block_18; +} +else +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; +lean_dec(x_301); +x_306 = lean_ctor_get(x_304, 0); +lean_inc(x_306); +lean_dec(x_304); +x_307 = lean_unsigned_to_nat(0u); +x_308 = l_Lean_Meta_DiscrTree_getUnify_process___rarg(x_1, x_307, x_302, x_306, x_303, x_244, x_5, x_6, x_7, x_300); +x_9 = x_308; +goto block_18; +} +} +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_244); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_309 = lean_ctor_get(x_247, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_247, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_311 = x_247; +} else { + lean_dec_ref(x_247); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +x_9 = x_312; +goto block_18; +} +} +block_18: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +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; +} +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +return x_9; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; +lean_dec(x_9); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } } @@ -18176,73 +21679,115 @@ LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getUnify___rarg___boxed), 8, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__3___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__2___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__1___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__5___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__4___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__9___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__7___rarg(x_4, x_2, x_3); return x_5; } } @@ -18269,79 +21814,143 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); lean_dec(x_2); +x_4 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_getUnify___spec__10(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__15___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__19___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__18___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__17___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__22___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__21___rarg(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__20___rarg(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___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_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___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) { _start: { -lean_object* x_9; -x_9 = l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = l_Lean_Meta_DiscrTree_getUnify___rarg___lambda__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Lean_Meta_DiscrTree_getUnify___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); @@ -18361,38 +21970,36 @@ lean_dec_ref(res); res = initialize_Lean_Meta_DiscrTreeTypes(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_DiscrTree_instLTKey = _init_l_Lean_Meta_DiscrTree_instLTKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instLTKey); -l_Lean_Meta_DiscrTree_Key_format___closed__1 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__1(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__1); -l_Lean_Meta_DiscrTree_Key_format___closed__2 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__2(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__2); -l_Lean_Meta_DiscrTree_Key_format___closed__3 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__3(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__3); -l_Lean_Meta_DiscrTree_Key_format___closed__4 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__4(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__4); -l_Lean_Meta_DiscrTree_Key_format___closed__5 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__5(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__5); -l_Lean_Meta_DiscrTree_Key_format___closed__6 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__6(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__6); -l_Lean_Meta_DiscrTree_Key_format___closed__7 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__7(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__7); -l_Lean_Meta_DiscrTree_Key_format___closed__8 = _init_l_Lean_Meta_DiscrTree_Key_format___closed__8(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___closed__8); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__1 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__1); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__2 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__2); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__3 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__3(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__3); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__4); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__5); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__6); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__7); +l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8 = _init_l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_Key_format___rarg___closed__8); l_Lean_Meta_DiscrTree_instToFormatKey___closed__1 = _init_l_Lean_Meta_DiscrTree_instToFormatKey___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_instToFormatKey___closed__1); -l_Lean_Meta_DiscrTree_instToFormatKey = _init_l_Lean_Meta_DiscrTree_instToFormatKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instToFormatKey); -l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1 = _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1); -l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2 = _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2); +l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1 = _init_l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_instInhabitedTrie___rarg___closed__1); l_Lean_Meta_DiscrTree_empty___closed__1 = _init_l_Lean_Meta_DiscrTree_empty___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_empty___closed__1); l_Lean_Meta_DiscrTree_empty___closed__2 = _init_l_Lean_Meta_DiscrTree_empty___closed__2(); lean_mark_persistent(l_Lean_Meta_DiscrTree_empty___closed__2); l_Lean_Meta_DiscrTree_empty___closed__3 = _init_l_Lean_Meta_DiscrTree_empty___closed__3(); lean_mark_persistent(l_Lean_Meta_DiscrTree_empty___closed__3); +l_Lean_Meta_DiscrTree_empty___closed__4 = _init_l_Lean_Meta_DiscrTree_empty___closed__4(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_empty___closed__4); +l_Lean_Meta_DiscrTree_empty___closed__5 = _init_l_Lean_Meta_DiscrTree_empty___closed__5(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_empty___closed__5); l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__1 = _init_l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__1(); lean_mark_persistent(l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__1); l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2 = _init_l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__2(); @@ -18475,14 +22082,12 @@ l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_initCapacity = _init_l___ lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_initCapacity); l_Lean_Meta_DiscrTree_mkPath___closed__1 = _init_l_Lean_Meta_DiscrTree_mkPath___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_mkPath___closed__1); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg___closed__1); +l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___closed__1); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__1(); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_insertCore___spec__2___rarg___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1(); lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCore___spec__5___rarg___closed__1); -l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1 = _init_l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__23___rarg___closed__1); l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1 = _init_l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1); l_Lean_Meta_DiscrTree_insertCore___rarg___closed__2 = _init_l_Lean_Meta_DiscrTree_insertCore___rarg___closed__2(); @@ -18495,18 +22100,6 @@ l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1 = lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__1); l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2(); lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__2); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__3); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs___closed__4); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__1); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__2 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__2); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchLoop___rarg___closed__3); -l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1 = _init_l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_getUnify___rarg___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c b/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c index a0449ad90d..52dc2d7e60 100644 --- a/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c +++ b/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c @@ -14,91 +14,103 @@ extern "C" { #endif static lean_object* l_Lean_Meta_DiscrTree_root___default___closed__2; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instBEqKey___boxed(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_instBEqKey___closed__1; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25; -LEAN_EXPORT 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_404____rarg___closed__16; +LEAN_EXPORT uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default(lean_object*, uint8_t); uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1951_(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373_(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29; -static lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instHashableKey; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404_(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instHashableKey(uint8_t); lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____boxed(lean_object*); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; +LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_instReprKey___closed__1; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16; -LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instReprKey___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106_(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instHashableKey___boxed(lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_137_(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22; static lean_object* l_Lean_Meta_DiscrTree_root___default___closed__1; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23; static lean_object* l_Lean_Meta_DiscrTree_root___default___closed__3; lean_object* l_Nat_repr(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instBEqKey; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instBEqKey(uint8_t); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6; uint64_t lean_uint64_of_nat(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9; uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_32_(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17; static lean_object* l_Lean_Meta_DiscrTree_instHashableKey___closed__1; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instReprKey; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instReprKey(uint8_t); +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint64_t l_Lean_Literal_hash(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash___boxed(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26; +static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31; lean_object* lean_nat_to_int(lean_object*); -LEAN_EXPORT uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19; -static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash(uint8_t); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); -static lean_object* _init_l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey(uint8_t x_1) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -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); +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_box(0); +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instInhabitedKey(x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instInhabitedKey() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1; -return x_1; -} -} -LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -257,34 +269,62 @@ return x_36; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106_(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_1, x_2); +x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106_(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_DiscrTree_instBEqKey___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instBEqKey() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instBEqKey(uint8_t x_1) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instBEqKey___closed__1; -return x_1; +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_instBEqKey___closed__1; +return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instBEqKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instBEqKey(x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__1() { _start: { lean_object* x_1; @@ -292,21 +332,21 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.const", 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2; x_2 = lean_box(1); x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -314,7 +354,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -323,7 +363,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -332,7 +372,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6() { _start: { lean_object* x_1; @@ -340,21 +380,21 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.fvar", 28); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7; x_2 = lean_box(1); x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -362,7 +402,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9() { _start: { lean_object* x_1; @@ -370,21 +410,21 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.lit", 27); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10; x_2 = lean_box(1); x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -392,7 +432,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12() { _start: { lean_object* x_1; @@ -400,33 +440,33 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.star", 28); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -434,23 +474,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__16; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -458,7 +498,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18() { _start: { lean_object* x_1; @@ -466,33 +506,33 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.other", 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -500,23 +540,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -524,7 +564,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24() { _start: { lean_object* x_1; @@ -532,33 +572,33 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.arrow", 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -566,23 +606,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; -x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; +x_2 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25; x_3 = lean_alloc_ctor(3, 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28; x_2 = 0; x_3 = lean_alloc_ctor(5, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -590,7 +630,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30() { _start: { lean_object* x_1; @@ -598,21 +638,21 @@ x_1 = lean_mk_string_from_bytes("Lean.Meta.DiscrTree.Key.proj", 28); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32() { +static lean_object* _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31; +x_1 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31; x_2 = lean_box(1); x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -620,7 +660,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -635,7 +675,7 @@ lean_dec(x_1); x_5 = lean_unsigned_to_nat(1024u); x_6 = lean_nat_dec_le(x_5, x_2); x_7 = l_Lean_Name_reprPrec(x_3, x_5); -x_8 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3; +x_8 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3; x_9 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); @@ -652,7 +692,7 @@ lean_ctor_set(x_14, 1, x_13); if (x_6 == 0) { lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_15 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; +x_15 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; x_16 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -666,7 +706,7 @@ return x_19; else { lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_20 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; +x_20 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; x_21 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_14); @@ -689,7 +729,7 @@ lean_dec(x_1); x_27 = lean_unsigned_to_nat(1024u); x_28 = lean_nat_dec_le(x_27, x_2); x_29 = l_Lean_Name_reprPrec(x_25, x_27); -x_30 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8; +x_30 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8; x_31 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); @@ -706,7 +746,7 @@ lean_ctor_set(x_36, 1, x_35); if (x_28 == 0) { lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; -x_37 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; +x_37 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; x_38 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -720,7 +760,7 @@ return x_41; else { lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; -x_42 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; +x_42 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; x_43 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_36); @@ -741,14 +781,14 @@ lean_dec(x_1); x_48 = lean_unsigned_to_nat(1024u); x_49 = lean_nat_dec_le(x_48, x_2); x_50 = l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_137_(x_47, x_48); -x_51 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11; +x_51 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11; x_52 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_52, 0, x_51); lean_ctor_set(x_52, 1, x_50); if (x_49 == 0) { lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; -x_53 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; +x_53 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; x_54 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -762,7 +802,7 @@ return x_57; else { lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; -x_58 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; +x_58 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; x_59 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_52); @@ -782,14 +822,14 @@ x_64 = lean_nat_dec_le(x_63, x_2); if (x_64 == 0) { lean_object* x_65; lean_object* x_66; -x_65 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15; +x_65 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15; x_66 = l_Repr_addAppParen(x_65, x_2); return x_66; } else { lean_object* x_67; lean_object* x_68; -x_67 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17; +x_67 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17; x_68 = l_Repr_addAppParen(x_67, x_2); return x_68; } @@ -802,14 +842,14 @@ x_70 = lean_nat_dec_le(x_69, x_2); if (x_70 == 0) { lean_object* x_71; lean_object* x_72; -x_71 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21; +x_71 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21; x_72 = l_Repr_addAppParen(x_71, x_2); return x_72; } else { lean_object* x_73; lean_object* x_74; -x_73 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23; +x_73 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23; x_74 = l_Repr_addAppParen(x_73, x_2); return x_74; } @@ -822,14 +862,14 @@ x_76 = lean_nat_dec_le(x_75, x_2); if (x_76 == 0) { lean_object* x_77; lean_object* x_78; -x_77 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27; +x_77 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27; x_78 = l_Repr_addAppParen(x_77, x_2); return x_78; } else { lean_object* x_79; lean_object* x_80; -x_79 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29; +x_79 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29; x_80 = l_Repr_addAppParen(x_79, x_2); return x_80; } @@ -845,7 +885,7 @@ lean_dec(x_1); x_83 = lean_unsigned_to_nat(1024u); x_84 = lean_nat_dec_le(x_83, x_2); x_85 = l_Lean_Name_reprPrec(x_81, x_83); -x_86 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32; +x_86 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32; x_87 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_87, 0, x_86); lean_ctor_set(x_87, 1, x_85); @@ -862,7 +902,7 @@ lean_ctor_set(x_92, 1, x_91); if (x_84 == 0) { lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; -x_93 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4; +x_93 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4; x_94 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); @@ -876,7 +916,7 @@ return x_97; else { lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; -x_98 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5; +x_98 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5; x_99 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_99, 0, x_98); lean_ctor_set(x_99, 1, x_92); @@ -891,32 +931,60 @@ return x_102; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404_(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373_(x_1, x_2); +x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg(x_1, x_2); lean_dec(x_2); return x_3; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404_(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_DiscrTree_instReprKey___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instReprKey() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instReprKey(uint8_t x_1) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instReprKey___closed__1; -return x_1; +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_instReprKey___closed__1; +return x_2; } } -LEAN_EXPORT uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instReprKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instReprKey(x_2); +return x_3; +} +} +LEAN_EXPORT uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -986,30 +1054,58 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object* x_1) { _start: { uint64_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_DiscrTree_Key_hash(x_1); +x_2 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_1); lean_dec(x_1); x_3 = lean_box_uint64(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Key_hash___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_Key_hash(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_DiscrTree_instHashableKey___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_instHashableKey() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instHashableKey(uint8_t x_1) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instHashableKey___closed__1; -return x_1; +lean_object* x_2; +x_2 = l_Lean_Meta_DiscrTree_instHashableKey___closed__1; +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_instHashableKey___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_DiscrTree_instHashableKey(x_2); +return x_3; } } static lean_object* _init_l_Lean_Meta_DiscrTree_root___default___closed__1() { @@ -1042,12 +1138,22 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_root___default___closed__3; -return x_2; +lean_object* x_3; +x_3 = l_Lean_Meta_DiscrTree_root___default___closed__3; +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_Meta_DiscrTree_root___default(x_1, x_3); +return x_4; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); @@ -1063,86 +1169,76 @@ lean_dec_ref(res); res = initialize_Lean_Expr(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1 = _init_l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1); -l_Lean_Meta_DiscrTree_instInhabitedKey = _init_l_Lean_Meta_DiscrTree_instInhabitedKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instInhabitedKey); l_Lean_Meta_DiscrTree_instBEqKey___closed__1 = _init_l_Lean_Meta_DiscrTree_instBEqKey___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_instBEqKey___closed__1); -l_Lean_Meta_DiscrTree_instBEqKey = _init_l_Lean_Meta_DiscrTree_instBEqKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instBEqKey); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__1); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__2); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__3); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__4); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__5); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__6); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__7); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__8); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__9); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__10); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__11); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__12); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__13); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__14); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__15); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__16); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__17); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__18); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__19); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__20); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__21); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__22); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__23); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__24); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__25); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__26); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__27); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__28); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__29); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__30); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__31); -l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_373____closed__32); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__1 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__1); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__2); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__3); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__4); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__5); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__6); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__7); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__8); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__9); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__10); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__11); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__12); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__13); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__14); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__15); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__16 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__16(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__16); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__17); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__18); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__19); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__20); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__21); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__22); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__23); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__24); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__25); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__26); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__27); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__28); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__29); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__30); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__31); +l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32 = _init_l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_404____rarg___closed__32); l_Lean_Meta_DiscrTree_instReprKey___closed__1 = _init_l_Lean_Meta_DiscrTree_instReprKey___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_instReprKey___closed__1); -l_Lean_Meta_DiscrTree_instReprKey = _init_l_Lean_Meta_DiscrTree_instReprKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instReprKey); l_Lean_Meta_DiscrTree_instHashableKey___closed__1 = _init_l_Lean_Meta_DiscrTree_instHashableKey___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_instHashableKey___closed__1); -l_Lean_Meta_DiscrTree_instHashableKey = _init_l_Lean_Meta_DiscrTree_instHashableKey(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_instHashableKey); l_Lean_Meta_DiscrTree_root___default___closed__1 = _init_l_Lean_Meta_DiscrTree_root___default___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_root___default___closed__1); l_Lean_Meta_DiscrTree_root___default___closed__2 = _init_l_Lean_Meta_DiscrTree_root___default___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index c976f0dad1..0a6a16386a 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -839,7 +839,7 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkA LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Meta_CheckAssignment_checkMVar___spec__45(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___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* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); static lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_6023____closed__2; @@ -51049,32 +51049,33 @@ lean_dec(x_15); x_24 = !lean_is_exclusive(x_16); if (x_24 == 0) { -lean_object* x_25; uint8_t x_26; lean_object* x_27; +lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; x_25 = lean_ctor_get(x_16, 0); x_26 = 1; +x_27 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_27 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_26, x_25, x_4, x_5, x_6, x_7, x_23); -if (lean_obj_tag(x_27) == 0) +x_28 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_26, x_27, x_25, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_28) == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = l_Lean_Expr_isAppOf(x_29, x_3); -if (x_31 == 0) +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_28, 1); +x_32 = l_Lean_Expr_isAppOf(x_30, x_3); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -lean_free_object(x_27); +lean_object* x_33; lean_object* x_34; +lean_free_object(x_28); lean_free_object(x_16); -x_32 = lean_box(0); -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_29, x_3, x_32, x_4, x_5, x_6, x_7, x_30); -return x_33; +x_33 = lean_box(0); +x_34 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_30, x_3, x_33, x_4, x_5, x_6, x_7, x_31); +return x_34; } else { @@ -51083,186 +51084,187 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_ctor_set(x_16, 0, x_29); -lean_ctor_set(x_27, 0, x_16); -return x_27; +lean_ctor_set(x_16, 0, x_30); +lean_ctor_set(x_28, 0, x_16); +return x_28; } } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_28, 0); +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_36 = l_Lean_Expr_isAppOf(x_34, x_3); -if (x_36 == 0) +lean_dec(x_28); +x_37 = l_Lean_Expr_isAppOf(x_35, x_3); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; +lean_object* x_38; lean_object* x_39; lean_free_object(x_16); -x_37 = lean_box(0); -x_38 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_34, x_3, x_37, x_4, x_5, x_6, x_7, x_35); -return x_38; -} -else -{ -lean_object* x_39; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_ctor_set(x_16, 0, x_34); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_16); -lean_ctor_set(x_39, 1, x_35); +x_38 = lean_box(0); +x_39 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_35, x_3, x_38, x_4, x_5, x_6, x_7, x_36); return x_39; } +else +{ +lean_object* x_40; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_ctor_set(x_16, 0, x_35); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_16); +lean_ctor_set(x_40, 1, x_36); +return x_40; +} } } else { -uint8_t x_40; +uint8_t x_41; lean_free_object(x_16); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_40 = !lean_is_exclusive(x_27); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_28); +if (x_41 == 0) { -return x_27; +return x_28; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_27, 0); -x_42 = lean_ctor_get(x_27, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_28, 0); +x_43 = lean_ctor_get(x_28, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_27); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_dec(x_28); +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_44; uint8_t x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_16, 0); -lean_inc(x_44); +lean_object* x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_16, 0); +lean_inc(x_45); lean_dec(x_16); -x_45 = 1; +x_46 = 1; +x_47 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_46 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_45, x_44, x_4, x_5, x_6, x_7, x_23); -if (lean_obj_tag(x_46) == 0) +x_48 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_46, x_47, x_45, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_48); + x_51 = lean_box(0); } -x_50 = l_Lean_Expr_isAppOf(x_47, x_3); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -lean_dec(x_49); -x_51 = lean_box(0); -x_52 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_47, x_3, x_51, x_4, x_5, x_6, x_7, x_48); -return x_52; -} -else +x_52 = l_Lean_Expr_isAppOf(x_49, x_3); +if (x_52 == 0) { lean_object* x_53; lean_object* x_54; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_53 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_53, 0, x_47); -if (lean_is_scalar(x_49)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_49; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_48); +lean_dec(x_51); +x_53 = lean_box(0); +x_54 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq_packedInstanceOf_x3f___lambda__1(x_49, x_3, x_53, x_4, x_5, x_6, x_7, x_50); return x_54; } -} else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_object* x_55; lean_object* x_56; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_55 = lean_ctor_get(x_46, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_46, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_57 = x_46; +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_49); +if (lean_is_scalar(x_51)) { + x_56 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_46); - x_57 = lean_box(0); + x_56 = x_51; } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_50); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_57 = lean_ctor_get(x_48, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_48, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_59 = x_48; } else { - x_58 = x_57; + lean_dec_ref(x_48); + x_59 = lean_box(0); } -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; } } } } else { -uint8_t x_59; +uint8_t x_61; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_59 = !lean_is_exclusive(x_15); -if (x_59 == 0) +x_61 = !lean_is_exclusive(x_15); +if (x_61 == 0) { return x_15; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_15, 0); -x_61 = lean_ctor_get(x_15, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_15, 0); +x_63 = lean_ctor_get(x_15, 1); +lean_inc(x_63); +lean_inc(x_62); lean_dec(x_15); -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; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } } @@ -64032,1993 +64034,1966 @@ return x_9; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isExprDefEqExpensive___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: { -uint8_t x_9; lean_object* x_10; +uint8_t x_9; uint8_t x_10; lean_object* x_11; x_9 = 1; +x_10 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_10 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_9, x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_10) == 0) +x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_9, x_10, x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_11) == 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_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_9, x_2, x_4, x_5, x_6, x_7, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_181; -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_181 = lean_expr_eqv(x_1, x_11); -if (x_181 == 0) -{ -lean_object* x_182; -lean_dec(x_2); -lean_dec(x_1); -x_182 = lean_is_expr_def_eq(x_11, x_14, x_4, x_5, x_6, x_7, x_15); -return x_182; -} -else -{ -uint8_t x_183; -x_183 = lean_expr_eqv(x_2, x_14); -if (x_183 == 0) -{ -lean_object* x_184; -lean_dec(x_2); -lean_dec(x_1); -x_184 = lean_is_expr_def_eq(x_11, x_14, x_4, x_5, x_6, x_7, x_15); -return x_184; -} -else -{ -uint8_t x_185; -lean_dec(x_14); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -x_185 = l_Lean_Expr_isConst(x_1); -if (x_185 == 0) -{ -lean_object* x_186; -x_186 = lean_box(0); -x_16 = x_186; -goto block_180; -} -else -{ -uint8_t x_187; -x_187 = l_Lean_Expr_isConst(x_2); -if (x_187 == 0) -{ -lean_object* x_188; -x_188 = lean_box(0); -x_16 = x_188; -goto block_180; -} -else -{ -lean_object* x_189; lean_object* x_190; uint8_t x_191; -x_189 = l_Lean_Expr_constName_x21(x_1); -x_190 = l_Lean_Expr_constName_x21(x_2); -x_191 = lean_name_eq(x_189, x_190); -lean_dec(x_190); -lean_dec(x_189); -if (x_191 == 0) -{ -lean_object* x_192; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_1); -x_192 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_15); -if (lean_obj_tag(x_192) == 0) +x_14 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_9, x_10, x_2, x_4, x_5, x_6, x_7, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_193; uint8_t x_194; -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_unbox(x_193); -lean_dec(x_193); -switch (x_194) { -case 0: +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_170; +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_170 = lean_expr_eqv(x_1, x_12); +if (x_170 == 0) { -uint8_t x_195; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_171; lean_dec(x_2); lean_dec(x_1); -x_195 = !lean_is_exclusive(x_192); -if (x_195 == 0) -{ -lean_object* x_196; uint8_t x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_192, 0); -lean_dec(x_196); -x_197 = 0; -x_198 = lean_box(x_197); -lean_ctor_set(x_192, 0, x_198); -return x_192; -} -else -{ -lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; -x_199 = lean_ctor_get(x_192, 1); -lean_inc(x_199); -lean_dec(x_192); -x_200 = 0; -x_201 = lean_box(x_200); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_199); -return x_202; -} -} -case 1: -{ -uint8_t x_203; -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_203 = !lean_is_exclusive(x_192); -if (x_203 == 0) -{ -lean_object* x_204; lean_object* x_205; -x_204 = lean_ctor_get(x_192, 0); -lean_dec(x_204); -x_205 = lean_box(x_9); -lean_ctor_set(x_192, 0, x_205); -return x_192; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_192, 1); -lean_inc(x_206); -lean_dec(x_192); -x_207 = lean_box(x_9); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_206); -return x_208; -} -} -default: -{ -lean_object* x_209; lean_object* x_210; -x_209 = lean_ctor_get(x_192, 1); -lean_inc(x_209); -lean_dec(x_192); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_210 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_209); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; uint8_t x_212; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_unbox(x_211); -lean_dec(x_211); -switch (x_212) { -case 0: -{ -uint8_t x_213; -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_213 = !lean_is_exclusive(x_210); -if (x_213 == 0) -{ -lean_object* x_214; uint8_t x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_210, 0); -lean_dec(x_214); -x_215 = 0; -x_216 = lean_box(x_215); -lean_ctor_set(x_210, 0, x_216); -return x_210; -} -else -{ -lean_object* x_217; uint8_t x_218; lean_object* x_219; lean_object* x_220; -x_217 = lean_ctor_get(x_210, 1); -lean_inc(x_217); -lean_dec(x_210); -x_218 = 0; -x_219 = lean_box(x_218); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_217); -return x_220; -} -} -case 1: -{ -uint8_t x_221; -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_221 = !lean_is_exclusive(x_210); -if (x_221 == 0) -{ -lean_object* x_222; lean_object* x_223; -x_222 = lean_ctor_get(x_210, 0); -lean_dec(x_222); -x_223 = lean_box(x_9); -lean_ctor_set(x_210, 0, x_223); -return x_210; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_210, 1); -lean_inc(x_224); -lean_dec(x_210); -x_225 = lean_box(x_9); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_224); -return x_226; -} -} -default: -{ -lean_object* x_227; lean_object* x_228; -x_227 = lean_ctor_get(x_210, 1); -lean_inc(x_227); -lean_dec(x_210); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_228 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_227); -if (lean_obj_tag(x_228) == 0) -{ -lean_object* x_229; uint8_t x_230; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_unbox(x_229); -lean_dec(x_229); -switch (x_230) { -case 0: -{ -uint8_t x_231; -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_231 = !lean_is_exclusive(x_228); -if (x_231 == 0) -{ -lean_object* x_232; uint8_t x_233; lean_object* x_234; -x_232 = lean_ctor_get(x_228, 0); -lean_dec(x_232); -x_233 = 0; -x_234 = lean_box(x_233); -lean_ctor_set(x_228, 0, x_234); -return x_228; -} -else -{ -lean_object* x_235; uint8_t x_236; lean_object* x_237; lean_object* x_238; -x_235 = lean_ctor_get(x_228, 1); -lean_inc(x_235); -lean_dec(x_228); -x_236 = 0; -x_237 = lean_box(x_236); -x_238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_235); -return x_238; -} -} -case 1: -{ -uint8_t x_239; -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_239 = !lean_is_exclusive(x_228); -if (x_239 == 0) -{ -lean_object* x_240; lean_object* x_241; -x_240 = lean_ctor_get(x_228, 0); -lean_dec(x_240); -x_241 = lean_box(x_9); -lean_ctor_set(x_228, 0, x_241); -return x_228; -} -else -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_242 = lean_ctor_get(x_228, 1); -lean_inc(x_242); -lean_dec(x_228); -x_243 = lean_box(x_9); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -return x_244; -} -} -default: -{ -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_228, 1); -lean_inc(x_245); -lean_dec(x_228); -x_246 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_245); -if (lean_obj_tag(x_246) == 0) -{ -lean_object* x_247; -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -if (lean_obj_tag(x_247) == 1) -{ -uint8_t x_248; -x_248 = !lean_is_exclusive(x_246); -if (x_248 == 0) -{ -lean_object* x_249; lean_object* x_250; -x_249 = lean_ctor_get(x_246, 0); -lean_dec(x_249); -x_250 = lean_box(x_9); -lean_ctor_set(x_246, 0, x_250); -return x_246; -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_251 = lean_ctor_get(x_246, 1); -lean_inc(x_251); -lean_dec(x_246); -x_252 = lean_box(x_9); -x_253 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_251); -return x_253; -} -} -else -{ -uint8_t x_254; -lean_dec(x_247); -x_254 = !lean_is_exclusive(x_246); -if (x_254 == 0) -{ -lean_object* x_255; uint8_t x_256; lean_object* x_257; -x_255 = lean_ctor_get(x_246, 0); -lean_dec(x_255); -x_256 = 0; -x_257 = lean_box(x_256); -lean_ctor_set(x_246, 0, x_257); -return x_246; -} -else -{ -lean_object* x_258; uint8_t x_259; lean_object* x_260; lean_object* x_261; -x_258 = lean_ctor_get(x_246, 1); -lean_inc(x_258); -lean_dec(x_246); -x_259 = 0; -x_260 = lean_box(x_259); -x_261 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_258); -return x_261; -} -} -} -else -{ -uint8_t x_262; -x_262 = !lean_is_exclusive(x_246); -if (x_262 == 0) -{ -return x_246; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_246, 0); -x_264 = lean_ctor_get(x_246, 1); -lean_inc(x_264); -lean_inc(x_263); -lean_dec(x_246); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -return x_265; -} -} -} -} -} -else -{ -uint8_t x_266; -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_266 = !lean_is_exclusive(x_228); -if (x_266 == 0) -{ -return x_228; -} -else -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_228, 0); -x_268 = lean_ctor_get(x_228, 1); -lean_inc(x_268); -lean_inc(x_267); -lean_dec(x_228); -x_269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_269, 0, x_267); -lean_ctor_set(x_269, 1, x_268); -return x_269; -} -} -} -} -} -else -{ -uint8_t x_270; -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_270 = !lean_is_exclusive(x_210); -if (x_270 == 0) -{ -return x_210; -} -else -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_210, 0); -x_272 = lean_ctor_get(x_210, 1); -lean_inc(x_272); -lean_inc(x_271); -lean_dec(x_210); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set(x_273, 1, x_272); -return x_273; -} -} -} -} -} -else -{ -uint8_t x_274; -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_274 = !lean_is_exclusive(x_192); -if (x_274 == 0) -{ -return x_192; -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = lean_ctor_get(x_192, 0); -x_276 = lean_ctor_get(x_192, 1); -lean_inc(x_276); -lean_inc(x_275); -lean_dec(x_192); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_276); -return x_277; -} -} -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_inc(x_1); -x_278 = l_Lean_Expr_constLevels_x21(x_1); -lean_inc(x_2); -x_279 = l_Lean_Expr_constLevels_x21(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_280 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_15); -if (lean_obj_tag(x_280) == 0) -{ -lean_object* x_281; uint8_t x_282; -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_unbox(x_281); -lean_dec(x_281); -switch (x_282) { -case 0: -{ -uint8_t x_283; -lean_dec(x_279); -lean_dec(x_278); -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_283 = !lean_is_exclusive(x_280); -if (x_283 == 0) -{ -lean_object* x_284; uint8_t x_285; lean_object* x_286; -x_284 = lean_ctor_get(x_280, 0); -lean_dec(x_284); -x_285 = 0; -x_286 = lean_box(x_285); -lean_ctor_set(x_280, 0, x_286); -return x_280; -} -else -{ -lean_object* x_287; uint8_t x_288; lean_object* x_289; lean_object* x_290; -x_287 = lean_ctor_get(x_280, 1); -lean_inc(x_287); -lean_dec(x_280); -x_288 = 0; -x_289 = lean_box(x_288); -x_290 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_287); -return x_290; -} -} -case 1: -{ -uint8_t x_291; -lean_dec(x_279); -lean_dec(x_278); -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_291 = !lean_is_exclusive(x_280); -if (x_291 == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_280, 0); -lean_dec(x_292); -x_293 = lean_box(x_9); -lean_ctor_set(x_280, 0, x_293); -return x_280; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_280, 1); -lean_inc(x_294); -lean_dec(x_280); -x_295 = lean_box(x_9); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_294); -return x_296; -} -} -default: -{ -lean_object* x_297; lean_object* x_298; -x_297 = lean_ctor_get(x_280, 1); -lean_inc(x_297); -lean_dec(x_280); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_298 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_297); -if (lean_obj_tag(x_298) == 0) -{ -lean_object* x_299; uint8_t x_300; -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_unbox(x_299); -lean_dec(x_299); -switch (x_300) { -case 0: -{ -uint8_t x_301; -lean_dec(x_279); -lean_dec(x_278); -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_301 = !lean_is_exclusive(x_298); -if (x_301 == 0) -{ -lean_object* x_302; uint8_t x_303; lean_object* x_304; -x_302 = lean_ctor_get(x_298, 0); -lean_dec(x_302); -x_303 = 0; -x_304 = lean_box(x_303); -lean_ctor_set(x_298, 0, x_304); -return x_298; -} -else -{ -lean_object* x_305; uint8_t x_306; lean_object* x_307; lean_object* x_308; -x_305 = lean_ctor_get(x_298, 1); -lean_inc(x_305); -lean_dec(x_298); -x_306 = 0; -x_307 = lean_box(x_306); -x_308 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -case 1: -{ -uint8_t x_309; -lean_dec(x_279); -lean_dec(x_278); -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_309 = !lean_is_exclusive(x_298); -if (x_309 == 0) -{ -lean_object* x_310; lean_object* x_311; -x_310 = lean_ctor_get(x_298, 0); -lean_dec(x_310); -x_311 = lean_box(x_9); -lean_ctor_set(x_298, 0, x_311); -return x_298; -} -else -{ -lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_312 = lean_ctor_get(x_298, 1); -lean_inc(x_312); -lean_dec(x_298); -x_313 = lean_box(x_9); -x_314 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_312); -return x_314; -} -} -default: -{ -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_298, 1); -lean_inc(x_315); -lean_dec(x_298); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_316 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_315); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; uint8_t x_318; -x_317 = lean_ctor_get(x_316, 0); -lean_inc(x_317); -x_318 = lean_unbox(x_317); -lean_dec(x_317); -switch (x_318) { -case 0: -{ -uint8_t x_319; -lean_dec(x_279); -lean_dec(x_278); -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_319 = !lean_is_exclusive(x_316); -if (x_319 == 0) -{ -lean_object* x_320; uint8_t x_321; lean_object* x_322; -x_320 = lean_ctor_get(x_316, 0); -lean_dec(x_320); -x_321 = 0; -x_322 = lean_box(x_321); -lean_ctor_set(x_316, 0, x_322); -return x_316; -} -else -{ -lean_object* x_323; uint8_t x_324; lean_object* x_325; lean_object* x_326; -x_323 = lean_ctor_get(x_316, 1); -lean_inc(x_323); -lean_dec(x_316); -x_324 = 0; -x_325 = lean_box(x_324); -x_326 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_323); -return x_326; -} -} -case 1: -{ -uint8_t x_327; -lean_dec(x_279); -lean_dec(x_278); -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_327 = !lean_is_exclusive(x_316); -if (x_327 == 0) -{ -lean_object* x_328; lean_object* x_329; -x_328 = lean_ctor_get(x_316, 0); -lean_dec(x_328); -x_329 = lean_box(x_9); -lean_ctor_set(x_316, 0, x_329); -return x_316; -} -else -{ -lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_330 = lean_ctor_get(x_316, 1); -lean_inc(x_330); -lean_dec(x_316); -x_331 = lean_box(x_9); -x_332 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_332, 0, x_331); -lean_ctor_set(x_332, 1, x_330); -return x_332; -} -} -default: -{ -lean_object* x_333; lean_object* x_334; -x_333 = lean_ctor_get(x_316, 1); -lean_inc(x_333); -lean_dec(x_316); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_334 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_333); -if (lean_obj_tag(x_334) == 0) -{ -lean_object* x_335; uint8_t x_336; -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_unbox(x_335); -lean_dec(x_335); -switch (x_336) { -case 0: -{ -uint8_t x_337; -lean_dec(x_279); -lean_dec(x_278); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_337 = !lean_is_exclusive(x_334); -if (x_337 == 0) -{ -lean_object* x_338; uint8_t x_339; lean_object* x_340; -x_338 = lean_ctor_get(x_334, 0); -lean_dec(x_338); -x_339 = 0; -x_340 = lean_box(x_339); -lean_ctor_set(x_334, 0, x_340); -return x_334; -} -else -{ -lean_object* x_341; uint8_t x_342; lean_object* x_343; lean_object* x_344; -x_341 = lean_ctor_get(x_334, 1); -lean_inc(x_341); -lean_dec(x_334); -x_342 = 0; -x_343 = lean_box(x_342); -x_344 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_341); -return x_344; -} -} -case 1: -{ -uint8_t x_345; -lean_dec(x_279); -lean_dec(x_278); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_345 = !lean_is_exclusive(x_334); -if (x_345 == 0) -{ -lean_object* x_346; lean_object* x_347; -x_346 = lean_ctor_get(x_334, 0); -lean_dec(x_346); -x_347 = lean_box(x_9); -lean_ctor_set(x_334, 0, x_347); -return x_334; -} -else -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_348 = lean_ctor_get(x_334, 1); -lean_inc(x_348); -lean_dec(x_334); -x_349 = lean_box(x_9); -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_348); -return x_350; -} -} -default: -{ -lean_object* x_351; lean_object* x_352; -x_351 = lean_ctor_get(x_334, 1); -lean_inc(x_351); -lean_dec(x_334); -x_352 = l_Lean_Meta_isListLevelDefEqAux(x_278, x_279, x_4, x_5, x_6, x_7, x_351); -return x_352; -} -} -} -else -{ -uint8_t x_353; -lean_dec(x_279); -lean_dec(x_278); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_353 = !lean_is_exclusive(x_334); -if (x_353 == 0) -{ -return x_334; -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_334, 0); -x_355 = lean_ctor_get(x_334, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_334); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; -} -} -} -} -} -else -{ -uint8_t x_357; -lean_dec(x_279); -lean_dec(x_278); -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_357 = !lean_is_exclusive(x_316); -if (x_357 == 0) -{ -return x_316; -} -else -{ -lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_358 = lean_ctor_get(x_316, 0); -x_359 = lean_ctor_get(x_316, 1); -lean_inc(x_359); -lean_inc(x_358); -lean_dec(x_316); -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_358); -lean_ctor_set(x_360, 1, x_359); -return x_360; -} -} -} -} -} -else -{ -uint8_t x_361; -lean_dec(x_279); -lean_dec(x_278); -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_361 = !lean_is_exclusive(x_298); -if (x_361 == 0) -{ -return x_298; -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_362 = lean_ctor_get(x_298, 0); -x_363 = lean_ctor_get(x_298, 1); -lean_inc(x_363); -lean_inc(x_362); -lean_dec(x_298); -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_362); -lean_ctor_set(x_364, 1, x_363); -return x_364; -} -} -} -} -} -else -{ -uint8_t x_365; -lean_dec(x_279); -lean_dec(x_278); -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_365 = !lean_is_exclusive(x_280); -if (x_365 == 0) -{ -return x_280; -} -else -{ -lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_366 = lean_ctor_get(x_280, 0); -x_367 = lean_ctor_get(x_280, 1); -lean_inc(x_367); -lean_inc(x_366); -lean_dec(x_280); -x_368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_368, 0, x_366); -lean_ctor_set(x_368, 1, x_367); -return x_368; -} -} -} -} -} -} -} -block_180: -{ -uint8_t x_17; lean_object* x_18; -lean_dec(x_16); -x_17 = l_Lean_Expr_isApp(x_1); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_18 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_15); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_unbox(x_19); -lean_dec(x_19); -switch (x_20) { -case 0: -{ -uint8_t x_21; -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_21 = !lean_is_exclusive(x_18); -if (x_21 == 0) -{ -lean_object* x_22; uint8_t x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 0); -lean_dec(x_22); -x_23 = 0; -x_24 = lean_box(x_23); -lean_ctor_set(x_18, 0, x_24); -return x_18; -} -else -{ -lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_18, 1); -lean_inc(x_25); -lean_dec(x_18); -x_26 = 0; -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_25); -return x_28; -} -} -case 1: -{ -uint8_t x_29; -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_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_18, 0); -lean_dec(x_30); -x_31 = lean_box(x_9); -lean_ctor_set(x_18, 0, x_31); -return x_18; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); -lean_dec(x_18); -x_33 = lean_box(x_9); -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; -} -} -default: -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_18, 1); -lean_inc(x_35); -lean_dec(x_18); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_36 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_35); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -lean_dec(x_37); -switch (x_38) { -case 0: -{ -uint8_t x_39; -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_36); -if (x_39 == 0) -{ -lean_object* x_40; uint8_t x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -x_41 = 0; -x_42 = lean_box(x_41); -lean_ctor_set(x_36, 0, x_42); -return x_36; -} -else -{ -lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_44 = 0; -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_43); -return x_46; -} -} -case 1: -{ -uint8_t x_47; -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_47 = !lean_is_exclusive(x_36); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_36, 0); -lean_dec(x_48); -x_49 = lean_box(x_9); -lean_ctor_set(x_36, 0, x_49); -return x_36; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_36, 1); -lean_inc(x_50); -lean_dec(x_36); -x_51 = lean_box(x_9); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -} -default: -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_36, 1); -lean_inc(x_53); -lean_dec(x_36); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_54 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_53); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; uint8_t x_56; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_unbox(x_55); -lean_dec(x_55); -switch (x_56) { -case 0: -{ -uint8_t x_57; -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_57 = !lean_is_exclusive(x_54); -if (x_57 == 0) -{ -lean_object* x_58; uint8_t x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 0); -lean_dec(x_58); -x_59 = 0; -x_60 = lean_box(x_59); -lean_ctor_set(x_54, 0, x_60); -return x_54; -} -else -{ -lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_54, 1); -lean_inc(x_61); -lean_dec(x_54); -x_62 = 0; -x_63 = lean_box(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -return x_64; -} -} -case 1: -{ -uint8_t x_65; -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_65 = !lean_is_exclusive(x_54); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_54, 0); -lean_dec(x_66); -x_67 = lean_box(x_9); -lean_ctor_set(x_54, 0, x_67); -return x_54; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_54, 1); -lean_inc(x_68); -lean_dec(x_54); -x_69 = lean_box(x_9); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -return x_70; -} -} -default: -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_54, 1); -lean_inc(x_71); -lean_dec(x_54); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_72 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_71); -if (lean_obj_tag(x_72) == 0) -{ -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_unbox(x_73); -lean_dec(x_73); -switch (x_74) { -case 0: -{ -uint8_t x_75; -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_75 = !lean_is_exclusive(x_72); -if (x_75 == 0) -{ -lean_object* x_76; uint8_t x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_72, 0); -lean_dec(x_76); -x_77 = 0; -x_78 = lean_box(x_77); -lean_ctor_set(x_72, 0, x_78); -return x_72; -} -else -{ -lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_dec(x_72); -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; -} -} -case 1: -{ -uint8_t x_83; -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_83 = !lean_is_exclusive(x_72); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_72, 0); -lean_dec(x_84); -x_85 = lean_box(x_9); -lean_ctor_set(x_72, 0, x_85); -return x_72; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_72, 1); -lean_inc(x_86); -lean_dec(x_72); -x_87 = lean_box(x_9); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -return x_88; -} -} -default: -{ -lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; -x_89 = lean_ctor_get(x_72, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_90 = x_72; -} else { - lean_dec_ref(x_72); - x_90 = lean_box(0); -} -if (x_17 == 0) -{ -x_91 = x_17; -x_92 = x_89; -goto block_154; -} -else -{ -uint8_t x_155; -x_155 = l_Lean_Expr_isApp(x_2); -if (x_155 == 0) -{ -x_91 = x_155; -x_92 = x_89; -goto block_154; -} -else -{ -lean_object* x_156; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_156 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqApp(x_1, x_2, x_4, x_5, x_6, x_7, x_89); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; uint8_t x_159; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -lean_dec(x_156); -x_159 = lean_unbox(x_157); -lean_dec(x_157); -x_91 = x_159; -x_92 = x_158; -goto block_154; -} -else -{ -uint8_t x_160; -lean_dec(x_90); -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_160 = !lean_is_exclusive(x_156); -if (x_160 == 0) -{ -return x_156; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_156, 0); -x_162 = lean_ctor_get(x_156, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_156); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; -} -} -} -} -block_154: -{ -if (x_91 == 0) -{ -lean_object* x_93; -lean_dec(x_90); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_93 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProjInst(x_1, x_2, x_4, x_5, x_6, x_7, x_92); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; uint8_t x_95; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_unbox(x_94); -lean_dec(x_94); -switch (x_95) { -case 0: -{ -uint8_t x_96; -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_96 = !lean_is_exclusive(x_93); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_93, 0); -lean_dec(x_97); -x_98 = 0; -x_99 = lean_box(x_98); -lean_ctor_set(x_93, 0, x_99); -return x_93; -} -else -{ -lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; -x_100 = lean_ctor_get(x_93, 1); -lean_inc(x_100); -lean_dec(x_93); -x_101 = 0; -x_102 = lean_box(x_101); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_100); -return x_103; -} -} -case 1: -{ -uint8_t x_104; -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_104 = !lean_is_exclusive(x_93); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_93, 0); -lean_dec(x_105); -x_106 = lean_box(x_9); -lean_ctor_set(x_93, 0, x_106); -return x_93; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_93, 1); -lean_inc(x_107); -lean_dec(x_93); -x_108 = lean_box(x_9); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -return x_109; -} -} -default: -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_93, 1); -lean_inc(x_110); -lean_dec(x_93); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_111 = l_Lean_Meta_isDefEqStringLit(x_1, x_2, x_4, x_5, x_6, x_7, x_110); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; uint8_t x_113; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_unbox(x_112); -lean_dec(x_112); -switch (x_113) { -case 0: -{ -uint8_t x_114; -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_114 = !lean_is_exclusive(x_111); -if (x_114 == 0) -{ -lean_object* x_115; uint8_t x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_111, 0); -lean_dec(x_115); -x_116 = 0; -x_117 = lean_box(x_116); -lean_ctor_set(x_111, 0, x_117); -return x_111; -} -else -{ -lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_111, 1); -lean_inc(x_118); -lean_dec(x_111); -x_119 = 0; -x_120 = lean_box(x_119); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_118); -return x_121; -} -} -case 1: -{ -uint8_t x_122; -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_122 = !lean_is_exclusive(x_111); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_111, 0); -lean_dec(x_123); -x_124 = lean_box(x_9); -lean_ctor_set(x_111, 0, x_124); -return x_111; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_111, 1); -lean_inc(x_125); -lean_dec(x_111); -x_126 = lean_box(x_9); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -return x_127; -} -} -default: -{ -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_111, 1); -lean_inc(x_128); -lean_dec(x_111); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_129 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqUnitLike(x_1, x_2, x_4, x_5, x_6, x_7, x_128); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; uint8_t x_131; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_unbox(x_130); -lean_dec(x_130); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_129, 1); -lean_inc(x_132); -lean_dec(x_129); -x_133 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure(x_1, x_2, x_4, x_5, x_6, x_7, x_132); -return x_133; -} -else -{ -uint8_t x_134; -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_134 = !lean_is_exclusive(x_129); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_129, 0); -lean_dec(x_135); -x_136 = lean_box(x_9); -lean_ctor_set(x_129, 0, x_136); -return x_129; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_129, 1); -lean_inc(x_137); -lean_dec(x_129); -x_138 = lean_box(x_9); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -return x_139; -} -} -} -else -{ -uint8_t x_140; -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_140 = !lean_is_exclusive(x_129); -if (x_140 == 0) -{ -return x_129; -} -else -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_129, 0); -x_142 = lean_ctor_get(x_129, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_129); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; -} -} -} -} -} -else -{ -uint8_t x_144; -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_144 = !lean_is_exclusive(x_111); -if (x_144 == 0) -{ -return x_111; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_111, 0); -x_146 = lean_ctor_get(x_111, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_111); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -} -} -} -else -{ -uint8_t x_148; -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_148 = !lean_is_exclusive(x_93); -if (x_148 == 0) -{ -return x_93; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_93, 0); -x_150 = lean_ctor_get(x_93, 1); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_93); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; -} -} -} -else -{ -lean_object* x_152; lean_object* x_153; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_152 = lean_box(x_9); -if (lean_is_scalar(x_90)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_90; -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_92); -return x_153; -} -} -} -} -} -else -{ -uint8_t x_164; -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_164 = !lean_is_exclusive(x_72); -if (x_164 == 0) -{ -return x_72; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_72, 0); -x_166 = lean_ctor_get(x_72, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_72); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; -} -} -} -} -} -else -{ -uint8_t x_168; -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_168 = !lean_is_exclusive(x_54); -if (x_168 == 0) -{ -return x_54; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_54, 0); -x_170 = lean_ctor_get(x_54, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_54); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); +x_171 = lean_is_expr_def_eq(x_12, x_15, x_4, x_5, x_6, x_7, x_16); return x_171; } -} -} -} -} else { uint8_t x_172; -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_172 = !lean_is_exclusive(x_36); +x_172 = lean_expr_eqv(x_2, x_15); if (x_172 == 0) { -return x_36; +lean_object* x_173; +lean_dec(x_2); +lean_dec(x_1); +x_173 = lean_is_expr_def_eq(x_12, x_15, x_4, x_5, x_6, x_7, x_16); +return x_173; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_36, 0); -x_174 = lean_ctor_get(x_36, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_36); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -} -} +uint8_t x_174; +lean_dec(x_15); +lean_dec(x_12); +x_174 = l_Lean_Expr_isConst(x_1); +if (x_174 == 0) +{ +lean_object* x_175; +x_175 = lean_box(0); +x_17 = x_175; +goto block_169; } else { uint8_t x_176; -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_176 = !lean_is_exclusive(x_18); +x_176 = l_Lean_Expr_isConst(x_2); if (x_176 == 0) { -return x_18; +lean_object* x_177; +x_177 = lean_box(0); +x_17 = x_177; +goto block_169; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_18, 0); -x_178 = lean_ctor_get(x_18, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_18); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -return x_179; +lean_object* x_178; lean_object* x_179; uint8_t x_180; +x_178 = l_Lean_Expr_constName_x21(x_1); +x_179 = l_Lean_Expr_constName_x21(x_2); +x_180 = lean_name_eq(x_178, x_179); +lean_dec(x_179); +lean_dec(x_178); +if (x_180 == 0) +{ +lean_object* x_181; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_181 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; uint8_t x_183; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_unbox(x_182); +lean_dec(x_182); +switch (x_183) { +case 0: +{ +uint8_t x_184; +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_184 = !lean_is_exclusive(x_181); +if (x_184 == 0) +{ +lean_object* x_185; lean_object* x_186; +x_185 = lean_ctor_get(x_181, 0); +lean_dec(x_185); +x_186 = lean_box(x_10); +lean_ctor_set(x_181, 0, x_186); +return x_181; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_181, 1); +lean_inc(x_187); +lean_dec(x_181); +x_188 = lean_box(x_10); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +return x_189; +} +} +case 1: +{ +uint8_t x_190; +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_190 = !lean_is_exclusive(x_181); +if (x_190 == 0) +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_181, 0); +lean_dec(x_191); +x_192 = lean_box(x_9); +lean_ctor_set(x_181, 0, x_192); +return x_181; +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_181, 1); +lean_inc(x_193); +lean_dec(x_181); +x_194 = lean_box(x_9); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +return x_195; +} +} +default: +{ +lean_object* x_196; lean_object* x_197; +x_196 = lean_ctor_get(x_181, 1); +lean_inc(x_196); +lean_dec(x_181); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_197 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_196); +if (lean_obj_tag(x_197) == 0) +{ +lean_object* x_198; uint8_t x_199; +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_unbox(x_198); +lean_dec(x_198); +switch (x_199) { +case 0: +{ +uint8_t x_200; +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_200 = !lean_is_exclusive(x_197); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; +x_201 = lean_ctor_get(x_197, 0); +lean_dec(x_201); +x_202 = lean_box(x_10); +lean_ctor_set(x_197, 0, x_202); +return x_197; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_197, 1); +lean_inc(x_203); +lean_dec(x_197); +x_204 = lean_box(x_10); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +return x_205; +} +} +case 1: +{ +uint8_t x_206; +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_206 = !lean_is_exclusive(x_197); +if (x_206 == 0) +{ +lean_object* x_207; lean_object* x_208; +x_207 = lean_ctor_get(x_197, 0); +lean_dec(x_207); +x_208 = lean_box(x_9); +lean_ctor_set(x_197, 0, x_208); +return x_197; +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_197, 1); +lean_inc(x_209); +lean_dec(x_197); +x_210 = lean_box(x_9); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_209); +return x_211; +} +} +default: +{ +lean_object* x_212; lean_object* x_213; +x_212 = lean_ctor_get(x_197, 1); +lean_inc(x_212); +lean_dec(x_197); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_213 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_212); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; uint8_t x_215; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_unbox(x_214); +lean_dec(x_214); +switch (x_215) { +case 0: +{ +uint8_t x_216; +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_216 = !lean_is_exclusive(x_213); +if (x_216 == 0) +{ +lean_object* x_217; lean_object* x_218; +x_217 = lean_ctor_get(x_213, 0); +lean_dec(x_217); +x_218 = lean_box(x_10); +lean_ctor_set(x_213, 0, x_218); +return x_213; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_213, 1); +lean_inc(x_219); +lean_dec(x_213); +x_220 = lean_box(x_10); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +return x_221; +} +} +case 1: +{ +uint8_t x_222; +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_222 = !lean_is_exclusive(x_213); +if (x_222 == 0) +{ +lean_object* x_223; lean_object* x_224; +x_223 = lean_ctor_get(x_213, 0); +lean_dec(x_223); +x_224 = lean_box(x_9); +lean_ctor_set(x_213, 0, x_224); +return x_213; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_213, 1); +lean_inc(x_225); +lean_dec(x_213); +x_226 = lean_box(x_9); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_225); +return x_227; +} +} +default: +{ +lean_object* x_228; lean_object* x_229; +x_228 = lean_ctor_get(x_213, 1); +lean_inc(x_228); +lean_dec(x_213); +x_229 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_228); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +if (lean_obj_tag(x_230) == 1) +{ +uint8_t x_231; +x_231 = !lean_is_exclusive(x_229); +if (x_231 == 0) +{ +lean_object* x_232; lean_object* x_233; +x_232 = lean_ctor_get(x_229, 0); +lean_dec(x_232); +x_233 = lean_box(x_9); +lean_ctor_set(x_229, 0, x_233); +return x_229; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_229, 1); +lean_inc(x_234); +lean_dec(x_229); +x_235 = lean_box(x_9); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_234); +return x_236; +} +} +else +{ +uint8_t x_237; +lean_dec(x_230); +x_237 = !lean_is_exclusive(x_229); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; +x_238 = lean_ctor_get(x_229, 0); +lean_dec(x_238); +x_239 = lean_box(x_10); +lean_ctor_set(x_229, 0, x_239); +return x_229; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_229, 1); +lean_inc(x_240); +lean_dec(x_229); +x_241 = lean_box(x_10); +x_242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +} +} +else +{ +uint8_t x_243; +x_243 = !lean_is_exclusive(x_229); +if (x_243 == 0) +{ +return x_229; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_229, 0); +x_245 = lean_ctor_get(x_229, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_229); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} } } } } else { -uint8_t x_369; +uint8_t x_247; +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_247 = !lean_is_exclusive(x_213); +if (x_247 == 0) +{ +return x_213; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = lean_ctor_get(x_213, 0); +x_249 = lean_ctor_get(x_213, 1); +lean_inc(x_249); +lean_inc(x_248); +lean_dec(x_213); +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_248); +lean_ctor_set(x_250, 1, x_249); +return x_250; +} +} +} +} +} +else +{ +uint8_t x_251; +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_251 = !lean_is_exclusive(x_197); +if (x_251 == 0) +{ +return x_197; +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_252 = lean_ctor_get(x_197, 0); +x_253 = lean_ctor_get(x_197, 1); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_197); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +return x_254; +} +} +} +} +} +else +{ +uint8_t x_255; +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_255 = !lean_is_exclusive(x_181); +if (x_255 == 0) +{ +return x_181; +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_181, 0); +x_257 = lean_ctor_get(x_181, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_181); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_256); +lean_ctor_set(x_258, 1, x_257); +return x_258; +} +} +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_inc(x_1); +x_259 = l_Lean_Expr_constLevels_x21(x_1); +lean_inc(x_2); +x_260 = l_Lean_Expr_constLevels_x21(x_2); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_261 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; uint8_t x_263; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_unbox(x_262); +lean_dec(x_262); +switch (x_263) { +case 0: +{ +uint8_t x_264; +lean_dec(x_260); +lean_dec(x_259); +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_264 = !lean_is_exclusive(x_261); +if (x_264 == 0) +{ +lean_object* x_265; lean_object* x_266; +x_265 = lean_ctor_get(x_261, 0); +lean_dec(x_265); +x_266 = lean_box(x_10); +lean_ctor_set(x_261, 0, x_266); +return x_261; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_267 = lean_ctor_get(x_261, 1); +lean_inc(x_267); +lean_dec(x_261); +x_268 = lean_box(x_10); +x_269 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +return x_269; +} +} +case 1: +{ +uint8_t x_270; +lean_dec(x_260); +lean_dec(x_259); +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_270 = !lean_is_exclusive(x_261); +if (x_270 == 0) +{ +lean_object* x_271; lean_object* x_272; +x_271 = lean_ctor_get(x_261, 0); +lean_dec(x_271); +x_272 = lean_box(x_9); +lean_ctor_set(x_261, 0, x_272); +return x_261; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_261, 1); +lean_inc(x_273); +lean_dec(x_261); +x_274 = lean_box(x_9); +x_275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_273); +return x_275; +} +} +default: +{ +lean_object* x_276; lean_object* x_277; +x_276 = lean_ctor_get(x_261, 1); +lean_inc(x_276); +lean_dec(x_261); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_277 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_276); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; uint8_t x_279; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_unbox(x_278); +lean_dec(x_278); +switch (x_279) { +case 0: +{ +uint8_t x_280; +lean_dec(x_260); +lean_dec(x_259); +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_280 = !lean_is_exclusive(x_277); +if (x_280 == 0) +{ +lean_object* x_281; lean_object* x_282; +x_281 = lean_ctor_get(x_277, 0); +lean_dec(x_281); +x_282 = lean_box(x_10); +lean_ctor_set(x_277, 0, x_282); +return x_277; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_283 = lean_ctor_get(x_277, 1); +lean_inc(x_283); +lean_dec(x_277); +x_284 = lean_box(x_10); +x_285 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_285, 0, x_284); +lean_ctor_set(x_285, 1, x_283); +return x_285; +} +} +case 1: +{ +uint8_t x_286; +lean_dec(x_260); +lean_dec(x_259); +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_286 = !lean_is_exclusive(x_277); +if (x_286 == 0) +{ +lean_object* x_287; lean_object* x_288; +x_287 = lean_ctor_get(x_277, 0); +lean_dec(x_287); +x_288 = lean_box(x_9); +lean_ctor_set(x_277, 0, x_288); +return x_277; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = lean_ctor_get(x_277, 1); +lean_inc(x_289); +lean_dec(x_277); +x_290 = lean_box(x_9); +x_291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_289); +return x_291; +} +} +default: +{ +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_277, 1); +lean_inc(x_292); +lean_dec(x_277); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_293 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_292); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; uint8_t x_295; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_unbox(x_294); +lean_dec(x_294); +switch (x_295) { +case 0: +{ +uint8_t x_296; +lean_dec(x_260); +lean_dec(x_259); +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_296 = !lean_is_exclusive(x_293); +if (x_296 == 0) +{ +lean_object* x_297; lean_object* x_298; +x_297 = lean_ctor_get(x_293, 0); +lean_dec(x_297); +x_298 = lean_box(x_10); +lean_ctor_set(x_293, 0, x_298); +return x_293; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_293, 1); +lean_inc(x_299); +lean_dec(x_293); +x_300 = lean_box(x_10); +x_301 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_299); +return x_301; +} +} +case 1: +{ +uint8_t x_302; +lean_dec(x_260); +lean_dec(x_259); +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_302 = !lean_is_exclusive(x_293); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; +x_303 = lean_ctor_get(x_293, 0); +lean_dec(x_303); +x_304 = lean_box(x_9); +lean_ctor_set(x_293, 0, x_304); +return x_293; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_305 = lean_ctor_get(x_293, 1); +lean_inc(x_305); +lean_dec(x_293); +x_306 = lean_box(x_9); +x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_305); +return x_307; +} +} +default: +{ +lean_object* x_308; lean_object* x_309; +x_308 = lean_ctor_get(x_293, 1); +lean_inc(x_308); +lean_dec(x_293); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_309 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_308); +if (lean_obj_tag(x_309) == 0) +{ +lean_object* x_310; uint8_t x_311; +x_310 = lean_ctor_get(x_309, 0); +lean_inc(x_310); +x_311 = lean_unbox(x_310); +lean_dec(x_310); +switch (x_311) { +case 0: +{ +uint8_t x_312; +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_312 = !lean_is_exclusive(x_309); +if (x_312 == 0) +{ +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_309, 0); +lean_dec(x_313); +x_314 = lean_box(x_10); +lean_ctor_set(x_309, 0, x_314); +return x_309; +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_315 = lean_ctor_get(x_309, 1); +lean_inc(x_315); +lean_dec(x_309); +x_316 = lean_box(x_10); +x_317 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_315); +return x_317; +} +} +case 1: +{ +uint8_t x_318; +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_318 = !lean_is_exclusive(x_309); +if (x_318 == 0) +{ +lean_object* x_319; lean_object* x_320; +x_319 = lean_ctor_get(x_309, 0); +lean_dec(x_319); +x_320 = lean_box(x_9); +lean_ctor_set(x_309, 0, x_320); +return x_309; +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_309, 1); +lean_inc(x_321); +lean_dec(x_309); +x_322 = lean_box(x_9); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_322); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +default: +{ +lean_object* x_324; lean_object* x_325; +x_324 = lean_ctor_get(x_309, 1); +lean_inc(x_324); +lean_dec(x_309); +x_325 = l_Lean_Meta_isListLevelDefEqAux(x_259, x_260, x_4, x_5, x_6, x_7, x_324); +return x_325; +} +} +} +else +{ +uint8_t x_326; +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_326 = !lean_is_exclusive(x_309); +if (x_326 == 0) +{ +return x_309; +} +else +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_327 = lean_ctor_get(x_309, 0); +x_328 = lean_ctor_get(x_309, 1); +lean_inc(x_328); +lean_inc(x_327); +lean_dec(x_309); +x_329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_329, 0, x_327); +lean_ctor_set(x_329, 1, x_328); +return x_329; +} +} +} +} +} +else +{ +uint8_t x_330; +lean_dec(x_260); +lean_dec(x_259); +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_330 = !lean_is_exclusive(x_293); +if (x_330 == 0) +{ +return x_293; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_331 = lean_ctor_get(x_293, 0); +x_332 = lean_ctor_get(x_293, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_293); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_331); +lean_ctor_set(x_333, 1, x_332); +return x_333; +} +} +} +} +} +else +{ +uint8_t x_334; +lean_dec(x_260); +lean_dec(x_259); +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_334 = !lean_is_exclusive(x_277); +if (x_334 == 0) +{ +return x_277; +} +else +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_335 = lean_ctor_get(x_277, 0); +x_336 = lean_ctor_get(x_277, 1); +lean_inc(x_336); +lean_inc(x_335); +lean_dec(x_277); +x_337 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_337, 0, x_335); +lean_ctor_set(x_337, 1, x_336); +return x_337; +} +} +} +} +} +else +{ +uint8_t x_338; +lean_dec(x_260); +lean_dec(x_259); +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_338 = !lean_is_exclusive(x_261); +if (x_338 == 0) +{ +return x_261; +} +else +{ +lean_object* x_339; lean_object* x_340; lean_object* x_341; +x_339 = lean_ctor_get(x_261, 0); +x_340 = lean_ctor_get(x_261, 1); +lean_inc(x_340); +lean_inc(x_339); +lean_dec(x_261); +x_341 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_341, 0, x_339); +lean_ctor_set(x_341, 1, x_340); +return x_341; +} +} +} +} +} +} +} +block_169: +{ +uint8_t x_18; lean_object* x_19; +lean_dec(x_17); +x_18 = l_Lean_Expr_isApp(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_19 = l_Lean_Meta_isDefEqNative(x_1, x_2, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +switch (x_21) { +case 0: +{ +uint8_t x_22; +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_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +x_24 = lean_box(x_10); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = lean_box(x_10); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +case 1: +{ +uint8_t x_28; +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_28 = !lean_is_exclusive(x_19); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_19, 0); +lean_dec(x_29); +x_30 = lean_box(x_9); +lean_ctor_set(x_19, 0, x_30); +return x_19; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_19, 1); +lean_inc(x_31); +lean_dec(x_19); +x_32 = lean_box(x_9); +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; +} +} +default: +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_dec(x_19); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_35 = l_Lean_Meta_isDefEqNat(x_1, x_2, x_4, x_5, x_6, x_7, x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_unbox(x_36); +lean_dec(x_36); +switch (x_37) { +case 0: +{ +uint8_t x_38; +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_38 = !lean_is_exclusive(x_35); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_35, 0); +lean_dec(x_39); +x_40 = lean_box(x_10); +lean_ctor_set(x_35, 0, x_40); +return x_35; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_dec(x_35); +x_42 = lean_box(x_10); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +case 1: +{ +uint8_t x_44; +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_44 = !lean_is_exclusive(x_35); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_35, 0); +lean_dec(x_45); +x_46 = lean_box(x_9); +lean_ctor_set(x_35, 0, x_46); +return x_35; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_35, 1); +lean_inc(x_47); +lean_dec(x_35); +x_48 = lean_box(x_9); +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; +} +} +default: +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_dec(x_35); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_51 = l_Lean_Meta_isDefEqOffset(x_1, x_2, x_4, x_5, x_6, x_7, x_50); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_unbox(x_52); +lean_dec(x_52); +switch (x_53) { +case 0: +{ +uint8_t x_54; +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_54 = !lean_is_exclusive(x_51); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_51, 0); +lean_dec(x_55); +x_56 = lean_box(x_10); +lean_ctor_set(x_51, 0, x_56); +return x_51; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +lean_dec(x_51); +x_58 = lean_box(x_10); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +} +case 1: +{ +uint8_t x_60; +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_60 = !lean_is_exclusive(x_51); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_51, 0); +lean_dec(x_61); +x_62 = lean_box(x_9); +lean_ctor_set(x_51, 0, x_62); +return x_51; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_51, 1); +lean_inc(x_63); +lean_dec(x_51); +x_64 = lean_box(x_9); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} +} +default: +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_51, 1); +lean_inc(x_66); +lean_dec(x_51); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_67 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(x_1, x_2, x_4, x_5, x_6, x_7, x_66); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_unbox(x_68); +lean_dec(x_68); +switch (x_69) { +case 0: +{ +uint8_t x_70; +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_70 = !lean_is_exclusive(x_67); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_67, 0); +lean_dec(x_71); +x_72 = lean_box(x_10); +lean_ctor_set(x_67, 0, x_72); +return x_67; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_67, 1); +lean_inc(x_73); +lean_dec(x_67); +x_74 = lean_box(x_10); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +case 1: +{ +uint8_t x_76; +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_76 = !lean_is_exclusive(x_67); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_67, 0); +lean_dec(x_77); +x_78 = lean_box(x_9); +lean_ctor_set(x_67, 0, x_78); +return x_67; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_67, 1); +lean_inc(x_79); +lean_dec(x_67); +x_80 = lean_box(x_9); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +default: +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_83 = x_67; +} else { + lean_dec_ref(x_67); + x_83 = lean_box(0); +} +if (x_18 == 0) +{ +x_84 = x_18; +x_85 = x_82; +goto block_143; +} +else +{ +uint8_t x_144; +x_144 = l_Lean_Expr_isApp(x_2); +if (x_144 == 0) +{ +x_84 = x_144; +x_85 = x_82; +goto block_143; +} +else +{ +lean_object* x_145; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_145 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqApp(x_1, x_2, x_4, x_5, x_6, x_7, x_82); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +x_148 = lean_unbox(x_146); +lean_dec(x_146); +x_84 = x_148; +x_85 = x_147; +goto block_143; +} +else +{ +uint8_t x_149; +lean_dec(x_83); +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_149 = !lean_is_exclusive(x_145); +if (x_149 == 0) +{ +return x_145; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_145, 0); +x_151 = lean_ctor_get(x_145, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_145); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; +} +} +} +} +block_143: +{ +if (x_84 == 0) +{ +lean_object* x_86; +lean_dec(x_83); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_86 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProjInst(x_1, x_2, x_4, x_5, x_6, x_7, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +switch (x_88) { +case 0: +{ +uint8_t x_89; +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_89 = !lean_is_exclusive(x_86); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_86, 0); +lean_dec(x_90); +x_91 = lean_box(x_10); +lean_ctor_set(x_86, 0, x_91); +return x_86; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_86, 1); +lean_inc(x_92); +lean_dec(x_86); +x_93 = lean_box(x_10); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_92); +return x_94; +} +} +case 1: +{ +uint8_t x_95; +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_95 = !lean_is_exclusive(x_86); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_86, 0); +lean_dec(x_96); +x_97 = lean_box(x_9); +lean_ctor_set(x_86, 0, x_97); +return x_86; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_86, 1); +lean_inc(x_98); +lean_dec(x_86); +x_99 = lean_box(x_9); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +return x_100; +} +} +default: +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_86, 1); +lean_inc(x_101); +lean_dec(x_86); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_102 = l_Lean_Meta_isDefEqStringLit(x_1, x_2, x_4, x_5, x_6, x_7, x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; uint8_t x_104; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_unbox(x_103); +lean_dec(x_103); +switch (x_104) { +case 0: +{ +uint8_t x_105; +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_105 = !lean_is_exclusive(x_102); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_102, 0); +lean_dec(x_106); +x_107 = lean_box(x_10); +lean_ctor_set(x_102, 0, x_107); +return x_102; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_102, 1); +lean_inc(x_108); +lean_dec(x_102); +x_109 = lean_box(x_10); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +} +case 1: +{ +uint8_t x_111; +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_111 = !lean_is_exclusive(x_102); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_102, 0); +lean_dec(x_112); +x_113 = lean_box(x_9); +lean_ctor_set(x_102, 0, x_113); +return x_102; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_102, 1); +lean_inc(x_114); +lean_dec(x_102); +x_115 = lean_box(x_9); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +return x_116; +} +} +default: +{ +lean_object* x_117; lean_object* x_118; +x_117 = lean_ctor_get(x_102, 1); +lean_inc(x_117); +lean_dec(x_102); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_118 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqUnitLike(x_1, x_2, x_4, x_5, x_6, x_7, x_117); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; uint8_t x_120; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_unbox(x_119); +lean_dec(x_119); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_dec(x_118); +x_122 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure(x_1, x_2, x_4, x_5, x_6, x_7, x_121); +return x_122; +} +else +{ +uint8_t x_123; +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_123 = !lean_is_exclusive(x_118); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_118, 0); +lean_dec(x_124); +x_125 = lean_box(x_9); +lean_ctor_set(x_118, 0, x_125); +return x_118; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_118, 1); +lean_inc(x_126); +lean_dec(x_118); +x_127 = lean_box(x_9); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +} +} +else +{ +uint8_t x_129; +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_129 = !lean_is_exclusive(x_118); +if (x_129 == 0) +{ +return x_118; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_118, 0); +x_131 = lean_ctor_get(x_118, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_118); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; +} +} +} +} +} +else +{ +uint8_t x_133; +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_133 = !lean_is_exclusive(x_102); +if (x_133 == 0) +{ +return x_102; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_102, 0); +x_135 = lean_ctor_get(x_102, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_102); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; +} +} +} +} +} +else +{ +uint8_t x_137; +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_137 = !lean_is_exclusive(x_86); +if (x_137 == 0) +{ +return x_86; +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_86, 0); +x_139 = lean_ctor_get(x_86, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_86); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; +} +} +} +else +{ +lean_object* x_141; lean_object* x_142; +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_141 = lean_box(x_9); +if (lean_is_scalar(x_83)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_83; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_85); +return x_142; +} +} +} +} +} +else +{ +uint8_t x_153; +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_153 = !lean_is_exclusive(x_67); +if (x_153 == 0) +{ +return x_67; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_67, 0); +x_155 = lean_ctor_get(x_67, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_67); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} +} +} +} +} +else +{ +uint8_t x_157; +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_157 = !lean_is_exclusive(x_51); +if (x_157 == 0) +{ +return x_51; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_51, 0); +x_159 = lean_ctor_get(x_51, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_51); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +return x_160; +} +} +} +} +} +else +{ +uint8_t x_161; +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_161 = !lean_is_exclusive(x_35); +if (x_161 == 0) +{ +return x_35; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_35, 0); +x_163 = lean_ctor_get(x_35, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_35); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; +} +} +} +} +} +else +{ +uint8_t x_165; +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_165 = !lean_is_exclusive(x_19); +if (x_165 == 0) +{ +return x_19; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_19, 0); +x_167 = lean_ctor_get(x_19, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_19); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; +} +} +} +} +else +{ +uint8_t x_342; +lean_dec(x_12); +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_342 = !lean_is_exclusive(x_14); +if (x_342 == 0) +{ +return x_14; +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; +x_343 = lean_ctor_get(x_14, 0); +x_344 = lean_ctor_get(x_14, 1); +lean_inc(x_344); +lean_inc(x_343); +lean_dec(x_14); +x_345 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_345, 0, x_343); +lean_ctor_set(x_345, 1, x_344); +return x_345; +} +} +} +else +{ +uint8_t x_346; +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_346 = !lean_is_exclusive(x_11); +if (x_346 == 0) +{ +return x_11; +} +else +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_11, 0); +x_348 = lean_ctor_get(x_11, 1); +lean_inc(x_348); +lean_inc(x_347); lean_dec(x_11); -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_369 = !lean_is_exclusive(x_13); -if (x_369 == 0) -{ -return x_13; -} -else -{ -lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_370 = lean_ctor_get(x_13, 0); -x_371 = lean_ctor_get(x_13, 1); -lean_inc(x_371); -lean_inc(x_370); -lean_dec(x_13); -x_372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_372, 0, x_370); -lean_ctor_set(x_372, 1, x_371); -return x_372; -} -} -} -else -{ -uint8_t x_373; -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_373 = !lean_is_exclusive(x_10); -if (x_373 == 0) -{ -return x_10; -} -else -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_374 = lean_ctor_get(x_10, 0); -x_375 = lean_ctor_get(x_10, 1); -lean_inc(x_375); -lean_inc(x_374); -lean_dec(x_10); -x_376 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_376, 0, x_374); -lean_ctor_set(x_376, 1, x_375); -return x_376; +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +return x_349; } } } @@ -68116,7 +68091,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_52 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_51, x_1, x_3, x_4, x_5, x_6, x_50); +x_52 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_51, x_51, x_1, x_3, x_4, x_5, x_6, x_50); if (lean_obj_tag(x_52) == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; @@ -68130,7 +68105,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_55 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_51, x_2, x_3, x_4, x_5, x_6, x_54); +x_55 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_51, x_51, x_2, x_3, x_4, x_5, x_6, x_54); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; lean_object* x_57; uint8_t x_58; diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index 034748eab4..368ae7038f 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -13,328 +13,364 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_instBEqInstanceEntry___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__3; lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addGlobalInstance___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3(lean_object*, size_t, size_t, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14___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_Instances___hyg_781____closed__17; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14___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_Instances_discrTree___default___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2___boxed(lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); uint8_t l_Lean_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__3(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getGlobalInstancesIndex(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_addInstanceEntry(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__outOfBounds___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_addInstanceEntry___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getGlobalInstancesIndex___rarg(lean_object*, 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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12; +lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__3; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8; -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1; size_t lean_usize_sub(size_t, size_t); lean_object* lean_environment_find(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, 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*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2; static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__4; LEAN_EXPORT uint8_t l_Lean_Meta_instBEqInstanceEntry(lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__5; lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Instances_erase___rarg___closed__3; -static lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__9; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2; static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13; -lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19(uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___rarg___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Instances_eraseCore___spec__2(lean_object*, size_t, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22(uint8_t, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Instances_eraseCore(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15(uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11; static lean_object* l_Lean_Meta_addInstance___closed__2; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_addInstanceEntry___spec__12(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4; static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_addInstance___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_Instances___hyg_781____closed__2; static lean_object* l_Lean_Meta_addInstance___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1; lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20(uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedInstanceEntry___closed__3; size_t lean_uint64_to_usize(uint64_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2; -uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7; +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__30(uint8_t, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__10; static lean_object* l_Lean_Meta_instInhabitedInstances___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); lean_object* l_Lean_getAttrParamOptPrio(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2(lean_object*, lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__7; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16; LEAN_EXPORT lean_object* l_Lean_Meta_getGlobalInstancesIndex___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6; lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__7; uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_366_(uint8_t, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479_(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738_(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*); lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3; +lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Meta_addDefaultInstanceEntry___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*); lean_object* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7; -lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___rarg___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_addInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_addDefaultInstanceEntry___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DefaultInstances_defaultInstances___default; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__2(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___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_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15; lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__15(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_instToFormatInstanceEntry(lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16___boxed(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_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_isUnaryNode___rarg(lean_object*); static lean_object* l_Lean_Meta_instToFormatInstanceEntry___closed__2; static lean_object* l_Lean_Meta_instInhabitedInstances___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__3; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedInstanceEntry___closed__2; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18; extern lean_object* l_Lean_Expr_instHashableExpr; +lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Instances_eraseCore___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase(lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__7; static lean_object* l_Lean_Meta_instToFormatInstanceEntry___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedInstanceEntry___closed__1; size_t lean_usize_shift_left(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__8; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__11; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_instInhabitedInstances___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Instances_erase___rarg___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstanceEntry(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getErasedInstances___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_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1; LEAN_EXPORT lean_object* l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11___boxed(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getErasedInstances___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getErasedInstances(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_InstanceEntry_globalName_x3f___default; LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7; size_t lean_usize_mul(size_t, size_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16; static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__7; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_bvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedInstances; LEAN_EXPORT lean_object* l_Lean_Meta_getGlobalInstancesIndex___boxed(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5; lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_globalInstanceExtension; size_t lean_usize_of_nat(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7; +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__1(lean_object*, lean_object*); 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_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6; lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erased___default; lean_object* l_Lean_SimplePersistentEnvExtension_getState___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_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_mkPath(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_instInhabitedInstances___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addInstanceEntry___spec__10(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedDefaultInstances; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1; static lean_object* l_Lean_Meta_addDefaultInstance___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3; -extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Instances_erase___rarg___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* lean_list_to_array(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15; static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__10; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Meta_addDefaultInstance___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18; uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Instances_erase___rarg___closed__2; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__6; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10; -uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Instances_eraseCore___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2; lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5; lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedDefaultInstances___closed__1; lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17___boxed(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*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1; +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__30___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__6; lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_getErasedInstances___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__3; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____lambda__1(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17; extern lean_object* l_Lean_Expr_instBEqExpr; LEAN_EXPORT 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*); static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8; lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstance___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_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_addInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Instances_discrTree___default; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedInstanceEntry; lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__5; lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1; lean_object* lean_usize_to_nat(size_t); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5; lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenK___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Meta_DiscrTree_Key_lt___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Instances_eraseCore___spec__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Instances_instanceNames___default; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_DefaultInstances_priorities___default; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11; +LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_defaultInstanceExtension; -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__4; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6; -uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_is_class(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isInstance(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__2; +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instanceExtension; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_InstanceEntry_globalName_x3f___default() { _start: { @@ -454,9 +490,10 @@ return x_7; static lean_object* _init_l_Lean_Meta_Instances_discrTree___default___closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); -return x_1; +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = l_Lean_Meta_DiscrTree_empty(lean_box(0), x_1); +return x_2; } } static lean_object* _init_l_Lean_Meta_Instances_discrTree___default() { @@ -524,6 +561,22 @@ return x_1; static lean_object* _init_l_Lean_Meta_instInhabitedInstances___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedInstances___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedInstances___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); @@ -533,11 +586,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_instInhabitedInstances___closed__2() { +static lean_object* _init_l_Lean_Meta_instInhabitedInstances___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_instInhabitedInstances___closed__1; +x_1 = l_Lean_Meta_instInhabitedInstances___closed__3; x_2 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); @@ -550,48 +603,48 @@ static lean_object* _init_l_Lean_Meta_instInhabitedInstances() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_instInhabitedInstances___closed__2; +x_1 = l_Lean_Meta_instInhabitedInstances___closed__4; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -616,220 +669,220 @@ x_3 = lean_usize_sub(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_dec(x_5); -return x_6; -} -else -{ -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; -x_6 = x_20; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___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; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); -lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); -x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_dec(x_6); -lean_dec(x_5); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -843,410 +896,410 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -return x_1; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { -case 0: -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; -} -else -{ -lean_object* x_25; -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; -} -} -} -case 1: -{ -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) -{ -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; -} -else -{ -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; -} -} -default: -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; -} -} -} -} -else -{ -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); -lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); -lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { -case 0: -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; -} else { - lean_dec_ref(x_57); - x_62 = lean_box(0); -} -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_62; -} -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; -} -} -case 1: -{ -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; -} else { - lean_dec_ref(x_57); - x_72 = lean_box(0); -} -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); -} else { - x_76 = x_72; -} -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; -} -default: -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; -} -} -} -} -} -else -{ -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); -lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_3, x_90, x_91, lean_box(0), x_83, x_92); -lean_dec(x_91); -lean_dec(x_90); -return x_93; -} -else -{ -return x_84; -} -} -else -{ -return x_84; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); -lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_3, x_104, x_105, lean_box(0), x_97, x_106); -lean_dec(x_105); -lean_dec(x_104); -return x_107; -} -else -{ -return x_98; -} -} -else -{ -return x_98; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_dec(x_5); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -1343,433 +1396,2157 @@ return x_1; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(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) { _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; uint8_t x_15; -x_9 = lean_nat_add(x_7, x_8); -x_10 = lean_unsigned_to_nat(2u); -x_11 = lean_nat_div(x_9, x_10); -lean_dec(x_9); -lean_inc(x_6); -x_12 = lean_array_get(x_6, x_5, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_6, 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; +x_10 = lean_nat_add(x_8, x_9); +x_11 = lean_unsigned_to_nat(2u); +x_12 = lean_nat_div(x_10, x_11); +lean_dec(x_10); +lean_inc(x_7); +x_13 = lean_array_get(x_7, x_6, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_14); -if (x_15 == 0) -{ -uint8_t x_16; -lean_dec(x_8); -x_16 = l_Lean_Meta_DiscrTree_Key_lt(x_14, x_13); lean_dec(x_13); -lean_dec(x_14); +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_15); if (x_16 == 0) { -lean_object* x_17; uint8_t x_18; -lean_dec(x_7); -lean_dec(x_6); -x_17 = lean_array_get_size(x_5); -x_18 = lean_nat_dec_lt(x_11, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_array_fget(x_5, x_11); -x_20 = lean_box(0); -x_21 = lean_array_fset(x_5, x_11, x_20); -x_22 = !lean_is_exclusive(x_19); -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; -x_23 = lean_ctor_get(x_19, 1); -x_24 = lean_ctor_get(x_19, 0); -lean_dec(x_24); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_3, x_25); -x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_26, x_23); -lean_dec(x_26); -lean_ctor_set(x_19, 1, x_27); -lean_ctor_set(x_19, 0, x_4); -x_28 = lean_array_fset(x_21, x_11, x_19); -lean_dec(x_11); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_dec(x_19); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_3, x_30); -x_32 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_31, x_29); -lean_dec(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_4); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_array_fset(x_21, x_11, x_33); -lean_dec(x_11); -return x_34; -} -} -} -else -{ -x_8 = x_11; -goto _start; -} -} -else -{ -uint8_t x_36; -lean_dec(x_14); -lean_dec(x_13); -x_36 = lean_nat_dec_eq(x_11, x_7); -if (x_36 == 0) -{ -lean_dec(x_7); -x_7 = x_11; -goto _start; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_3, x_38); -x_40 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_39); -lean_dec(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_nat_add(x_7, x_38); -lean_dec(x_7); -x_43 = l_Array_insertAt_x21___rarg(x_5, x_42, x_41); -lean_dec(x_42); -return x_43; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___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) { -_start: -{ -uint8_t x_7; -x_7 = l_Array_isEmpty___rarg(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_9 = lean_array_get(x_6, x_5, x_8); -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); +uint8_t x_17; lean_dec(x_9); -x_12 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_11); -if (x_12 == 0) -{ -uint8_t x_13; -x_13 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_10); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -lean_dec(x_10); -lean_dec(x_6); -x_14 = lean_array_get_size(x_5); -x_15 = lean_nat_dec_lt(x_8, x_14); +x_17 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_15, x_14); lean_dec(x_14); -if (x_15 == 0) +lean_dec(x_15); +if (x_17 == 0) { -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_array_fget(x_5, x_8); -x_17 = lean_box(0); -x_18 = lean_array_fset(x_5, x_8, x_17); -x_19 = !lean_is_exclusive(x_16); +lean_object* x_18; uint8_t x_19; +lean_dec(x_8); +lean_dec(x_7); +x_18 = lean_array_get_size(x_6); +x_19 = lean_nat_dec_lt(x_12, x_18); +lean_dec(x_18); 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; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_3, x_22); -x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_23, x_20); -lean_dec(x_23); -lean_ctor_set(x_16, 1, x_24); -lean_ctor_set(x_16, 0, x_4); -x_25 = lean_array_fset(x_18, x_8, x_16); -return x_25; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_3); +return x_6; } 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; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_3, x_27); -x_29 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_28, x_26); -lean_dec(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_array_fset(x_18, x_8, x_30); -return x_31; -} -} +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_array_fget(x_6, x_12); +x_21 = lean_box(0); +x_22 = lean_array_fset(x_6, x_12, x_21); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_20, 1); +x_25 = lean_ctor_get(x_20, 0); +lean_dec(x_25); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_4, x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_27, x_24); +lean_dec(x_27); +lean_ctor_set(x_20, 1, x_28); +lean_ctor_set(x_20, 0, x_5); +x_29 = lean_array_fset(x_22, x_12, x_20); +lean_dec(x_12); +return x_29; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_inc(x_6); -x_32 = l_Array_back___rarg(x_6, x_5); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_4, x_31); +x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_32, x_30); lean_dec(x_32); -x_34 = l_Lean_Meta_DiscrTree_Key_lt(x_33, x_10); -if (x_34 == 0) +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_5); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_array_fset(x_22, x_12, x_34); +lean_dec(x_12); +return x_35; +} +} +} +else { -uint8_t x_35; -x_35 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_33); -lean_dec(x_33); +x_9 = x_12; +goto _start; +} +} +else +{ +uint8_t x_37; +lean_dec(x_15); +lean_dec(x_14); +x_37 = lean_nat_dec_eq(x_12, x_8); +if (x_37 == 0) +{ +lean_dec(x_8); +x_8 = x_12; +goto _start; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_7); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_4, x_39); +x_41 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_40); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_5); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_nat_add(x_8, x_39); +lean_dec(x_8); +x_44 = l_Array_insertAt_x21___rarg(x_6, x_43, x_42); +lean_dec(x_43); +return x_44; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(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: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_6); +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_unsigned_to_nat(0u); +lean_inc(x_7); +x_10 = lean_array_get(x_7, x_6, x_9); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); lean_dec(x_10); +x_13 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_12); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_12, x_11); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +lean_dec(x_11); +lean_dec(x_7); +x_15 = lean_array_get_size(x_6); +x_16 = lean_nat_dec_lt(x_9, x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_6, x_9); +x_18 = lean_box(0); +x_19 = lean_array_fset(x_6, x_9, x_18); +x_20 = !lean_is_exclusive(x_17); +if (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_ctor_get(x_17, 1); +x_22 = lean_ctor_get(x_17, 0); +lean_dec(x_22); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_4, x_23); +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_24, x_21); +lean_dec(x_24); +lean_ctor_set(x_17, 1, x_25); +lean_ctor_set(x_17, 0, x_5); +x_26 = lean_array_fset(x_19, x_9, x_17); +return x_26; +} +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; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_4, x_28); +x_30 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_29, x_27); +lean_dec(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_array_fset(x_19, x_9, x_31); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_inc(x_7); +x_33 = l_Array_back___rarg(x_7, x_6); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_34, x_11); if (x_35 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -lean_dec(x_6); -x_36 = lean_array_get_size(x_5); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_sub(x_36, x_37); -x_39 = lean_nat_dec_lt(x_38, x_36); -lean_dec(x_36); -if (x_39 == 0) +uint8_t x_36; +x_36 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_34); +lean_dec(x_34); +lean_dec(x_11); +if (x_36 == 0) { -lean_dec(x_38); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_7); +x_37 = lean_array_get_size(x_6); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_sub(x_37, x_38); +x_40 = lean_nat_dec_lt(x_39, x_37); +lean_dec(x_37); +if (x_40 == 0) +{ +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_array_fget(x_6, x_39); +x_42 = lean_box(0); +x_43 = lean_array_fset(x_6, x_39, x_42); +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_41, 1); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = lean_nat_add(x_4, x_38); +x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_47, x_45); +lean_dec(x_47); +lean_ctor_set(x_41, 1, x_48); +lean_ctor_set(x_41, 0, x_5); +x_49 = lean_array_fset(x_43, x_39, x_41); +lean_dec(x_39); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_41, 1); +lean_inc(x_50); +lean_dec(x_41); +x_51 = lean_nat_add(x_4, x_38); +x_52 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_51, x_50); +lean_dec(x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_5); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_array_fset(x_43, x_39, x_53); +lean_dec(x_39); +return x_54; +} +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_array_get_size(x_6); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_sub(x_55, x_56); +lean_dec(x_55); +x_58 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_34); +lean_dec(x_11); +lean_dec(x_7); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_add(x_4, x_59); +x_61 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_60); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_5); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_array_push(x_6, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_add(x_4, x_64); +x_66 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_65); +lean_dec(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_5); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Array_insertAt_x21___rarg(x_6, x_9, x_67); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_7); +x_69 = lean_unsigned_to_nat(1u); +x_70 = lean_nat_add(x_4, x_69); +x_71 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_70); +lean_dec(x_70); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_5); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_array_push(x_6, x_72); +return x_73; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_array_get_size(x_2); +x_10 = lean_nat_dec_lt(x_4, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addInstanceEntry___spec__10(x_7, x_3); +lean_ctor_set(x_5, 0, x_11); return x_5; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_array_fget(x_5, x_38); -x_41 = lean_box(0); -x_42 = lean_array_fset(x_5, x_38, x_41); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_40, 1); -x_45 = lean_ctor_get(x_40, 0); -lean_dec(x_45); -x_46 = lean_nat_add(x_3, x_37); -x_47 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_46, x_44); -lean_dec(x_46); -lean_ctor_set(x_40, 1, x_47); -lean_ctor_set(x_40, 0, x_4); -x_48 = lean_array_fset(x_42, x_38, x_40); -lean_dec(x_38); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -lean_dec(x_40); -x_50 = lean_nat_add(x_3, x_37); -x_51 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_50, x_49); -lean_dec(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_4); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_array_fset(x_42, x_38, x_52); -lean_dec(x_38); -return x_53; -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_array_get_size(x_5); -x_55 = lean_unsigned_to_nat(1u); -x_56 = lean_nat_sub(x_54, x_55); -lean_dec(x_54); -x_57 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_56); -return x_57; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_array_fget(x_2, x_4); +x_13 = l_Lean_Meta_instInhabitedInstanceEntry___closed__1; +lean_ctor_set(x_5, 1, x_13); +lean_ctor_set(x_5, 0, x_13); +lean_inc(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_5); +x_15 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_1, x_2, x_3, x_4, x_12, x_8, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_33); -lean_dec(x_10); -lean_dec(x_6); -x_58 = lean_unsigned_to_nat(1u); -x_59 = lean_nat_add(x_3, x_58); -x_60 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_59); -lean_dec(x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_4); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_array_push(x_5, x_61); -return x_62; -} -} +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_19 = lean_array_get_size(x_2); +x_20 = lean_nat_dec_lt(x_4, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addInstanceEntry___spec__10(x_17, x_3); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_add(x_3, x_63); -x_65 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_64); -lean_dec(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_4); -lean_ctor_set(x_66, 1, x_65); -x_67 = l_Array_insertAt_x21___rarg(x_5, x_8, x_66); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_6); -x_68 = lean_unsigned_to_nat(1u); -x_69 = lean_nat_add(x_3, x_68); -x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_69); -lean_dec(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_4); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_array_push(x_5, x_71); -return x_72; +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_array_fget(x_2, x_4); +x_24 = l_Lean_Meta_instInhabitedInstanceEntry___closed__1; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_1, x_2, x_3, x_4, x_23, x_18, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1() { +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_instInhabitedInstanceEntry___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = lean_array_get_size(x_1); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); x_9 = lean_nat_dec_lt(x_3, x_8); lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; -x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addInstanceEntry___spec__10(x_6, x_2); -lean_ctor_set(x_4, 0, x_10); -return x_4; -} -else +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_1, x_3); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1; -lean_inc(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_1, x_2, x_3, x_11, x_7, x_13); -lean_ctor_set(x_4, 1, x_14); -return x_4; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_4, 0); -x_16 = lean_ctor_get(x_4, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_4); -x_17 = lean_array_get_size(x_1); -x_18 = lean_nat_dec_lt(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addInstanceEntry___spec__10(x_15, x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); +x_2 = x_17; +x_3 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +x_20 = lean_box(0); return x_20; } +} +} else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_array_fget(x_1, x_3); -x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -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 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_1, x_2, x_3, x_21, x_16, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); +lean_dec(x_21); +return x_24; } } } -} -static lean_object* _init_l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1() { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0)); -return x_1; +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__30(uint8_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0), x_1); +x_4 = lean_panic_fn(x_3, x_2); +return x_4; } } static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1() { @@ -1802,94 +3579,98 @@ _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_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1; x_2 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(350u); +x_3 = lean_unsigned_to_nat(358u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = l_Array_isEmpty___rarg(x_2); -if (x_4 == 0) +uint8_t x_5; +x_5 = l_Array_isEmpty___rarg(x_3); +if (x_5 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_array_get_size(x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_nat_dec_lt(x_6, x_5); -lean_dec(x_5); -if (x_7 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_box(0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_array_get_size(x_3); +x_10 = lean_nat_dec_lt(x_7, x_9); +lean_dec(x_9); +if (x_10 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Meta_DiscrTree_instInhabitedKey; -x_9 = l___private_Init_Util_0__outOfBounds___rarg(x_8); -lean_inc(x_9); -lean_inc(x_1); -x_10 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(x_1, x_9); -if (lean_obj_tag(x_10) == 0) +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Init_Util_0__outOfBounds___rarg(x_8); +lean_inc(x_11); +lean_inc(x_2); +x_12 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(x_1, x_2, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_unsigned_to_nat(1u); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_11); -lean_dec(x_2); -x_13 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_1, x_9, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_unsigned_to_nat(1u); +x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_13); +lean_dec(x_3); +x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_1, x_2, x_11, x_14); +return x_15; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_unsigned_to_nat(1u); -x_16 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_2, x_3, x_15, x_14); -lean_dec(x_2); -x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_1, x_9, x_16); -return x_17; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_unsigned_to_nat(1u); +x_18 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_3, x_4, x_17, x_16); +lean_dec(x_3); +x_19 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15(x_1, x_2, x_11, x_18); +return x_19; } } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_array_fget(x_2, x_6); -lean_inc(x_18); -lean_inc(x_1); -x_19 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(x_1, x_18); -if (lean_obj_tag(x_19) == 0) +lean_object* x_20; lean_object* x_21; +lean_dec(x_8); +x_20 = lean_array_fget(x_3, x_7); +lean_inc(x_20); +lean_inc(x_2); +x_21 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19(x_1, x_2, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_unsigned_to_nat(1u); -x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_20); -lean_dec(x_2); -x_22 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_1, x_18, x_21); -return x_22; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_unsigned_to_nat(1u); +x_23 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_22); +lean_dec(x_3); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22(x_1, x_2, x_20, x_23); +return x_24; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_unsigned_to_nat(1u); -x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_2, x_3, x_24, x_23); -lean_dec(x_2); -x_26 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_1, x_18, x_25); -return x_26; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_unsigned_to_nat(1u); +x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_3, x_4, x_26, x_25); +lean_dec(x_3); +x_28 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26(x_1, x_2, x_20, x_27); +return x_28; } } } else { -lean_object* x_27; lean_object* x_28; +lean_object* x_29; lean_object* x_30; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_27 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__4; -x_28 = l_panic___at_Lean_Meta_addInstanceEntry___spec__15(x_27); -return x_28; +x_29 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__4; +x_30 = l_panic___at_Lean_Meta_addInstanceEntry___spec__30(x_1, x_29); +return x_30; } } } @@ -1905,123 +3686,165 @@ 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; +lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); -x_7 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_5, x_6, x_2); -lean_ctor_set(x_1, 0, x_7); +x_7 = 0; +x_8 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_7, x_5, x_6, x_2); +lean_ctor_set(x_1, 0, x_8); return x_1; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); -x_10 = lean_ctor_get(x_1, 2); +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; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); lean_dec(x_1); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); -x_12 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_8, x_11, x_2); -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -lean_ctor_set(x_13, 2, x_10); -return x_13; +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = 0; +x_14 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_13, x_9, x_12, x_2); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_10); +lean_ctor_set(x_15, 2, x_11); +return x_15; } } else { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_3, 0); -lean_inc(x_14); +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_3, 0); +lean_inc(x_16); lean_dec(x_3); -x_15 = !lean_is_exclusive(x_1); -if (x_15 == 0) +x_17 = !lean_is_exclusive(x_1); +if (x_17 == 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; -x_16 = lean_ctor_get(x_1, 0); -x_17 = lean_ctor_get(x_1, 1); -x_18 = lean_ctor_get(x_2, 0); -lean_inc(x_18); -x_19 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_16, x_18, x_2); -x_20 = lean_box(0); -x_21 = l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_17, x_14, x_20); -lean_ctor_set(x_1, 1, x_21); -lean_ctor_set(x_1, 0, x_19); +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; +x_18 = lean_ctor_get(x_1, 0); +x_19 = lean_ctor_get(x_1, 1); +x_20 = lean_ctor_get(x_2, 0); +lean_inc(x_20); +x_21 = 0; +x_22 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_21, x_18, x_20, x_2); +x_23 = lean_box(0); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_19, x_16, x_23); +lean_ctor_set(x_1, 1, x_24); +lean_ctor_set(x_1, 0, x_22); return x_1; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_22 = lean_ctor_get(x_1, 0); -x_23 = lean_ctor_get(x_1, 1); -x_24 = lean_ctor_get(x_1, 2); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_1); -x_25 = lean_ctor_get(x_2, 0); +lean_object* x_25; lean_object* x_26; lean_object* 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; +x_25 = lean_ctor_get(x_1, 0); +x_26 = lean_ctor_get(x_1, 1); +x_27 = lean_ctor_get(x_1, 2); +lean_inc(x_27); +lean_inc(x_26); lean_inc(x_25); -x_26 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_22, x_25, x_2); -x_27 = lean_box(0); -x_28 = l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_23, x_14, x_27); -x_29 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_29, 2, x_24); -return x_29; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4___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_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); lean_dec(x_1); -return x_6; +x_28 = lean_ctor_get(x_2, 0); +lean_inc(x_28); +x_29 = 0; +x_30 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_29, x_25, x_28, x_2); +x_31 = lean_box(0); +x_32 = l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_26, x_16, x_31); +x_33 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_33, 2, x_27); +return x_33; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___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_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(x_1, x_4, x_3); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__2(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___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_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); +x_9 = lean_unbox_usize(x_2); lean_dec(x_2); -return x_8; +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8___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_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__8(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_1, x_6, x_7, x_4, x_5); -return x_8; +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__5(x_5, x_2, x_3, x_4); +return x_6; } } LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_addInstanceEntry___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -2050,36 +3873,242 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___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_9; -x_9 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); lean_dec(x_1); +x_11 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__14(x_10, 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_11; +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___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_7; -x_7 = l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__13(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); lean_dec(x_1); +x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); return x_7; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___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) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(x_1, x_2, x_3, x_4); -lean_dec(x_3); +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__17(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__18(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__16(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__15(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__21(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__20(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addInstanceEntry___spec__19(x_4, x_2, x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__24(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__25(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__23(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__22(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__28(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addInstanceEntry___spec__29(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__27(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__26(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__30___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_panic___at_Lean_Meta_addInstanceEntry___spec__30(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1(x_5, x_2, x_3, x_4); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Instances_eraseCore___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { @@ -2888,7 +4917,7 @@ lean_dec(x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1() { _start: { lean_object* x_1; @@ -2896,7 +4925,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2() { _start: { lean_object* x_1; @@ -2904,7 +4933,7 @@ x_1 = lean_mk_string_from_bytes("Meta", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3() { _start: { lean_object* x_1; @@ -2912,18 +4941,18 @@ x_1 = lean_mk_string_from_bytes("instanceExtension", 17); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2936,7 +4965,7 @@ lean_ctor_set(x_3, 2, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6() { _start: { lean_object* x_1; @@ -2944,7 +4973,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_addInstanceEntry), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__7() { _start: { lean_object* x_1; @@ -2952,14 +4981,14 @@ x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____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_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____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); @@ -2968,11 +4997,11 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__8; x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); return x_3; } @@ -2990,7 +5019,7 @@ lean_inc(x_3); x_10 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_1, x_8, x_2, x_9, 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; lean_object* x_14; lean_object* x_15; +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_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_11, 1); @@ -3002,33 +5031,34 @@ lean_dec(x_10); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Meta_DiscrTree_mkPath(x_14, x_3, x_4, x_5, x_6, x_13); -return x_15; +x_15 = 0; +x_16 = l_Lean_Meta_DiscrTree_mkPath(x_15, x_14, x_3, x_4, x_5, x_6, x_13); +return x_16; } else { -uint8_t x_16; +uint8_t x_17; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 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_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); 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_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; } } } @@ -4015,7 +6045,7 @@ x_10 = l_Lean_Meta_addInstance(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____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_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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) { _start: { lean_object* x_7; lean_object* x_8; @@ -4026,7 +6056,7 @@ lean_ctor_set(x_8, 1, x_6); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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; @@ -4074,14 +6104,14 @@ else { lean_object* x_18; lean_object* x_19; x_18 = lean_box(0); -x_19 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1___lambda__1(x_1, x_2, x_18, x_3, x_4, x_5); +x_19 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1___lambda__1(x_1, x_2, x_18, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); return x_19; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1() { _start: { uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; @@ -4107,7 +6137,7 @@ lean_ctor_set_uint8(x_5, 13, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4119,7 +6149,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -4128,23 +6158,23 @@ 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_781____lambda__1___closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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_781____lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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_781____lambda__1___closed__4; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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); @@ -4155,25 +6185,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_781____lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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_781____lambda__1___closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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_781____lambda__1___closed__1; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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, 6, 0); @@ -4186,7 +6216,7 @@ lean_ctor_set(x_6, 5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4198,7 +6228,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4210,13 +6240,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___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_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9; x_4 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__3; x_5 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_5, 0, x_1); @@ -4230,14 +6260,14 @@ lean_ctor_set(x_5, 7, x_3); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11() { _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_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__10; x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__9; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_3); @@ -4246,7 +6276,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -4267,14 +6297,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_781____lambda__1___closed__11; +x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11; 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_781____lambda__1___closed__7; +x_18 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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); @@ -4366,14 +6396,14 @@ return x_37; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2(lean_object* x_1, lean_object* x_2) { _start: { lean_inc(x_1); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -4391,7 +6421,7 @@ x_10 = l_Lean_Meta_addInstance___closed__2; x_11 = l_Lean_ScopedEnvExtension_getState___rarg(x_9, x_10, x_8); lean_dec(x_8); lean_inc(x_3); -x_12 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1(x_11, x_1, x_2, x_3, x_7); +x_12 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1(x_11, x_1, x_2, x_3, x_7); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -4413,7 +6443,7 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean x_19 = lean_ctor_get(x_16, 0); x_20 = lean_ctor_get(x_16, 4); lean_dec(x_20); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2___boxed), 2, 1); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2___boxed), 2, 1); lean_closure_set(x_21, 0, x_13); x_22 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_10, x_19, x_21); x_23 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__1; @@ -4460,7 +6490,7 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_16); -x_37 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2___boxed), 2, 1); +x_37 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2___boxed), 2, 1); lean_closure_set(x_37, 0, x_13); x_38 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_10, x_31, x_37); x_39 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__1; @@ -4520,27 +6550,27 @@ return x_49; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3() { _start: { lean_object* x_1; @@ -4548,17 +6578,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5() { _start: { lean_object* x_1; @@ -4566,37 +6596,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9() { _start: { lean_object* x_1; @@ -4604,17 +6634,17 @@ x_1 = lean_mk_string_from_bytes("Instances", 9); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11() { _start: { lean_object* x_1; @@ -4622,27 +6652,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12; -x_2 = lean_unsigned_to_nat(781u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12; +x_2 = lean_unsigned_to_nat(738u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14() { _start: { lean_object* x_1; @@ -4650,17 +6680,17 @@ x_1 = lean_mk_string_from_bytes("instance", 8); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16() { _start: { lean_object* x_1; @@ -4668,13 +6698,13 @@ x_1 = lean_mk_string_from_bytes("type class instance", 19); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__17() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -4684,29 +6714,29 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__3), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__3), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__17; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4714,42 +6744,42 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____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_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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) { _start: { lean_object* x_7; -x_7 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____spec__1___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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__2(x_1, x_2); +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -7519,7 +9549,7 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -7541,7 +9571,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -7579,7 +9609,7 @@ size_t x_15; size_t x_16; lean_object* x_17; x_15 = 0; x_16 = lean_usize_of_nat(x_7); lean_dec(x_7); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2(x_6, x_15, x_16, x_4); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__2(x_6, x_15, x_16, x_4); lean_dec(x_6); x_2 = x_11; x_4 = x_17; @@ -7593,7 +9623,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -7622,23 +9652,23 @@ size_t x_7; size_t x_8; lean_object* x_9; x_7 = 0; x_8 = lean_usize_of_nat(x_3); lean_dec(x_3); -x_9 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3(x_2, x_7, x_8, x_1); +x_9 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3(x_2, x_7, x_8, x_1); lean_dec(x_2); return x_9; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____lambda__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Meta_instInhabitedDefaultInstances___closed__1; -x_3 = l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__1(x_2, x_1); +x_3 = l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__1(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1() { _start: { lean_object* x_1; @@ -7646,18 +9676,18 @@ x_1 = lean_mk_string_from_bytes("defaultInstanceExtension", 24); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__3() { _start: { lean_object* x_1; @@ -7666,7 +9696,7 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4() { _start: { lean_object* x_1; @@ -7674,22 +9704,22 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_addDefaultInstanceEntry), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____lambda__1), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____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_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____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); @@ -7698,16 +9728,16 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__6; x_3 = l_Lean_registerSimplePersistentEnvExtension___rarg(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____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; @@ -7715,12 +9745,12 @@ 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_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__2(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__2(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3___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; @@ -7728,7 +9758,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_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____spec__3(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____spec__3(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -8046,7 +10076,7 @@ lean_dec(x_5); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -8054,14 +10084,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_781____lambda__1___closed__11; +x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11; 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_781____lambda__1___closed__7; +x_13 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____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); @@ -8127,7 +10157,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1() { _start: { lean_object* x_1; @@ -8135,16 +10165,16 @@ x_1 = lean_mk_string_from_bytes("invalid attribute 'default_instance', must be g return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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; @@ -8169,7 +10199,7 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_dec(x_10); lean_dec(x_1); -x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2; +x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2; x_15 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_14, x_4, x_5, x_11); lean_dec(x_5); lean_dec(x_4); @@ -8196,7 +10226,7 @@ else { lean_object* x_20; lean_object* x_21; x_20 = lean_box(0); -x_21 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__1(x_1, x_10, x_20, x_4, x_5, x_11); +x_21 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__1(x_1, x_10, x_20, x_4, x_5, x_11); return x_21; } } @@ -8227,7 +10257,7 @@ return x_25; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1() { _start: { lean_object* x_1; @@ -8235,35 +10265,35 @@ x_1 = lean_mk_string_from_bytes("attribute cannot be erased", 26); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2; +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12; -x_2 = lean_unsigned_to_nat(1880u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12; +x_2 = lean_unsigned_to_nat(1839u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2() { _start: { lean_object* x_1; @@ -8271,17 +10301,17 @@ x_1 = lean_mk_string_from_bytes("default_instance", 16); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4() { _start: { lean_object* x_1; @@ -8289,13 +10319,13 @@ x_1 = lean_mk_string_from_bytes("type class default instance", 27); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__3; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -8305,29 +10335,29 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -8335,39 +10365,39 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2(x_1, x_2, x_7, x_4, x_5, x_6); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____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_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -8551,16 +10581,16 @@ l_Lean_Meta_instInhabitedInstances___closed__1 = _init_l_Lean_Meta_instInhabited lean_mark_persistent(l_Lean_Meta_instInhabitedInstances___closed__1); l_Lean_Meta_instInhabitedInstances___closed__2 = _init_l_Lean_Meta_instInhabitedInstances___closed__2(); lean_mark_persistent(l_Lean_Meta_instInhabitedInstances___closed__2); +l_Lean_Meta_instInhabitedInstances___closed__3 = _init_l_Lean_Meta_instInhabitedInstances___closed__3(); +lean_mark_persistent(l_Lean_Meta_instInhabitedInstances___closed__3); +l_Lean_Meta_instInhabitedInstances___closed__4 = _init_l_Lean_Meta_instInhabitedInstances___closed__4(); +lean_mark_persistent(l_Lean_Meta_instInhabitedInstances___closed__4); l_Lean_Meta_instInhabitedInstances = _init_l_Lean_Meta_instInhabitedInstances(); lean_mark_persistent(l_Lean_Meta_instInhabitedInstances); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__1(); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1(); lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addInstanceEntry___spec__6___closed__1); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1); -l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1 = _init_l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_addInstanceEntry___spec__15___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__2 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addInstanceEntry___spec__1___closed__2(); @@ -8577,23 +10607,23 @@ l_Lean_Meta_Instances_erase___rarg___closed__3 = _init_l_Lean_Meta_Instances_era lean_mark_persistent(l_Lean_Meta_Instances_erase___rarg___closed__3); l_Lean_Meta_Instances_erase___rarg___closed__4 = _init_l_Lean_Meta_Instances_erase___rarg___closed__4(); lean_mark_persistent(l_Lean_Meta_Instances_erase___rarg___closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517____closed__8); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_517_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474____closed__8); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_474_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_instanceExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_instanceExtension); @@ -8620,69 +10650,69 @@ l_Lean_Meta_addInstance___closed__1 = _init_l_Lean_Meta_addInstance___closed__1( lean_mark_persistent(l_Lean_Meta_addInstance___closed__1); l_Lean_Meta_addInstance___closed__2 = _init_l_Lean_Meta_addInstance___closed__2(); lean_mark_persistent(l_Lean_Meta_addInstance___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____lambda__1___closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__12); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__13); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__14); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__15); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__16); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__17(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__17); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__18); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__19); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781____closed__20); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_781_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____lambda__1___closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__12); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__13); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__14); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__15); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__16); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__17); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__18); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__19); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738____closed__20); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_738_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_DefaultInstances_defaultInstances___default = _init_l_Lean_Meta_DefaultInstances_defaultInstances___default(); @@ -8693,19 +10723,19 @@ l_Lean_Meta_instInhabitedDefaultInstances___closed__1 = _init_l_Lean_Meta_instIn lean_mark_persistent(l_Lean_Meta_instInhabitedDefaultInstances___closed__1); l_Lean_Meta_instInhabitedDefaultInstances = _init_l_Lean_Meta_instInhabitedDefaultInstances(); lean_mark_persistent(l_Lean_Meta_instInhabitedDefaultInstances); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479____closed__6); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1479_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438____closed__6); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1438_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_defaultInstanceExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_defaultInstanceExtension); @@ -8736,31 +10766,31 @@ l_Lean_Meta_addDefaultInstance___closed__1 = _init_l_Lean_Meta_addDefaultInstanc lean_mark_persistent(l_Lean_Meta_addDefaultInstance___closed__1); l_Lean_Meta_addDefaultInstance___closed__2 = _init_l_Lean_Meta_addDefaultInstance___closed__2(); lean_mark_persistent(l_Lean_Meta_addDefaultInstance___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__2___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____lambda__3___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880____closed__8); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1880_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__2___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____lambda__3___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839____closed__8); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_1839_(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/Match/MatchEqs.c b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c index ee09bd0fad..9db6d599f6 100644 --- a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c +++ b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c @@ -384,7 +384,7 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* lean_array_to_list(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___closed__1; -lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_refl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec_go___spec__1___closed__1; @@ -11530,12 +11530,15 @@ return x_10; static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__1() { _start: { -uint8_t x_1; lean_object* x_2; lean_object* x_3; +uint8_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 1; -x_2 = lean_box(x_1); -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 7, 1); -lean_closure_set(x_3, 0, x_2); -return x_3; +x_2 = 0; +x_3 = lean_box(x_1); +x_4 = lean_box(x_2); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 8, 2); +lean_closure_set(x_5, 0, x_3); +lean_closure_set(x_5, 1, x_4); +return x_5; } } static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__2() { diff --git a/stage0/stdlib/Lean/Meta/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 3faa52ebfe..403b6a8a2b 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -433,7 +433,7 @@ uint8_t l_Lean_Exception_isMaxHeartbeat(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_6____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_State_result_x3f___default; -lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getUnify___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_SynthInstance_newSubgoal___spec__10___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_49____closed__2; LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_SynthInstance_getInstances___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3916,7 +3916,7 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; x_18 = lean_ctor_get(x_9, 1); lean_inc(x_18); lean_dec(x_9); @@ -3929,218 +3929,219 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); +x_23 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_23 = l_Lean_Meta_DiscrTree_getUnify___rarg(x_21, x_3, x_4, x_5, x_6, x_7, x_22); -if (lean_obj_tag(x_23) == 0) +x_24 = l_Lean_Meta_DiscrTree_getUnify___rarg(x_23, x_21, x_3, x_4, x_5, x_6, x_7, x_22); +if (lean_obj_tag(x_24) == 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_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_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_array_get_size(x_24); -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Array_insertionSort_traverse___at_Lean_Meta_SynthInstance_getInstances___spec__1(x_24, x_27, x_26); -x_29 = l_Lean_Meta_getErasedInstances___rarg(x_7, x_25); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_array_get_size(x_25); +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Array_insertionSort_traverse___at_Lean_Meta_SynthInstance_getInstances___spec__1(x_25, x_28, x_27); +x_30 = l_Lean_Meta_getErasedInstances___rarg(x_7, x_26); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_array_get_size(x_28); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_array_get_size(x_29); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_33 = l_Array_filterMapM___at_Lean_Meta_SynthInstance_getInstances___spec__4(x_30, x_28, x_27, x_32, x_4, x_5, x_6, x_7, x_31); -lean_dec(x_28); -if (lean_obj_tag(x_33) == 0) +x_34 = l_Array_filterMapM___at_Lean_Meta_SynthInstance_getInstances___spec__4(x_31, x_29, x_28, x_33, x_4, x_5, x_6, x_7, x_32); +lean_dec(x_29); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; -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; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_35 = lean_ctor_get(x_34, 0); 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; +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_33); - x_36 = lean_box(0); + lean_dec_ref(x_34); + x_37 = lean_box(0); } -x_37 = lean_array_get_size(x_1); -x_38 = lean_nat_dec_lt(x_27, x_37); -x_39 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__5; -x_40 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_39, x_4, x_5, x_6, x_7, x_35); -if (x_38 == 0) +x_38 = lean_array_get_size(x_1); +x_39 = lean_nat_dec_lt(x_28, x_38); +x_40 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__5; +x_41 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_40, x_4, x_5, x_6, x_7, x_36); +if (x_39 == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -lean_dec(x_37); +lean_object* x_54; lean_object* x_55; uint8_t x_56; +lean_dec(x_38); lean_dec(x_19); -x_53 = lean_ctor_get(x_40, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_40, 1); +x_54 = lean_ctor_get(x_41, 0); lean_inc(x_54); -lean_dec(x_40); -x_55 = lean_unbox(x_53); -lean_dec(x_53); -x_41 = x_34; -x_42 = x_55; -x_43 = x_54; -goto block_52; +x_55 = lean_ctor_get(x_41, 1); +lean_inc(x_55); +lean_dec(x_41); +x_56 = lean_unbox(x_54); +lean_dec(x_54); +x_42 = x_35; +x_43 = x_56; +x_44 = x_55; +goto block_53; } else { -uint8_t x_56; -x_56 = lean_nat_dec_le(x_37, x_37); -if (x_56 == 0) +uint8_t x_57; +x_57 = lean_nat_dec_le(x_38, x_38); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_37); +lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_dec(x_38); lean_dec(x_19); -x_57 = lean_ctor_get(x_40, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_40, 1); +x_58 = lean_ctor_get(x_41, 0); lean_inc(x_58); -lean_dec(x_40); -x_59 = lean_unbox(x_57); -lean_dec(x_57); -x_41 = x_34; -x_42 = x_59; -x_43 = x_58; -goto block_52; +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_dec(x_41); +x_60 = lean_unbox(x_58); +lean_dec(x_58); +x_42 = x_35; +x_43 = x_60; +x_44 = x_59; +goto block_53; } else { -lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_40, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_40, 1); +lean_object* x_61; lean_object* x_62; size_t x_63; size_t x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_41, 0); lean_inc(x_61); -lean_dec(x_40); -x_62 = 0; -x_63 = lean_usize_of_nat(x_37); -lean_dec(x_37); -x_64 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__6(x_19, x_1, x_62, x_63, x_34); +x_62 = lean_ctor_get(x_41, 1); +lean_inc(x_62); +lean_dec(x_41); +x_63 = 0; +x_64 = lean_usize_of_nat(x_38); +lean_dec(x_38); +x_65 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__6(x_19, x_1, x_63, x_64, x_35); lean_dec(x_19); -x_65 = lean_unbox(x_60); -lean_dec(x_60); -x_41 = x_64; +x_66 = lean_unbox(x_61); +lean_dec(x_61); x_42 = x_65; -x_43 = x_61; -goto block_52; +x_43 = x_66; +x_44 = x_62; +goto block_53; } } -block_52: +block_53: { -if (x_42 == 0) +if (x_43 == 0) { -lean_object* x_44; +lean_object* x_45; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_36)) { - x_44 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_37)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_36; + x_45 = x_37; } -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_44); +return x_45; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_36); -x_45 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__8; -x_46 = l_Lean_MessageData_arrayExpr_toMessageData(x_41, x_27, x_45); -x_47 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_39, x_46, x_4, x_5, x_6, x_7, x_43); +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +lean_dec(x_37); +x_46 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__8; +x_47 = l_Lean_MessageData_arrayExpr_toMessageData(x_42, x_28, x_46); +x_48 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_40, x_47, x_4, x_5, x_6, x_7, x_44); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) { -lean_object* x_49; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -lean_ctor_set(x_47, 0, x_41); -return x_47; +lean_object* x_50; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +lean_ctor_set(x_48, 0, x_42); +return x_48; } else { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_41); -lean_ctor_set(x_51, 1, x_50); -return x_51; +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_42); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } } else { -uint8_t x_66; +uint8_t x_67; lean_dec(x_19); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_66 = !lean_is_exclusive(x_33); -if (x_66 == 0) +x_67 = !lean_is_exclusive(x_34); +if (x_67 == 0) { -return x_33; +return x_34; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_33, 0); -x_68 = lean_ctor_get(x_33, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_34, 0); +x_69 = lean_ctor_get(x_34, 1); +lean_inc(x_69); lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_33); -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; +lean_dec(x_34); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } else { -uint8_t x_70; +uint8_t x_71; lean_dec(x_19); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_70 = !lean_is_exclusive(x_23); -if (x_70 == 0) +x_71 = !lean_is_exclusive(x_24); +if (x_71 == 0) { -return x_23; +return x_24; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_23, 0); -x_72 = lean_ctor_get(x_23, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_24, 0); +x_73 = lean_ctor_get(x_24, 1); +lean_inc(x_73); lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_23); -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_dec(x_24); +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; } } } @@ -21095,7 +21096,6 @@ lean_ctor_set_uint8(x_12, 1, x_14); lean_ctor_set_uint8(x_12, 3, x_15); lean_ctor_set_uint8(x_12, 4, x_14); lean_ctor_set_uint8(x_12, 5, x_16); -lean_ctor_set_uint8(x_12, 11, x_14); lean_ctor_set_uint8(x_12, 13, x_17); x_18 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_2) == 0) @@ -21373,476 +21373,478 @@ return x_72; } else { -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; uint8_t x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +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; uint8_t x_88; uint8_t x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; x_79 = lean_ctor_get_uint8(x_12, 2); x_80 = lean_ctor_get_uint8(x_12, 6); x_81 = lean_ctor_get_uint8(x_12, 7); x_82 = lean_ctor_get_uint8(x_12, 8); x_83 = lean_ctor_get_uint8(x_12, 9); x_84 = lean_ctor_get_uint8(x_12, 10); -x_85 = lean_ctor_get_uint8(x_12, 12); +x_85 = lean_ctor_get_uint8(x_12, 11); +x_86 = lean_ctor_get_uint8(x_12, 12); lean_dec(x_12); -x_86 = 1; -x_87 = 0; -x_88 = 3; -x_89 = 1; -x_90 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_90, 0, x_86); -lean_ctor_set_uint8(x_90, 1, x_86); -lean_ctor_set_uint8(x_90, 2, x_79); -lean_ctor_set_uint8(x_90, 3, x_87); -lean_ctor_set_uint8(x_90, 4, x_86); -lean_ctor_set_uint8(x_90, 5, x_88); -lean_ctor_set_uint8(x_90, 6, x_80); -lean_ctor_set_uint8(x_90, 7, x_81); -lean_ctor_set_uint8(x_90, 8, x_82); -lean_ctor_set_uint8(x_90, 9, x_83); -lean_ctor_set_uint8(x_90, 10, x_84); -lean_ctor_set_uint8(x_90, 11, x_86); -lean_ctor_set_uint8(x_90, 12, x_85); -lean_ctor_set_uint8(x_90, 13, x_89); -lean_ctor_set(x_3, 0, x_90); -x_91 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); +x_87 = 1; +x_88 = 0; +x_89 = 3; +x_90 = 1; +x_91 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_91, 0, x_87); +lean_ctor_set_uint8(x_91, 1, x_87); +lean_ctor_set_uint8(x_91, 2, x_79); +lean_ctor_set_uint8(x_91, 3, x_88); +lean_ctor_set_uint8(x_91, 4, x_87); +lean_ctor_set_uint8(x_91, 5, x_89); +lean_ctor_set_uint8(x_91, 6, x_80); +lean_ctor_set_uint8(x_91, 7, x_81); +lean_ctor_set_uint8(x_91, 8, x_82); +lean_ctor_set_uint8(x_91, 9, x_83); +lean_ctor_set_uint8(x_91, 10, x_84); +lean_ctor_set_uint8(x_91, 11, x_85); +lean_ctor_set_uint8(x_91, 12, x_86); +lean_ctor_set_uint8(x_91, 13, x_90); +lean_ctor_set(x_3, 0, x_91); +x_92 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_2) == 0) { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_91, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_91, 1); +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_92, 0); lean_inc(x_129); -lean_dec(x_91); -x_92 = x_10; -x_93 = x_128; +x_130 = lean_ctor_get(x_92, 1); +lean_inc(x_130); +lean_dec(x_92); +x_93 = x_10; x_94 = x_129; -goto block_127; +x_95 = x_130; +goto block_128; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_dec(x_10); -x_130 = lean_ctor_get(x_2, 0); -lean_inc(x_130); -lean_dec(x_2); -x_131 = lean_ctor_get(x_91, 0); +x_131 = lean_ctor_get(x_2, 0); lean_inc(x_131); -x_132 = lean_ctor_get(x_91, 1); +lean_dec(x_2); +x_132 = lean_ctor_get(x_92, 0); lean_inc(x_132); -lean_dec(x_91); -x_92 = x_130; +x_133 = lean_ctor_get(x_92, 1); +lean_inc(x_133); +lean_dec(x_92); x_93 = x_131; x_94 = x_132; -goto block_127; +x_95 = x_133; +goto block_128; } -block_127: +block_128: { -lean_object* x_95; lean_object* x_96; -x_95 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocess___closed__1; +lean_object* x_96; lean_object* x_97; +x_96 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocess___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_96 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_93, x_95, x_3, x_4, x_5, x_6, x_94); -if (lean_obj_tag(x_96) == 0) +x_97 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_94, x_96, x_3, x_4, x_5, x_6, x_95); +if (lean_obj_tag(x_97) == 0) { -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; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_st_ref_get(x_6, x_98); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = lean_st_ref_get(x_4, x_100); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_104 = x_101; -} else { - lean_dec_ref(x_101); - x_104 = lean_box(0); -} -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_dec(x_102); -x_106 = lean_ctor_get(x_105, 2); -lean_inc(x_106); -lean_dec(x_105); -lean_inc(x_97); -x_107 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_synthInstance_x3f___spec__1(x_106, x_97); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_104); -lean_inc(x_97); -x_108 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__1___boxed), 7, 1); -lean_closure_set(x_108, 0, x_97); -lean_inc(x_97); -x_109 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__2), 7, 2); -lean_closure_set(x_109, 0, x_97); -lean_closure_set(x_109, 1, x_92); -x_110 = l_Lean_Meta_SynthInstance_newSubgoal___closed__1; -x_111 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__5), 8, 3); -lean_closure_set(x_111, 0, x_109); -lean_closure_set(x_111, 1, x_97); -lean_closure_set(x_111, 2, x_110); -x_112 = l_Lean_withTraceNode___at_Lean_Meta_synthInstance_x3f___spec__8(x_110, x_108, x_111, x_86, x_3, x_4, x_5, x_6, x_103); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; -} else { - lean_dec_ref(x_112); - x_115 = lean_box(0); -} -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { - x_116 = x_115; -} -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_114); -return x_116; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_112, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_112, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_119 = x_112; -} else { - lean_dec_ref(x_112); - 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; lean_object* x_122; +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); lean_dec(x_97); -lean_dec(x_92); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_121 = lean_ctor_get(x_107, 0); -lean_inc(x_121); -lean_dec(x_107); -if (lean_is_scalar(x_104)) { - x_122 = lean_alloc_ctor(0, 2, 0); +x_100 = lean_st_ref_get(x_6, x_99); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_st_ref_get(x_4, x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - x_122 = x_104; + lean_dec_ref(x_102); + x_105 = lean_box(0); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_103); -return x_122; +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_ctor_get(x_106, 2); +lean_inc(x_107); +lean_dec(x_106); +lean_inc(x_98); +x_108 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_synthInstance_x3f___spec__1(x_107, x_98); +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; +lean_dec(x_105); +lean_inc(x_98); +x_109 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__1___boxed), 7, 1); +lean_closure_set(x_109, 0, x_98); +lean_inc(x_98); +x_110 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__2), 7, 2); +lean_closure_set(x_110, 0, x_98); +lean_closure_set(x_110, 1, x_93); +x_111 = l_Lean_Meta_SynthInstance_newSubgoal___closed__1; +x_112 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__5), 8, 3); +lean_closure_set(x_112, 0, x_110); +lean_closure_set(x_112, 1, x_98); +lean_closure_set(x_112, 2, x_111); +x_113 = l_Lean_withTraceNode___at_Lean_Meta_synthInstance_x3f___spec__8(x_111, x_109, x_112, x_87, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_113, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_113, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_120 = x_113; +} else { + lean_dec_ref(x_113); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_92); +lean_object* x_122; lean_object* x_123; +lean_dec(x_98); +lean_dec(x_93); lean_dec(x_3); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_123 = lean_ctor_get(x_96, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_96, 1); +x_122 = lean_ctor_get(x_108, 0); +lean_inc(x_122); +lean_dec(x_108); +if (lean_is_scalar(x_105)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_105; +} +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_104); +return x_123; +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_93); +lean_dec(x_3); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_124 = lean_ctor_get(x_97, 0); lean_inc(x_124); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_125 = x_96; +x_125 = lean_ctor_get(x_97, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_126 = x_97; } else { - lean_dec_ref(x_96); - x_125 = lean_box(0); + lean_dec_ref(x_97); + 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; } } } } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_133 = lean_ctor_get(x_3, 0); -x_134 = lean_ctor_get(x_3, 1); -x_135 = lean_ctor_get(x_3, 2); -x_136 = lean_ctor_get(x_3, 3); -x_137 = lean_ctor_get(x_3, 4); -x_138 = lean_ctor_get(x_3, 5); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; lean_object* x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; uint8_t 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; +x_134 = lean_ctor_get(x_3, 0); +x_135 = lean_ctor_get(x_3, 1); +x_136 = lean_ctor_get(x_3, 2); +x_137 = lean_ctor_get(x_3, 3); +x_138 = lean_ctor_get(x_3, 4); +x_139 = lean_ctor_get(x_3, 5); +lean_inc(x_139); lean_inc(x_138); lean_inc(x_137); lean_inc(x_136); lean_inc(x_135); lean_inc(x_134); -lean_inc(x_133); lean_dec(x_3); -x_139 = lean_ctor_get_uint8(x_133, 2); -x_140 = lean_ctor_get_uint8(x_133, 6); -x_141 = lean_ctor_get_uint8(x_133, 7); -x_142 = lean_ctor_get_uint8(x_133, 8); -x_143 = lean_ctor_get_uint8(x_133, 9); -x_144 = lean_ctor_get_uint8(x_133, 10); -x_145 = lean_ctor_get_uint8(x_133, 12); -if (lean_is_exclusive(x_133)) { - x_146 = x_133; +x_140 = lean_ctor_get_uint8(x_134, 2); +x_141 = lean_ctor_get_uint8(x_134, 6); +x_142 = lean_ctor_get_uint8(x_134, 7); +x_143 = lean_ctor_get_uint8(x_134, 8); +x_144 = lean_ctor_get_uint8(x_134, 9); +x_145 = lean_ctor_get_uint8(x_134, 10); +x_146 = lean_ctor_get_uint8(x_134, 11); +x_147 = lean_ctor_get_uint8(x_134, 12); +if (lean_is_exclusive(x_134)) { + x_148 = x_134; } else { - lean_dec_ref(x_133); - x_146 = lean_box(0); + lean_dec_ref(x_134); + x_148 = lean_box(0); } -x_147 = 1; -x_148 = 0; -x_149 = 3; -x_150 = 1; -if (lean_is_scalar(x_146)) { - x_151 = lean_alloc_ctor(0, 0, 14); +x_149 = 1; +x_150 = 0; +x_151 = 3; +x_152 = 1; +if (lean_is_scalar(x_148)) { + x_153 = lean_alloc_ctor(0, 0, 14); } else { - x_151 = x_146; + x_153 = x_148; } -lean_ctor_set_uint8(x_151, 0, x_147); -lean_ctor_set_uint8(x_151, 1, x_147); -lean_ctor_set_uint8(x_151, 2, x_139); -lean_ctor_set_uint8(x_151, 3, x_148); -lean_ctor_set_uint8(x_151, 4, x_147); -lean_ctor_set_uint8(x_151, 5, x_149); -lean_ctor_set_uint8(x_151, 6, x_140); -lean_ctor_set_uint8(x_151, 7, x_141); -lean_ctor_set_uint8(x_151, 8, x_142); -lean_ctor_set_uint8(x_151, 9, x_143); -lean_ctor_set_uint8(x_151, 10, x_144); -lean_ctor_set_uint8(x_151, 11, x_147); -lean_ctor_set_uint8(x_151, 12, x_145); -lean_ctor_set_uint8(x_151, 13, x_150); -x_152 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_134); -lean_ctor_set(x_152, 2, x_135); -lean_ctor_set(x_152, 3, x_136); -lean_ctor_set(x_152, 4, x_137); -lean_ctor_set(x_152, 5, x_138); -x_153 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_152, x_4, x_5, x_6, x_7); +lean_ctor_set_uint8(x_153, 0, x_149); +lean_ctor_set_uint8(x_153, 1, x_149); +lean_ctor_set_uint8(x_153, 2, x_140); +lean_ctor_set_uint8(x_153, 3, x_150); +lean_ctor_set_uint8(x_153, 4, x_149); +lean_ctor_set_uint8(x_153, 5, x_151); +lean_ctor_set_uint8(x_153, 6, x_141); +lean_ctor_set_uint8(x_153, 7, x_142); +lean_ctor_set_uint8(x_153, 8, x_143); +lean_ctor_set_uint8(x_153, 9, x_144); +lean_ctor_set_uint8(x_153, 10, x_145); +lean_ctor_set_uint8(x_153, 11, x_146); +lean_ctor_set_uint8(x_153, 12, x_147); +lean_ctor_set_uint8(x_153, 13, x_152); +x_154 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_135); +lean_ctor_set(x_154, 2, x_136); +lean_ctor_set(x_154, 3, x_137); +lean_ctor_set(x_154, 4, x_138); +lean_ctor_set(x_154, 5, x_139); +x_155 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_154, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_2) == 0) { -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_153, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_153, 1); -lean_inc(x_191); -lean_dec(x_153); -x_154 = x_10; -x_155 = x_190; -x_156 = x_191; -goto block_189; +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_155, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_155, 1); +lean_inc(x_193); +lean_dec(x_155); +x_156 = x_10; +x_157 = x_192; +x_158 = x_193; +goto block_191; } else { -lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_dec(x_10); -x_192 = lean_ctor_get(x_2, 0); -lean_inc(x_192); -lean_dec(x_2); -x_193 = lean_ctor_get(x_153, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_153, 1); +x_194 = lean_ctor_get(x_2, 0); lean_inc(x_194); -lean_dec(x_153); -x_154 = x_192; -x_155 = x_193; +lean_dec(x_2); +x_195 = lean_ctor_get(x_155, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_155, 1); +lean_inc(x_196); +lean_dec(x_155); x_156 = x_194; -goto block_189; +x_157 = x_195; +x_158 = x_196; +goto block_191; } -block_189: +block_191: { -lean_object* x_157; lean_object* x_158; -x_157 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocess___closed__1; +lean_object* x_159; lean_object* x_160; +x_159 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocess___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_152); -x_158 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_155, x_157, x_152, x_4, x_5, x_6, x_156); -if (lean_obj_tag(x_158) == 0) +lean_inc(x_154); +x_160 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_157, x_159, x_154, x_4, x_5, x_6, x_158); +if (lean_obj_tag(x_160) == 0) { -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; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_st_ref_get(x_6, x_160); -x_162 = lean_ctor_get(x_161, 1); +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; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); lean_inc(x_162); -lean_dec(x_161); -x_163 = lean_st_ref_get(x_4, x_162); -x_164 = lean_ctor_get(x_163, 0); +lean_dec(x_160); +x_163 = lean_st_ref_get(x_6, x_162); +x_164 = lean_ctor_get(x_163, 1); lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_166 = x_163; -} else { - lean_dec_ref(x_163); - x_166 = lean_box(0); -} -x_167 = lean_ctor_get(x_164, 1); +lean_dec(x_163); +x_165 = lean_st_ref_get(x_4, x_164); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); lean_inc(x_167); -lean_dec(x_164); -x_168 = lean_ctor_get(x_167, 2); -lean_inc(x_168); -lean_dec(x_167); -lean_inc(x_159); -x_169 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_synthInstance_x3f___spec__1(x_168, x_159); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_168 = x_165; +} else { + lean_dec_ref(x_165); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); lean_dec(x_166); -lean_inc(x_159); -x_170 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__1___boxed), 7, 1); -lean_closure_set(x_170, 0, x_159); -lean_inc(x_159); -x_171 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__2), 7, 2); -lean_closure_set(x_171, 0, x_159); -lean_closure_set(x_171, 1, x_154); -x_172 = l_Lean_Meta_SynthInstance_newSubgoal___closed__1; -x_173 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__5), 8, 3); -lean_closure_set(x_173, 0, x_171); -lean_closure_set(x_173, 1, x_159); -lean_closure_set(x_173, 2, x_172); -x_174 = l_Lean_withTraceNode___at_Lean_Meta_synthInstance_x3f___spec__8(x_172, x_170, x_173, x_147, x_152, x_4, x_5, x_6, x_165); -if (lean_obj_tag(x_174) == 0) -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_177 = x_174; -} else { - lean_dec_ref(x_174); - x_177 = lean_box(0); -} -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_177; -} -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_176); -return x_178; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_179 = lean_ctor_get(x_174, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_174, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_181 = x_174; -} else { - lean_dec_ref(x_174); - 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_dec(x_159); -lean_dec(x_154); -lean_dec(x_152); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_183 = lean_ctor_get(x_169, 0); -lean_inc(x_183); +x_170 = lean_ctor_get(x_169, 2); +lean_inc(x_170); lean_dec(x_169); -if (lean_is_scalar(x_166)) { - x_184 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_161); +x_171 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_synthInstance_x3f___spec__1(x_170, x_161); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_168); +lean_inc(x_161); +x_172 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__1___boxed), 7, 1); +lean_closure_set(x_172, 0, x_161); +lean_inc(x_161); +x_173 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__2), 7, 2); +lean_closure_set(x_173, 0, x_161); +lean_closure_set(x_173, 1, x_156); +x_174 = l_Lean_Meta_SynthInstance_newSubgoal___closed__1; +x_175 = lean_alloc_closure((void*)(l_Lean_Meta_synthInstance_x3f___lambda__5), 8, 3); +lean_closure_set(x_175, 0, x_173); +lean_closure_set(x_175, 1, x_161); +lean_closure_set(x_175, 2, x_174); +x_176 = l_Lean_withTraceNode___at_Lean_Meta_synthInstance_x3f___spec__8(x_174, x_172, x_175, x_149, x_154, x_4, x_5, x_6, x_167); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_179 = x_176; } else { - x_184 = x_166; + lean_dec_ref(x_176); + x_179 = lean_box(0); } -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_165); +if (lean_is_scalar(x_179)) { + x_180 = lean_alloc_ctor(0, 2, 0); +} else { + x_180 = x_179; +} +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +return x_180; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_181 = lean_ctor_get(x_176, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_176, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_183 = x_176; +} else { + lean_dec_ref(x_176); + x_183 = lean_box(0); +} +if (lean_is_scalar(x_183)) { + x_184 = lean_alloc_ctor(1, 2, 0); +} else { + x_184 = x_183; +} +lean_ctor_set(x_184, 0, x_181); +lean_ctor_set(x_184, 1, x_182); return x_184; } } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_object* x_185; lean_object* x_186; +lean_dec(x_161); +lean_dec(x_156); lean_dec(x_154); -lean_dec(x_152); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_185 = lean_ctor_get(x_158, 0); +x_185 = lean_ctor_get(x_171, 0); lean_inc(x_185); -x_186 = lean_ctor_get(x_158, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_187 = x_158; +lean_dec(x_171); +if (lean_is_scalar(x_168)) { + x_186 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_158); - x_187 = lean_box(0); + x_186 = x_168; } -if (lean_is_scalar(x_187)) { - x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_167); +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_154); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_187 = lean_ctor_get(x_160, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_160, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_189 = x_160; } else { - x_188 = x_187; + lean_dec_ref(x_160); + x_189 = lean_box(0); } -lean_ctor_set(x_188, 0, x_185); -lean_ctor_set(x_188, 1, x_186); -return x_188; +if (lean_is_scalar(x_189)) { + x_190 = lean_alloc_ctor(1, 2, 0); +} else { + x_190 = x_189; +} +lean_ctor_set(x_190, 0, x_187); +lean_ctor_set(x_190, 1, x_188); +return x_190; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 892572af1c..d3680f509b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -548,6 +548,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__4___lambda__1___boxed(lean_object**); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___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_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig(lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Simp_simp_simpLambda___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*); @@ -646,6 +647,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_lambdaTelescopeDSimp_go___rarg___lambd static lean_object* l_Lean_Meta_Simp_dsimpMain___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___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_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__6(lean_object*, 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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___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*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); @@ -695,6 +697,7 @@ lean_object* l_Lean_Meta_mkFalseElim(lean_object*, lean_object*, lean_object*, l LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___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_LocalDecl_isImplementationDetail(lean_object*); lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___boxed(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -42451,6 +42454,290 @@ lean_dec(x_3); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig___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: +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_3, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*2 + 6); +x_13 = 2; +x_14 = 0; +lean_ctor_set_uint8(x_9, 5, x_13); +lean_ctor_set_uint8(x_9, 11, x_14); +lean_ctor_set_uint8(x_9, 13, x_12); +x_15 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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; +} +} +} +else +{ +uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_24 = lean_ctor_get_uint8(x_9, 0); +x_25 = lean_ctor_get_uint8(x_9, 1); +x_26 = lean_ctor_get_uint8(x_9, 2); +x_27 = lean_ctor_get_uint8(x_9, 3); +x_28 = lean_ctor_get_uint8(x_9, 4); +x_29 = lean_ctor_get_uint8(x_9, 6); +x_30 = lean_ctor_get_uint8(x_9, 7); +x_31 = lean_ctor_get_uint8(x_9, 8); +x_32 = lean_ctor_get_uint8(x_9, 9); +x_33 = lean_ctor_get_uint8(x_9, 10); +x_34 = lean_ctor_get_uint8(x_9, 12); +lean_dec(x_9); +x_35 = lean_ctor_get(x_1, 0); +x_36 = lean_ctor_get_uint8(x_35, sizeof(void*)*2 + 6); +x_37 = 2; +x_38 = 0; +x_39 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_39, 0, x_24); +lean_ctor_set_uint8(x_39, 1, x_25); +lean_ctor_set_uint8(x_39, 2, x_26); +lean_ctor_set_uint8(x_39, 3, x_27); +lean_ctor_set_uint8(x_39, 4, x_28); +lean_ctor_set_uint8(x_39, 5, x_37); +lean_ctor_set_uint8(x_39, 6, x_29); +lean_ctor_set_uint8(x_39, 7, x_30); +lean_ctor_set_uint8(x_39, 8, x_31); +lean_ctor_set_uint8(x_39, 9, x_32); +lean_ctor_set_uint8(x_39, 10, x_33); +lean_ctor_set_uint8(x_39, 11, x_38); +lean_ctor_set_uint8(x_39, 12, x_34); +lean_ctor_set_uint8(x_39, 13, x_36); +lean_ctor_set(x_3, 0, x_39); +x_40 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +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); +} +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; 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; lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_49 = lean_ctor_get(x_3, 0); +x_50 = lean_ctor_get(x_3, 1); +x_51 = lean_ctor_get(x_3, 2); +x_52 = lean_ctor_get(x_3, 3); +x_53 = lean_ctor_get(x_3, 4); +x_54 = lean_ctor_get(x_3, 5); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_3); +x_55 = lean_ctor_get_uint8(x_49, 0); +x_56 = lean_ctor_get_uint8(x_49, 1); +x_57 = lean_ctor_get_uint8(x_49, 2); +x_58 = lean_ctor_get_uint8(x_49, 3); +x_59 = lean_ctor_get_uint8(x_49, 4); +x_60 = lean_ctor_get_uint8(x_49, 6); +x_61 = lean_ctor_get_uint8(x_49, 7); +x_62 = lean_ctor_get_uint8(x_49, 8); +x_63 = lean_ctor_get_uint8(x_49, 9); +x_64 = lean_ctor_get_uint8(x_49, 10); +x_65 = lean_ctor_get_uint8(x_49, 12); +if (lean_is_exclusive(x_49)) { + x_66 = x_49; +} else { + lean_dec_ref(x_49); + x_66 = lean_box(0); +} +x_67 = lean_ctor_get(x_1, 0); +x_68 = lean_ctor_get_uint8(x_67, sizeof(void*)*2 + 6); +x_69 = 2; +x_70 = 0; +if (lean_is_scalar(x_66)) { + x_71 = lean_alloc_ctor(0, 0, 14); +} else { + x_71 = x_66; +} +lean_ctor_set_uint8(x_71, 0, x_55); +lean_ctor_set_uint8(x_71, 1, x_56); +lean_ctor_set_uint8(x_71, 2, x_57); +lean_ctor_set_uint8(x_71, 3, x_58); +lean_ctor_set_uint8(x_71, 4, x_59); +lean_ctor_set_uint8(x_71, 5, x_69); +lean_ctor_set_uint8(x_71, 6, x_60); +lean_ctor_set_uint8(x_71, 7, x_61); +lean_ctor_set_uint8(x_71, 8, x_62); +lean_ctor_set_uint8(x_71, 9, x_63); +lean_ctor_set_uint8(x_71, 10, x_64); +lean_ctor_set_uint8(x_71, 11, x_70); +lean_ctor_set_uint8(x_71, 12, x_65); +lean_ctor_set_uint8(x_71, 13, x_68); +x_72 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_50); +lean_ctor_set(x_72, 2, x_51); +lean_ctor_set(x_72, 3, x_52); +lean_ctor_set(x_72, 4, x_53); +lean_ctor_set(x_72, 5, x_54); +x_73 = lean_apply_5(x_2, x_72, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_76 = x_73; +} else { + lean_dec_ref(x_73); + 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_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; +x_78 = lean_ctor_get(x_73, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_80 = x_73; +} else { + lean_dec_ref(x_73); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_withSimpConfig___rarg___boxed), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withSimpConfig___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Simp_withSimpConfig___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} static lean_object* _init_l_Lean_Meta_Simp_main___closed__1() { _start: { @@ -42493,567 +42780,569 @@ x_19 = lean_ctor_get(x_5, 0); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) { -uint8_t 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_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_21 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); lean_dec(x_13); x_22 = 2; +x_23 = 0; lean_ctor_set_uint8(x_19, 5, x_22); +lean_ctor_set_uint8(x_19, 11, x_23); lean_ctor_set_uint8(x_19, 13, x_21); -x_23 = lean_st_ref_get(x_8, x_14); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_st_mk_ref(x_17, x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +x_24 = lean_st_ref_get(x_8, x_14); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_mk_ref(x_17, x_25); +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_26); -x_28 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_26, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_28) == 0) +lean_inc(x_27); +x_29 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_27, x_5, x_6, x_7, x_8, x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_dec(x_5); lean_dec(x_7); lean_dec(x_6); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_st_ref_get(x_8, x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_st_ref_get(x_8, x_31); lean_dec(x_8); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_st_ref_get(x_26, x_32); -lean_dec(x_26); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_st_ref_get(x_27, x_33); +lean_dec(x_27); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_35, 2); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_33, 0, x_37); -return x_33; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_36, 2); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_34, 0, x_38); +return x_34; } 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_33, 0); -x_39 = lean_ctor_get(x_33, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_33); -x_40 = lean_ctor_get(x_38, 2); +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_34, 0); +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_29); -lean_ctor_set(x_41, 1, x_40); +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_ctor_get(x_39, 2); +lean_inc(x_41); +lean_dec(x_39); 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; +lean_ctor_set(x_42, 0, x_30); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; } } else { -uint8_t x_43; -lean_dec(x_26); -x_43 = !lean_is_exclusive(x_28); -if (x_43 == 0) +uint8_t x_44; +lean_dec(x_27); +x_44 = !lean_is_exclusive(x_29); +if (x_44 == 0) { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_28, 0); -x_45 = lean_ctor_get(x_28, 1); -x_46 = l_Lean_Exception_isMaxHeartbeat(x_44); -if (x_46 == 0) +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_29, 0); +x_46 = lean_ctor_get(x_29, 1); +x_47 = l_Lean_Exception_isMaxHeartbeat(x_45); +if (x_47 == 0) { lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_28; +return x_29; } else { -lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_free_object(x_28); -x_47 = l_Lean_Meta_Simp_main___closed__1; -x_48 = l_Lean_Meta_throwNestedTacticEx___rarg(x_47, x_44, x_5, x_6, x_7, x_8, x_45); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +lean_object* x_48; lean_object* x_49; uint8_t x_50; +lean_free_object(x_29); +x_48 = l_Lean_Meta_Simp_main___closed__1; +x_49 = l_Lean_Meta_throwNestedTacticEx___rarg(x_48, x_45, x_5, x_6, x_7, x_8, x_46); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -return x_48; +return x_49; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); +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_inc(x_52); lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_48); -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; +lean_dec(x_49); +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_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_28, 0); -x_54 = lean_ctor_get(x_28, 1); +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_29, 0); +x_55 = lean_ctor_get(x_29, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_28); -x_55 = l_Lean_Exception_isMaxHeartbeat(x_53); -if (x_55 == 0) +lean_dec(x_29); +x_56 = l_Lean_Exception_isMaxHeartbeat(x_54); +if (x_56 == 0) { -lean_object* x_56; +lean_object* x_57; lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; +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_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_57 = l_Lean_Meta_Simp_main___closed__1; -x_58 = l_Lean_Meta_throwNestedTacticEx___rarg(x_57, x_53, x_5, x_6, x_7, x_8, x_54); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); +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_58 = l_Lean_Meta_Simp_main___closed__1; +x_59 = l_Lean_Meta_throwNestedTacticEx___rarg(x_58, x_54, x_5, x_6, x_7, x_8, x_55); +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; } else { - lean_dec_ref(x_58); - x_61 = lean_box(0); + lean_dec_ref(x_59); + x_62 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_62 = x_61; + x_63 = x_62; } -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return 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_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; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t 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_63 = lean_ctor_get_uint8(x_19, 0); -x_64 = lean_ctor_get_uint8(x_19, 1); -x_65 = lean_ctor_get_uint8(x_19, 2); -x_66 = lean_ctor_get_uint8(x_19, 3); -x_67 = lean_ctor_get_uint8(x_19, 4); -x_68 = lean_ctor_get_uint8(x_19, 6); -x_69 = lean_ctor_get_uint8(x_19, 7); -x_70 = lean_ctor_get_uint8(x_19, 8); -x_71 = lean_ctor_get_uint8(x_19, 9); -x_72 = lean_ctor_get_uint8(x_19, 10); -x_73 = lean_ctor_get_uint8(x_19, 11); +uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t 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; +x_64 = lean_ctor_get_uint8(x_19, 0); +x_65 = lean_ctor_get_uint8(x_19, 1); +x_66 = lean_ctor_get_uint8(x_19, 2); +x_67 = lean_ctor_get_uint8(x_19, 3); +x_68 = lean_ctor_get_uint8(x_19, 4); +x_69 = lean_ctor_get_uint8(x_19, 6); +x_70 = lean_ctor_get_uint8(x_19, 7); +x_71 = lean_ctor_get_uint8(x_19, 8); +x_72 = lean_ctor_get_uint8(x_19, 9); +x_73 = lean_ctor_get_uint8(x_19, 10); x_74 = lean_ctor_get_uint8(x_19, 12); lean_dec(x_19); x_75 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); lean_dec(x_13); x_76 = 2; -x_77 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_77, 0, x_63); -lean_ctor_set_uint8(x_77, 1, x_64); -lean_ctor_set_uint8(x_77, 2, x_65); -lean_ctor_set_uint8(x_77, 3, x_66); -lean_ctor_set_uint8(x_77, 4, x_67); -lean_ctor_set_uint8(x_77, 5, x_76); -lean_ctor_set_uint8(x_77, 6, x_68); -lean_ctor_set_uint8(x_77, 7, x_69); -lean_ctor_set_uint8(x_77, 8, x_70); -lean_ctor_set_uint8(x_77, 9, x_71); -lean_ctor_set_uint8(x_77, 10, x_72); -lean_ctor_set_uint8(x_77, 11, x_73); -lean_ctor_set_uint8(x_77, 12, x_74); -lean_ctor_set_uint8(x_77, 13, x_75); -lean_ctor_set(x_5, 0, x_77); -x_78 = lean_st_ref_get(x_8, x_14); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_80 = lean_st_mk_ref(x_17, x_79); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); +x_77 = 0; +x_78 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_78, 0, x_64); +lean_ctor_set_uint8(x_78, 1, x_65); +lean_ctor_set_uint8(x_78, 2, x_66); +lean_ctor_set_uint8(x_78, 3, x_67); +lean_ctor_set_uint8(x_78, 4, x_68); +lean_ctor_set_uint8(x_78, 5, x_76); +lean_ctor_set_uint8(x_78, 6, x_69); +lean_ctor_set_uint8(x_78, 7, x_70); +lean_ctor_set_uint8(x_78, 8, x_71); +lean_ctor_set_uint8(x_78, 9, x_72); +lean_ctor_set_uint8(x_78, 10, x_73); +lean_ctor_set_uint8(x_78, 11, x_77); +lean_ctor_set_uint8(x_78, 12, x_74); +lean_ctor_set_uint8(x_78, 13, x_75); +lean_ctor_set(x_5, 0, x_78); +x_79 = lean_st_ref_get(x_8, x_14); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec(x_79); +x_81 = lean_st_mk_ref(x_17, x_80); +x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); -lean_dec(x_80); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_81); -x_83 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_81, x_5, x_6, x_7, x_8, x_82); -if (lean_obj_tag(x_83) == 0) +lean_inc(x_82); +x_84 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_82, x_5, x_6, x_7, x_8, x_83); +if (lean_obj_tag(x_84) == 0) { -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_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_dec(x_5); lean_dec(x_7); lean_dec(x_6); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_st_ref_get(x_8, x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_st_ref_get(x_8, x_86); lean_dec(x_8); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_88 = lean_st_ref_get(x_81, x_87); -lean_dec(x_81); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_st_ref_get(x_82, x_88); +lean_dec(x_82); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_91 = x_88; +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_92 = x_89; } else { - lean_dec_ref(x_88); - x_91 = lean_box(0); + lean_dec_ref(x_89); + x_92 = lean_box(0); } -x_92 = lean_ctor_get(x_89, 2); -lean_inc(x_92); -lean_dec(x_89); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_84); -lean_ctor_set(x_93, 1, x_92); -if (lean_is_scalar(x_91)) { - x_94 = lean_alloc_ctor(0, 2, 0); +x_93 = lean_ctor_get(x_90, 2); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_85); +lean_ctor_set(x_94, 1, x_93); +if (lean_is_scalar(x_92)) { + x_95 = lean_alloc_ctor(0, 2, 0); } else { - x_94 = x_91; + x_95 = x_92; } -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_90); -return x_94; +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_91); +return x_95; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -lean_dec(x_81); -x_95 = lean_ctor_get(x_83, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_83, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +lean_dec(x_82); +x_96 = lean_ctor_get(x_84, 0); lean_inc(x_96); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_97 = x_83; +x_97 = lean_ctor_get(x_84, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_98 = x_84; } else { - lean_dec_ref(x_83); - x_97 = lean_box(0); + lean_dec_ref(x_84); + x_98 = lean_box(0); } -x_98 = l_Lean_Exception_isMaxHeartbeat(x_95); -if (x_98 == 0) +x_99 = l_Lean_Exception_isMaxHeartbeat(x_96); +if (x_99 == 0) { -lean_object* x_99; +lean_object* x_100; lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -if (lean_is_scalar(x_97)) { - x_99 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_98)) { + x_100 = lean_alloc_ctor(1, 2, 0); } else { - x_99 = x_97; + x_100 = x_98; } -lean_ctor_set(x_99, 0, x_95); -lean_ctor_set(x_99, 1, x_96); -return x_99; +lean_ctor_set(x_100, 0, x_96); +lean_ctor_set(x_100, 1, x_97); +return x_100; } else { -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_dec(x_97); -x_100 = l_Lean_Meta_Simp_main___closed__1; -x_101 = l_Lean_Meta_throwNestedTacticEx___rarg(x_100, x_95, x_5, x_6, x_7, x_8, x_96); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); +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_dec(x_98); +x_101 = l_Lean_Meta_Simp_main___closed__1; +x_102 = l_Lean_Meta_throwNestedTacticEx___rarg(x_101, x_96, x_5, x_6, x_7, x_8, x_97); +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_104 = x_101; +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - lean_dec_ref(x_101); - x_104 = lean_box(0); + lean_dec_ref(x_102); + x_105 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_104; + x_106 = x_105; } -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; } } } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; lean_object* x_124; uint8_t 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; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_106 = lean_ctor_get(x_5, 0); -x_107 = lean_ctor_get(x_5, 1); -x_108 = lean_ctor_get(x_5, 2); -x_109 = lean_ctor_get(x_5, 3); -x_110 = lean_ctor_get(x_5, 4); -x_111 = lean_ctor_get(x_5, 5); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; lean_object* x_124; uint8_t x_125; uint8_t x_126; uint8_t 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; +x_107 = lean_ctor_get(x_5, 0); +x_108 = lean_ctor_get(x_5, 1); +x_109 = lean_ctor_get(x_5, 2); +x_110 = lean_ctor_get(x_5, 3); +x_111 = lean_ctor_get(x_5, 4); +x_112 = lean_ctor_get(x_5, 5); +lean_inc(x_112); lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_inc(x_107); -lean_inc(x_106); lean_dec(x_5); -x_112 = lean_ctor_get_uint8(x_106, 0); -x_113 = lean_ctor_get_uint8(x_106, 1); -x_114 = lean_ctor_get_uint8(x_106, 2); -x_115 = lean_ctor_get_uint8(x_106, 3); -x_116 = lean_ctor_get_uint8(x_106, 4); -x_117 = lean_ctor_get_uint8(x_106, 6); -x_118 = lean_ctor_get_uint8(x_106, 7); -x_119 = lean_ctor_get_uint8(x_106, 8); -x_120 = lean_ctor_get_uint8(x_106, 9); -x_121 = lean_ctor_get_uint8(x_106, 10); -x_122 = lean_ctor_get_uint8(x_106, 11); -x_123 = lean_ctor_get_uint8(x_106, 12); -if (lean_is_exclusive(x_106)) { - x_124 = x_106; +x_113 = lean_ctor_get_uint8(x_107, 0); +x_114 = lean_ctor_get_uint8(x_107, 1); +x_115 = lean_ctor_get_uint8(x_107, 2); +x_116 = lean_ctor_get_uint8(x_107, 3); +x_117 = lean_ctor_get_uint8(x_107, 4); +x_118 = lean_ctor_get_uint8(x_107, 6); +x_119 = lean_ctor_get_uint8(x_107, 7); +x_120 = lean_ctor_get_uint8(x_107, 8); +x_121 = lean_ctor_get_uint8(x_107, 9); +x_122 = lean_ctor_get_uint8(x_107, 10); +x_123 = lean_ctor_get_uint8(x_107, 12); +if (lean_is_exclusive(x_107)) { + x_124 = x_107; } else { - lean_dec_ref(x_106); + lean_dec_ref(x_107); x_124 = lean_box(0); } x_125 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); lean_dec(x_13); x_126 = 2; +x_127 = 0; if (lean_is_scalar(x_124)) { - x_127 = lean_alloc_ctor(0, 0, 14); + x_128 = lean_alloc_ctor(0, 0, 14); } else { - x_127 = x_124; + x_128 = x_124; } -lean_ctor_set_uint8(x_127, 0, x_112); -lean_ctor_set_uint8(x_127, 1, x_113); -lean_ctor_set_uint8(x_127, 2, x_114); -lean_ctor_set_uint8(x_127, 3, x_115); -lean_ctor_set_uint8(x_127, 4, x_116); -lean_ctor_set_uint8(x_127, 5, x_126); -lean_ctor_set_uint8(x_127, 6, x_117); -lean_ctor_set_uint8(x_127, 7, x_118); -lean_ctor_set_uint8(x_127, 8, x_119); -lean_ctor_set_uint8(x_127, 9, x_120); -lean_ctor_set_uint8(x_127, 10, x_121); -lean_ctor_set_uint8(x_127, 11, x_122); -lean_ctor_set_uint8(x_127, 12, x_123); -lean_ctor_set_uint8(x_127, 13, x_125); -x_128 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_107); -lean_ctor_set(x_128, 2, x_108); -lean_ctor_set(x_128, 3, x_109); -lean_ctor_set(x_128, 4, x_110); -lean_ctor_set(x_128, 5, x_111); -x_129 = lean_st_ref_get(x_8, x_14); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -lean_dec(x_129); -x_131 = lean_st_mk_ref(x_17, x_130); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); +lean_ctor_set_uint8(x_128, 0, x_113); +lean_ctor_set_uint8(x_128, 1, x_114); +lean_ctor_set_uint8(x_128, 2, x_115); +lean_ctor_set_uint8(x_128, 3, x_116); +lean_ctor_set_uint8(x_128, 4, x_117); +lean_ctor_set_uint8(x_128, 5, x_126); +lean_ctor_set_uint8(x_128, 6, x_118); +lean_ctor_set_uint8(x_128, 7, x_119); +lean_ctor_set_uint8(x_128, 8, x_120); +lean_ctor_set_uint8(x_128, 9, x_121); +lean_ctor_set_uint8(x_128, 10, x_122); +lean_ctor_set_uint8(x_128, 11, x_127); +lean_ctor_set_uint8(x_128, 12, x_123); +lean_ctor_set_uint8(x_128, 13, x_125); +x_129 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_108); +lean_ctor_set(x_129, 2, x_109); +lean_ctor_set(x_129, 3, x_110); +lean_ctor_set(x_129, 4, x_111); +lean_ctor_set(x_129, 5, x_112); +x_130 = lean_st_ref_get(x_8, x_14); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_130); +x_132 = lean_st_mk_ref(x_17, x_131); +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -lean_dec(x_131); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_128); -lean_inc(x_132); -x_134 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_132, x_128, x_6, x_7, x_8, x_133); -if (lean_obj_tag(x_134) == 0) +lean_inc(x_129); +lean_inc(x_133); +x_135 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_133, x_129, x_6, x_7, x_8, x_134); +if (lean_obj_tag(x_135) == 0) { -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_dec(x_128); +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_dec(x_129); lean_dec(x_7); lean_dec(x_6); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); +x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); -lean_dec(x_134); -x_137 = lean_st_ref_get(x_8, x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = lean_st_ref_get(x_8, x_137); lean_dec(x_8); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec(x_137); -x_139 = lean_st_ref_get(x_132, x_138); -lean_dec(x_132); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +x_140 = lean_st_ref_get(x_133, x_139); +lean_dec(x_133); +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_142 = x_139; +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_143 = x_140; } else { - lean_dec_ref(x_139); - x_142 = lean_box(0); + lean_dec_ref(x_140); + x_143 = lean_box(0); } -x_143 = lean_ctor_get(x_140, 2); -lean_inc(x_143); -lean_dec(x_140); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_135); -lean_ctor_set(x_144, 1, x_143); -if (lean_is_scalar(x_142)) { - x_145 = lean_alloc_ctor(0, 2, 0); +x_144 = lean_ctor_get(x_141, 2); +lean_inc(x_144); +lean_dec(x_141); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_136); +lean_ctor_set(x_145, 1, x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 0); } else { - x_145 = x_142; + x_146 = x_143; } -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_141); -return x_145; +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_142); +return x_146; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -lean_dec(x_132); -x_146 = lean_ctor_get(x_134, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_134, 1); +lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; +lean_dec(x_133); +x_147 = lean_ctor_get(x_135, 0); lean_inc(x_147); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_148 = x_134; +x_148 = lean_ctor_get(x_135, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_149 = x_135; } else { - lean_dec_ref(x_134); - x_148 = lean_box(0); + lean_dec_ref(x_135); + x_149 = lean_box(0); } -x_149 = l_Lean_Exception_isMaxHeartbeat(x_146); -if (x_149 == 0) +x_150 = l_Lean_Exception_isMaxHeartbeat(x_147); +if (x_150 == 0) { -lean_object* x_150; -lean_dec(x_128); +lean_object* x_151; +lean_dec(x_129); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -if (lean_is_scalar(x_148)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_149)) { + x_151 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_148; + x_151 = x_149; } -lean_ctor_set(x_150, 0, x_146); -lean_ctor_set(x_150, 1, x_147); -return x_150; +lean_ctor_set(x_151, 0, x_147); +lean_ctor_set(x_151, 1, x_148); +return x_151; } else { -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_dec(x_148); -x_151 = l_Lean_Meta_Simp_main___closed__1; -x_152 = l_Lean_Meta_throwNestedTacticEx___rarg(x_151, x_146, x_128, x_6, x_7, x_8, x_147); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); +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_dec(x_149); +x_152 = l_Lean_Meta_Simp_main___closed__1; +x_153 = l_Lean_Meta_throwNestedTacticEx___rarg(x_152, x_147, x_129, x_6, x_7, x_8, x_148); +x_154 = lean_ctor_get(x_153, 0); lean_inc(x_154); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_155 = x_152; +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_156 = x_153; } else { - lean_dec_ref(x_152); - x_155 = lean_box(0); + lean_dec_ref(x_153); + x_156 = lean_box(0); } -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_155; + x_157 = x_156; } -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return 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_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; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; lean_object* x_188; uint8_t x_189; uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_157 = lean_ctor_get(x_2, 0); -x_158 = lean_ctor_get(x_2, 1); -x_159 = lean_ctor_get(x_2, 2); -x_160 = lean_ctor_get(x_2, 3); -x_161 = lean_ctor_get(x_2, 4); +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; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; lean_object* x_188; uint8_t x_189; uint8_t x_190; uint8_t 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; +x_158 = lean_ctor_get(x_2, 0); +x_159 = lean_ctor_get(x_2, 1); +x_160 = lean_ctor_get(x_2, 2); +x_161 = lean_ctor_get(x_2, 3); +x_162 = lean_ctor_get(x_2, 4); +lean_inc(x_162); lean_inc(x_161); lean_inc(x_160); lean_inc(x_159); lean_inc(x_158); -lean_inc(x_157); lean_dec(x_2); -x_162 = l_Lean_Meta_Simp_Config_updateArith(x_157, x_7, x_8, x_9); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); +x_163 = l_Lean_Meta_Simp_Config_updateArith(x_158, x_7, x_8, x_9); +x_164 = lean_ctor_get(x_163, 0); lean_inc(x_164); -lean_dec(x_162); -lean_inc(x_163); -x_165 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_158); -lean_ctor_set(x_165, 2, x_159); -lean_ctor_set(x_165, 3, x_160); -lean_ctor_set(x_165, 4, x_161); -x_166 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__2; -x_167 = lean_unsigned_to_nat(0u); -x_168 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_166); -lean_ctor_set(x_168, 2, x_3); -lean_ctor_set(x_168, 3, x_167); -x_169 = lean_ctor_get(x_5, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_5, 1); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +lean_inc(x_164); +x_166 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_159); +lean_ctor_set(x_166, 2, x_160); +lean_ctor_set(x_166, 3, x_161); +lean_ctor_set(x_166, 4, x_162); +x_167 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__2; +x_168 = lean_unsigned_to_nat(0u); +x_169 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_3); +lean_ctor_set(x_169, 3, x_168); +x_170 = lean_ctor_get(x_5, 0); lean_inc(x_170); -x_171 = lean_ctor_get(x_5, 2); +x_171 = lean_ctor_get(x_5, 1); lean_inc(x_171); -x_172 = lean_ctor_get(x_5, 3); +x_172 = lean_ctor_get(x_5, 2); lean_inc(x_172); -x_173 = lean_ctor_get(x_5, 4); +x_173 = lean_ctor_get(x_5, 3); lean_inc(x_173); -x_174 = lean_ctor_get(x_5, 5); +x_174 = lean_ctor_get(x_5, 4); lean_inc(x_174); +x_175 = lean_ctor_get(x_5, 5); +lean_inc(x_175); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); @@ -43061,182 +43350,182 @@ if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 3); lean_ctor_release(x_5, 4); lean_ctor_release(x_5, 5); - x_175 = x_5; + x_176 = x_5; } else { lean_dec_ref(x_5); - x_175 = lean_box(0); + x_176 = lean_box(0); } -x_176 = lean_ctor_get_uint8(x_169, 0); -x_177 = lean_ctor_get_uint8(x_169, 1); -x_178 = lean_ctor_get_uint8(x_169, 2); -x_179 = lean_ctor_get_uint8(x_169, 3); -x_180 = lean_ctor_get_uint8(x_169, 4); -x_181 = lean_ctor_get_uint8(x_169, 6); -x_182 = lean_ctor_get_uint8(x_169, 7); -x_183 = lean_ctor_get_uint8(x_169, 8); -x_184 = lean_ctor_get_uint8(x_169, 9); -x_185 = lean_ctor_get_uint8(x_169, 10); -x_186 = lean_ctor_get_uint8(x_169, 11); -x_187 = lean_ctor_get_uint8(x_169, 12); -if (lean_is_exclusive(x_169)) { - x_188 = x_169; +x_177 = lean_ctor_get_uint8(x_170, 0); +x_178 = lean_ctor_get_uint8(x_170, 1); +x_179 = lean_ctor_get_uint8(x_170, 2); +x_180 = lean_ctor_get_uint8(x_170, 3); +x_181 = lean_ctor_get_uint8(x_170, 4); +x_182 = lean_ctor_get_uint8(x_170, 6); +x_183 = lean_ctor_get_uint8(x_170, 7); +x_184 = lean_ctor_get_uint8(x_170, 8); +x_185 = lean_ctor_get_uint8(x_170, 9); +x_186 = lean_ctor_get_uint8(x_170, 10); +x_187 = lean_ctor_get_uint8(x_170, 12); +if (lean_is_exclusive(x_170)) { + x_188 = x_170; } else { - lean_dec_ref(x_169); + lean_dec_ref(x_170); x_188 = lean_box(0); } -x_189 = lean_ctor_get_uint8(x_163, sizeof(void*)*2 + 6); -lean_dec(x_163); +x_189 = lean_ctor_get_uint8(x_164, sizeof(void*)*2 + 6); +lean_dec(x_164); x_190 = 2; +x_191 = 0; if (lean_is_scalar(x_188)) { - x_191 = lean_alloc_ctor(0, 0, 14); + x_192 = lean_alloc_ctor(0, 0, 14); } else { - x_191 = x_188; + x_192 = x_188; } -lean_ctor_set_uint8(x_191, 0, x_176); -lean_ctor_set_uint8(x_191, 1, x_177); -lean_ctor_set_uint8(x_191, 2, x_178); -lean_ctor_set_uint8(x_191, 3, x_179); -lean_ctor_set_uint8(x_191, 4, x_180); -lean_ctor_set_uint8(x_191, 5, x_190); -lean_ctor_set_uint8(x_191, 6, x_181); -lean_ctor_set_uint8(x_191, 7, x_182); -lean_ctor_set_uint8(x_191, 8, x_183); -lean_ctor_set_uint8(x_191, 9, x_184); -lean_ctor_set_uint8(x_191, 10, x_185); -lean_ctor_set_uint8(x_191, 11, x_186); -lean_ctor_set_uint8(x_191, 12, x_187); -lean_ctor_set_uint8(x_191, 13, x_189); -if (lean_is_scalar(x_175)) { - x_192 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set_uint8(x_192, 0, x_177); +lean_ctor_set_uint8(x_192, 1, x_178); +lean_ctor_set_uint8(x_192, 2, x_179); +lean_ctor_set_uint8(x_192, 3, x_180); +lean_ctor_set_uint8(x_192, 4, x_181); +lean_ctor_set_uint8(x_192, 5, x_190); +lean_ctor_set_uint8(x_192, 6, x_182); +lean_ctor_set_uint8(x_192, 7, x_183); +lean_ctor_set_uint8(x_192, 8, x_184); +lean_ctor_set_uint8(x_192, 9, x_185); +lean_ctor_set_uint8(x_192, 10, x_186); +lean_ctor_set_uint8(x_192, 11, x_191); +lean_ctor_set_uint8(x_192, 12, x_187); +lean_ctor_set_uint8(x_192, 13, x_189); +if (lean_is_scalar(x_176)) { + x_193 = lean_alloc_ctor(0, 6, 0); } else { - x_192 = x_175; + x_193 = x_176; } -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_170); -lean_ctor_set(x_192, 2, x_171); -lean_ctor_set(x_192, 3, x_172); -lean_ctor_set(x_192, 4, x_173); -lean_ctor_set(x_192, 5, x_174); -x_193 = lean_st_ref_get(x_8, x_164); -x_194 = lean_ctor_get(x_193, 1); -lean_inc(x_194); -lean_dec(x_193); -x_195 = lean_st_mk_ref(x_168, x_194); -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_171); +lean_ctor_set(x_193, 2, x_172); +lean_ctor_set(x_193, 3, x_173); +lean_ctor_set(x_193, 4, x_174); +lean_ctor_set(x_193, 5, x_175); +x_194 = lean_st_ref_get(x_8, x_165); +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +lean_dec(x_194); +x_196 = lean_st_mk_ref(x_169, x_195); +x_197 = lean_ctor_get(x_196, 0); lean_inc(x_197); -lean_dec(x_195); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_192); -lean_inc(x_196); -x_198 = l_Lean_Meta_Simp_simp(x_1, x_4, x_165, x_196, x_192, x_6, x_7, x_8, x_197); -if (lean_obj_tag(x_198) == 0) +lean_inc(x_193); +lean_inc(x_197); +x_199 = l_Lean_Meta_Simp_simp(x_1, x_4, x_166, x_197, x_193, x_6, x_7, x_8, x_198); +if (lean_obj_tag(x_199) == 0) { -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_dec(x_192); +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_dec(x_193); lean_dec(x_7); lean_dec(x_6); -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); +x_200 = lean_ctor_get(x_199, 0); lean_inc(x_200); -lean_dec(x_198); -x_201 = lean_st_ref_get(x_8, x_200); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +lean_dec(x_199); +x_202 = lean_st_ref_get(x_8, x_201); lean_dec(x_8); -x_202 = lean_ctor_get(x_201, 1); -lean_inc(x_202); -lean_dec(x_201); -x_203 = lean_st_ref_get(x_196, x_202); -lean_dec(x_196); -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); +lean_dec(x_202); +x_204 = lean_st_ref_get(x_197, x_203); +lean_dec(x_197); +x_205 = lean_ctor_get(x_204, 0); lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; } else { - lean_dec_ref(x_203); - x_206 = lean_box(0); + lean_dec_ref(x_204); + x_207 = lean_box(0); } -x_207 = lean_ctor_get(x_204, 2); -lean_inc(x_207); -lean_dec(x_204); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_199); -lean_ctor_set(x_208, 1, x_207); -if (lean_is_scalar(x_206)) { - x_209 = lean_alloc_ctor(0, 2, 0); +x_208 = lean_ctor_get(x_205, 2); +lean_inc(x_208); +lean_dec(x_205); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_200); +lean_ctor_set(x_209, 1, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 2, 0); } else { - x_209 = x_206; + x_210 = x_207; } -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_205); -return x_209; +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_206); +return x_210; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; -lean_dec(x_196); -x_210 = lean_ctor_get(x_198, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_198, 1); +lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; +lean_dec(x_197); +x_211 = lean_ctor_get(x_199, 0); lean_inc(x_211); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_212 = x_198; +x_212 = lean_ctor_get(x_199, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + lean_ctor_release(x_199, 1); + x_213 = x_199; } else { - lean_dec_ref(x_198); - x_212 = lean_box(0); + lean_dec_ref(x_199); + x_213 = lean_box(0); } -x_213 = l_Lean_Exception_isMaxHeartbeat(x_210); -if (x_213 == 0) +x_214 = l_Lean_Exception_isMaxHeartbeat(x_211); +if (x_214 == 0) { -lean_object* x_214; -lean_dec(x_192); +lean_object* x_215; +lean_dec(x_193); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -if (lean_is_scalar(x_212)) { - x_214 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_213)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_214 = x_212; + x_215 = x_213; } -lean_ctor_set(x_214, 0, x_210); -lean_ctor_set(x_214, 1, x_211); -return x_214; +lean_ctor_set(x_215, 0, x_211); +lean_ctor_set(x_215, 1, x_212); +return x_215; } else { -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_dec(x_212); -x_215 = l_Lean_Meta_Simp_main___closed__1; -x_216 = l_Lean_Meta_throwNestedTacticEx___rarg(x_215, x_210, x_192, x_6, x_7, x_8, x_211); -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); +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_dec(x_213); +x_216 = l_Lean_Meta_Simp_main___closed__1; +x_217 = l_Lean_Meta_throwNestedTacticEx___rarg(x_216, x_211, x_193, x_6, x_7, x_8, x_212); +x_218 = lean_ctor_get(x_217, 0); lean_inc(x_218); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_219 = x_216; +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_220 = x_217; } else { - lean_dec_ref(x_216); - x_219 = lean_box(0); + lean_dec_ref(x_217); + x_220 = lean_box(0); } -if (lean_is_scalar(x_219)) { - x_220 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_220)) { + x_221 = lean_alloc_ctor(1, 2, 0); } else { - x_220 = x_219; + x_221 = x_220; } -lean_ctor_set(x_220, 0, x_217); -lean_ctor_set(x_220, 1, x_218); -return x_220; +lean_ctor_set(x_221, 0, x_218); +lean_ctor_set(x_221, 1, x_219); +return x_221; } } } @@ -43279,191 +43568,192 @@ x_14 = lean_ctor_get(x_5, 0); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { -lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_16 = lean_ctor_get(x_2, 0); lean_inc(x_16); x_17 = lean_ctor_get_uint8(x_16, sizeof(void*)*2 + 6); lean_dec(x_16); x_18 = 2; +x_19 = 0; lean_ctor_set_uint8(x_14, 5, x_18); +lean_ctor_set_uint8(x_14, 11, x_19); lean_ctor_set_uint8(x_14, 13, x_17); -x_19 = lean_st_ref_get(x_8, x_9); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_st_mk_ref(x_12, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_20 = lean_st_ref_get(x_8, x_9); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_mk_ref(x_12, x_21); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_22); -x_24 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_22, x_5, x_6, x_7, x_8, x_23); -if (lean_obj_tag(x_24) == 0) +lean_inc(x_23); +x_25 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_23, x_5, x_6, x_7, x_8, x_24); +if (lean_obj_tag(x_25) == 0) { -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_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_5); lean_dec(x_7); lean_dec(x_6); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_st_ref_get(x_8, x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_st_ref_get(x_8, x_27); lean_dec(x_8); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_st_ref_get(x_22, x_28); -lean_dec(x_22); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_get(x_23, x_29); +lean_dec(x_23); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -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_31, 2); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_25); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_29, 0, x_33); -return x_29; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_32, 2); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_33); +lean_ctor_set(x_30, 0, x_34); +return x_30; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_29, 0); -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_29); -x_36 = lean_ctor_get(x_34, 2); +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_30, 0); +x_36 = lean_ctor_get(x_30, 1); lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_25); -lean_ctor_set(x_37, 1, x_36); +lean_inc(x_35); +lean_dec(x_30); +x_37 = lean_ctor_get(x_35, 2); +lean_inc(x_37); +lean_dec(x_35); x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -return x_38; +lean_ctor_set(x_38, 0, x_26); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; } } else { -uint8_t x_39; -lean_dec(x_22); -x_39 = !lean_is_exclusive(x_24); -if (x_39 == 0) +uint8_t x_40; +lean_dec(x_23); +x_40 = !lean_is_exclusive(x_25); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_24, 0); -x_41 = lean_ctor_get(x_24, 1); -x_42 = l_Lean_Exception_isMaxHeartbeat(x_40); -if (x_42 == 0) +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_25, 0); +x_42 = lean_ctor_get(x_25, 1); +x_43 = l_Lean_Exception_isMaxHeartbeat(x_41); +if (x_43 == 0) { lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_24; +return x_25; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_free_object(x_24); -x_43 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_44 = l_Lean_Meta_throwNestedTacticEx___rarg(x_43, x_40, x_5, x_6, x_7, x_8, x_41); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +lean_object* x_44; lean_object* x_45; uint8_t x_46; +lean_free_object(x_25); +x_44 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_45 = l_Lean_Meta_throwNestedTacticEx___rarg(x_44, x_41, x_5, x_6, x_7, x_8, x_42); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -return x_44; +return x_45; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -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; +lean_dec(x_45); +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 { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_24, 0); -x_50 = lean_ctor_get(x_24, 1); +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = lean_ctor_get(x_25, 0); +x_51 = lean_ctor_get(x_25, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_24); -x_51 = l_Lean_Exception_isMaxHeartbeat(x_49); -if (x_51 == 0) +lean_dec(x_25); +x_52 = l_Lean_Exception_isMaxHeartbeat(x_50); +if (x_52 == 0) { -lean_object* x_52; +lean_object* x_53; lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; } else { -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 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_54 = l_Lean_Meta_throwNestedTacticEx___rarg(x_53, x_49, x_5, x_6, x_7, x_8, x_50); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_54 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_55 = l_Lean_Meta_throwNestedTacticEx___rarg(x_54, x_50, x_5, x_6, x_7, x_8, x_51); +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_57 = x_54; +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; } else { - lean_dec_ref(x_54); - x_57 = lean_box(0); + lean_dec_ref(x_55); + x_58 = lean_box(0); } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); } else { - x_58 = x_57; + x_59 = x_58; } -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } } } else { -uint8_t x_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; uint8_t x_70; lean_object* x_71; uint8_t 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; -x_59 = lean_ctor_get_uint8(x_14, 0); -x_60 = lean_ctor_get_uint8(x_14, 1); -x_61 = lean_ctor_get_uint8(x_14, 2); -x_62 = lean_ctor_get_uint8(x_14, 3); -x_63 = lean_ctor_get_uint8(x_14, 4); -x_64 = lean_ctor_get_uint8(x_14, 6); -x_65 = lean_ctor_get_uint8(x_14, 7); -x_66 = lean_ctor_get_uint8(x_14, 8); -x_67 = lean_ctor_get_uint8(x_14, 9); -x_68 = lean_ctor_get_uint8(x_14, 10); -x_69 = lean_ctor_get_uint8(x_14, 11); +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; uint8_t x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_60 = lean_ctor_get_uint8(x_14, 0); +x_61 = lean_ctor_get_uint8(x_14, 1); +x_62 = lean_ctor_get_uint8(x_14, 2); +x_63 = lean_ctor_get_uint8(x_14, 3); +x_64 = lean_ctor_get_uint8(x_14, 4); +x_65 = lean_ctor_get_uint8(x_14, 6); +x_66 = lean_ctor_get_uint8(x_14, 7); +x_67 = lean_ctor_get_uint8(x_14, 8); +x_68 = lean_ctor_get_uint8(x_14, 9); +x_69 = lean_ctor_get_uint8(x_14, 10); x_70 = lean_ctor_get_uint8(x_14, 12); lean_dec(x_14); x_71 = lean_ctor_get(x_2, 0); @@ -43471,178 +43761,178 @@ lean_inc(x_71); x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*2 + 6); lean_dec(x_71); x_73 = 2; -x_74 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_74, 0, x_59); -lean_ctor_set_uint8(x_74, 1, x_60); -lean_ctor_set_uint8(x_74, 2, x_61); -lean_ctor_set_uint8(x_74, 3, x_62); -lean_ctor_set_uint8(x_74, 4, x_63); -lean_ctor_set_uint8(x_74, 5, x_73); -lean_ctor_set_uint8(x_74, 6, x_64); -lean_ctor_set_uint8(x_74, 7, x_65); -lean_ctor_set_uint8(x_74, 8, x_66); -lean_ctor_set_uint8(x_74, 9, x_67); -lean_ctor_set_uint8(x_74, 10, x_68); -lean_ctor_set_uint8(x_74, 11, x_69); -lean_ctor_set_uint8(x_74, 12, x_70); -lean_ctor_set_uint8(x_74, 13, x_72); -lean_ctor_set(x_5, 0, x_74); -x_75 = lean_st_ref_get(x_8, x_9); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = lean_st_mk_ref(x_12, x_76); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +x_74 = 0; +x_75 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_75, 0, x_60); +lean_ctor_set_uint8(x_75, 1, x_61); +lean_ctor_set_uint8(x_75, 2, x_62); +lean_ctor_set_uint8(x_75, 3, x_63); +lean_ctor_set_uint8(x_75, 4, x_64); +lean_ctor_set_uint8(x_75, 5, x_73); +lean_ctor_set_uint8(x_75, 6, x_65); +lean_ctor_set_uint8(x_75, 7, x_66); +lean_ctor_set_uint8(x_75, 8, x_67); +lean_ctor_set_uint8(x_75, 9, x_68); +lean_ctor_set_uint8(x_75, 10, x_69); +lean_ctor_set_uint8(x_75, 11, x_74); +lean_ctor_set_uint8(x_75, 12, x_70); +lean_ctor_set_uint8(x_75, 13, x_72); +lean_ctor_set(x_5, 0, x_75); +x_76 = lean_st_ref_get(x_8, x_9); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_st_mk_ref(x_12, x_77); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_78); -x_80 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_78, x_5, x_6, x_7, x_8, x_79); -if (lean_obj_tag(x_80) == 0) +lean_inc(x_79); +x_81 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_79, x_5, x_6, x_7, x_8, x_80); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +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_dec(x_5); lean_dec(x_7); lean_dec(x_6); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); +x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_st_ref_get(x_8, x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_st_ref_get(x_8, x_83); lean_dec(x_8); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_85 = lean_st_ref_get(x_78, x_84); -lean_dec(x_78); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +x_86 = lean_st_ref_get(x_79, x_85); +lean_dec(x_79); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_88 = x_85; +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; } else { - lean_dec_ref(x_85); - x_88 = lean_box(0); + lean_dec_ref(x_86); + x_89 = lean_box(0); } -x_89 = lean_ctor_get(x_86, 2); -lean_inc(x_89); -lean_dec(x_86); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_81); -lean_ctor_set(x_90, 1, x_89); -if (lean_is_scalar(x_88)) { - x_91 = lean_alloc_ctor(0, 2, 0); +x_90 = lean_ctor_get(x_87, 2); +lean_inc(x_90); +lean_dec(x_87); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_82); +lean_ctor_set(x_91, 1, x_90); +if (lean_is_scalar(x_89)) { + x_92 = lean_alloc_ctor(0, 2, 0); } else { - x_91 = x_88; + x_92 = x_89; } -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_87); -return x_91; +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_88); +return x_92; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -lean_dec(x_78); -x_92 = lean_ctor_get(x_80, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_80, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +lean_dec(x_79); +x_93 = lean_ctor_get(x_81, 0); lean_inc(x_93); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_94 = x_80; +x_94 = lean_ctor_get(x_81, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_95 = x_81; } else { - lean_dec_ref(x_80); - x_94 = lean_box(0); + lean_dec_ref(x_81); + x_95 = lean_box(0); } -x_95 = l_Lean_Exception_isMaxHeartbeat(x_92); -if (x_95 == 0) +x_96 = l_Lean_Exception_isMaxHeartbeat(x_93); +if (x_96 == 0) { -lean_object* x_96; +lean_object* x_97; lean_dec(x_5); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -if (lean_is_scalar(x_94)) { - x_96 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_97 = lean_alloc_ctor(1, 2, 0); } else { - x_96 = x_94; + x_97 = x_95; } -lean_ctor_set(x_96, 0, x_92); -lean_ctor_set(x_96, 1, x_93); -return x_96; +lean_ctor_set(x_97, 0, x_93); +lean_ctor_set(x_97, 1, x_94); +return x_97; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_94); -x_97 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_98 = l_Lean_Meta_throwNestedTacticEx___rarg(x_97, x_92, x_5, x_6, x_7, x_8, x_93); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +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_dec(x_95); +x_98 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_99 = l_Lean_Meta_throwNestedTacticEx___rarg(x_98, x_93, x_5, x_6, x_7, x_8, x_94); +x_100 = lean_ctor_get(x_99, 0); 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; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_102 = x_99; } else { - lean_dec_ref(x_98); - x_101 = lean_box(0); + lean_dec_ref(x_99); + x_102 = lean_box(0); } -if (lean_is_scalar(x_101)) { - x_102 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); } else { - x_102 = x_101; + x_103 = x_102; } -lean_ctor_set(x_102, 0, x_99); -lean_ctor_set(x_102, 1, x_100); -return 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_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* 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; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t 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; -x_103 = lean_ctor_get(x_5, 0); -x_104 = lean_ctor_get(x_5, 1); -x_105 = lean_ctor_get(x_5, 2); -x_106 = lean_ctor_get(x_5, 3); -x_107 = lean_ctor_get(x_5, 4); -x_108 = lean_ctor_get(x_5, 5); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t 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; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_104 = lean_ctor_get(x_5, 0); +x_105 = lean_ctor_get(x_5, 1); +x_106 = lean_ctor_get(x_5, 2); +x_107 = lean_ctor_get(x_5, 3); +x_108 = lean_ctor_get(x_5, 4); +x_109 = lean_ctor_get(x_5, 5); +lean_inc(x_109); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); lean_dec(x_5); -x_109 = lean_ctor_get_uint8(x_103, 0); -x_110 = lean_ctor_get_uint8(x_103, 1); -x_111 = lean_ctor_get_uint8(x_103, 2); -x_112 = lean_ctor_get_uint8(x_103, 3); -x_113 = lean_ctor_get_uint8(x_103, 4); -x_114 = lean_ctor_get_uint8(x_103, 6); -x_115 = lean_ctor_get_uint8(x_103, 7); -x_116 = lean_ctor_get_uint8(x_103, 8); -x_117 = lean_ctor_get_uint8(x_103, 9); -x_118 = lean_ctor_get_uint8(x_103, 10); -x_119 = lean_ctor_get_uint8(x_103, 11); -x_120 = lean_ctor_get_uint8(x_103, 12); -if (lean_is_exclusive(x_103)) { - x_121 = x_103; +x_110 = lean_ctor_get_uint8(x_104, 0); +x_111 = lean_ctor_get_uint8(x_104, 1); +x_112 = lean_ctor_get_uint8(x_104, 2); +x_113 = lean_ctor_get_uint8(x_104, 3); +x_114 = lean_ctor_get_uint8(x_104, 4); +x_115 = lean_ctor_get_uint8(x_104, 6); +x_116 = lean_ctor_get_uint8(x_104, 7); +x_117 = lean_ctor_get_uint8(x_104, 8); +x_118 = lean_ctor_get_uint8(x_104, 9); +x_119 = lean_ctor_get_uint8(x_104, 10); +x_120 = lean_ctor_get_uint8(x_104, 12); +if (lean_is_exclusive(x_104)) { + x_121 = x_104; } else { - lean_dec_ref(x_103); + lean_dec_ref(x_104); x_121 = lean_box(0); } x_122 = lean_ctor_get(x_2, 0); @@ -43650,152 +43940,153 @@ lean_inc(x_122); x_123 = lean_ctor_get_uint8(x_122, sizeof(void*)*2 + 6); lean_dec(x_122); x_124 = 2; +x_125 = 0; if (lean_is_scalar(x_121)) { - x_125 = lean_alloc_ctor(0, 0, 14); + x_126 = lean_alloc_ctor(0, 0, 14); } else { - x_125 = x_121; + x_126 = x_121; } -lean_ctor_set_uint8(x_125, 0, x_109); -lean_ctor_set_uint8(x_125, 1, x_110); -lean_ctor_set_uint8(x_125, 2, x_111); -lean_ctor_set_uint8(x_125, 3, x_112); -lean_ctor_set_uint8(x_125, 4, x_113); -lean_ctor_set_uint8(x_125, 5, x_124); -lean_ctor_set_uint8(x_125, 6, x_114); -lean_ctor_set_uint8(x_125, 7, x_115); -lean_ctor_set_uint8(x_125, 8, x_116); -lean_ctor_set_uint8(x_125, 9, x_117); -lean_ctor_set_uint8(x_125, 10, x_118); -lean_ctor_set_uint8(x_125, 11, x_119); -lean_ctor_set_uint8(x_125, 12, x_120); -lean_ctor_set_uint8(x_125, 13, x_123); -x_126 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_104); -lean_ctor_set(x_126, 2, x_105); -lean_ctor_set(x_126, 3, x_106); -lean_ctor_set(x_126, 4, x_107); -lean_ctor_set(x_126, 5, x_108); -x_127 = lean_st_ref_get(x_8, x_9); -x_128 = lean_ctor_get(x_127, 1); -lean_inc(x_128); -lean_dec(x_127); -x_129 = lean_st_mk_ref(x_12, x_128); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); +lean_ctor_set_uint8(x_126, 0, x_110); +lean_ctor_set_uint8(x_126, 1, x_111); +lean_ctor_set_uint8(x_126, 2, x_112); +lean_ctor_set_uint8(x_126, 3, x_113); +lean_ctor_set_uint8(x_126, 4, x_114); +lean_ctor_set_uint8(x_126, 5, x_124); +lean_ctor_set_uint8(x_126, 6, x_115); +lean_ctor_set_uint8(x_126, 7, x_116); +lean_ctor_set_uint8(x_126, 8, x_117); +lean_ctor_set_uint8(x_126, 9, x_118); +lean_ctor_set_uint8(x_126, 10, x_119); +lean_ctor_set_uint8(x_126, 11, x_125); +lean_ctor_set_uint8(x_126, 12, x_120); +lean_ctor_set_uint8(x_126, 13, x_123); +x_127 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_105); +lean_ctor_set(x_127, 2, x_106); +lean_ctor_set(x_127, 3, x_107); +lean_ctor_set(x_127, 4, x_108); +lean_ctor_set(x_127, 5, x_109); +x_128 = lean_st_ref_get(x_8, x_9); +x_129 = lean_ctor_get(x_128, 1); +lean_inc(x_129); +lean_dec(x_128); +x_130 = lean_st_mk_ref(x_12, x_129); +x_131 = lean_ctor_get(x_130, 0); lean_inc(x_131); -lean_dec(x_129); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_126); -lean_inc(x_130); -x_132 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_130, x_126, x_6, x_7, x_8, x_131); -if (lean_obj_tag(x_132) == 0) +lean_inc(x_127); +lean_inc(x_131); +x_133 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_131, x_127, x_6, x_7, x_8, x_132); +if (lean_obj_tag(x_133) == 0) { -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_dec(x_126); +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_dec(x_127); lean_dec(x_7); lean_dec(x_6); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); +x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); -lean_dec(x_132); -x_135 = lean_st_ref_get(x_8, x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_136 = lean_st_ref_get(x_8, x_135); lean_dec(x_8); -x_136 = lean_ctor_get(x_135, 1); -lean_inc(x_136); -lean_dec(x_135); -x_137 = lean_st_ref_get(x_130, x_136); -lean_dec(x_130); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = lean_st_ref_get(x_131, x_137); +lean_dec(x_131); +x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_140 = x_137; +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_141 = x_138; } else { - lean_dec_ref(x_137); - x_140 = lean_box(0); + lean_dec_ref(x_138); + x_141 = lean_box(0); } -x_141 = lean_ctor_get(x_138, 2); -lean_inc(x_141); -lean_dec(x_138); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_141); -if (lean_is_scalar(x_140)) { - x_143 = lean_alloc_ctor(0, 2, 0); +x_142 = lean_ctor_get(x_139, 2); +lean_inc(x_142); +lean_dec(x_139); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_134); +lean_ctor_set(x_143, 1, x_142); +if (lean_is_scalar(x_141)) { + x_144 = lean_alloc_ctor(0, 2, 0); } else { - x_143 = x_140; + x_144 = x_141; } -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_139); -return x_143; +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_140); +return x_144; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; -lean_dec(x_130); -x_144 = lean_ctor_get(x_132, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_132, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +lean_dec(x_131); +x_145 = lean_ctor_get(x_133, 0); lean_inc(x_145); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_146 = x_132; +x_146 = lean_ctor_get(x_133, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_147 = x_133; } else { - lean_dec_ref(x_132); - x_146 = lean_box(0); + lean_dec_ref(x_133); + x_147 = lean_box(0); } -x_147 = l_Lean_Exception_isMaxHeartbeat(x_144); -if (x_147 == 0) +x_148 = l_Lean_Exception_isMaxHeartbeat(x_145); +if (x_148 == 0) { -lean_object* x_148; -lean_dec(x_126); +lean_object* x_149; +lean_dec(x_127); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -if (lean_is_scalar(x_146)) { - x_148 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_148 = x_146; + x_149 = x_147; } -lean_ctor_set(x_148, 0, x_144); -lean_ctor_set(x_148, 1, x_145); -return x_148; +lean_ctor_set(x_149, 0, x_145); +lean_ctor_set(x_149, 1, x_146); +return x_149; } else { -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_dec(x_146); -x_149 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_150 = l_Lean_Meta_throwNestedTacticEx___rarg(x_149, x_144, x_126, x_6, x_7, x_8, x_145); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); +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_dec(x_147); +x_150 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_151 = l_Lean_Meta_throwNestedTacticEx___rarg(x_150, x_145, x_127, x_6, x_7, x_8, x_146); +x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_154 = x_151; } else { - lean_dec_ref(x_150); - x_153 = lean_box(0); + lean_dec_ref(x_151); + x_154 = lean_box(0); } -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); } else { - x_154 = x_153; + x_155 = x_154; } -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -return x_154; +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } } @@ -45322,7 +45613,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_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__4; -x_3 = lean_unsigned_to_nat(764u); +x_3 = lean_unsigned_to_nat(786u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__3; 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/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index 9f0c7be498..876b1c5e73 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -224,7 +224,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3 static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewritePre___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_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_Meta_DiscrTree_getMatchWithExtra___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewritePost(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_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__10; @@ -10154,181 +10154,182 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f(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* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_14; +uint8_t x_14; lean_object* x_15; +x_14 = 1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_1); -x_14 = l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(x_2, x_1, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_Meta_DiscrTree_getMatchWithExtra___rarg(x_14, x_2, x_1, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Array_isEmpty___rarg(x_15); -if (x_17 == 0) +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Array_isEmpty___rarg(x_16); +if (x_18 == 0) { -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; -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_x3f___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_x3f___closed__1; -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3(x_1, x_3, x_4, x_6, x_25, x_20, x_23, x_24, x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -lean_dec(x_20); -if (lean_obj_tag(x_26) == 0) +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; +x_19 = lean_array_get_size(x_16); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Array_insertionSort_traverse___at_Lean_Meta_Simp_rewrite_x3f___spec__1(x_16, x_20, x_19); +x_22 = lean_box(0); +x_23 = lean_array_get_size(x_21); +x_24 = lean_usize_of_nat(x_23); +lean_dec(x_23); +x_25 = 0; +x_26 = l_Lean_Meta_Simp_rewrite_x3f___closed__1; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3(x_1, x_3, x_4, x_6, x_26, x_21, x_24, x_25, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +lean_dec(x_21); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); +lean_object* x_28; lean_object* x_29; x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +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; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +lean_ctor_set(x_27, 0, x_22); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); lean_dec(x_27); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_26); -if (x_29 == 0) -{ -lean_object* x_30; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -lean_ctor_set(x_26, 0, x_21); -return x_26; -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_21); -lean_ctor_set(x_32, 1, x_31); -return x_32; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_22); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_26); -if (x_33 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_26, 0); -lean_dec(x_34); -x_35 = lean_ctor_get(x_28, 0); -lean_inc(x_35); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_35); -return x_26; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_26, 1); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_27, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_29, 0); lean_inc(x_36); -lean_dec(x_26); -x_37 = lean_ctor_get(x_28, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_36); +return x_27; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_27, 1); lean_inc(x_37); -lean_dec(x_28); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_dec(x_27); +x_38 = lean_ctor_get(x_29, 0); +lean_inc(x_38); +lean_dec(x_29); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; } } } else { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_26); -if (x_39 == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_27); +if (x_40 == 0) { -return x_26; +return x_27; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_26, 0); -x_41 = lean_ctor_get(x_26, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_27, 0); +x_42 = lean_ctor_get(x_27, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_26); -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_27); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_15); +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_dec(x_16); lean_dec(x_4); lean_dec(x_3); -x_43 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3___closed__2; -x_44 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(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); +x_44 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3___closed__2; +x_45 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_44); -x_47 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; -x_48 = lean_unbox(x_45); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); lean_dec(x_45); -if (x_48 == 0) +x_48 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_49 = lean_unbox(x_46); +lean_dec(x_46); +if (x_49 == 0) { -lean_object* x_49; lean_object* x_50; +lean_object* x_50; lean_object* x_51; lean_dec(x_1); -x_49 = lean_box(0); -x_50 = lean_apply_8(x_47, x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -return x_50; +x_50 = lean_box(0); +x_51 = lean_apply_8(x_48, x_50, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +return x_51; } else { -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_51 = l_Lean_stringToMessageData(x_5); -x_52 = l_Lean_Meta_Simp_rewrite_x3f___closed__3; -x_53 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Meta_Simp_rewrite_x3f___closed__5; -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 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_56, 0, x_1); -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 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__8; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__6(x_43, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_52 = l_Lean_stringToMessageData(x_5); +x_53 = l_Lean_Meta_Simp_rewrite_x3f___closed__3; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Lean_Meta_Simp_rewrite_x3f___closed__5; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_57, 0, x_1); +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__8; +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__6(x_44, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_apply_8(x_47, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_62); -return x_63; +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = lean_apply_8(x_48, x_62, x_7, x_8, x_9, x_10, x_11, x_12, x_63); +return x_64; } } } else { -uint8_t x_64; +uint8_t x_65; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -10338,23 +10339,23 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_14); -if (x_64 == 0) +x_65 = !lean_is_exclusive(x_15); +if (x_65 == 0) { -return x_14; +return x_15; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_14, 0); -x_66 = lean_ctor_get(x_14, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_15, 0); +x_67 = lean_ctor_get(x_15, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_14); -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_15); +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; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c index 30f6cbef3d..5bcbacd05e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c @@ -18,47 +18,51 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_SimpTheorems_ad static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__2; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_pre___default; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__12; size_t l___private_Lean_Data_HashMap_0__Lean_HashMapImp_mkIdx(lean_object*, uint64_t, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15; lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__28; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__14; lean_object* l_Lean_Meta_mkPropExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__5; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_isLemma___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__78; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_isDeclToUnfold___boxed(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_getSimpTheorems(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__7; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18; lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__29; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_SimpTheorems_erase___spec__2___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5; lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__25; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15; static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__4; lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__7; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__86; +uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19(uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__1; -static lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1; lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); uint8_t l_Lean_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__3(lean_object*, lean_object*); @@ -67,16 +71,17 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__13; LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Meta_registerSimpAttr___spec__5(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppSimpTheorem___rarg___lambda__1___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__42; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6166_; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6314_; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422_; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6185_; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6333_; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441_; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__53; lean_object* l_Array_append___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296____spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(lean_object*, lean_object*); @@ -87,7 +92,8 @@ static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__22; lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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_Lean_mkConstWithLevelParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9; @@ -95,46 +101,52 @@ LEAN_EXPORT lean_object* l_Lean_Meta_ppOrigin___rarg___lambda__1(lean_object*, l static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__6; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpTheorems_isLemma___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_ppOrigin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheorem(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, 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*); static lean_object* l_Lean_Meta_SimpTheorem_keys___default___closed__1; lean_object* l_Lean_Expr_instantiateLevelParamsArray(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__3; LEAN_EXPORT uint8_t l_Lean_Meta_instBEqSimpTheorem(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheoremsArray_isDeclToUnfold(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_priority___default; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_isLemma___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_whnfDT(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__68; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__8; lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorems_isDeclToUnfold(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___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_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_addSimpTheoremEntry___spec__12(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__2; lean_object* l_Lean_Expr_appFn_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*, uint8_t); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_instBEqOrigin(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25; LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorem_perm___default; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_lemmaNames___default; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -147,24 +159,28 @@ lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppSimpTheorem___rarg___lambda__1___closed__1; static size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__55; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20(uint8_t, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpTheoremsArray_eraseTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_SimpTheorems_eraseCore___spec__2(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__52; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10; uint8_t l_ptrEqList___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_SimpTheorems_isLemma___spec__2(lean_object*, size_t, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__62; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277____spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__8; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__54; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_SimpTheoremsArray_isDeclToUnfold___spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); @@ -174,6 +190,7 @@ lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___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_Expr_appArg_x21(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__8; +uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_isRflProofCore___closed__8; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkSimpAttr___spec__2(lean_object*, 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_EXPORT lean_object* l_Lean_Meta_isRflProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,23 +209,22 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at_Lean_Meta_registerSimpAt LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___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_nat_add(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__1; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__79; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Meta_addSimpTheoremEntry___spec__11(lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_SimpTheorems_lemmaNames___default___spec__1___closed__1; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_List_mapM_loop___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); -uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30(uint8_t, lean_object*); lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__16; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__16; lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_getEqnsFor_x3f___spec__1(lean_object*, lean_object*); @@ -218,8 +234,10 @@ lean_object* l_Lean_getAttrParamOptPrio(lean_object*, lean_object*, lean_object* LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___spec__1___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_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__12; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__49; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_keys___default; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5; uint64_t l_Lean_Name_hash___override(lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__33; @@ -242,45 +260,52 @@ lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1(lean_object*, size_t, size_t, 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*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__43; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at_Lean_Meta_registerSimpAttr___spec__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__12; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__10; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__32; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__73; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__84; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__3; static lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorems_isLemma(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2(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_Meta_instInhabitedSimpTheorems___closed__4; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add___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___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16; LEAN_EXPORT lean_object* l_Lean_Meta_simpExtension; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___closed__1; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__40; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__67; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__45; static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__6; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___closed__2; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, 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_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296____spec__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__1; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__7; +static lean_object* l_Lean_Meta_instInhabitedSimpTheorems___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__8; LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_Meta_registerSimpAttr___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*); @@ -293,8 +318,7 @@ static lean_object* l_Lean_Meta_isRflProofCore___closed__6; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__5; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__69; static lean_object* l_Lean_Meta_getSimpTheorems___closed__1; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(uint8_t, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_SimpTheorems_erase___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__77; @@ -309,6 +333,7 @@ lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__6; static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_SimpTheorems_lemmaNames___default___spec__1___closed__5; extern lean_object* l_Lean_Expr_instHashableExpr; +lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__11; lean_object* l_Lean_Name_mkStr7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__20; @@ -324,7 +349,7 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Meta_mkAuxLemma(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__10; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__82; @@ -343,14 +368,17 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__5; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_isDeclToUnfold___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_replace___at_Lean_Meta_registerSimpAttr___spec__6(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ppOrigin(lean_object*); size_t lean_usize_mul(size_t, size_t); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__75; @@ -368,19 +396,19 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedSimpTheorems; static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__81; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_isRflProofCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__39; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_SimpTheorems_addDeclToUnfold___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__65; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__12; lean_object* l_Lean_ConstantInfo_type(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getValue___boxed(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_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__35; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__7; @@ -399,23 +427,25 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__2; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__1(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_Lean_Meta_DiscrTree_mkPath(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node6(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_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__9; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14___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_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__59; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__31; LEAN_EXPORT lean_object* l_Lean_Meta_instReprOrigin; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__1(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___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erased___default; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1___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_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_SimpTheorems_eraseCore___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__6; @@ -425,9 +455,10 @@ lean_object* l___private_Lean_Data_HashMap_0__Lean_numBucketsForCapacity(lean_ob lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___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*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__46; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__4; -extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpTheorems_erase___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__9; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__8; @@ -437,8 +468,9 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Command_registerSimpAttr; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_SimpTheoremsArray_isErased___spec__1(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_whnfR(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Origin_key___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mkArray1___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__11; uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_getEqnsFor_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -452,7 +484,6 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_eraseCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__38; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__14; static lean_object* l_Lean_Meta_isRflProofCore___closed__7; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__10; @@ -462,17 +493,17 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__36; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26; lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277____spec__1___boxed(lean_object*); -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(uint8_t, lean_object*, size_t, lean_object*); lean_object* l_Lean_quoteNameMk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_TSyntax_getDocString(lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__14; static lean_object* l_Lean_Meta_SimpTheorems_pre___default___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__61; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; static lean_object* l_Lean_Meta_mkSimpExt___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkBadRewrite___closed__1; @@ -481,27 +512,28 @@ lean_object* l_String_toSubstring_x27(lean_object*); static lean_object* l_Lean_Meta_ppSimpTheorem___rarg___lambda__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkBadRewrite___closed__2; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__80; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1___closed__2; lean_object* l_Lean_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__13; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__50; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__5; static lean_object* l_Lean_Meta_mkSimpExt___closed__2; -uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Instances_eraseCore___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpTheoremsArray_eraseTheorem___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__1; lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getSimpExtension_x3f(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__9; lean_object* lean_nat_mul(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__27; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__3; @@ -509,6 +541,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23; static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___boxed(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*); @@ -519,6 +552,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_ static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__17; lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpTheorems_isLemma___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_reduceDT(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_SimpTheoremsArray_isDeclToUnfold___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -528,6 +562,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_ lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__4; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21; lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -536,12 +571,13 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_addSimpTheorem_ static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__57; static lean_object* l_Lean_Meta_isRflProofCore___closed__5; -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_post___default; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__1; @@ -550,9 +586,9 @@ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems___ LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_mkSimpAttr___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_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__6; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedSimpTheorem; lean_object* lean_mk_array(lean_object*, lean_object*); @@ -560,7 +596,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__34; static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__2; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_toUnfold___default; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Meta_getSimpExtension_x3f___spec__2___boxed(lean_object*, lean_object*); @@ -571,7 +606,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__48; extern lean_object* l_Lean_Expr_instBEqExpr; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__9; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__5; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__13; @@ -579,7 +613,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spe LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst(lean_object*, uint8_t, uint8_t, 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*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__41; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_instHashableOrigin___boxed(lean_object*); @@ -597,26 +631,29 @@ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems___ static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__3; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__4; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1; static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_isRflProofCore___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addConst(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13; static lean_object* l_Lean_Meta_instReprOrigin___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpExtensionMapRef; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__30; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_SimpTheorems_eraseCore___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__7; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__71; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkBadRewrite(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__13; static lean_object* l_Lean_Meta_registerSimpAttr___closed__1; static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__3; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__18; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_instBEqOrigin___boxed(lean_object*, lean_object*); @@ -627,18 +664,17 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instToFormatSimpTheorem(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__19; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_reprOrigin____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_58____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9; LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheoremsArray_isErased(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2392_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpTheorems_erase___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -648,24 +684,22 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__3; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1(lean_object*, lean_object*); +uint8_t l_Lean_Meta_DiscrTree_Key_lt___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_getEqnsFor_x3f___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheoremEntry(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__76; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_hasSmartUnfoldingDecl(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__1; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17; lean_object* l_Lean_Expr_constName_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -675,22 +709,22 @@ lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__44; static lean_object* l_Lean_Meta_instInhabitedSimpTheorem___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_eraseCore___spec__4(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__8; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedSimpEntry; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__17; static lean_object* l_Lean_Meta_instInhabitedSimpEntry___closed__1; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__2; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_isLemma___spec__1(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_addSimpTheorem___spec__2(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_isErased___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_levelParams___default; extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; @@ -698,8 +732,10 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Meta_getSimpExtensi static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__37; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__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*); static lean_object* l_Lean_Meta_instInhabitedSimpTheorem___closed__1; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Origin_key(lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__3; lean_object* l_Repr_addAppParen(lean_object*, lean_object*); @@ -1987,9 +2023,10 @@ return x_4; static lean_object* _init_l_Lean_Meta_SimpTheorems_pre___default___closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); -return x_1; +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = l_Lean_Meta_DiscrTree_empty(lean_box(0), x_1); +return x_2; } } static lean_object* _init_l_Lean_Meta_SimpTheorems_pre___default() { @@ -2109,6 +2146,22 @@ return x_1; static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_SimpTheorems_lemmaNames___default___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); @@ -2118,11 +2171,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__2() { +static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems___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_instInhabitedSimpTheorems___closed__1; +x_1 = l_Lean_Meta_instInhabitedSimpTheorems___closed__3; x_2 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_SimpTheorems_lemmaNames___default___spec__1; x_3 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; x_4 = l_Lean_Meta_SimpTheorems_toUnfoldThms___default___closed__1; @@ -2140,7 +2193,7 @@ static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorems() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_instInhabitedSimpTheorems___closed__2; +x_1 = l_Lean_Meta_instInhabitedSimpTheorems___closed__4; return x_1; } } @@ -2764,141 +2817,7 @@ x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_upda return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; -} -else -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; -goto _start; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { -case 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_12); -x_14 = lean_box(0); -return x_14; -} -else -{ -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; -} -} -case 1: -{ -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; -x_2 = x_17; -goto _start; -} -default: -{ -lean_object* x_19; -x_19 = lean_box(0); -return x_19; -} -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(x_20, x_21, lean_box(0), x_22, x_3); -lean_dec(x_21); -lean_dec(x_20); -return x_23; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(x_3, x_5, x_2); -lean_dec(x_2); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -2907,528 +2826,662 @@ x_8 = lean_nat_dec_lt(x_5, x_7); lean_dec(x_7); if (x_8 == 0) { +lean_object* x_9; lean_dec(x_5); -return x_6; +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_6, x_17, x_1, x_9, x_10); x_4 = lean_box(0); -x_5 = x_19; -x_6 = x_20; +x_5 = x_13; goto _start; } -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___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; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); -lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); -x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; -} else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); return x_16; } } -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); -lean_dec(x_2); -x_2 = x_20; -goto _start; -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); -lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); -lean_dec(x_13); +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); +lean_dec(x_12); if (x_14 == 0) { +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); +x_2 = x_17; +x_3 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +x_20 = lean_box(0); +return x_20; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); +lean_dec(x_21); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -return x_1; +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; } else { lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { -case 0: -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; -} -else -{ -lean_object* x_25; -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_26; lean_object* x_27; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; } else { -lean_object* x_32; lean_object* x_33; -lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; -} -} -} -case 1: +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) -{ -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; -} -} -default: -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; -} -} -} -} -else -{ -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); -lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); -lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { -case 0: -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; -} else { - lean_dec_ref(x_57); - x_62 = lean_box(0); -} -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_62; -} -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; -} -} -case 1: -{ -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; -} else { - lean_dec_ref(x_57); - x_72 = lean_box(0); -} -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); -} else { - x_76 = x_72; -} -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; -} -default: -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); -lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_3, x_90, x_91, lean_box(0), x_83, x_92); -lean_dec(x_91); -lean_dec(x_90); -return x_93; -} -else -{ -return x_84; -} -} -else -{ -return x_84; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); -lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_3, x_104, x_105, lean_box(0), x_97, x_106); -lean_dec(x_105); -lean_dec(x_104); -return x_107; -} -else -{ -return x_98; -} -} -else -{ -return x_98; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +if (lean_obj_tag(x_2) == 0) { -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_dec(x_5); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -3525,433 +3578,2157 @@ return x_1; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(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) { _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; uint8_t x_15; -x_9 = lean_nat_add(x_7, x_8); -x_10 = lean_unsigned_to_nat(2u); -x_11 = lean_nat_div(x_9, x_10); -lean_dec(x_9); -lean_inc(x_6); -x_12 = lean_array_get(x_6, x_5, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_6, 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; +x_10 = lean_nat_add(x_8, x_9); +x_11 = lean_unsigned_to_nat(2u); +x_12 = lean_nat_div(x_10, x_11); +lean_dec(x_10); +lean_inc(x_7); +x_13 = lean_array_get(x_7, x_6, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_14); -if (x_15 == 0) -{ -uint8_t x_16; -lean_dec(x_8); -x_16 = l_Lean_Meta_DiscrTree_Key_lt(x_14, x_13); lean_dec(x_13); -lean_dec(x_14); +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_15); if (x_16 == 0) { -lean_object* x_17; uint8_t x_18; -lean_dec(x_7); -lean_dec(x_6); -x_17 = lean_array_get_size(x_5); -x_18 = lean_nat_dec_lt(x_11, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_array_fget(x_5, x_11); -x_20 = lean_box(0); -x_21 = lean_array_fset(x_5, x_11, x_20); -x_22 = !lean_is_exclusive(x_19); -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; -x_23 = lean_ctor_get(x_19, 1); -x_24 = lean_ctor_get(x_19, 0); -lean_dec(x_24); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_3, x_25); -x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_26, x_23); -lean_dec(x_26); -lean_ctor_set(x_19, 1, x_27); -lean_ctor_set(x_19, 0, x_4); -x_28 = lean_array_fset(x_21, x_11, x_19); -lean_dec(x_11); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_dec(x_19); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_3, x_30); -x_32 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_31, x_29); -lean_dec(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_4); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_array_fset(x_21, x_11, x_33); -lean_dec(x_11); -return x_34; -} -} -} -else -{ -x_8 = x_11; -goto _start; -} -} -else -{ -uint8_t x_36; -lean_dec(x_14); -lean_dec(x_13); -x_36 = lean_nat_dec_eq(x_11, x_7); -if (x_36 == 0) -{ -lean_dec(x_7); -x_7 = x_11; -goto _start; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_3, x_38); -x_40 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_39); -lean_dec(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_nat_add(x_7, x_38); -lean_dec(x_7); -x_43 = l_Array_insertAt_x21___rarg(x_5, x_42, x_41); -lean_dec(x_42); -return x_43; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___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) { -_start: -{ -uint8_t x_7; -x_7 = l_Array_isEmpty___rarg(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_9 = lean_array_get(x_6, x_5, x_8); -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); +uint8_t x_17; lean_dec(x_9); -x_12 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_11); -if (x_12 == 0) -{ -uint8_t x_13; -x_13 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_10); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -lean_dec(x_10); -lean_dec(x_6); -x_14 = lean_array_get_size(x_5); -x_15 = lean_nat_dec_lt(x_8, x_14); +x_17 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_15, x_14); lean_dec(x_14); -if (x_15 == 0) +lean_dec(x_15); +if (x_17 == 0) { -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_array_fget(x_5, x_8); -x_17 = lean_box(0); -x_18 = lean_array_fset(x_5, x_8, x_17); -x_19 = !lean_is_exclusive(x_16); +lean_object* x_18; uint8_t x_19; +lean_dec(x_8); +lean_dec(x_7); +x_18 = lean_array_get_size(x_6); +x_19 = lean_nat_dec_lt(x_12, x_18); +lean_dec(x_18); 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; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_3, x_22); -x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_23, x_20); -lean_dec(x_23); -lean_ctor_set(x_16, 1, x_24); -lean_ctor_set(x_16, 0, x_4); -x_25 = lean_array_fset(x_18, x_8, x_16); -return x_25; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_3); +return x_6; } 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; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_3, x_27); -x_29 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_28, x_26); -lean_dec(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_array_fset(x_18, x_8, x_30); -return x_31; -} -} +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_array_fget(x_6, x_12); +x_21 = lean_box(0); +x_22 = lean_array_fset(x_6, x_12, x_21); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_20, 1); +x_25 = lean_ctor_get(x_20, 0); +lean_dec(x_25); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_4, x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_27, x_24); +lean_dec(x_27); +lean_ctor_set(x_20, 1, x_28); +lean_ctor_set(x_20, 0, x_5); +x_29 = lean_array_fset(x_22, x_12, x_20); +lean_dec(x_12); +return x_29; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_inc(x_6); -x_32 = l_Array_back___rarg(x_6, x_5); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_4, x_31); +x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_32, x_30); lean_dec(x_32); -x_34 = l_Lean_Meta_DiscrTree_Key_lt(x_33, x_10); -if (x_34 == 0) +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_5); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_array_fset(x_22, x_12, x_34); +lean_dec(x_12); +return x_35; +} +} +} +else { -uint8_t x_35; -x_35 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_33); -lean_dec(x_33); +x_9 = x_12; +goto _start; +} +} +else +{ +uint8_t x_37; +lean_dec(x_15); +lean_dec(x_14); +x_37 = lean_nat_dec_eq(x_12, x_8); +if (x_37 == 0) +{ +lean_dec(x_8); +x_8 = x_12; +goto _start; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_7); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_4, x_39); +x_41 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_40); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_5); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_nat_add(x_8, x_39); +lean_dec(x_8); +x_44 = l_Array_insertAt_x21___rarg(x_6, x_43, x_42); +lean_dec(x_43); +return x_44; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(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: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_6); +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_unsigned_to_nat(0u); +lean_inc(x_7); +x_10 = lean_array_get(x_7, x_6, x_9); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); lean_dec(x_10); +x_13 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_12); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_12, x_11); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +lean_dec(x_11); +lean_dec(x_7); +x_15 = lean_array_get_size(x_6); +x_16 = lean_nat_dec_lt(x_9, x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_6, x_9); +x_18 = lean_box(0); +x_19 = lean_array_fset(x_6, x_9, x_18); +x_20 = !lean_is_exclusive(x_17); +if (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_ctor_get(x_17, 1); +x_22 = lean_ctor_get(x_17, 0); +lean_dec(x_22); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_4, x_23); +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_24, x_21); +lean_dec(x_24); +lean_ctor_set(x_17, 1, x_25); +lean_ctor_set(x_17, 0, x_5); +x_26 = lean_array_fset(x_19, x_9, x_17); +return x_26; +} +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; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_4, x_28); +x_30 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_29, x_27); +lean_dec(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_array_fset(x_19, x_9, x_31); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_inc(x_7); +x_33 = l_Array_back___rarg(x_7, x_6); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_34, x_11); if (x_35 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -lean_dec(x_6); -x_36 = lean_array_get_size(x_5); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_sub(x_36, x_37); -x_39 = lean_nat_dec_lt(x_38, x_36); -lean_dec(x_36); -if (x_39 == 0) +uint8_t x_36; +x_36 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_34); +lean_dec(x_34); +lean_dec(x_11); +if (x_36 == 0) { -lean_dec(x_38); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_7); +x_37 = lean_array_get_size(x_6); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_sub(x_37, x_38); +x_40 = lean_nat_dec_lt(x_39, x_37); +lean_dec(x_37); +if (x_40 == 0) +{ +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_array_fget(x_6, x_39); +x_42 = lean_box(0); +x_43 = lean_array_fset(x_6, x_39, x_42); +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_41, 1); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = lean_nat_add(x_4, x_38); +x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_47, x_45); +lean_dec(x_47); +lean_ctor_set(x_41, 1, x_48); +lean_ctor_set(x_41, 0, x_5); +x_49 = lean_array_fset(x_43, x_39, x_41); +lean_dec(x_39); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_41, 1); +lean_inc(x_50); +lean_dec(x_41); +x_51 = lean_nat_add(x_4, x_38); +x_52 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_51, x_50); +lean_dec(x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_5); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_array_fset(x_43, x_39, x_53); +lean_dec(x_39); +return x_54; +} +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_array_get_size(x_6); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_sub(x_55, x_56); +lean_dec(x_55); +x_58 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_34); +lean_dec(x_11); +lean_dec(x_7); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_add(x_4, x_59); +x_61 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_60); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_5); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_array_push(x_6, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_add(x_4, x_64); +x_66 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_65); +lean_dec(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_5); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Array_insertAt_x21___rarg(x_6, x_9, x_67); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_7); +x_69 = lean_unsigned_to_nat(1u); +x_70 = lean_nat_add(x_4, x_69); +x_71 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_70); +lean_dec(x_70); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_5); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_array_push(x_6, x_72); +return x_73; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_array_get_size(x_2); +x_10 = lean_nat_dec_lt(x_4, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(x_7, x_3); +lean_ctor_set(x_5, 0, x_11); return x_5; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_array_fget(x_5, x_38); -x_41 = lean_box(0); -x_42 = lean_array_fset(x_5, x_38, x_41); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_40, 1); -x_45 = lean_ctor_get(x_40, 0); -lean_dec(x_45); -x_46 = lean_nat_add(x_3, x_37); -x_47 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_46, x_44); -lean_dec(x_46); -lean_ctor_set(x_40, 1, x_47); -lean_ctor_set(x_40, 0, x_4); -x_48 = lean_array_fset(x_42, x_38, x_40); -lean_dec(x_38); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -lean_dec(x_40); -x_50 = lean_nat_add(x_3, x_37); -x_51 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_50, x_49); -lean_dec(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_4); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_array_fset(x_42, x_38, x_52); -lean_dec(x_38); -return x_53; -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_array_get_size(x_5); -x_55 = lean_unsigned_to_nat(1u); -x_56 = lean_nat_sub(x_54, x_55); -lean_dec(x_54); -x_57 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_56); -return x_57; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_array_fget(x_2, x_4); +x_13 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +lean_ctor_set(x_5, 1, x_13); +lean_ctor_set(x_5, 0, x_13); +lean_inc(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_5); +x_15 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_1, x_2, x_3, x_4, x_12, x_8, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_33); -lean_dec(x_10); -lean_dec(x_6); -x_58 = lean_unsigned_to_nat(1u); -x_59 = lean_nat_add(x_3, x_58); -x_60 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_59); -lean_dec(x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_4); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_array_push(x_5, x_61); -return x_62; -} -} +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_19 = lean_array_get_size(x_2); +x_20 = lean_nat_dec_lt(x_4, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(x_17, x_3); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_add(x_3, x_63); -x_65 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_64); -lean_dec(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_4); -lean_ctor_set(x_66, 1, x_65); -x_67 = l_Array_insertAt_x21___rarg(x_5, x_8, x_66); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_6); -x_68 = lean_unsigned_to_nat(1u); -x_69 = lean_nat_add(x_3, x_68); -x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_69); -lean_dec(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_4); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_array_push(x_5, x_71); -return x_72; +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_array_fget(x_2, x_4); +x_24 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_1, x_2, x_3, x_4, x_23, x_18, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1() { +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = lean_array_get_size(x_1); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); x_9 = lean_nat_dec_lt(x_3, x_8); lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; -x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(x_6, x_2); -lean_ctor_set(x_4, 0, x_10); -return x_4; -} -else +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_1, x_3); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1; -lean_inc(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_1, x_2, x_3, x_11, x_7, x_13); -lean_ctor_set(x_4, 1, x_14); -return x_4; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_4, 0); -x_16 = lean_ctor_get(x_4, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_4); -x_17 = lean_array_get_size(x_1); -x_18 = lean_nat_dec_lt(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(x_15, x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); +x_2 = x_17; +x_3 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +x_20 = lean_box(0); return x_20; } +} +} else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_array_fget(x_1, x_3); -x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -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 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_1, x_2, x_3, x_21, x_16, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); +lean_dec(x_21); +return x_24; } } } -} -static lean_object* _init_l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1() { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0)); -return x_1; +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30(uint8_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0), x_1); +x_4 = lean_panic_fn(x_3, x_2); +return x_4; } } static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1() { @@ -3984,94 +5761,98 @@ _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_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1; x_2 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(350u); +x_3 = lean_unsigned_to_nat(358u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = l_Array_isEmpty___rarg(x_2); -if (x_4 == 0) +uint8_t x_5; +x_5 = l_Array_isEmpty___rarg(x_3); +if (x_5 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_array_get_size(x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_nat_dec_lt(x_6, x_5); -lean_dec(x_5); -if (x_7 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_box(0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_array_get_size(x_3); +x_10 = lean_nat_dec_lt(x_7, x_9); +lean_dec(x_9); +if (x_10 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Meta_DiscrTree_instInhabitedKey; -x_9 = l___private_Init_Util_0__outOfBounds___rarg(x_8); -lean_inc(x_9); -lean_inc(x_1); -x_10 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(x_1, x_9); -if (lean_obj_tag(x_10) == 0) +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Init_Util_0__outOfBounds___rarg(x_8); +lean_inc(x_11); +lean_inc(x_2); +x_12 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(x_1, x_2, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_unsigned_to_nat(1u); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_11); -lean_dec(x_2); -x_13 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_1, x_9, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_unsigned_to_nat(1u); +x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_13); +lean_dec(x_3); +x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_1, x_2, x_11, x_14); +return x_15; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_unsigned_to_nat(1u); -x_16 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_2, x_3, x_15, x_14); -lean_dec(x_2); -x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_1, x_9, x_16); -return x_17; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_unsigned_to_nat(1u); +x_18 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_3, x_4, x_17, x_16); +lean_dec(x_3); +x_19 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15(x_1, x_2, x_11, x_18); +return x_19; } } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_array_fget(x_2, x_6); -lean_inc(x_18); -lean_inc(x_1); -x_19 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(x_1, x_18); -if (lean_obj_tag(x_19) == 0) +lean_object* x_20; lean_object* x_21; +lean_dec(x_8); +x_20 = lean_array_fget(x_3, x_7); +lean_inc(x_20); +lean_inc(x_2); +x_21 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19(x_1, x_2, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_unsigned_to_nat(1u); -x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_20); -lean_dec(x_2); -x_22 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_1, x_18, x_21); -return x_22; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_unsigned_to_nat(1u); +x_23 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_22); +lean_dec(x_3); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22(x_1, x_2, x_20, x_23); +return x_24; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_unsigned_to_nat(1u); -x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_2, x_3, x_24, x_23); -lean_dec(x_2); -x_26 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_1, x_18, x_25); -return x_26; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_unsigned_to_nat(1u); +x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_3, x_4, x_26, x_25); +lean_dec(x_3); +x_28 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26(x_1, x_2, x_20, x_27); +return x_28; } } } else { -lean_object* x_27; lean_object* x_28; +lean_object* x_29; lean_object* x_30; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_27 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__4; -x_28 = l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15(x_27); -return x_28; +x_29 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__4; +x_30 = l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30(x_1, x_29); +return x_30; } } } @@ -4086,144 +5867,186 @@ 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; lean_object* x_8; lean_object* x_9; +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 2); x_7 = lean_ctor_get(x_2, 0); lean_inc(x_7); +x_8 = 1; lean_inc(x_2); -x_8 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_5, x_7, x_2); -x_9 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_6); -lean_ctor_set(x_1, 2, x_9); -lean_ctor_set(x_1, 0, x_8); +x_9 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_8, x_5, x_7, x_2); +x_10 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_6); +lean_ctor_set(x_1, 2, x_10); +lean_ctor_set(x_1, 0, x_9); return x_1; } 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_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_10 = lean_ctor_get(x_1, 0); -x_11 = lean_ctor_get(x_1, 1); -x_12 = lean_ctor_get(x_1, 2); -x_13 = lean_ctor_get(x_1, 3); -x_14 = lean_ctor_get(x_1, 4); -x_15 = lean_ctor_get(x_1, 5); +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; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 3); +x_15 = lean_ctor_get(x_1, 4); +x_16 = lean_ctor_get(x_1, 5); +lean_inc(x_16); 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_dec(x_1); -x_16 = lean_ctor_get(x_2, 0); -lean_inc(x_16); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = 1; lean_inc(x_2); -x_17 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_10, x_16, x_2); -x_18 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_12); -x_19 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_11); -lean_ctor_set(x_19, 2, x_18); -lean_ctor_set(x_19, 3, x_13); -lean_ctor_set(x_19, 4, x_14); -lean_ctor_set(x_19, 5, x_15); -return x_19; +x_19 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_18, x_11, x_17, x_2); +x_20 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_13); +x_21 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_12); +lean_ctor_set(x_21, 2, x_20); +lean_ctor_set(x_21, 3, x_14); +lean_ctor_set(x_21, 4, x_15); +lean_ctor_set(x_21, 5, x_16); +return x_21; } } else { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_1); -if (x_20 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_1); +if (x_22 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_1, 1); -x_22 = lean_ctor_get(x_1, 2); -x_23 = lean_ctor_get(x_2, 0); -lean_inc(x_23); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_23 = lean_ctor_get(x_1, 1); +x_24 = lean_ctor_get(x_1, 2); +x_25 = lean_ctor_get(x_2, 0); +lean_inc(x_25); +x_26 = 1; lean_inc(x_2); -x_24 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_21, x_23, x_2); -x_25 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_22); -lean_ctor_set(x_1, 2, x_25); -lean_ctor_set(x_1, 1, x_24); +x_27 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_26, x_23, x_25, x_2); +x_28 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_24); +lean_ctor_set(x_1, 2, x_28); +lean_ctor_set(x_1, 1, x_27); return x_1; } 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; -x_26 = lean_ctor_get(x_1, 0); -x_27 = lean_ctor_get(x_1, 1); -x_28 = lean_ctor_get(x_1, 2); -x_29 = lean_ctor_get(x_1, 3); -x_30 = lean_ctor_get(x_1, 4); -x_31 = lean_ctor_get(x_1, 5); +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; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_1, 0); +x_30 = lean_ctor_get(x_1, 1); +x_31 = lean_ctor_get(x_1, 2); +x_32 = lean_ctor_get(x_1, 3); +x_33 = lean_ctor_get(x_1, 4); +x_34 = lean_ctor_get(x_1, 5); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); lean_dec(x_1); -x_32 = lean_ctor_get(x_2, 0); -lean_inc(x_32); +x_35 = lean_ctor_get(x_2, 0); +lean_inc(x_35); +x_36 = 1; lean_inc(x_2); -x_33 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_27, x_32, x_2); -x_34 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_28); -x_35 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_33); -lean_ctor_set(x_35, 2, x_34); -lean_ctor_set(x_35, 3, x_29); -lean_ctor_set(x_35, 4, x_30); -lean_ctor_set(x_35, 5, x_31); -return x_35; +x_37 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_36, x_30, x_35, x_2); +x_38 = l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(x_2, x_31); +x_39 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_37); +lean_ctor_set(x_39, 2, x_38); +lean_ctor_set(x_39, 3, x_32); +lean_ctor_set(x_39, 4, x_33); +lean_ctor_set(x_39, 5, x_34); +return x_39; } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___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_6; -x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -return x_6; +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(x_1, x_4, x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__2(x_4, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___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_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); +x_9 = lean_unbox_usize(x_2); lean_dec(x_2); -return x_8; +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8___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_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_1, x_6, x_7, x_4, x_5); -return x_8; +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(x_5, x_2, x_3, x_4); +return x_6; } } LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_addSimpTheoremEntry___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -4252,36 +6075,242 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___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_9; -x_9 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); lean_dec(x_1); +x_11 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpTheoremEntry___spec__14(x_10, 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_11; +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___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_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___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_7; -x_7 = l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); lean_dec(x_1); +x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); return x_7; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___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) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(x_1, x_2, x_3, x_4); -lean_dec(x_3); +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__17(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__18(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__16(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__15(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__21(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__20(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpTheoremEntry___spec__19(x_4, x_2, x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__24(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__25(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__23(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__22(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__28(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__29(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__27(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__26(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__30(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1(x_5, x_2, x_3, x_4); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfoldCore(lean_object* x_1, lean_object* x_2) { _start: { @@ -6729,7 +8758,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_9 = l_Lean_Meta_DiscrTree_whnfDT(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_Meta_DiscrTree_reduceDT(x_1, x_8, x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; @@ -10008,7 +12037,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_48); -x_50 = l_Lean_Meta_DiscrTree_mkPath(x_48, x_8, x_9, x_10, x_11, x_33); +x_50 = l_Lean_Meta_DiscrTree_mkPath(x_22, x_48, x_8, x_9, x_10, x_11, x_33); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; @@ -10213,7 +12242,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_87); -x_89 = l_Lean_Meta_DiscrTree_mkPath(x_87, x_8, x_9, x_10, x_11, x_72); +x_89 = l_Lean_Meta_DiscrTree_mkPath(x_22, x_87, x_8, x_9, x_10, x_11, x_72); if (lean_obj_tag(x_89) == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; @@ -10517,7 +12546,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_154); -x_156 = l_Lean_Meta_DiscrTree_mkPath(x_154, x_8, x_9, x_10, x_11, x_139); +x_156 = l_Lean_Meta_DiscrTree_mkPath(x_129, x_154, x_8, x_9, x_10, x_11, x_139); if (lean_obj_tag(x_156) == 0) { lean_object* x_157; lean_object* x_158; lean_object* x_159; @@ -10758,7 +12787,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_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__6; x_2 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__7; -x_3 = lean_unsigned_to_nat(285u); +x_3 = lean_unsigned_to_nat(300u); x_4 = lean_unsigned_to_nat(2u); x_5 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13132,7 +15161,7 @@ x_15 = l_Lean_Meta_addSimpTheorem(x_1, x_2, x_12, x_13, x_14, x_6, x_7, x_8, x_9 return x_15; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1() { _start: { lean_object* x_1; @@ -13140,7 +15169,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2() { _start: { lean_object* x_1; @@ -13148,7 +15177,7 @@ x_1 = lean_mk_string_from_bytes("Parser", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3() { _start: { lean_object* x_1; @@ -13156,7 +15185,7 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4() { _start: { lean_object* x_1; @@ -13164,19 +15193,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq", 9); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; -x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; +x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6() { _start: { lean_object* x_1; @@ -13184,19 +15213,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq1Indented", 18); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____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___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; -x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; +x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8() { _start: { lean_object* x_1; @@ -13204,17 +15233,17 @@ x_1 = lean_mk_string_from_bytes("null", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10() { _start: { lean_object* x_1; @@ -13222,41 +15251,41 @@ x_1 = lean_mk_string_from_bytes("exact", 5); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; -x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; +x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10; x_3 = lean_alloc_ctor(2, 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___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14() { _start: { lean_object* x_1; @@ -13264,7 +15293,7 @@ x_1 = lean_mk_string_from_bytes("Term", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15() { _start: { lean_object* x_1; @@ -13272,19 +15301,19 @@ x_1 = lean_mk_string_from_bytes("declName", 8); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; -x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; +x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17() { _start: { lean_object* x_1; @@ -13292,35 +15321,35 @@ x_1 = lean_mk_string_from_bytes("decl_name%", 10); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17; x_3 = lean_alloc_ctor(2, 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___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13328,23 +15357,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13352,23 +15381,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13376,23 +15405,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__7; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13400,23 +15429,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13424,11 +15453,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422_() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28; return x_1; } } @@ -14412,9 +16441,9 @@ static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; x_4 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -15161,11 +17190,11 @@ lean_dec(x_1); return x_6; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6166_() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6185_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28; return x_1; } } @@ -15255,7 +17284,7 @@ x_7 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_6, x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277____spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296____spec__1(lean_object* x_1) { _start: { lean_object* x_2; @@ -15263,7 +17292,7 @@ x_2 = l_Lean_mkHashMapImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -15290,20 +17319,20 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277____spec__1___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296____spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277____spec__1(x_1); +x_2 = l_Lean_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296____spec__1(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6314_() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6333_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28; return x_1; } } @@ -15748,7 +17777,7 @@ x_4 = lean_box(x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1() { _start: { lean_object* x_1; @@ -15756,17 +17785,17 @@ x_1 = lean_mk_string_from_bytes("simp", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____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_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3() { _start: { lean_object* x_1; @@ -15774,7 +17803,7 @@ x_1 = lean_mk_string_from_bytes("Meta", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4() { _start: { lean_object* x_1; @@ -15782,18 +17811,18 @@ x_1 = lean_mk_string_from_bytes("simpExtension", 13); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6() { _start: { lean_object* x_1; @@ -15801,13 +17830,13 @@ x_1 = lean_mk_string_from_bytes("simplification theorem", 22); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5; x_5 = l_Lean_Meta_registerSimpAttr(x_2, x_3, x_4, x_1); return x_5; } @@ -18210,10 +20239,10 @@ static lean_object* _init_l_Lean_Parser_Command_registerSimpAttr___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; lean_object* x_7; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__1; -x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_4 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_5 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_6 = l_Lean_Parser_Command_registerSimpAttr___closed__3; x_7 = l_Lean_Name_mkStr7(x_1, x_2, x_3, x_1, x_4, x_5, x_6); @@ -18404,7 +20433,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -18422,8 +20451,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18442,8 +20471,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18462,8 +20491,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__7; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18509,9 +20538,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__12; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18548,8 +20577,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3; x_3 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__14; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -18621,9 +20650,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__23; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18641,9 +20670,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__25; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18661,9 +20690,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__27; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18681,9 +20710,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__29; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18712,8 +20741,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -18777,8 +20806,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__38; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18797,9 +20826,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__40; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -18817,8 +20846,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Parser_Command_registerSimpAttr___closed__2; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__42; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18877,8 +20906,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__48; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__49; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18915,8 +20944,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__48; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__53; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18953,8 +20982,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; x_3 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__48; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__57; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -18990,8 +21019,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; x_3 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__61; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -19001,9 +21030,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__61; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -19084,8 +21113,8 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3; x_3 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -19220,9 +21249,9 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14; x_4 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__84; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -19355,7 +21384,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_2, 1); lean_inc(x_28); lean_dec(x_2); -x_29 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9; +x_29 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9; x_30 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; lean_inc(x_26); x_31 = lean_alloc_ctor(1, 3, 0); @@ -19839,16 +21868,16 @@ l_Lean_Meta_instInhabitedSimpTheorems___closed__1 = _init_l_Lean_Meta_instInhabi lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorems___closed__1); l_Lean_Meta_instInhabitedSimpTheorems___closed__2 = _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__2(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorems___closed__2); +l_Lean_Meta_instInhabitedSimpTheorems___closed__3 = _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__3(); +lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorems___closed__3); +l_Lean_Meta_instInhabitedSimpTheorems___closed__4 = _init_l_Lean_Meta_instInhabitedSimpTheorems___closed__4(); +lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorems___closed__4); l_Lean_Meta_instInhabitedSimpTheorems = _init_l_Lean_Meta_instInhabitedSimpTheorems(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorems); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__1(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3(); lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry_updateLemmaNames___spec__2___closed__3); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1); -l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1 = _init_l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_addSimpTheoremEntry___spec__15___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__2 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__2(); @@ -19979,64 +22008,64 @@ l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__ lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__8); l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9(); lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__1); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__2); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__3); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__4); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__5); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__6); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__7); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__8); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__9); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__10); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__11); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__12); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__13); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__14); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__15); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__16); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__17); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__18); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__19); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__20); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__21); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__22); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__23); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__24); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__25); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__26); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__27); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422____closed__28); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422_(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5422_); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__1); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__2); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__3); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__4); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__5); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__6); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__7 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__7(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__7); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__8); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__9); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__10); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__11); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__12); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__13); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__14); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__15); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__16); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__17); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__18); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__19); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__20); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__21); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__22); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__23); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__24); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__25); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__26); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__27); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441____closed__28); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441_(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_5441_); l_Lean_Meta_mkSimpAttr___lambda__1___closed__1 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__1); l_Lean_Meta_mkSimpAttr___lambda__1___closed__2 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__2(); @@ -20067,36 +22096,36 @@ l_Lean_Meta_mkSimpAttr___lambda__1___closed__14 = _init_l_Lean_Meta_mkSimpAttr__ lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__14); l_Lean_Meta_mkSimpAttr___lambda__1___closed__15 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__15(); lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__15); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6166_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6166_(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6166_); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6185_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6185_(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6185_); 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(); lean_mark_persistent(l_Lean_Meta_mkSimpExt___closed__2); l_Lean_Meta_mkSimpExt___closed__3 = _init_l_Lean_Meta_mkSimpExt___closed__3(); lean_mark_persistent(l_Lean_Meta_mkSimpExt___closed__3); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6277_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6296_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_simpExtensionMapRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_simpExtensionMapRef); lean_dec_ref(res); -}l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6314_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6314_(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6314_); +}l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6333_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6333_(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6333_); l_Lean_Meta_registerSimpAttr___closed__1 = _init_l_Lean_Meta_registerSimpAttr___closed__1(); lean_mark_persistent(l_Lean_Meta_registerSimpAttr___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418____closed__6); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6418_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437____closed__6); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_6437_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_simpExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_simpExtension); diff --git a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c index adcbbff1b3..27a83ac4b7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c +++ b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c @@ -199,7 +199,7 @@ lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synth static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___lambda__2___closed__1; static lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__1; lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1870____closed__12; extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); @@ -509,9 +509,10 @@ return x_59; static lean_object* _init_l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); -return x_1; +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = l_Lean_Meta_DiscrTree_empty(lean_box(0), x_1); +return x_2; } } static lean_object* _init_l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____closed__2() { diff --git a/stage0/stdlib/Lean/Meta/UnificationHint.c b/stage0/stdlib/Lean/Meta/UnificationHint.c index 4abaa2522d..1cdf01020c 100644 --- a/stage0/stdlib/Lean/Meta/UnificationHint.c +++ b/stage0/stdlib/Lean/Meta/UnificationHint.c @@ -14,16 +14,20 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12; +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__28(uint8_t, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15; LEAN_EXPORT lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(lean_object*); lean_object* l_Lean_Meta_getResetPostponed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(uint8_t, lean_object*, size_t, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Std_Format_join(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23(uint8_t, 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*, uint8_t, lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1___closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7; lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__2___closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -31,113 +35,118 @@ LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__1(lean_object lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decode___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956_(lean_object*); +uint64_t l_Lean_Meta_DiscrTree_Key_hash___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__1; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__7; lean_object* l___private_Init_Util_0__outOfBounds___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__2; lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14; +lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___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_is_expr_def_eq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14___boxed(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*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__10; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11; static lean_object* l_Lean_Meta_addUnificationHint___lambda__1___closed__2; static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20; lean_object* l_Lean_Expr_appFn_x21(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_UnificationHints_discrTree___default; lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*, uint8_t); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__3; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2; -lean_object* l_Lean_Meta_DiscrTree_Key_format(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3; size_t lean_usize_shift_right(size_t, size_t); lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedUnificationHintEntry; lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(uint8_t); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__4; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__3; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_UnificationHints_add___spec__10(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__7; -LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_getPostponed___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_UnificationHints_add(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__10; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__5; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12___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_UnificationHint___hyg_956____closed__12; size_t lean_uint64_to_usize(uint64_t); -uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints(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_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__4; static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___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_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(uint8_t, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__3(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_UnificationHint___hyg_935____closed__8; lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___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* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1; -lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__10; static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addUnificationHint___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addUnificationHint(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,125 +154,142 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationH static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__7; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___closed__2; static lean_object* l_Lean_Meta_UnificationHints_discrTree___default___closed__1; static lean_object* l_Lean_Meta_addUnificationHint___lambda__1___closed__3; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___spec__1___closed__2; static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__2; static lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1___closed__4; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedUnificationHints; static lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___spec__1___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18; extern lean_object* l_Lean_Expr_instHashableExpr; LEAN_EXPORT lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addUnificationHint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(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_UnificationHint___hyg_935____lambda__1___closed__8; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1; static lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1___closed__2; lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaMetaTelescope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__2___closed__1; -static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1; size_t lean_usize_shift_left(size_t, size_t); lean_object* lean_array_to_list(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__11; static lean_object* l_Lean_Meta_instInhabitedUnificationHints___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___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_instInhabitedUnificationHintEntry___closed__2; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__28___boxed(lean_object*, lean_object*); lean_object* l_Lean_Core_instantiateValueLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__7; 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*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9; uint8_t l_Array_isEmpty___rarg(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__5; static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__4; static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__1; LEAN_EXPORT 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_176____closed__7; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7; +static lean_object* l_Lean_Meta_instInhabitedUnificationHints___closed__5; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17(uint8_t, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__11; static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__9; static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__4; lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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; lean_object* l_Lean_ConstantInfo_value_x3f(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2; lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_Lean_Meta_DiscrTree_mkPath(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__3; static lean_object* l_Lean_Meta_tryUnificationHints___lambda__2___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11; static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___closed__1; static lean_object* l_Lean_Meta_instInhabitedUnificationHints___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4; static lean_object* l_Lean_Meta_instInhabitedUnificationHints___closed__2; static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__5; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__3; lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; static lean_object* l_Lean_Meta_tryUnificationHints___lambda__2___closed__2; static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; lean_object* l_Lean_exceptBoolEmoji___rarg(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); +static lean_object* l_Lean_Meta_instInhabitedUnificationHints___closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__2; static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___closed__2; static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decode___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20; LEAN_EXPORT lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decode___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lean_Meta_instToFormatUnificationHints___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decode(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3; -uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__7; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___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_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___boxed(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_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints_isDefEqPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(uint8_t, lean_object*, size_t, size_t, 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_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___boxed(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___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_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1; @@ -271,63 +297,77 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4; static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__4; uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2; lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__13(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8; +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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_477_(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(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__6; static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__9; lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26(uint8_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addUnificationHint___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(uint8_t, lean_object*); static lean_object* l_Lean_Meta_addUnificationHint___lambda__1___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8; 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*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17; LEAN_EXPORT lean_object* l_Lean_Meta_instToFormatUnificationHints(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_Key_format___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__2; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5; static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__1; lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__8; lean_object* lean_usize_to_nat(size_t); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18; static lean_object* l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1; lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenK___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18(uint8_t, lean_object*, size_t, lean_object*); +uint8_t l_Lean_Meta_DiscrTree_Key_lt___rarg(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5; static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setPostponed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_processPostponed(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___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_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__2; static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__3; lean_object* lean_nat_to_int(lean_object*); -uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_unificationHintExtension; -lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); -static lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13; +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__5; static lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___lambda__1___closed__6; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1() { _start: { @@ -360,9 +400,10 @@ return x_1; static lean_object* _init_l_Lean_Meta_UnificationHints_discrTree___default___closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); -return x_1; +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = l_Lean_Meta_DiscrTree_empty(lean_box(0), x_1); +return x_2; } } static lean_object* _init_l_Lean_Meta_UnificationHints_discrTree___default() { @@ -394,6 +435,22 @@ return x_2; static lean_object* _init_l_Lean_Meta_instInhabitedUnificationHints___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedUnificationHints___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash___rarg___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedUnificationHints___closed__5() { +_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); @@ -407,7 +464,7 @@ static lean_object* _init_l_Lean_Meta_instInhabitedUnificationHints() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_instInhabitedUnificationHints___closed__3; +x_1 = l_Lean_Meta_instInhabitedUnificationHints___closed__5; return x_1; } } @@ -483,115 +540,115 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; +lean_object* x_4; +x_4 = l_List_reverse___rarg(x_3); +return x_4; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -x_8 = 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; 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; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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); -lean_dec(x_5); -x_9 = l_Lean_Meta_DiscrTree_Key_format(x_7); -x_10 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; -x_11 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_8); -x_13 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -x_17 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; -x_19 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = 0; -x_21 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20); -x_22 = lean_box(1); -x_23 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_23); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_8); +x_11 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; +x_12 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_1, x_9); +x_14 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; +x_18 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +x_20 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = 0; +x_22 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*1, x_21); +x_23 = lean_box(1); +x_24 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set(x_2, 1, x_3); +lean_ctor_set(x_2, 0, x_24); { -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; x_2 = _tmp_1; +x_3 = _tmp_2; } goto _start; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 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; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_25 = lean_ctor_get(x_1, 0); -x_26 = lean_ctor_get(x_1, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_1); -x_27 = lean_ctor_get(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; 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; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_26 = lean_ctor_get(x_2, 0); +x_27 = lean_ctor_get(x_2, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_2); +x_28 = lean_ctor_get(x_26, 0); lean_inc(x_28); -lean_dec(x_25); -x_29 = l_Lean_Meta_DiscrTree_Key_format(x_27); -x_30 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; -x_31 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_28); -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 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -x_35 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -x_37 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; -x_39 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = 0; -x_41 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_40); -x_42 = lean_box(1); -x_43 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = lean_alloc_ctor(1, 2, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_28); +x_31 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; +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 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_1, x_29); +x_34 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; +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_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; +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 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +x_40 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = 0; +x_42 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41); +x_43 = lean_box(1); +x_44 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_2); -x_1 = x_26; -x_2 = x_44; +lean_ctor_set(x_44, 1, x_42); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_3); +x_2 = x_27; +x_3 = x_45; goto _start; } } @@ -850,93 +907,93 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(uint8_t x_1, lean_object* x_2) { _start: { -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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Array_isEmpty___rarg(x_2); -x_5 = lean_array_to_list(lean_box(0), x_3); -x_6 = lean_box(0); -x_7 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(x_5, x_6); -x_8 = l_Std_Format_join(x_7); -if (x_4 == 0) +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Array_isEmpty___rarg(x_3); +x_6 = lean_array_to_list(lean_box(0), x_4); +x_7 = lean_box(0); +x_8 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(x_1, x_6, x_7); +x_9 = l_Std_Format_join(x_8); +if (x_5 == 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; lean_object* x_19; 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_object* x_26; -x_9 = lean_array_to_list(lean_box(0), x_2); -x_10 = l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4(x_9); -x_11 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__6; -x_12 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__4; -x_14 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__2; -x_16 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); +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; lean_object* x_27; +x_10 = lean_array_to_list(lean_box(0), x_3); +x_11 = l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4(x_10); +x_12 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__6; +x_13 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__4; +x_15 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__2; x_17 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_8); -x_18 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -x_19 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -x_21 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; -x_23 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = 0; -x_25 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_24); +lean_ctor_set(x_17, 1, x_15); +x_18 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_9); +x_19 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; +x_20 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; +x_22 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +x_24 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = 0; x_26 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_24); -return x_26; +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_25); +x_27 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_25); +return x_27; } 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; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_2); -x_27 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__7; -x_28 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_8); -x_29 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -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_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -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 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; -x_34 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = 0; -x_36 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35); +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; uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_3); +x_28 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__7; +x_29 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_9); +x_30 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; +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_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; +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 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +x_35 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = 0; x_37 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_35); -return x_37; +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); +x_38 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_36); +return x_38; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -947,73 +1004,81 @@ x_5 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignm return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(uint8_t x_1) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 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; uint8_t x_19; -x_4 = lean_ctor_get(x_1, 1); -x_5 = lean_ctor_get(x_1, 0); -x_6 = l_Lean_Meta_DiscrTree_Key_format(x_2); -x_7 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; -x_8 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set(x_8, 1, x_7); -x_9 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_3); -x_10 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; -x_12 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -x_14 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; -x_16 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = 0; -x_18 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_17); -x_19 = lean_unbox(x_5); -if (x_19 == 0) +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___rarg), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_20 = lean_box(1); -lean_inc(x_4); -x_21 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_21, 0, x_4); -lean_ctor_set(x_21, 1, x_20); +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; uint8_t x_18; lean_object* x_19; uint8_t x_20; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 0); +x_7 = l_Lean_Meta_DiscrTree_Key_format___rarg(x_3); +x_8 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__2; +x_9 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +x_10 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_1, x_4); +x_11 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__6; +x_13 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; +x_15 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__5; +x_17 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = 0; +x_19 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); +x_20 = lean_unbox(x_6); +if (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 = lean_box(1); +lean_inc(x_5); x_22 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_18); -x_23 = 0; -x_24 = lean_box(x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_22); -return x_25; +lean_ctor_set(x_22, 0, x_5); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +x_24 = 0; +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; -x_26 = lean_box(0); -lean_inc(x_4); -x_27 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_26); +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_box(0); +lean_inc(x_5); x_28 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_18); -x_29 = 0; -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_28); -return x_31; +lean_ctor_set(x_28, 0, x_5); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_19); +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_29); +return x_32; } } } @@ -1030,86 +1095,123 @@ lean_ctor_set(x_4, 1, x_2); return x_4; } } -static lean_object* _init_l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2() { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1___boxed), 3, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_2 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2; -x_3 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1; -x_4 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(x_1, x_2, x_3); -x_5 = lean_ctor_get(x_4, 1); -lean_inc(x_5); -lean_dec(x_4); -x_6 = 0; -x_7 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set_uint8(x_7, sizeof(void*)*1, x_6); -return x_7; +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; +x_3 = lean_box(x_1); +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1___boxed), 4, 1); +lean_closure_set(x_4, 0, x_3); +x_5 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1; +x_6 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___rarg(x_2, x_4, x_5); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = 0; +x_9 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_8); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_Meta_instToFormatUnificationHints(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(x_1); -return x_2; +uint8_t x_2; lean_object* x_3; +x_2 = 1; +x_3 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(x_2, x_1); +return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(x_1, x_2, x_3); +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); lean_dec(x_1); +x_5 = l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3(x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2(x_3, x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6___boxed(lean_object* x_1) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_instToFormatUnificationHints___spec__6(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___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_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___lambda__1(x_5, x_2, x_3, x_4); +lean_dec(x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; goto _start; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } @@ -1134,220 +1236,220 @@ x_3 = lean_usize_sub(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = 5; -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -lean_dec(x_8); -lean_dec(x_4); -switch (lean_obj_tag(x_10)) { +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { case 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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); lean_dec(x_12); -x_14 = lean_box(0); -return x_14; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_15; -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; } } case 1: { -lean_object* x_16; size_t x_17; -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_usize_shift_right(x_2, x_5); -x_1 = x_16; +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); x_2 = x_17; +x_3 = x_18; goto _start; } default: { -lean_object* x_19; -x_19 = lean_box(0); -return x_19; +lean_object* x_20; +x_20 = lean_box(0); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -lean_dec(x_1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(x_20, x_21, lean_box(0), x_22, x_3); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -return x_23; +return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; uint64_t x_4; size_t 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_Meta_DiscrTree_Key_hash(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(x_3, x_5, x_2); +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); lean_dec(x_2); -return x_6; +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_dec(x_5); -return x_6; -} -else -{ -lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; -x_6 = x_20; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___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; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); -lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); -x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_dec(x_6); -lean_dec(x_5); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_2 = x_20; +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; goto _start; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_2); -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; +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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; } } } @@ -1361,410 +1463,410 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) { -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -return x_1; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { -case 0: -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; -} -else -{ -lean_object* x_25; -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; -} -} -} -case 1: -{ -uint8_t x_34; -x_34 = !lean_is_exclusive(x_15); -if (x_34 == 0) -{ -lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; -} -else -{ -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; -} -} -default: -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; -} -} -} -} -else -{ -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); -lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); -lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { -case 0: -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; -} else { - lean_dec_ref(x_57); - x_62 = lean_box(0); -} -x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_92_(x_4, x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_62; -} -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; -} -} -case 1: -{ -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; -} else { - lean_dec_ref(x_57); - x_72 = lean_box(0); -} -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); -} else { - x_76 = x_72; -} -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; -} -default: -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; -} -} -} -} -} -else -{ -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); -lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_3, x_90, x_91, lean_box(0), x_83, x_92); -lean_dec(x_91); -lean_dec(x_90); -return x_93; -} -else -{ -return x_84; -} -} -else -{ -return x_84; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); -lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_3, x_104, x_105, lean_box(0), x_97, x_106); -lean_dec(x_105); -lean_dec(x_104); -return x_107; -} -else -{ -return x_98; -} -} -else -{ -return x_98; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -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; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_8 = lean_uint64_to_usize(x_7); +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); x_9 = 1; -x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_5, x_8, x_9, x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_6, x_11); +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); lean_dec(x_6); -lean_ctor_set(x_1, 1, x_12); -lean_ctor_set(x_1, 0, x_10); -return x_1; +lean_dec(x_5); +return x_2; } else { -lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_1); -x_15 = l_Lean_Meta_DiscrTree_Key_hash(x_2); -x_16 = lean_uint64_to_usize(x_15); -x_17 = 1; -x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_13, x_16, x_17, x_2, x_3); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_14, x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -1786,433 +1888,2157 @@ return x_1; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___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_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(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) { _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; uint8_t x_15; -x_9 = lean_nat_add(x_7, x_8); -x_10 = lean_unsigned_to_nat(2u); -x_11 = lean_nat_div(x_9, x_10); -lean_dec(x_9); -lean_inc(x_6); -x_12 = lean_array_get(x_6, x_5, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_6, 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; +x_10 = lean_nat_add(x_8, x_9); +x_11 = lean_unsigned_to_nat(2u); +x_12 = lean_nat_div(x_10, x_11); +lean_dec(x_10); +lean_inc(x_7); +x_13 = lean_array_get(x_7, x_6, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = l_Lean_Meta_DiscrTree_Key_lt(x_13, x_14); -if (x_15 == 0) -{ -uint8_t x_16; -lean_dec(x_8); -x_16 = l_Lean_Meta_DiscrTree_Key_lt(x_14, x_13); lean_dec(x_13); -lean_dec(x_14); +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +x_16 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_14, x_15); if (x_16 == 0) { -lean_object* x_17; uint8_t x_18; -lean_dec(x_7); -lean_dec(x_6); -x_17 = lean_array_get_size(x_5); -x_18 = lean_nat_dec_lt(x_11, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_array_fget(x_5, x_11); -x_20 = lean_box(0); -x_21 = lean_array_fset(x_5, x_11, x_20); -x_22 = !lean_is_exclusive(x_19); -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; -x_23 = lean_ctor_get(x_19, 1); -x_24 = lean_ctor_get(x_19, 0); -lean_dec(x_24); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_3, x_25); -x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_26, x_23); -lean_dec(x_26); -lean_ctor_set(x_19, 1, x_27); -lean_ctor_set(x_19, 0, x_4); -x_28 = lean_array_fset(x_21, x_11, x_19); -lean_dec(x_11); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_dec(x_19); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_3, x_30); -x_32 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_31, x_29); -lean_dec(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_4); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_array_fset(x_21, x_11, x_33); -lean_dec(x_11); -return x_34; -} -} -} -else -{ -x_8 = x_11; -goto _start; -} -} -else -{ -uint8_t x_36; -lean_dec(x_14); -lean_dec(x_13); -x_36 = lean_nat_dec_eq(x_11, x_7); -if (x_36 == 0) -{ -lean_dec(x_7); -x_7 = x_11; -goto _start; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_3, x_38); -x_40 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_39); -lean_dec(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_nat_add(x_7, x_38); -lean_dec(x_7); -x_43 = l_Array_insertAt_x21___rarg(x_5, x_42, x_41); -lean_dec(x_42); -return x_43; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___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) { -_start: -{ -uint8_t x_7; -x_7 = l_Array_isEmpty___rarg(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_9 = lean_array_get(x_6, x_5, x_8); -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); +uint8_t x_17; lean_dec(x_9); -x_12 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_11); -if (x_12 == 0) -{ -uint8_t x_13; -x_13 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_10); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -lean_dec(x_10); -lean_dec(x_6); -x_14 = lean_array_get_size(x_5); -x_15 = lean_nat_dec_lt(x_8, x_14); +x_17 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_15, x_14); lean_dec(x_14); -if (x_15 == 0) +lean_dec(x_15); +if (x_17 == 0) { -lean_dec(x_4); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_array_fget(x_5, x_8); -x_17 = lean_box(0); -x_18 = lean_array_fset(x_5, x_8, x_17); -x_19 = !lean_is_exclusive(x_16); +lean_object* x_18; uint8_t x_19; +lean_dec(x_8); +lean_dec(x_7); +x_18 = lean_array_get_size(x_6); +x_19 = lean_nat_dec_lt(x_12, x_18); +lean_dec(x_18); 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; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_3, x_22); -x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_23, x_20); -lean_dec(x_23); -lean_ctor_set(x_16, 1, x_24); -lean_ctor_set(x_16, 0, x_4); -x_25 = lean_array_fset(x_18, x_8, x_16); -return x_25; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_3); +return x_6; } 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; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_3, x_27); -x_29 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_28, x_26); -lean_dec(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_array_fset(x_18, x_8, x_30); -return x_31; -} -} +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_array_fget(x_6, x_12); +x_21 = lean_box(0); +x_22 = lean_array_fset(x_6, x_12, x_21); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_20, 1); +x_25 = lean_ctor_get(x_20, 0); +lean_dec(x_25); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_4, x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_27, x_24); +lean_dec(x_27); +lean_ctor_set(x_20, 1, x_28); +lean_ctor_set(x_20, 0, x_5); +x_29 = lean_array_fset(x_22, x_12, x_20); +lean_dec(x_12); +return x_29; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_inc(x_6); -x_32 = l_Array_back___rarg(x_6, x_5); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_4, x_31); +x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_32, x_30); lean_dec(x_32); -x_34 = l_Lean_Meta_DiscrTree_Key_lt(x_33, x_10); -if (x_34 == 0) +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_5); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_array_fset(x_22, x_12, x_34); +lean_dec(x_12); +return x_35; +} +} +} +else { -uint8_t x_35; -x_35 = l_Lean_Meta_DiscrTree_Key_lt(x_10, x_33); -lean_dec(x_33); +x_9 = x_12; +goto _start; +} +} +else +{ +uint8_t x_37; +lean_dec(x_15); +lean_dec(x_14); +x_37 = lean_nat_dec_eq(x_12, x_8); +if (x_37 == 0) +{ +lean_dec(x_8); +x_8 = x_12; +goto _start; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_7); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_4, x_39); +x_41 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_40); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_5); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_nat_add(x_8, x_39); +lean_dec(x_8); +x_44 = l_Array_insertAt_x21___rarg(x_6, x_43, x_42); +lean_dec(x_43); +return x_44; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(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: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_6); +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_unsigned_to_nat(0u); +lean_inc(x_7); +x_10 = lean_array_get(x_7, x_6, x_9); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); lean_dec(x_10); +x_13 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_12); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_12, x_11); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +lean_dec(x_11); +lean_dec(x_7); +x_15 = lean_array_get_size(x_6); +x_16 = lean_nat_dec_lt(x_9, x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_6, x_9); +x_18 = lean_box(0); +x_19 = lean_array_fset(x_6, x_9, x_18); +x_20 = !lean_is_exclusive(x_17); +if (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_ctor_get(x_17, 1); +x_22 = lean_ctor_get(x_17, 0); +lean_dec(x_22); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_4, x_23); +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_24, x_21); +lean_dec(x_24); +lean_ctor_set(x_17, 1, x_25); +lean_ctor_set(x_17, 0, x_5); +x_26 = lean_array_fset(x_19, x_9, x_17); +return x_26; +} +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; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_4, x_28); +x_30 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_29, x_27); +lean_dec(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_array_fset(x_19, x_9, x_31); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_inc(x_7); +x_33 = l_Array_back___rarg(x_7, x_6); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_34, x_11); if (x_35 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -lean_dec(x_6); -x_36 = lean_array_get_size(x_5); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_sub(x_36, x_37); -x_39 = lean_nat_dec_lt(x_38, x_36); -lean_dec(x_36); -if (x_39 == 0) +uint8_t x_36; +x_36 = l_Lean_Meta_DiscrTree_Key_lt___rarg(x_11, x_34); +lean_dec(x_34); +lean_dec(x_11); +if (x_36 == 0) { -lean_dec(x_38); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_7); +x_37 = lean_array_get_size(x_6); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_sub(x_37, x_38); +x_40 = lean_nat_dec_lt(x_39, x_37); +lean_dec(x_37); +if (x_40 == 0) +{ +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +return x_6; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_array_fget(x_6, x_39); +x_42 = lean_box(0); +x_43 = lean_array_fset(x_6, x_39, x_42); +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_41, 1); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = lean_nat_add(x_4, x_38); +x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_47, x_45); +lean_dec(x_47); +lean_ctor_set(x_41, 1, x_48); +lean_ctor_set(x_41, 0, x_5); +x_49 = lean_array_fset(x_43, x_39, x_41); +lean_dec(x_39); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_41, 1); +lean_inc(x_50); +lean_dec(x_41); +x_51 = lean_nat_add(x_4, x_38); +x_52 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_51, x_50); +lean_dec(x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_5); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_array_fset(x_43, x_39, x_53); +lean_dec(x_39); +return x_54; +} +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_array_get_size(x_6); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_sub(x_55, x_56); +lean_dec(x_55); +x_58 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_34); +lean_dec(x_11); +lean_dec(x_7); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_add(x_4, x_59); +x_61 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_60); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_5); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_array_push(x_6, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_add(x_4, x_64); +x_66 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_65); +lean_dec(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_5); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Array_insertAt_x21___rarg(x_6, x_9, x_67); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_7); +x_69 = lean_unsigned_to_nat(1u); +x_70 = lean_nat_add(x_4, x_69); +x_71 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_2, x_3, x_70); +lean_dec(x_70); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_5); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_array_push(x_6, x_72); +return x_73; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_array_get_size(x_2); +x_10 = lean_nat_dec_lt(x_4, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_UnificationHints_add___spec__10(x_7, x_3); +lean_ctor_set(x_5, 0, x_11); return x_5; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_array_fget(x_5, x_38); -x_41 = lean_box(0); -x_42 = lean_array_fset(x_5, x_38, x_41); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_40, 1); -x_45 = lean_ctor_get(x_40, 0); -lean_dec(x_45); -x_46 = lean_nat_add(x_3, x_37); -x_47 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_46, x_44); -lean_dec(x_46); -lean_ctor_set(x_40, 1, x_47); -lean_ctor_set(x_40, 0, x_4); -x_48 = lean_array_fset(x_42, x_38, x_40); -lean_dec(x_38); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -lean_dec(x_40); -x_50 = lean_nat_add(x_3, x_37); -x_51 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_50, x_49); -lean_dec(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_4); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_array_fset(x_42, x_38, x_52); -lean_dec(x_38); -return x_53; -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_array_get_size(x_5); -x_55 = lean_unsigned_to_nat(1u); -x_56 = lean_nat_sub(x_54, x_55); -lean_dec(x_54); -x_57 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_56); -return x_57; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_array_fget(x_2, x_4); +x_13 = l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1; +lean_ctor_set(x_5, 1, x_13); +lean_ctor_set(x_5, 0, x_13); +lean_inc(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_5); +x_15 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_1, x_2, x_3, x_4, x_12, x_8, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_33); -lean_dec(x_10); -lean_dec(x_6); -x_58 = lean_unsigned_to_nat(1u); -x_59 = lean_nat_add(x_3, x_58); -x_60 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_59); -lean_dec(x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_4); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_array_push(x_5, x_61); -return x_62; -} -} +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_19 = lean_array_get_size(x_2); +x_20 = lean_nat_dec_lt(x_4, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_UnificationHints_add___spec__10(x_17, x_3); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_add(x_3, x_63); -x_65 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_64); -lean_dec(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_4); -lean_ctor_set(x_66, 1, x_65); -x_67 = l_Array_insertAt_x21___rarg(x_5, x_8, x_66); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_6); -x_68 = lean_unsigned_to_nat(1u); -x_69 = lean_nat_add(x_3, x_68); -x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_69); -lean_dec(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_4); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_array_push(x_5, x_71); -return x_72; +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_array_fget(x_2, x_4); +x_24 = l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_1, x_2, x_3, x_4, x_23, x_18, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } -static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1() { +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = lean_array_get_size(x_1); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); x_9 = lean_nat_dec_lt(x_3, x_8); lean_dec(x_8); if (x_9 == 0) { -lean_object* x_10; -x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_UnificationHints_add___spec__10(x_6, x_2); -lean_ctor_set(x_4, 0, x_10); -return x_4; -} -else +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_1, x_3); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1; -lean_inc(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_1, x_2, x_3, x_11, x_7, x_13); -lean_ctor_set(x_4, 1, x_14); -return x_4; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_4, 0); -x_16 = lean_ctor_get(x_4, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_4); -x_17 = lean_array_get_size(x_1); -x_18 = lean_nat_dec_lt(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_UnificationHints_add___spec__10(x_15, x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_fget(x_2, x_5); +x_11 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_6, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_3, x_5); +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18(uint8_t x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_8 = lean_usize_land(x_3, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_3, x_6); +x_2 = x_17; +x_3 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +x_20 = lean_box(0); return x_20; } +} +} else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_array_fget(x_1, x_3); -x_22 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); -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 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_1, x_2, x_3, x_21, x_16, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19(x_1, x_21, x_22, lean_box(0), x_23, x_4); +lean_dec(x_22); +lean_dec(x_21); +return x_24; } } } -} -static lean_object* _init_l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1() { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0)); -return x_1; +lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_6 = lean_uint64_to_usize(x_5); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18(x_1, x_4, x_6, x_3); +lean_dec(x_3); +return x_7; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__13(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26(uint8_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_6); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_array_fget(x_3, x_6); +x_11 = lean_array_fget(x_4, x_6); +x_12 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_2, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_6, x_19); +lean_dec(x_6); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_7, x_18, x_2, x_10, x_11); +x_5 = lean_box(0); +x_6 = x_20; +x_7 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_array_push(x_6, x_4); +x_14 = lean_array_push(x_7, x_5); +lean_ctor_set(x_2, 1, x_14); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_array_push(x_7, x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_fget(x_6, x_3); +x_19 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_4, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +lean_dec(x_6); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +lean_dec(x_3); +x_3 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_2, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 0); +lean_dec(x_25); +x_26 = lean_array_fset(x_6, x_3, x_4); +x_27 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_2); +x_28 = lean_array_fset(x_6, x_3, x_4); +x_29 = lean_array_fset(x_7, x_3, x_5); +lean_dec(x_3); +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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_2, 0); +x_9 = 1; +x_10 = 5; +x_11 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_12 = lean_usize_land(x_3, x_11); +x_13 = lean_usize_to_nat(x_12); +x_14 = lean_array_get_size(x_8); +x_15 = lean_nat_dec_lt(x_13, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_2; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_array_fget(x_8, x_13); +x_17 = lean_box(0); +x_18 = lean_array_fset(x_8, x_13, x_17); +switch (lean_obj_tag(x_16)) { +case 0: +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_16); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_20, x_21, x_5, x_6); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_18, x_13, x_24); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_25); +return x_2; +} +else +{ +lean_object* x_26; +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_16, 1, x_6); +lean_ctor_set(x_16, 0, x_5); +x_26 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_26); +return x_2; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_27, x_28, x_5, x_6); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_array_fset(x_18, x_13, x_31); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_32); +return x_2; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_28); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_6); +x_34 = lean_array_fset(x_18, x_13, x_33); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_34); +return x_2; +} +} +} +case 1: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_usize_shift_right(x_3, x_10); +x_38 = lean_usize_add(x_4, x_9); +x_39 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_36, x_37, x_38, x_5, x_6); +lean_ctor_set(x_16, 0, x_39); +x_40 = lean_array_fset(x_18, x_13, x_16); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_40); +return x_2; +} +else +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_16, 0); +lean_inc(x_41); +lean_dec(x_16); +x_42 = lean_usize_shift_right(x_3, x_10); +x_43 = lean_usize_add(x_4, x_9); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_41, x_42, x_43, x_5, x_6); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_array_fset(x_18, x_13, x_45); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_46); +return x_2; +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_array_fset(x_18, x_13, x_47); +lean_dec(x_13); +lean_ctor_set(x_2, 0, x_48); +return x_2; +} +} +} +} +else +{ +lean_object* x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = 1; +x_51 = 5; +x_52 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2; +x_53 = lean_usize_land(x_3, x_52); +x_54 = lean_usize_to_nat(x_53); +x_55 = lean_array_get_size(x_49); +x_56 = lean_nat_dec_lt(x_54, x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_6); +lean_dec(x_5); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_49); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_array_fget(x_49, x_54); +x_59 = lean_box(0); +x_60 = lean_array_fset(x_49, x_54, x_59); +switch (lean_obj_tag(x_58)) { +case 0: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +x_64 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_106____rarg(x_5, x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +x_65 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_61, x_62, x_5, x_6); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_array_fset(x_60, x_54, x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_63; +} +lean_ctor_set(x_69, 0, x_5); +lean_ctor_set(x_69, 1, x_6); +x_70 = lean_array_fset(x_60, x_54, x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; +} +} +case 1: +{ +lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_72 = lean_ctor_get(x_58, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_73 = x_58; +} else { + lean_dec_ref(x_58); + x_73 = lean_box(0); +} +x_74 = lean_usize_shift_right(x_3, x_51); +x_75 = lean_usize_add(x_4, x_50); +x_76 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_72, x_74, x_75, x_5, x_6); +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_array_fset(x_60, x_54, x_77); +lean_dec(x_54); +x_79 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_79, 0, x_78); +return x_79; +} +default: +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_6); +x_81 = lean_array_fset(x_60, x_54, x_80); +lean_dec(x_54); +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +else +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; size_t x_86; uint8_t x_87; +x_84 = lean_unsigned_to_nat(0u); +x_85 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27(x_1, x_2, x_84, x_5, x_6); +x_86 = 7; +x_87 = lean_usize_dec_le(x_86, x_4); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_85); +x_89 = lean_unsigned_to_nat(4u); +x_90 = lean_nat_dec_lt(x_88, x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_85, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 1); +lean_inc(x_92); +lean_dec(x_85); +x_93 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_94 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26(x_1, x_4, x_91, x_92, lean_box(0), x_84, x_93); +lean_dec(x_92); +lean_dec(x_91); +return x_94; +} +else +{ +return x_85; +} +} +else +{ +return x_85; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; uint8_t x_101; +x_95 = lean_ctor_get(x_2, 0); +x_96 = lean_ctor_get(x_2, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_2); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27(x_1, x_97, x_98, x_5, x_6); +x_100 = 7; +x_101 = lean_usize_dec_le(x_100, x_4); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_99); +x_103 = lean_unsigned_to_nat(4u); +x_104 = lean_nat_dec_lt(x_102, x_103); +lean_dec(x_102); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_99, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1; +x_108 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26(x_1, x_4, x_105, x_106, lean_box(0), x_98, x_107); +lean_dec(x_106); +lean_dec(x_105); +return x_108; +} +else +{ +return x_99; +} +} +else +{ +return x_99; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = 1; +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_6, x_9, x_10, x_3, x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_7, x_12); +lean_dec(x_7); +lean_ctor_set(x_2, 1, x_13); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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; lean_object* x_22; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_Lean_Meta_DiscrTree_Key_hash___rarg(x_3); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_1, x_14, x_17, x_18, x_3, x_4); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__28(uint8_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_box(0), x_1); +x_4 = lean_panic_fn(x_3, x_2); +return x_4; } } static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1() { @@ -2245,187 +4071,436 @@ _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_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1; x_2 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(350u); +x_3 = lean_unsigned_to_nat(358u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_4; -x_4 = l_Array_isEmpty___rarg(x_2); -if (x_4 == 0) +uint8_t x_5; +x_5 = l_Array_isEmpty___rarg(x_3); +if (x_5 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_array_get_size(x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_nat_dec_lt(x_6, x_5); -lean_dec(x_5); -if (x_7 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_box(0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_array_get_size(x_3); +x_10 = lean_nat_dec_lt(x_7, x_9); +lean_dec(x_9); +if (x_10 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Meta_DiscrTree_instInhabitedKey; -x_9 = l___private_Init_Util_0__outOfBounds___rarg(x_8); -lean_inc(x_9); -lean_inc(x_1); -x_10 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(x_1, x_9); -if (lean_obj_tag(x_10) == 0) +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Init_Util_0__outOfBounds___rarg(x_8); +lean_inc(x_11); +lean_inc(x_2); +x_12 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(x_1, x_2, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_unsigned_to_nat(1u); -x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_11); -lean_dec(x_2); -x_13 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_1, x_9, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_unsigned_to_nat(1u); +x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_13); +lean_dec(x_3); +x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_1, x_2, x_11, x_14); +return x_15; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_unsigned_to_nat(1u); -x_16 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_2, x_3, x_15, x_14); -lean_dec(x_2); -x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_1, x_9, x_16); -return x_17; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_unsigned_to_nat(1u); +x_18 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_3, x_4, x_17, x_16); +lean_dec(x_3); +x_19 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13(x_1, x_2, x_11, x_18); +return x_19; } } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_array_fget(x_2, x_6); -lean_inc(x_18); -lean_inc(x_1); -x_19 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(x_1, x_18); -if (lean_obj_tag(x_19) == 0) +lean_object* x_20; lean_object* x_21; +lean_dec(x_8); +x_20 = lean_array_fget(x_3, x_7); +lean_inc(x_20); +lean_inc(x_2); +x_21 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17(x_1, x_2, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_unsigned_to_nat(1u); -x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_20); -lean_dec(x_2); -x_22 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_1, x_18, x_21); -return x_22; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_unsigned_to_nat(1u); +x_23 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(x_1, lean_box(0), x_3, x_4, x_22); +lean_dec(x_3); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20(x_1, x_2, x_20, x_23); +return x_24; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_unsigned_to_nat(1u); -x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_2, x_3, x_24, x_23); -lean_dec(x_2); -x_26 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_1, x_18, x_25); -return x_26; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_unsigned_to_nat(1u); +x_27 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_3, x_4, x_26, x_25); +lean_dec(x_3); +x_28 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24(x_1, x_2, x_20, x_27); +return x_28; } } } else { -lean_object* x_27; lean_object* x_28; +lean_object* x_29; lean_object* x_30; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_27 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4; -x_28 = l_panic___at_Lean_Meta_UnificationHints_add___spec__13(x_27); -return x_28; +x_29 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4; +x_30 = l_panic___at_Lean_Meta_UnificationHints_add___spec__28(x_1, x_29); +return x_30; } } } LEAN_EXPORT lean_object* l_Lean_Meta_UnificationHints_add(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); lean_dec(x_2); -x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(x_1, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4___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_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); +x_5 = 1; +x_6 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(x_5, x_1, x_3, x_4); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___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_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(x_1, x_4, x_3); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___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) { -_start: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_7, x_2, x_3, x_4, x_5, x_6); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12___boxed(lean_object* x_1, lean_object* x_2, 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_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_1, x_2, x_3, x_4, x_5, x_6); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -lean_dec(x_1); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3(x_5, x_2, x_6, x_4); +lean_dec(x_4); return x_7; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_1, x_2, x_3, x_4); -lean_dec(x_3); +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__2(x_4, x_2, x_3); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1() { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___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: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__7(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__8(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__5(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_1); +lean_dec(x_1); +x_11 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_UnificationHints_add___spec__12(x_10, 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_11; +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__11(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___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___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___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) { +_start: +{ +uint8_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__15(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__16(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___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) { +_start: +{ +uint8_t x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__14(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__13(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_UnificationHints_add___spec__19(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__18(x_5, x_2, x_6, x_4); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_UnificationHints_add___spec__17(x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__22(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__23(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__21(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__20(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26___boxed(lean_object* x_1, 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; size_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_UnificationHints_add___spec__26(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27___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_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_UnificationHints_add___spec__27(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25___boxed(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__25(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_UnificationHints_add___spec__24(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_UnificationHints_add___spec__28___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_panic___at_Lean_Meta_UnificationHints_add___spec__28(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1(x_5, x_2, x_3, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1() { _start: { lean_object* x_1; @@ -2433,7 +4508,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2() { _start: { lean_object* x_1; @@ -2441,7 +4516,7 @@ x_1 = lean_mk_string_from_bytes("Meta", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3() { _start: { lean_object* x_1; @@ -2449,18 +4524,18 @@ x_1 = lean_mk_string_from_bytes("unificationHintExtension", 24); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5() { _start: { lean_object* x_1; @@ -2468,7 +4543,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_UnificationHints_add), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__6() { _start: { lean_object* x_1; @@ -2476,14 +4551,14 @@ x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____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_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5; x_3 = l_Lean_Meta_UnificationHints_discrTree___default___closed__1; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____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); @@ -2492,11 +4567,11 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__7; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__7; x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); return x_3; } @@ -3947,7 +6022,7 @@ return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; x_24 = lean_ctor_get(x_21, 0); lean_inc(x_24); lean_dec(x_21); @@ -3956,95 +6031,96 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); lean_dec(x_25); +x_27 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_27 = l_Lean_Meta_DiscrTree_mkPath(x_26, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_27) == 0) +x_28 = l_Lean_Meta_DiscrTree_mkPath(x_27, x_26, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_28) == 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_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -lean_dec(x_27); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_30 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint(x_24, x_3, x_4, x_5, x_6, x_29); -if (lean_obj_tag(x_30) == 0) +x_31 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint(x_24, x_3, x_4, x_5, x_6, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_1); -x_33 = l_Lean_Meta_addUnificationHint___lambda__1___closed__3; -x_34 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1(x_33, x_32, x_2, x_3, x_4, x_5, x_6, x_31); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_29); +lean_ctor_set(x_33, 1, x_1); +x_34 = l_Lean_Meta_addUnificationHint___lambda__1___closed__3; +x_35 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1(x_34, x_33, x_2, x_3, x_4, x_5, x_6, x_32); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -return x_34; +return x_35; } else { -uint8_t x_35; -lean_dec(x_28); +uint8_t x_36; +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) { -return x_30; +return x_31; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_30); -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_31); +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_24); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_27); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_28); +if (x_40 == 0) { -return x_27; +return x_28; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_27, 0); -x_41 = lean_ctor_get(x_27, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_28, 0); +x_42 = lean_ctor_get(x_28, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_27); -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_28); +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; } } } @@ -4052,29 +6128,29 @@ return x_42; } else { -uint8_t x_43; +uint8_t x_44; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_8); -if (x_43 == 0) +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) { return x_8; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_8, 0); -x_45 = lean_ctor_get(x_8, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_8, 0); +x_46 = lean_ctor_get(x_8, 1); +lean_inc(x_46); lean_inc(x_45); -lean_inc(x_44); lean_dec(x_8); -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; +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; } } } @@ -4124,7 +6200,7 @@ x_9 = l_Lean_Meta_addUnificationHint(x_1, x_8, x_3, x_4, x_5, x_6, x_7); return x_9; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1() { _start: { uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; @@ -4150,7 +6226,7 @@ lean_ctor_set_uint8(x_5, 13, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4162,7 +6238,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -4171,23 +6247,23 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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_UnificationHint___hyg_935____lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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_UnificationHint___hyg_935____lambda__1___closed__4; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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); @@ -4198,25 +6274,25 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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_UnificationHint___hyg_935____lambda__1___closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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_UnificationHint___hyg_935____lambda__1___closed__1; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6; x_4 = l_Lean_Meta_instInhabitedUnificationHintEntry___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 6, 0); @@ -4229,7 +6305,7 @@ lean_ctor_set(x_6, 5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4241,7 +6317,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4253,13 +6329,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___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_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__8; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9; x_4 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__1; x_5 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_5, 0, x_1); @@ -4273,14 +6349,14 @@ lean_ctor_set(x_5, 7, x_3); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11() { _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_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__10; x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationHint___spec__1___closed__10; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_3); @@ -4289,7 +6365,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____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) { _start: { lean_object* x_7; @@ -4306,14 +6382,14 @@ 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_935____lambda__1___closed__11; +x_11 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11; x_12 = lean_st_mk_ref(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__7; +x_15 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__7; lean_inc(x_5); lean_inc(x_13); x_16 = l_Lean_Meta_addUnificationHint(x_1, x_3, x_15, x_13, x_4, x_5, x_14); @@ -4405,7 +6481,7 @@ return x_34; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4413,45 +6489,45 @@ x_1 = lean_mk_string_from_bytes("attribute cannot be erased", 26); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2; +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___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_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3() { _start: { lean_object* x_1; @@ -4459,17 +6535,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5() { _start: { lean_object* x_1; @@ -4477,37 +6553,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9() { _start: { lean_object* x_1; @@ -4515,17 +6591,17 @@ x_1 = lean_mk_string_from_bytes("UnificationHint", 15); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11() { _start: { lean_object* x_1; @@ -4533,27 +6609,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12; -x_2 = lean_unsigned_to_nat(935u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12; +x_2 = lean_unsigned_to_nat(956u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14() { _start: { lean_object* x_1; @@ -4561,17 +6637,17 @@ x_1 = lean_mk_string_from_bytes("unification_hint", 16); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16() { _start: { lean_object* x_1; @@ -4579,13 +6655,13 @@ x_1 = lean_mk_string_from_bytes("unification hint", 16); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -4595,29 +6671,29 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4625,30 +6701,30 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -8299,7 +10375,7 @@ static lean_object* _init_l_Lean_Meta_tryUnificationHints_tryCandidate___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2; x_2 = l_Lean_Meta_tryUnificationHints_tryCandidate___closed__1; x_3 = l_Lean_Meta_tryUnificationHints_tryCandidate___closed__2; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -8583,7 +10659,7 @@ return x_1; LEAN_EXPORT 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_16; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; x_9 = lean_st_ref_get(x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -8597,138 +10673,139 @@ x_13 = l_Lean_Meta_instInhabitedUnificationHints; x_14 = l_Lean_Meta_addUnificationHint___lambda__1___closed__3; x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, x_12); lean_dec(x_12); +x_16 = 1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_16 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_15, x_1, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_16) == 0) +x_17 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_16, x_15, x_1, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_17) == 0) { -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); -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_17, 0); 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; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_array_get_size(x_18); +x_21 = lean_usize_of_nat(x_20); +lean_dec(x_20); +x_22 = 0; +x_23 = 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_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) +x_24 = l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___spec__1(x_1, x_2, x_23, x_18, x_21, x_22, x_23, x_4, x_5, x_6, x_7, x_19); +lean_dec(x_18); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); +lean_object* x_25; lean_object* x_26; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -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); +x_26 = lean_ctor_get(x_25, 0); 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; +lean_dec(x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = l_Lean_Meta_tryUnificationHints___lambda__2___closed__2; +x_29 = lean_box(0); +x_30 = lean_apply_6(x_28, x_29, x_4, x_5, x_6, x_7, x_27); +return x_30; } else { -uint8_t x_30; +uint8_t x_31; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_30 = !lean_is_exclusive(x_23); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_24); +if (x_31 == 0) { -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_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_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_24, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_26, 0); lean_inc(x_33); -lean_dec(x_23); -x_34 = lean_ctor_get(x_25, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_33); +return x_24; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_24, 1); 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; +lean_dec(x_24); +x_35 = lean_ctor_get(x_26, 0); +lean_inc(x_35); +lean_dec(x_26); +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 { -uint8_t x_36; +uint8_t x_37; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_36 = !lean_is_exclusive(x_23); -if (x_36 == 0) +x_37 = !lean_is_exclusive(x_24); +if (x_37 == 0) { -return x_23; +return x_24; } else { -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_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_24, 0); +x_39 = lean_ctor_get(x_24, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); -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; +lean_dec(x_24); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_40; +uint8_t x_41; 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_40 = !lean_is_exclusive(x_16); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_17); +if (x_41 == 0) { -return x_16; +return x_17; } 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_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_17, 0); +x_43 = lean_ctor_get(x_17, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -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; +lean_dec(x_17); +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; } } } @@ -8890,23 +10967,23 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12; -x_2 = lean_unsigned_to_nat(2702u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12; +x_2 = lean_unsigned_to_nat(2723u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Meta_tryUnificationHints_tryCandidate___closed__3; x_3 = 0; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -8952,6 +11029,10 @@ l_Lean_Meta_instInhabitedUnificationHints___closed__2 = _init_l_Lean_Meta_instIn lean_mark_persistent(l_Lean_Meta_instInhabitedUnificationHints___closed__2); l_Lean_Meta_instInhabitedUnificationHints___closed__3 = _init_l_Lean_Meta_instInhabitedUnificationHints___closed__3(); lean_mark_persistent(l_Lean_Meta_instInhabitedUnificationHints___closed__3); +l_Lean_Meta_instInhabitedUnificationHints___closed__4 = _init_l_Lean_Meta_instInhabitedUnificationHints___closed__4(); +lean_mark_persistent(l_Lean_Meta_instInhabitedUnificationHints___closed__4); +l_Lean_Meta_instInhabitedUnificationHints___closed__5 = _init_l_Lean_Meta_instInhabitedUnificationHints___closed__5(); +lean_mark_persistent(l_Lean_Meta_instInhabitedUnificationHints___closed__5); l_Lean_Meta_instInhabitedUnificationHints = _init_l_Lean_Meta_instInhabitedUnificationHints(); lean_mark_persistent(l_Lean_Meta_instInhabitedUnificationHints); l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__1 = _init_l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__1(); @@ -9008,16 +11089,10 @@ l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___ lean_mark_persistent(l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__7); l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1 = _init_l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__1); -l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2 = _init_l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnificationHints___spec__1___closed__2); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__1(); l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_UnificationHints_add___spec__3___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1(); lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_UnificationHints_add___spec__6___closed__1); -l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__9___closed__1); -l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1 = _init_l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_UnificationHints_add___spec__13___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__1); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__2 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__2(); @@ -9026,21 +11101,21 @@ l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1__ lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__3); l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176____closed__7); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_176_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197____closed__7); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_197_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_unificationHintExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_unificationHintExtension); @@ -9099,73 +11174,73 @@ l_Lean_Meta_addUnificationHint___lambda__1___closed__2 = _init_l_Lean_Meta_addUn lean_mark_persistent(l_Lean_Meta_addUnificationHint___lambda__1___closed__2); l_Lean_Meta_addUnificationHint___lambda__1___closed__3 = _init_l_Lean_Meta_addUnificationHint___lambda__1___closed__3(); lean_mark_persistent(l_Lean_Meta_addUnificationHint___lambda__1___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__1___closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____lambda__2___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__12); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__13); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__14); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__15); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__16); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__17); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__18); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__19); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935____closed__20); -res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_935_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__1___closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____lambda__2___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__12); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__13); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__14); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__15); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__16); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__17); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__18); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__19); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956____closed__20); +res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_956_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_List_forIn_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__2___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__2___closed__1(); @@ -9206,9 +11281,9 @@ l_Lean_Meta_tryUnificationHints___lambda__2___closed__1 = _init_l_Lean_Meta_tryU lean_mark_persistent(l_Lean_Meta_tryUnificationHints___lambda__2___closed__1); l_Lean_Meta_tryUnificationHints___lambda__2___closed__2 = _init_l_Lean_Meta_tryUnificationHints___lambda__2___closed__2(); lean_mark_persistent(l_Lean_Meta_tryUnificationHints___lambda__2___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702____closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2702_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723____closed__1); +res = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_2723_(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/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 12259c0526..c2f7d9340f 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -19,7 +19,7 @@ static lean_object* l_Lean_Meta_reduceNative_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_reduceBoolNativeUnsafe___spec__3(lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_reduceBoolNativeUnsafe___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__2; 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_Expr_mvarId_x21(lean_object*); @@ -39,7 +39,6 @@ uint8_t lean_is_instance(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenStructure___spec__1___closed__1; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__16; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__3; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cache___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,12 +60,12 @@ extern lean_object* l_Lean_noConfusionExt; lean_object* l_Nat_beq___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfMatcher___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_smartUnfoldingReduce_x3f_go___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12; lean_object* l___private_Init_Util_0__outOfBounds___rarg(lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_unfoldProjInstWhenIntances_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceQuotRec___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_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenK___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -91,6 +90,7 @@ lean_object* l_Lean_isReducible___at___private_Lean_Meta_GetConst_0__Lean_Meta_c uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9; static lean_object* l_Lean_Meta_reduceRecMatcher_x3f___closed__2; LEAN_EXPORT uint8_t l___private_Lean_Meta_WHNF_0__Lean_Meta_getRecRuleFor___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_getStuckMVar_x3f___spec__1___closed__1; @@ -98,7 +98,6 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__13(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__5; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3; static lean_object* l_Lean_Meta_markSmartUnfoldingMatchAlt___closed__1; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -119,10 +118,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__7; LEAN_EXPORT 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_EXPORT 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*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_whnfUntil___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingMatch_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -140,6 +139,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3 static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingReduce_x3f_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_reduceBinNatOp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8; extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Lean_Meta_reduceBinNatOp___lambda__2___boxed(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*); @@ -147,16 +147,16 @@ static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__13; lean_object* l_Lean_Environment_getProjectionStructureName_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___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_Meta_canUnfoldAtMatcher___closed__34; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenStructure___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkProjFn(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*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingSuffix; LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__33; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__12; lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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_canUnfoldAtMatcher___closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_project_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); @@ -165,7 +165,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__7; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__1; lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__17(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*); @@ -183,6 +183,7 @@ lean_object* l_Lean_Expr_mvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfHeadPred___at_Lean_Meta_whnfUntil___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_inferTypeImp___spec__1(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_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_smartUnfoldingReduce_x3f_go___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -191,6 +192,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_getRecRuleFor__ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_reduceBoolNativeUnsafe___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_useWHNFCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_markSmartUnfoldingMatch___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_reduceRecMatcher_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___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_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; @@ -205,7 +207,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__22(lean_object*, static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__28; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__14; lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_markSmartUnfoldingMatch(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition___at_Lean_Meta_unfoldDefinition_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__20; @@ -249,9 +250,10 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3 LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenStructure___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*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__8; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__6; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__19; -LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Std_Format_initFn____x40_Lean_Data_Format___hyg_95____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__6; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__30; @@ -266,14 +268,14 @@ lean_object* l_Nat_mod___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_unfoldDefinition_x3f___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ConstantInfo_hasValue(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureInfo_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__3; static lean_object* l_Lean_Meta_reduceBinNatOp___closed__7; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__22; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_reduceProjOf_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -282,7 +284,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_WHNF_0__Lean extern lean_object* l_Lean_instInhabitedExpr; LEAN_EXPORT lean_object* l_Lean_Meta_reduceBinNatOp___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_instantiateValueLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___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_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_smartUnfoldingSuffix___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -299,9 +301,10 @@ lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_obj extern lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceQuotRec___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_Lean_Meta_canUnfoldAtMatcher___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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_Lean_Meta_reduceNat_x3f___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingReduce_x3f_goMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_reduceBoolNativeUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition(lean_object*); @@ -314,13 +317,13 @@ static lean_object* l_Lean_Meta_reduceNative_x3f___closed__12; uint8_t l_Lean_Expr_isLambda(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingReduce_x3f_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_toCtorIfLit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__5___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_WHNF___hyg_36____closed__5; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__39; uint8_t l_Lean_Meta_ParamInfo_isExplicit(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__17; static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__35; lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -328,7 +331,8 @@ LEAN_EXPORT lean_object* l_Lean_evalConstCheck___at_Lean_Meta_reduceBoolNativeUn extern lean_object* l_Lean_projectionFnInfoExt; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__9; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674_(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -339,7 +343,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__11(lean_object*, lean_object* l_Lean_RecursorVal_getInduct(lean_object*); lean_object* l_Lean_Meta_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_smartUnfoldingReduce_x3f_go___lambda__2___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12; static lean_object* l_Lean_Meta_reduceBinNatOp___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_whnfHeadPred(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_unfoldDefinition___closed__2; @@ -371,8 +374,7 @@ lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t, uint8_t); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__23; extern lean_object* l_Lean_Meta_instMonadMCtxMetaM; LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4___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_WHNF___hyg_10674____closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4___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_WHNF_0__Lean_Meta_cache___closed__1; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -382,7 +384,6 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed_ lean_object* l_panic___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_unfoldDefinition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_is_aux_recursor(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10; uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_getRecRuleFor___lambda__1___boxed(lean_object*, lean_object*); @@ -404,12 +405,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__3(lean_object*, LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_reduceMatcher_x3f___lambda__1___boxed(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_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_reduceBinNatOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_unfoldDefinition_x3f___spec__3___lambda__1(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*); LEAN_EXPORT lean_object* l_Lean_Meta_canUnfoldAtMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(lean_object*, uint8_t, uint8_t, 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_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); @@ -426,6 +427,7 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_getFirstCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_structural_rec_arg_pos(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_whnfEasyCases___closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10; static lean_object* l_Lean_Meta_reduceNative_x3f___closed__9; LEAN_EXPORT 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*); @@ -434,7 +436,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_reduceRecMatcher_x3f___lambda__1(lean_objec lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__26; lean_object* l___private_Lean_Expr_0__Lean_mkAppRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11; lean_object* lean_expr_abstract(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_reduceNat_x3f___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -442,6 +443,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__11___boxed(lean_ LEAN_EXPORT lean_object* l_Lean_Meta_markSmartUnfoldingMatchAlt(lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_reduceBinNatOp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_getStuckMVar_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -454,13 +456,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_reduceNative_x3f(lean_object*, lean_object* lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__4; lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkProjFn___boxed(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__8; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenK___spec__1(lean_object*); static lean_object* l_Lean_Meta_reduceRecMatcher_x3f___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9; lean_object* l_Lean_mkNatLit(lean_object*); static lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenStructure___spec__1___closed__4; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -469,12 +470,12 @@ lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__ LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_whnfCore_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__15; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__18; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__11; static lean_object* l_Lean_Meta_isAuxDef___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getStuckMVar_x3f___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -482,7 +483,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_isAuxDef___boxed(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_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceBoolNativeUnsafe___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -493,12 +494,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_W static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__36; lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSmartUnfoldingNameFor(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__3; uint8_t l_Lean_Expr_hasFVar(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__5; LEAN_EXPORT uint8_t l_Lean_Meta_hasSmartUnfoldingDecl(lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*); @@ -515,7 +515,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_reduceRecMatcher_x3f___lambda__2___boxed(le LEAN_EXPORT lean_object* l_Lean_Meta_getStuckMVar_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_ble___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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_EXPORT lean_object* l_Lean_Meta_smartUnfoldingReduce_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getExprMVarAssignment_x3f___rarg(lean_object*, lean_object*, lean_object*); @@ -18914,509 +18914,494 @@ x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(uint8_t 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* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(uint8_t x_1, uint8_t 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, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = l_Lean_ConstantInfo_levelParams(x_3); -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_List_lengthTRAux___rarg(x_12, x_13); -lean_dec(x_12); -x_15 = l_List_lengthTRAux___rarg(x_4, x_13); -x_16 = lean_nat_dec_eq(x_14, x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = l_Lean_ConstantInfo_levelParams(x_4); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_List_lengthTRAux___rarg(x_13, x_14); +lean_dec(x_13); +x_16 = l_List_lengthTRAux___rarg(x_5, x_14); +x_17 = lean_nat_dec_eq(x_15, x_16); +lean_dec(x_16); lean_dec(x_15); -lean_dec(x_14); -if (x_16 == 0) -{ -lean_object* x_17; -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); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_11); -return x_17; -} -else +if (x_17 == 0) { lean_object* x_18; -lean_dec(x_2); -lean_inc(x_10); -lean_inc(x_9); -x_18 = l_Lean_Core_instantiateValueLevelParams(x_3, x_4, x_9, x_10, x_11); -lean_dec(x_3); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -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 = 0; -x_22 = l_Lean_Expr_betaRev(x_19, x_5, x_21, x_6); -lean_dec(x_5); -x_23 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_22, x_7, x_8, x_9, x_10, x_20); -return x_23; -} -else -{ -uint8_t x_24; +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_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) -{ +lean_dec(x_4); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_3); +lean_ctor_set(x_18, 1, x_12); 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; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__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, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_dec(x_3); -x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_2, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__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* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -x_10 = l_Lean_Expr_getAppFn(x_1); -lean_dec(x_1); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_10); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_10, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t 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); -x_14 = l_Lean_Expr_isLambda(x_12); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_inc(x_3); -lean_inc(x_12); -x_15 = l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfDelayedAssigned_x3f(x_12, x_3, x_5, x_6, x_7, x_8, 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); -if (lean_obj_tag(x_16) == 0) -{ -uint8_t x_96; -x_96 = lean_expr_eqv(x_10, x_12); -lean_dec(x_10); -if (x_96 == 0) -{ -lean_object* x_97; -x_97 = l_Lean_Expr_updateFn(x_3, x_12); -x_18 = x_97; -goto block_95; -} -else -{ -x_18 = x_3; -goto block_95; -} -} -else -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_3); -x_98 = lean_ctor_get(x_16, 0); -lean_inc(x_98); -lean_dec(x_16); -x_99 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_98, x_5, x_6, x_7, x_8, x_17); -return x_99; -} -block_95: -{ lean_object* x_19; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_18); -x_19 = l_Lean_Meta_reduceMatcher_x3f(x_18, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_3); +lean_inc(x_11); +lean_inc(x_10); +x_19 = l_Lean_Core_instantiateValueLevelParams(x_4, x_5, x_10, x_11, x_12); +lean_dec(x_4); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -switch (lean_obj_tag(x_20)) { -case 0: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_18); -lean_dec(x_12); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); +x_22 = 0; +x_23 = l_Lean_Expr_betaRev(x_20, x_6, x_22, x_7); +lean_dec(x_6); +x_24 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_2, x_23, x_8, x_9, x_10, x_11, x_21); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1(uint8_t 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) { +_start: +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_11 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_11); +x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_3, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t 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); +x_15 = l_Lean_Expr_isLambda(x_13); +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_inc(x_4); +lean_inc(x_13); +x_16 = l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfDelayedAssigned_x3f(x_13, x_4, x_6, x_7, x_8, x_9, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_19 = x_16; +} else { + lean_dec_ref(x_16); + x_19 = lean_box(0); +} +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_101; +x_101 = lean_expr_eqv(x_11, x_13); +lean_dec(x_11); +if (x_101 == 0) +{ +lean_object* x_102; +x_102 = l_Lean_Expr_updateFn(x_4, x_13); +x_20 = x_102; +goto block_100; +} +else +{ +x_20 = x_4; +goto block_100; +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_19); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_4); +x_103 = lean_ctor_get(x_17, 0); +lean_inc(x_103); +lean_dec(x_17); +x_104 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_3, x_103, x_6, x_7, x_8, x_9, x_18); +return x_104; +} +block_100: +{ +if (x_3 == 0) +{ +lean_object* x_21; +lean_dec(x_19); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_20); +x_21 = l_Lean_Meta_reduceMatcher_x3f(x_20, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); +switch (lean_obj_tag(x_22)) { +case 0: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_dec(x_20); -x_23 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_22, x_5, x_6, x_7, x_8, x_21); -return x_23; +lean_dec(x_13); +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 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_3, x_24, x_6, x_7, x_8, x_9, x_23); +return x_25; } case 2: { -if (lean_obj_tag(x_12) == 4) +if (lean_obj_tag(x_13) == 4) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_ctor_get(x_12, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_12, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_21, 1); lean_inc(x_26); -lean_dec(x_12); -lean_inc(x_18); -x_27 = lean_alloc_closure((void*)(l_Lean_Meta_getStuckMVar_x3f___lambda__1___boxed), 7, 1); -lean_closure_set(x_27, 0, x_18); +lean_dec(x_21); +x_27 = lean_ctor_get(x_13, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_13, 1); +lean_inc(x_28); +lean_dec(x_13); +lean_inc(x_20); +x_29 = lean_alloc_closure((void*)(l_Lean_Meta_getStuckMVar_x3f___lambda__1___boxed), 7, 1); +lean_closure_set(x_29, 0, x_20); +lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -x_28 = l_Lean_Meta_getConst_x3f(x_25, x_5, x_6, x_7, x_8, x_24); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -if (lean_obj_tag(x_29) == 0) -{ -uint8_t x_30; -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_30 = !lean_is_exclusive(x_28); -if (x_30 == 0) +lean_inc(x_6); +x_30 = l_Lean_Meta_getConst_x3f(x_27, x_6, x_7, x_8, x_9, x_26); +if (lean_obj_tag(x_30) == 0) { lean_object* x_31; -x_31 = lean_ctor_get(x_28, 0); -lean_dec(x_31); -lean_ctor_set(x_28, 0, x_18); -return x_28; -} -else +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_28, 1); -lean_inc(x_32); -lean_dec(x_28); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_18); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -else -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_29, 0); -lean_inc(x_34); +uint8_t x_32; lean_dec(x_29); -switch (lean_obj_tag(x_34)) { -case 1: -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -lean_dec(x_27); -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); lean_dec(x_28); -x_36 = l_Lean_ConstantInfo_name(x_34); -x_37 = l_Lean_Meta_isAuxDef(x_36, x_5, x_6, x_7, x_8, x_35); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) -{ -uint8_t x_40; -lean_dec(x_34); -lean_dec(x_26); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_40 = !lean_is_exclusive(x_37); -if (x_40 == 0) +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) { -lean_object* x_41; -x_41 = lean_ctor_get(x_37, 0); -lean_dec(x_41); -lean_ctor_set(x_37, 0, x_18); -return x_37; +lean_object* x_33; +x_33 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +lean_ctor_set(x_30, 0, x_20); +return x_30; } else { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -lean_dec(x_37); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_18); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } 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; lean_object* x_50; -x_44 = lean_ctor_get(x_37, 1); +lean_object* x_36; +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +lean_dec(x_31); +switch (lean_obj_tag(x_36)) { +case 1: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_dec(x_29); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_dec(x_30); +x_38 = l_Lean_ConstantInfo_name(x_36); +x_39 = l_Lean_Meta_isAuxDef(x_38, x_6, x_7, x_8, x_9, x_37); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) +{ +uint8_t x_42; +lean_dec(x_36); +lean_dec(x_28); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_39, 0); +lean_dec(x_43); +lean_ctor_set(x_39, 0, x_20); +return x_39; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_39, 1); lean_inc(x_44); -lean_dec(x_37); -x_45 = lean_unsigned_to_nat(0u); -x_46 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_18, x_45); -x_47 = lean_mk_empty_array_with_capacity(x_46); -lean_dec(x_46); -lean_inc(x_18); -x_48 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_18, x_47); -x_49 = 0; -x_50 = l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(x_2, x_18, x_34, x_26, x_48, x_49, x_5, x_6, x_7, x_8, x_44); -return x_50; +lean_dec(x_39); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_20); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_unsigned_to_nat(0u); +x_48 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_20, x_47); +x_49 = lean_mk_empty_array_with_capacity(x_48); +lean_dec(x_48); +lean_inc(x_20); +x_50 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_20, x_49); +x_51 = 0; +x_52 = l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(x_2, x_3, x_20, x_36, x_28, x_50, x_51, x_6, x_7, x_8, x_9, x_46); +return x_52; } } case 4: { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_51 = lean_ctor_get(x_28, 1); -lean_inc(x_51); -lean_dec(x_28); -x_52 = lean_ctor_get(x_34, 0); -lean_inc(x_52); -lean_dec(x_34); -x_53 = lean_unsigned_to_nat(0u); -x_54 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_18, x_53); -x_55 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +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; +x_53 = lean_ctor_get(x_30, 1); +lean_inc(x_53); +lean_dec(x_30); +x_54 = lean_ctor_get(x_36, 0); lean_inc(x_54); -x_56 = lean_mk_array(x_54, x_55); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_sub(x_54, x_57); +lean_dec(x_36); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_20, x_55); +x_57 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +lean_inc(x_56); +x_58 = lean_mk_array(x_56, x_57); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_sub(x_56, x_59); +lean_dec(x_56); +x_61 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_20, x_58, x_60); +x_62 = lean_box(x_2); +x_63 = lean_box(x_3); +x_64 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 8, 2); +lean_closure_set(x_64, 0, x_62); +lean_closure_set(x_64, 1, x_63); +x_65 = l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceQuotRec___rarg(x_54, x_28, x_61, x_29, x_64, x_6, x_7, x_8, x_9, x_53); +lean_dec(x_61); +lean_dec(x_28); lean_dec(x_54); -x_59 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_18, x_56, x_58); -x_60 = lean_box(x_2); -x_61 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 7, 1); -lean_closure_set(x_61, 0, x_60); -x_62 = l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceQuotRec___rarg(x_52, x_26, x_59, x_27, x_61, x_5, x_6, x_7, x_8, x_51); -lean_dec(x_59); -lean_dec(x_26); -lean_dec(x_52); -return x_62; +return x_65; } case 7: { -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_63 = lean_ctor_get(x_28, 1); -lean_inc(x_63); -lean_dec(x_28); -x_64 = lean_ctor_get(x_34, 0); -lean_inc(x_64); -lean_dec(x_34); -x_65 = lean_unsigned_to_nat(0u); -x_66 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_18, x_65); -x_67 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +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; +x_66 = lean_ctor_get(x_30, 1); lean_inc(x_66); -x_68 = lean_mk_array(x_66, x_67); -x_69 = lean_unsigned_to_nat(1u); -x_70 = lean_nat_sub(x_66, x_69); -lean_dec(x_66); -x_71 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_18, x_68, x_70); -x_72 = lean_box(x_2); -x_73 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 7, 1); -lean_closure_set(x_73, 0, x_72); -x_74 = l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg(x_64, x_26, x_71, x_27, x_73, x_5, x_6, x_7, x_8, x_63); -return x_74; +lean_dec(x_30); +x_67 = lean_ctor_get(x_36, 0); +lean_inc(x_67); +lean_dec(x_36); +x_68 = lean_unsigned_to_nat(0u); +x_69 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_20, x_68); +x_70 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +lean_inc(x_69); +x_71 = lean_mk_array(x_69, x_70); +x_72 = lean_unsigned_to_nat(1u); +x_73 = lean_nat_sub(x_69, x_72); +lean_dec(x_69); +x_74 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_20, x_71, x_73); +x_75 = lean_box(x_2); +x_76 = lean_box(x_3); +x_77 = lean_alloc_closure((void*)(l_Lean_Meta_whnfCore_go___boxed), 8, 2); +lean_closure_set(x_77, 0, x_75); +lean_closure_set(x_77, 1, x_76); +x_78 = l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg(x_67, x_28, x_74, x_29, x_77, x_6, x_7, x_8, x_9, x_66); +return x_78; } default: { -uint8_t x_75; -lean_dec(x_34); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_75 = !lean_is_exclusive(x_28); -if (x_75 == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_28, 0); -lean_dec(x_76); -lean_ctor_set(x_28, 0, x_18); -return x_28; -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_28, 1); -lean_inc(x_77); -lean_dec(x_28); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_18); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -} -} -} -else -{ uint8_t x_79; -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_18); +lean_dec(x_36); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_79 = !lean_is_exclusive(x_28); +x_79 = !lean_is_exclusive(x_30); if (x_79 == 0) { -return x_28; +lean_object* x_80; +x_80 = lean_ctor_get(x_30, 0); +lean_dec(x_80); +lean_ctor_set(x_30, 0, x_20); +return x_30; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_28, 0); -x_81 = lean_ctor_get(x_28, 1); +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_30, 1); lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_28); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); +lean_dec(x_30); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_20); lean_ctor_set(x_82, 1, x_81); return x_82; } } } +} +} else { uint8_t x_83; -lean_dec(x_12); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_20); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_83 = !lean_is_exclusive(x_19); +x_83 = !lean_is_exclusive(x_30); if (x_83 == 0) { -lean_object* x_84; -x_84 = lean_ctor_get(x_19, 0); -lean_dec(x_84); -lean_ctor_set(x_19, 0, x_18); -return x_19; +return x_30; } else { -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_19, 1); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_30, 0); +x_85 = lean_ctor_get(x_30, 1); lean_inc(x_85); -lean_dec(x_19); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_18); +lean_inc(x_84); +lean_dec(x_30); +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; } } } -default: +else { uint8_t x_87; -lean_dec(x_20); -lean_dec(x_12); +lean_dec(x_13); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_87 = !lean_is_exclusive(x_19); +x_87 = !lean_is_exclusive(x_21); if (x_87 == 0) { lean_object* x_88; -x_88 = lean_ctor_get(x_19, 0); +x_88 = lean_ctor_get(x_21, 0); lean_dec(x_88); -lean_ctor_set(x_19, 0, x_18); -return x_19; +lean_ctor_set(x_21, 0, x_20); +return x_21; } else { lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_19, 1); +x_89 = lean_ctor_get(x_21, 1); lean_inc(x_89); -lean_dec(x_19); +lean_dec(x_21); x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_18); +lean_ctor_set(x_90, 0, x_20); lean_ctor_set(x_90, 1, x_89); return x_90; } } } -} -else +default: { uint8_t x_91; -lean_dec(x_18); -lean_dec(x_12); +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_91 = !lean_is_exclusive(x_19); +x_91 = !lean_is_exclusive(x_21); if (x_91 == 0) { -return x_19; +lean_object* x_92; +x_92 = lean_ctor_get(x_21, 0); +lean_dec(x_92); +lean_ctor_set(x_21, 0, x_20); +return x_21; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_19, 0); -x_93 = lean_ctor_get(x_19, 1); +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_21, 1); lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_19); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); +lean_dec(x_21); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_20); lean_ctor_set(x_94, 1, x_93); return x_94; } @@ -19425,268 +19410,125 @@ return x_94; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_10); -x_100 = lean_unsigned_to_nat(0u); -x_101 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_3, x_100); -x_102 = lean_mk_empty_array_with_capacity(x_101); -lean_dec(x_101); -x_103 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_3, x_102); -x_104 = 0; -x_105 = l_Lean_Expr_betaRev(x_12, x_103, x_104, x_104); -lean_dec(x_103); -x_106 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_105, x_5, x_6, x_7, x_8, x_13); -return x_106; -} -} -else -{ -uint8_t x_107; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_107 = !lean_is_exclusive(x_11); -if (x_107 == 0) -{ -return x_11; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_11, 0); -x_109 = lean_ctor_get(x_11, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_11); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -x_10 = lean_expr_instantiate1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_3, x_10, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = l___private_Lean_Meta_WHNF_0__Lean_Meta_projectCore_x3f(x_4, x_1, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -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_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_10, 0); +uint8_t x_95; +lean_dec(x_20); lean_dec(x_13); -lean_ctor_set(x_10, 0, x_2); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_2); -x_16 = lean_ctor_get(x_10, 1); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_ctor_get(x_11, 0); -lean_inc(x_17); -lean_dec(x_11); -x_18 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_3, x_17, x_5, x_6, x_7, x_8, x_16); -return x_18; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__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) { -_start: -{ -lean_dec(x_5); -if (x_3 == 0) -{ -uint8_t x_11; lean_object* x_12; -x_11 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_11, x_4, x_6, x_7, x_8, x_9, x_10); -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); -x_15 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_1, x_2, x_3, x_13, x_6, x_7, x_8, x_9, x_14); -return x_15; -} -else -{ -uint8_t x_16; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) +x_95 = !lean_is_exclusive(x_21); +if (x_95 == 0) +{ +return x_21; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_21, 0); +x_97 = lean_ctor_get(x_21, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_21); +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; +} +} +} +else +{ +lean_object* x_99; +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_19)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_19; +} +lean_ctor_set(x_99, 0, x_20); +lean_ctor_set(x_99, 1, x_18); +return x_99; +} +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_11); +x_105 = lean_unsigned_to_nat(0u); +x_106 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_4, x_105); +x_107 = lean_mk_empty_array_with_capacity(x_106); +lean_dec(x_106); +x_108 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_4, x_107); +x_109 = 0; +x_110 = l_Lean_Expr_betaRev(x_13, x_108, x_109, x_109); +lean_dec(x_108); +x_111 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_3, x_110, x_6, x_7, x_8, x_9, x_14); +return x_111; +} +} +else +{ +uint8_t x_112; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_112 = !lean_is_exclusive(x_12); +if (x_112 == 0) { return x_12; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_12, 0); +x_114 = lean_ctor_get(x_12, 1); +lean_inc(x_114); +lean_inc(x_113); lean_dec(x_12); -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_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 +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(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) { +_start: { -lean_object* x_20; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_20 = lean_whnf(x_4, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_20) == 0) -{ -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_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_1, x_2, x_3, x_21, x_6, x_7, x_8, x_9, x_22); -return x_23; -} -else -{ -uint8_t x_24; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_11 = lean_expr_instantiate1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); -x_24 = !lean_is_exclusive(x_20); -if (x_24 == 0) -{ -return x_20; -} -else -{ -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_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; +x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); +return x_12; } } -} -} -} -static lean_object* _init_l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(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) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("whnf", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__7; -x_2 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(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: -{ -switch (lean_obj_tag(x_2)) { -case 0: -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_2); -x_8 = l_Lean_Meta_whnfEasyCases___closed__5; -x_9 = l_panic___at_Lean_Meta_whnfCore_go___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -case 1: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -lean_inc(x_3); -lean_inc(x_10); -x_11 = l_Lean_FVarId_getDecl(x_10, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Lean_Meta_WHNF_0__Lean_Meta_projectCore_x3f(x_5, x_1, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); 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_12); -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_13 = !lean_is_exclusive(x_11); if (x_13 == 0) { @@ -19710,200 +19552,409 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_2); x_17 = lean_ctor_get(x_11, 1); lean_inc(x_17); lean_dec(x_11); -x_18 = lean_ctor_get(x_12, 4); +x_18 = lean_ctor_get(x_12, 0); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_12, sizeof(void*)*5); lean_dec(x_12); -x_20 = l_Lean_Meta_getConfig(x_3, x_4, x_5, x_6, x_17); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -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); -if (x_19 == 0) -{ -lean_object* x_43; -lean_free_object(x_20); -lean_dec(x_2); -x_43 = lean_box(0); -x_24 = x_43; -goto block_42; +x_19 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_3, x_4, x_18, x_6, x_7, x_8, x_9, x_17); +return x_19; } -else +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(uint8_t 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: { -uint8_t x_44; -x_44 = lean_ctor_get_uint8(x_22, 6); -if (x_44 == 0) -{ -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_10); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_ctor_set(x_20, 0, x_2); -return x_20; +if (x_1 == 0) +{ +if (x_4 == 0) +{ +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = 1; +x_13 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_14 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_12, x_13, x_5, x_7, x_8, x_9, x_10, x_11); +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_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_2, x_3, x_4, x_1, x_15, x_7, x_8, x_9, x_10, x_16); +return x_17; } else { -lean_object* x_45; -lean_free_object(x_20); -lean_dec(x_2); -x_45 = lean_box(0); -x_24 = x_45; -goto block_42; -} -} -block_42: -{ -uint8_t x_25; -lean_dec(x_24); -x_25 = lean_ctor_get_uint8(x_22, 7); -lean_dec(x_22); -if (x_25 == 0) -{ +uint8_t x_18; lean_dec(x_10); -x_2 = x_18; -x_7 = x_23; -goto _start; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +return x_14; } 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; 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_27 = lean_st_ref_get(x_6, x_23); -x_28 = lean_ctor_get(x_27, 1); +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 +{ +lean_object* x_22; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_22 = lean_whnf(x_5, x_7, x_8, x_9, x_10, x_11); +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_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_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_2, x_3, x_4, x_1, x_23, x_7, x_8, x_9, x_10, x_24); +return x_25; +} +else +{ +uint8_t x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) +{ +return x_22; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 0); +x_28 = lean_ctor_get(x_22, 1); lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_st_ref_take(x_4, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_27); +lean_dec(x_22); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +else +{ +lean_object* x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_3); +lean_ctor_set(x_30, 1, x_11); +return x_30; +} +} +} +static lean_object* _init_l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("whnf", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__7; +x_2 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t 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: +{ +switch (lean_obj_tag(x_3)) { +case 0: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = l_Lean_Meta_whnfEasyCases___closed__5; +x_10 = l_panic___at_Lean_Meta_whnfCore_go___spec__1(x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +case 1: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +lean_inc(x_4); +lean_inc(x_11); +x_12 = l_Lean_FVarId_getDecl(x_11, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +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_13); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +lean_ctor_set(x_12, 0, x_3); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_ctor_get(x_13, 4); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_13, sizeof(void*)*5); +lean_dec(x_13); +x_21 = l_Lean_Meta_getConfig(x_4, x_5, x_6, x_7, x_18); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +if (x_20 == 0) +{ +lean_object* x_44; +lean_free_object(x_21); +lean_dec(x_3); +x_44 = lean_box(0); +x_25 = x_44; +goto block_43; +} +else +{ +uint8_t x_45; +x_45 = lean_ctor_get_uint8(x_23, 6); +if (x_45 == 0) +{ +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_ctor_set(x_21, 0, x_3); +return x_21; +} +else +{ +lean_object* x_46; +lean_free_object(x_21); +lean_dec(x_3); +x_46 = lean_box(0); +x_25 = x_46; +goto block_43; +} +} +block_43: +{ +uint8_t x_26; +lean_dec(x_25); +x_26 = lean_ctor_get_uint8(x_23, 7); +lean_dec(x_23); +if (x_26 == 0) +{ +lean_dec(x_11); +x_3 = x_19; +x_8 = x_24; +goto _start; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 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_28 = lean_st_ref_get(x_7, x_24); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_5, x_29); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_ctor_get(x_30, 0); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -x_34 = lean_ctor_get(x_30, 2); -lean_inc(x_34); -x_35 = lean_box(0); -x_36 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_34, x_10, x_35); -x_37 = lean_ctor_get(x_30, 3); -lean_inc(x_37); lean_dec(x_30); -x_38 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_33); -lean_ctor_set(x_38, 2, x_36); -lean_ctor_set(x_38, 3, x_37); -x_39 = lean_st_ref_set(x_4, x_38, x_31); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_2 = x_18; -x_7 = x_40; +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_31, 2); +lean_inc(x_35); +x_36 = lean_box(0); +x_37 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_35, x_11, x_36); +x_38 = lean_ctor_get(x_31, 3); +lean_inc(x_38); +lean_dec(x_31); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_33); +lean_ctor_set(x_39, 1, x_34); +lean_ctor_set(x_39, 2, x_37); +lean_ctor_set(x_39, 3, x_38); +x_40 = lean_st_ref_set(x_5, x_39, x_32); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_3 = x_19; +x_8 = x_41; goto _start; } } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_20, 0); -x_47 = lean_ctor_get(x_20, 1); +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_inc(x_46); -lean_dec(x_20); -if (x_19 == 0) +lean_dec(x_21); +if (x_20 == 0) { -lean_object* x_67; -lean_dec(x_2); -x_67 = lean_box(0); -x_48 = x_67; -goto block_66; -} -else -{ -uint8_t x_68; -x_68 = lean_ctor_get_uint8(x_46, 6); -if (x_68 == 0) -{ -lean_object* x_69; -lean_dec(x_46); -lean_dec(x_18); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_68; lean_dec(x_3); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_2); -lean_ctor_set(x_69, 1, x_47); -return x_69; +x_68 = lean_box(0); +x_49 = x_68; +goto block_67; } else { +uint8_t x_69; +x_69 = lean_ctor_get_uint8(x_47, 6); +if (x_69 == 0) +{ lean_object* x_70; -lean_dec(x_2); -x_70 = lean_box(0); -x_48 = x_70; -goto block_66; +lean_dec(x_47); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_3); +lean_ctor_set(x_70, 1, x_48); +return x_70; +} +else +{ +lean_object* x_71; +lean_dec(x_3); +x_71 = lean_box(0); +x_49 = x_71; +goto block_67; } } -block_66: +block_67: { -uint8_t x_49; -lean_dec(x_48); -x_49 = lean_ctor_get_uint8(x_46, 7); -lean_dec(x_46); -if (x_49 == 0) +uint8_t x_50; +lean_dec(x_49); +x_50 = lean_ctor_get_uint8(x_47, 7); +lean_dec(x_47); +if (x_50 == 0) { -lean_dec(x_10); -x_2 = x_18; -x_7 = x_47; +lean_dec(x_11); +x_3 = x_19; +x_8 = x_48; goto _start; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_51 = lean_st_ref_get(x_6, x_47); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_st_ref_take(x_4, x_52); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +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; +x_52 = lean_st_ref_get(x_7, x_48); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_st_ref_take(x_5, x_53); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 2); -lean_inc(x_58); -x_59 = lean_box(0); -x_60 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_58, x_10, x_59); -x_61 = lean_ctor_get(x_54, 3); -lean_inc(x_61); lean_dec(x_54); -x_62 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_57); -lean_ctor_set(x_62, 2, x_60); -lean_ctor_set(x_62, 3, x_61); -x_63 = lean_st_ref_set(x_4, x_62, x_55); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_2 = x_18; -x_7 = x_64; +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +x_59 = lean_ctor_get(x_55, 2); +lean_inc(x_59); +x_60 = lean_box(0); +x_61 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_59, x_11, x_60); +x_62 = lean_ctor_get(x_55, 3); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_63, 0, x_57); +lean_ctor_set(x_63, 1, x_58); +lean_ctor_set(x_63, 2, x_61); +lean_ctor_set(x_63, 3, x_62); +x_64 = lean_st_ref_set(x_5, x_63, x_56); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_3 = x_19; +x_8 = x_65; goto _start; } } @@ -19912,411 +19963,429 @@ goto _start; } else { -uint8_t x_71; -lean_dec(x_10); +uint8_t x_72; +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); -x_71 = !lean_is_exclusive(x_11); -if (x_71 == 0) +x_72 = !lean_is_exclusive(x_12); +if (x_72 == 0) { -return x_11; +return x_12; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_11, 0); -x_73 = lean_ctor_get(x_11, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_12, 0); +x_74 = lean_ctor_get(x_12, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_11); -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_12); +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; } } } case 2: { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_2, 0); -lean_inc(x_75); -x_76 = l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1(x_75, x_3, x_4, x_5, x_6, x_7); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -if (lean_obj_tag(x_77) == 0) +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_3, 0); +lean_inc(x_76); +x_77 = l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1(x_76, x_4, x_5, x_6, x_7, x_8); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +if (lean_obj_tag(x_78) == 0) { -uint8_t x_78; +uint8_t x_79; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +x_79 = !lean_is_exclusive(x_77); +if (x_79 == 0) +{ +lean_object* x_80; +x_80 = lean_ctor_get(x_77, 0); +lean_dec(x_80); +lean_ctor_set(x_77, 0, x_3); +return x_77; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_77, 1); +lean_inc(x_81); +lean_dec(x_77); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_3); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_dec(x_3); -x_78 = !lean_is_exclusive(x_76); -if (x_78 == 0) -{ -lean_object* x_79; -x_79 = lean_ctor_get(x_76, 0); -lean_dec(x_79); -lean_ctor_set(x_76, 0, x_2); -return x_76; -} -else -{ -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_76, 1); -lean_inc(x_80); -lean_dec(x_76); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_2); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -else -{ -lean_object* x_82; lean_object* x_83; -lean_dec(x_2); -x_82 = lean_ctor_get(x_76, 1); -lean_inc(x_82); -lean_dec(x_76); -x_83 = lean_ctor_get(x_77, 0); +x_83 = lean_ctor_get(x_77, 1); lean_inc(x_83); lean_dec(x_77); -x_2 = x_83; -x_7 = x_82; +x_84 = lean_ctor_get(x_78, 0); +lean_inc(x_84); +lean_dec(x_78); +x_3 = x_84; +x_8 = x_83; goto _start; } } case 4: { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_85 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; -x_86 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_85, x_3, x_4, x_5, x_6, x_7); -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) -{ -uint8_t x_89; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_86); +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; +x_87 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_86, x_4, x_5, x_6, x_7, x_8); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_unbox(x_88); +lean_dec(x_88); if (x_89 == 0) { -lean_object* x_90; -x_90 = lean_ctor_get(x_86, 0); -lean_dec(x_90); -lean_ctor_set(x_86, 0, x_2); -return x_86; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); -lean_dec(x_86); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_2); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_93 = lean_ctor_get(x_86, 1); -lean_inc(x_93); -lean_dec(x_86); -lean_inc(x_2); -x_94 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_94, 0, x_2); -x_95 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_85, x_94, x_3, x_4, x_5, x_6, x_93); +uint8_t x_90; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) +x_90 = !lean_is_exclusive(x_87); +if (x_90 == 0) { -lean_object* x_97; -x_97 = lean_ctor_get(x_95, 0); -lean_dec(x_97); -lean_ctor_set(x_95, 0, x_2); -return x_95; +lean_object* x_91; +x_91 = lean_ctor_get(x_87, 0); +lean_dec(x_91); +lean_ctor_set(x_87, 0, x_3); +return x_87; } else { -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -lean_dec(x_95); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_2); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +lean_dec(x_87); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_3); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +lean_dec(x_87); +lean_inc(x_3); +x_95 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_95, 0, x_3); +x_96 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_86, x_95, x_4, x_5, x_6, x_7, x_94); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_96, 0); +lean_dec(x_98); +lean_ctor_set(x_96, 0, x_3); +return x_96; +} +else +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +lean_dec(x_96); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_3); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } case 5: { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_100 = lean_ctor_get(x_2, 0); -lean_inc(x_100); -x_101 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; -x_102 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_101, x_3, x_4, x_5, x_6, x_7); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_unbox(x_103); -lean_dec(x_103); -if (x_104 == 0) +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_101 = lean_ctor_get(x_3, 0); +lean_inc(x_101); +x_102 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; +x_103 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_102, x_4, x_5, x_6, x_7, x_8); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_unbox(x_104); +lean_dec(x_104); +if (x_105 == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_dec(x_102); -x_106 = lean_box(0); -x_107 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_100, x_1, x_2, x_106, x_3, x_4, x_5, x_6, x_105); -return x_107; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_box(0); +x_108 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_101, x_1, x_2, x_3, x_107, x_4, x_5, x_6, x_7, x_106); +return x_108; } 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; -x_108 = lean_ctor_get(x_102, 1); -lean_inc(x_108); -lean_dec(x_102); -lean_inc(x_2); -x_109 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_109, 0, x_2); -x_110 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_101, x_109, x_3, x_4, x_5, x_6, x_108); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_103, 1); +lean_inc(x_109); +lean_dec(x_103); +lean_inc(x_3); +x_110 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_110, 0, x_3); +x_111 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_102, x_110, x_4, x_5, x_6, x_7, x_109); +x_112 = lean_ctor_get(x_111, 0); lean_inc(x_112); -lean_dec(x_110); -x_113 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_100, x_1, x_2, x_111, x_3, x_4, x_5, x_6, x_112); -return x_113; +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_101, x_1, x_2, x_3, x_112, x_4, x_5, x_6, x_7, x_113); +return x_114; } } case 8: { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_114 = lean_ctor_get(x_2, 2); -lean_inc(x_114); -x_115 = lean_ctor_get(x_2, 3); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_115 = lean_ctor_get(x_3, 2); lean_inc(x_115); -x_116 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; -x_117 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_116, x_3, x_4, x_5, x_6, x_7); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_unbox(x_118); -lean_dec(x_118); -if (x_119 == 0) +x_116 = lean_ctor_get(x_3, 3); +lean_inc(x_116); +x_117 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; +x_118 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_117, x_4, x_5, x_6, x_7, x_8); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_unbox(x_119); +lean_dec(x_119); +if (x_120 == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_2); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_120); -lean_dec(x_117); -x_121 = lean_box(0); -x_122 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_115, x_114, x_1, x_121, x_3, x_4, x_5, x_6, x_120); -return x_122; +lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_3); +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_dec(x_118); +x_122 = lean_box(0); +x_123 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_116, x_115, x_1, x_2, x_122, x_4, x_5, x_6, x_7, x_121); +return x_123; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_123 = lean_ctor_get(x_117, 1); -lean_inc(x_123); -lean_dec(x_117); -x_124 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_124, 0, x_2); -x_125 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_116, x_124, x_3, x_4, x_5, x_6, x_123); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_124 = lean_ctor_get(x_118, 1); +lean_inc(x_124); +lean_dec(x_118); +x_125 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_125, 0, x_3); +x_126 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_117, x_125, x_4, x_5, x_6, x_7, x_124); +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_128 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_115, x_114, x_1, x_126, x_3, x_4, x_5, x_6, x_127); -return x_128; +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_129 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_116, x_115, x_1, x_2, x_127, x_4, x_5, x_6, x_7, x_128); +return x_129; } } case 10: { -lean_object* x_129; -x_129 = lean_ctor_get(x_2, 1); -lean_inc(x_129); -lean_dec(x_2); -x_2 = x_129; +lean_object* x_130; +x_130 = lean_ctor_get(x_3, 1); +lean_inc(x_130); +lean_dec(x_3); +x_3 = x_130; goto _start; } case 11: { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_131 = lean_ctor_get(x_2, 1); -lean_inc(x_131); -x_132 = lean_ctor_get(x_2, 2); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_132 = lean_ctor_get(x_3, 1); lean_inc(x_132); -x_133 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; -x_134 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_133, x_3, x_4, x_5, x_6, x_7); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_unbox(x_135); -lean_dec(x_135); -if (x_136 == 0) +x_133 = lean_ctor_get(x_3, 2); +lean_inc(x_133); +x_134 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; +x_135 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_134, x_4, x_5, x_6, x_7, x_8); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_unbox(x_136); +lean_dec(x_136); +if (x_137 == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_134, 1); -lean_inc(x_137); -lean_dec(x_134); -x_138 = lean_box(0); -x_139 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_131, x_2, x_1, x_132, x_138, x_3, x_4, x_5, x_6, x_137); -return x_139; +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_box(0); +x_140 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_2, x_132, x_3, x_1, x_133, x_139, x_4, x_5, x_6, x_7, x_138); +return x_140; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_140 = lean_ctor_get(x_134, 1); -lean_inc(x_140); -lean_dec(x_134); -lean_inc(x_2); -x_141 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_141, 0, x_2); -x_142 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_133, x_141, x_3, x_4, x_5, x_6, x_140); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_141 = lean_ctor_get(x_135, 1); +lean_inc(x_141); +lean_dec(x_135); +lean_inc(x_3); +x_142 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_142, 0, x_3); +x_143 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_134, x_142, x_4, x_5, x_6, x_7, x_141); +x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); -lean_dec(x_142); -x_145 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_131, x_2, x_1, x_132, x_143, x_3, x_4, x_5, x_6, x_144); -return x_145; +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_2, x_132, x_3, x_1, x_133, x_144, x_4, x_5, x_6, x_7, x_145); +return x_146; } } default: { -lean_object* x_146; +lean_object* x_147; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_3); +lean_ctor_set(x_147, 1, x_8); +return x_147; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore(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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_3, x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___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) { +_start: +{ +uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; +x_13 = lean_unbox(x_1); +lean_dec(x_1); +x_14 = lean_unbox(x_2); +lean_dec(x_2); +x_15 = lean_unbox(x_7); +lean_dec(x_7); +x_16 = l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(x_13, x_14, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___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) { +_start: +{ +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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: +{ +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = lean_unbox(x_3); lean_dec(x_3); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_2); -lean_ctor_set(x_146, 1, x_7); -return x_146; +x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go(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_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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_8; -x_8 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore(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_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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: { -lean_object* x_8; -x_8 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_2, x_1, x_3, x_4, x_5, x_6, x_7); -return x_8; +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___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_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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: { uint8_t x_12; uint8_t x_13; lean_object* x_14; x_12 = lean_unbox(x_1); lean_dec(x_1); -x_13 = lean_unbox(x_6); -lean_dec(x_6); -x_14 = l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___at_Lean_Meta_whnfCore_go___spec__2(x_12, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_12, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___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_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___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; +uint8_t x_9; uint8_t x_10; lean_object* x_11; x_9 = lean_unbox(x_1); lean_dec(x_1); -x_10 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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: -{ -uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_2); lean_dec(x_2); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__2(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_9, x_10, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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_EXPORT lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object* x_1, lean_object* x_2, 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_10; lean_object* x_11; -x_10 = lean_unbox(x_3); -lean_dec(x_3); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__3(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_3); -lean_dec(x_3); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__4(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___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) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_3); -lean_dec(x_3); -x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___lambda__5(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___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: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_1); +uint8_t x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_1); lean_dec(x_1); -x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_8, x_2, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore_go___boxed(lean_object* x_1, 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_Meta_whnfCore_go(x_8, x_2, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_2); +x_10 = lean_unbox(x_2); lean_dec(x_2); -x_9 = l_Lean_Meta_whnfCore(x_1, x_8, x_3, x_4, x_5, x_6, x_7); -return x_9; +x_11 = l_Lean_Meta_whnfCore_go(x_9, x_10, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_whnfCore___boxed(lean_object* x_1, lean_object* x_2, 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; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Meta_whnfCore(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_smartUnfoldingReduce_x3f_go___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) { @@ -24527,208 +24596,209 @@ return x_25; LEAN_EXPORT lean_object* l_Lean_Meta_whnfHeadPred___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: { -uint8_t x_8; lean_object* x_9; +uint8_t x_8; uint8_t x_9; lean_object* x_10; x_8 = 1; +x_9 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_8, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) +x_10 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_8, x_9, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); lean_inc(x_1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_10); -x_12 = lean_apply_6(x_1, x_10, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_12) == 0) +lean_inc(x_11); +x_13 = lean_apply_6(x_1, x_11, x_3, x_4, x_5, x_6, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +if (x_15 == 0) { -uint8_t x_15; +uint8_t x_16; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_15 = !lean_is_exclusive(x_12); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_12, 0); -lean_dec(x_16); -lean_ctor_set(x_12, 0, x_10); -return x_12; +lean_object* x_17; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +lean_ctor_set(x_13, 0, x_11); +return x_13; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_dec(x_12); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_dec(x_12); +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_dec(x_13); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_10); -x_20 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); +lean_inc(x_11); +x_21 = l_Lean_Meta_unfoldDefinition_x3f(x_11, x_3, x_4, x_5, x_6, x_20); if (lean_obj_tag(x_21) == 0) { -uint8_t x_22; +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_20); -if (x_22 == 0) +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_20, 0); -lean_dec(x_23); -lean_ctor_set(x_20, 0, x_10); -return x_20; +lean_object* x_24; +x_24 = lean_ctor_get(x_21, 0); +lean_dec(x_24); +lean_ctor_set(x_21, 0, x_11); +return x_21; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_20, 1); -lean_inc(x_24); -lean_dec(x_20); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_10); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_10); -x_26 = lean_ctor_get(x_20, 1); -lean_inc(x_26); -lean_dec(x_20); -x_27 = lean_ctor_get(x_21, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_11); +x_27 = lean_ctor_get(x_21, 1); lean_inc(x_27); lean_dec(x_21); -x_28 = l_Lean_Meta_whnfHeadPred(x_27, x_1, x_3, x_4, x_5, x_6, x_26); -return x_28; +x_28 = lean_ctor_get(x_22, 0); +lean_inc(x_28); +lean_dec(x_22); +x_29 = l_Lean_Meta_whnfHeadPred(x_28, x_1, x_3, x_4, x_5, x_6, x_27); +return x_29; } } else { -uint8_t x_29; -lean_dec(x_10); +uint8_t x_30; +lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_20); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_21); +if (x_30 == 0) { -return x_20; +return x_21; } else { -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_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_21, 0); +x_32 = lean_ctor_get(x_21, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_20); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_dec(x_21); +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_33; -lean_dec(x_10); +uint8_t x_34; +lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_12); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 0) { -return x_12; +return x_13; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_12, 0); -x_35 = lean_ctor_get(x_12, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_13, 0); +x_36 = lean_ctor_get(x_13, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_12); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_dec(x_13); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } else { -uint8_t x_37; +uint8_t x_38; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_9); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_10); +if (x_38 == 0) { -return x_9; +return x_10; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_9, 0); -x_39 = lean_ctor_get(x_9, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_10, 0); +x_40 = lean_ctor_get(x_10, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_9); -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_10); +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; } } } @@ -25091,1020 +25161,1024 @@ goto _start; } case 4: { -uint8_t x_85; lean_object* x_86; +uint8_t x_85; uint8_t x_86; lean_object* x_87; x_85 = 1; +x_86 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_86 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_85, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_86) == 0) +x_87 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_85, x_86, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_87) == 0) { -uint8_t x_87; -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +uint8_t x_88; +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) { -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -x_90 = l_Lean_Expr_isAppOf(x_88, x_1); -if (x_90 == 0) -{ -lean_object* x_91; -lean_free_object(x_86); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_88); -x_91 = l_Lean_Meta_unfoldDefinition_x3f(x_88, x_3, x_4, x_5, x_6, x_89); -if (lean_obj_tag(x_91) == 0) +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_87, 1); +x_91 = l_Lean_Expr_isAppOf(x_89, x_1); +if (x_91 == 0) { lean_object* x_92; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -if (lean_obj_tag(x_92) == 0) -{ -uint8_t x_93; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_93 = !lean_is_exclusive(x_91); -if (x_93 == 0) -{ -lean_object* x_94; -x_94 = lean_ctor_get(x_91, 0); -lean_dec(x_94); -lean_ctor_set(x_91, 0, x_88); -return x_91; -} -else -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_dec(x_91); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_88); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; -lean_dec(x_88); -x_97 = lean_ctor_get(x_91, 1); -lean_inc(x_97); -lean_dec(x_91); -x_98 = lean_ctor_get(x_92, 0); -lean_inc(x_98); -lean_dec(x_92); -x_2 = x_98; -x_7 = x_97; -goto _start; -} -} -else -{ -uint8_t x_100; -lean_dec(x_88); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_100 = !lean_is_exclusive(x_91); -if (x_100 == 0) -{ -return x_91; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_91, 0); -x_102 = lean_ctor_get(x_91, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_91); -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; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_86; -} -} -else -{ -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_ctor_get(x_86, 0); -x_105 = lean_ctor_get(x_86, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_86); -x_106 = l_Lean_Expr_isAppOf(x_104, x_1); -if (x_106 == 0) -{ -lean_object* x_107; +lean_free_object(x_87); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_104); -x_107 = l_Lean_Meta_unfoldDefinition_x3f(x_104, x_3, x_4, x_5, x_6, x_105); -if (lean_obj_tag(x_107) == 0) +lean_inc(x_89); +x_92 = l_Lean_Meta_unfoldDefinition_x3f(x_89, x_3, x_4, x_5, x_6, x_90); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_108; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -if (lean_obj_tag(x_108) == 0) +lean_object* x_93; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; +uint8_t x_94; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; -} else { - lean_dec_ref(x_107); - x_110 = lean_box(0); -} -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(0, 2, 0); -} else { - x_111 = x_110; -} -lean_ctor_set(x_111, 0, x_104); -lean_ctor_set(x_111, 1, x_109); -return x_111; +x_94 = !lean_is_exclusive(x_92); +if (x_94 == 0) +{ +lean_object* x_95; +x_95 = lean_ctor_get(x_92, 0); +lean_dec(x_95); +lean_ctor_set(x_92, 0, x_89); +return x_92; } else { -lean_object* x_112; lean_object* x_113; -lean_dec(x_104); -x_112 = lean_ctor_get(x_107, 1); -lean_inc(x_112); -lean_dec(x_107); -x_113 = lean_ctor_get(x_108, 0); -lean_inc(x_113); -lean_dec(x_108); -x_2 = x_113; -x_7 = x_112; +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +lean_dec(x_92); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_89); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_89); +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +lean_dec(x_92); +x_99 = lean_ctor_get(x_93, 0); +lean_inc(x_99); +lean_dec(x_93); +x_2 = x_99; +x_7 = x_98; goto _start; } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_104); +uint8_t x_101; +lean_dec(x_89); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_115 = lean_ctor_get(x_107, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_107, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_117 = x_107; -} else { - lean_dec_ref(x_107); - x_117 = lean_box(0); +x_101 = !lean_is_exclusive(x_92); +if (x_101 == 0) +{ +return x_92; } -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(1, 2, 0); -} else { - x_118 = x_117; +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_92, 0); +x_103 = lean_ctor_get(x_92, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_92); +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; } -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_116); -return x_118; } } else { -lean_object* x_119; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_104); -lean_ctor_set(x_119, 1, x_105); +return x_87; +} +} +else +{ +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_87, 0); +x_106 = lean_ctor_get(x_87, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_87); +x_107 = l_Lean_Expr_isAppOf(x_105, x_1); +if (x_107 == 0) +{ +lean_object* x_108; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_105); +x_108 = l_Lean_Meta_unfoldDefinition_x3f(x_105, x_3, x_4, x_5, x_6, x_106); +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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_111 = x_108; +} else { + lean_dec_ref(x_108); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_105); +lean_ctor_set(x_112, 1, x_110); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_105); +x_113 = lean_ctor_get(x_108, 1); +lean_inc(x_113); +lean_dec(x_108); +x_114 = lean_ctor_get(x_109, 0); +lean_inc(x_114); +lean_dec(x_109); +x_2 = x_114; +x_7 = x_113; +goto _start; +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_105); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_116 = lean_ctor_get(x_108, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_108, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_118 = x_108; +} else { + lean_dec_ref(x_108); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); return x_119; } } -} else { -uint8_t x_120; +lean_object* x_120; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_120 = !lean_is_exclusive(x_86); -if (x_120 == 0) -{ -return x_86; +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_105); +lean_ctor_set(x_120, 1, x_106); +return x_120; +} +} } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_86, 0); -x_122 = lean_ctor_get(x_86, 1); +uint8_t x_121; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_121 = !lean_is_exclusive(x_87); +if (x_121 == 0) +{ +return x_87; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_87, 0); +x_123 = lean_ctor_get(x_87, 1); +lean_inc(x_123); lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_86); -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; +lean_dec(x_87); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } case 5: { -uint8_t x_124; lean_object* x_125; -x_124 = 1; +uint8_t x_125; uint8_t x_126; lean_object* x_127; +x_125 = 1; +x_126 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_125 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_124, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_125) == 0) +x_127 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_125, x_126, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_127) == 0) { -uint8_t x_126; -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) +uint8_t x_128; +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) { -lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_127 = lean_ctor_get(x_125, 0); -x_128 = lean_ctor_get(x_125, 1); -x_129 = l_Lean_Expr_isAppOf(x_127, x_1); -if (x_129 == 0) +lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_129 = lean_ctor_get(x_127, 0); +x_130 = lean_ctor_get(x_127, 1); +x_131 = l_Lean_Expr_isAppOf(x_129, x_1); +if (x_131 == 0) { -lean_object* x_130; -lean_free_object(x_125); +lean_object* x_132; +lean_free_object(x_127); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_127); -x_130 = l_Lean_Meta_unfoldDefinition_x3f(x_127, x_3, x_4, x_5, x_6, x_128); -if (lean_obj_tag(x_130) == 0) +lean_inc(x_129); +x_132 = l_Lean_Meta_unfoldDefinition_x3f(x_129, x_3, x_4, x_5, x_6, x_130); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_131; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -if (lean_obj_tag(x_131) == 0) +lean_object* x_133; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +if (lean_obj_tag(x_133) == 0) { -uint8_t x_132; +uint8_t x_134; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_132 = !lean_is_exclusive(x_130); -if (x_132 == 0) +x_134 = !lean_is_exclusive(x_132); +if (x_134 == 0) { -lean_object* x_133; -x_133 = lean_ctor_get(x_130, 0); -lean_dec(x_133); -lean_ctor_set(x_130, 0, x_127); -return x_130; -} -else -{ -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_130, 1); -lean_inc(x_134); -lean_dec(x_130); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_127); -lean_ctor_set(x_135, 1, x_134); -return x_135; -} +lean_object* x_135; +x_135 = lean_ctor_get(x_132, 0); +lean_dec(x_135); +lean_ctor_set(x_132, 0, x_129); +return x_132; } else { lean_object* x_136; lean_object* x_137; -lean_dec(x_127); -x_136 = lean_ctor_get(x_130, 1); +x_136 = lean_ctor_get(x_132, 1); lean_inc(x_136); -lean_dec(x_130); -x_137 = lean_ctor_get(x_131, 0); -lean_inc(x_137); -lean_dec(x_131); -x_2 = x_137; -x_7 = x_136; +lean_dec(x_132); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_129); +lean_ctor_set(x_137, 1, x_136); +return x_137; +} +} +else +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_129); +x_138 = lean_ctor_get(x_132, 1); +lean_inc(x_138); +lean_dec(x_132); +x_139 = lean_ctor_get(x_133, 0); +lean_inc(x_139); +lean_dec(x_133); +x_2 = x_139; +x_7 = x_138; goto _start; } } else { -uint8_t x_139; -lean_dec(x_127); +uint8_t x_141; +lean_dec(x_129); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_139 = !lean_is_exclusive(x_130); -if (x_139 == 0) +x_141 = !lean_is_exclusive(x_132); +if (x_141 == 0) { -return x_130; +return x_132; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_130, 0); -x_141 = lean_ctor_get(x_130, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_130); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_125; -} -} -else -{ -lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_143 = lean_ctor_get(x_125, 0); -x_144 = lean_ctor_get(x_125, 1); -lean_inc(x_144); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_132, 0); +x_143 = lean_ctor_get(x_132, 1); lean_inc(x_143); -lean_dec(x_125); -x_145 = l_Lean_Expr_isAppOf(x_143, x_1); -if (x_145 == 0) +lean_inc(x_142); +lean_dec(x_132); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else { -lean_object* x_146; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_127; +} +} +else +{ +lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_145 = lean_ctor_get(x_127, 0); +x_146 = lean_ctor_get(x_127, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_127); +x_147 = l_Lean_Expr_isAppOf(x_145, x_1); +if (x_147 == 0) +{ +lean_object* x_148; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_143); -x_146 = l_Lean_Meta_unfoldDefinition_x3f(x_143, x_3, x_4, x_5, x_6, x_144); -if (lean_obj_tag(x_146) == 0) +lean_inc(x_145); +x_148 = l_Lean_Meta_unfoldDefinition_x3f(x_145, x_3, x_4, x_5, x_6, x_146); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_147; -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -if (lean_obj_tag(x_147) == 0) +lean_object* x_149; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +if (lean_obj_tag(x_149) == 0) { -lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_149 = x_146; +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; } else { - lean_dec_ref(x_146); - x_149 = lean_box(0); + lean_dec_ref(x_148); + x_151 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(0, 2, 0); } else { - x_150 = x_149; + x_152 = x_151; } -lean_ctor_set(x_150, 0, x_143); -lean_ctor_set(x_150, 1, x_148); -return x_150; +lean_ctor_set(x_152, 0, x_145); +lean_ctor_set(x_152, 1, x_150); +return x_152; } else { -lean_object* x_151; lean_object* x_152; -lean_dec(x_143); -x_151 = lean_ctor_get(x_146, 1); -lean_inc(x_151); -lean_dec(x_146); -x_152 = lean_ctor_get(x_147, 0); -lean_inc(x_152); -lean_dec(x_147); -x_2 = x_152; -x_7 = x_151; +lean_object* x_153; lean_object* x_154; +lean_dec(x_145); +x_153 = lean_ctor_get(x_148, 1); +lean_inc(x_153); +lean_dec(x_148); +x_154 = lean_ctor_get(x_149, 0); +lean_inc(x_154); +lean_dec(x_149); +x_2 = x_154; +x_7 = x_153; goto _start; } } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_143); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_145); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_154 = lean_ctor_get(x_146, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_146, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_156 = x_146; +x_156 = lean_ctor_get(x_148, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_148, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_158 = x_148; } else { - lean_dec_ref(x_146); - x_156 = lean_box(0); + lean_dec_ref(x_148); + x_158 = lean_box(0); } -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_157 = x_156; + x_159 = x_158; } -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_155); -return x_157; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } else { -lean_object* x_158; +lean_object* x_160; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_143); -lean_ctor_set(x_158, 1, x_144); -return x_158; +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_145); +lean_ctor_set(x_160, 1, x_146); +return x_160; } } } else { -uint8_t x_159; +uint8_t x_161; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_159 = !lean_is_exclusive(x_125); -if (x_159 == 0) +x_161 = !lean_is_exclusive(x_127); +if (x_161 == 0) { -return x_125; +return x_127; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_125, 0); -x_161 = lean_ctor_get(x_125, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_125); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_127, 0); +x_163 = lean_ctor_get(x_127, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_127); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } case 8: { -uint8_t x_163; lean_object* x_164; -x_163 = 1; +uint8_t x_165; uint8_t x_166; lean_object* x_167; +x_165 = 1; +x_166 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_164 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_163, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_164) == 0) +x_167 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_165, x_166, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_167) == 0) { -uint8_t x_165; -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_166 = lean_ctor_get(x_164, 0); -x_167 = lean_ctor_get(x_164, 1); -x_168 = l_Lean_Expr_isAppOf(x_166, x_1); +uint8_t x_168; +x_168 = !lean_is_exclusive(x_167); if (x_168 == 0) { -lean_object* x_169; -lean_free_object(x_164); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_166); -x_169 = l_Lean_Meta_unfoldDefinition_x3f(x_166, x_3, x_4, x_5, x_6, x_167); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -if (lean_obj_tag(x_170) == 0) -{ -uint8_t x_171; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_171 = !lean_is_exclusive(x_169); +lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_169 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); +x_171 = l_Lean_Expr_isAppOf(x_169, x_1); if (x_171 == 0) { lean_object* x_172; -x_172 = lean_ctor_get(x_169, 0); -lean_dec(x_172); -lean_ctor_set(x_169, 0, x_166); -return x_169; -} -else -{ -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_169, 1); -lean_inc(x_173); -lean_dec(x_169); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_166); -lean_ctor_set(x_174, 1, x_173); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; -lean_dec(x_166); -x_175 = lean_ctor_get(x_169, 1); -lean_inc(x_175); -lean_dec(x_169); -x_176 = lean_ctor_get(x_170, 0); -lean_inc(x_176); -lean_dec(x_170); -x_2 = x_176; -x_7 = x_175; -goto _start; -} -} -else -{ -uint8_t x_178; -lean_dec(x_166); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_178 = !lean_is_exclusive(x_169); -if (x_178 == 0) -{ -return x_169; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 0); -x_180 = lean_ctor_get(x_169, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_169); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_164; -} -} -else -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_ctor_get(x_164, 0); -x_183 = lean_ctor_get(x_164, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_164); -x_184 = l_Lean_Expr_isAppOf(x_182, x_1); -if (x_184 == 0) -{ -lean_object* x_185; +lean_free_object(x_167); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_182); -x_185 = l_Lean_Meta_unfoldDefinition_x3f(x_182, x_3, x_4, x_5, x_6, x_183); -if (lean_obj_tag(x_185) == 0) +lean_inc(x_169); +x_172 = l_Lean_Meta_unfoldDefinition_x3f(x_169, x_3, x_4, x_5, x_6, x_170); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_186; -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -if (lean_obj_tag(x_186) == 0) +lean_object* x_173; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +if (lean_obj_tag(x_173) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; +uint8_t x_174; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_188 = x_185; -} else { - lean_dec_ref(x_185); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_182); -lean_ctor_set(x_189, 1, x_187); -return x_189; +x_174 = !lean_is_exclusive(x_172); +if (x_174 == 0) +{ +lean_object* x_175; +x_175 = lean_ctor_get(x_172, 0); +lean_dec(x_175); +lean_ctor_set(x_172, 0, x_169); +return x_172; } else { -lean_object* x_190; lean_object* x_191; -lean_dec(x_182); -x_190 = lean_ctor_get(x_185, 1); -lean_inc(x_190); -lean_dec(x_185); -x_191 = lean_ctor_get(x_186, 0); -lean_inc(x_191); -lean_dec(x_186); -x_2 = x_191; -x_7 = x_190; +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_172, 1); +lean_inc(x_176); +lean_dec(x_172); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_176); +return x_177; +} +} +else +{ +lean_object* x_178; lean_object* x_179; +lean_dec(x_169); +x_178 = lean_ctor_get(x_172, 1); +lean_inc(x_178); +lean_dec(x_172); +x_179 = lean_ctor_get(x_173, 0); +lean_inc(x_179); +lean_dec(x_173); +x_2 = x_179; +x_7 = x_178; goto _start; } } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_182); +uint8_t x_181; +lean_dec(x_169); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_193 = lean_ctor_get(x_185, 0); +x_181 = !lean_is_exclusive(x_172); +if (x_181 == 0) +{ +return x_172; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_172, 0); +x_183 = lean_ctor_get(x_172, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_172); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +return x_184; +} +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_167; +} +} +else +{ +lean_object* x_185; lean_object* x_186; uint8_t x_187; +x_185 = lean_ctor_get(x_167, 0); +x_186 = lean_ctor_get(x_167, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_167); +x_187 = l_Lean_Expr_isAppOf(x_185, x_1); +if (x_187 == 0) +{ +lean_object* x_188; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_185); +x_188 = l_Lean_Meta_unfoldDefinition_x3f(x_185, x_3, x_4, x_5, x_6, x_186); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_191 = x_188; +} else { + lean_dec_ref(x_188); + x_191 = lean_box(0); +} +if (lean_is_scalar(x_191)) { + x_192 = lean_alloc_ctor(0, 2, 0); +} else { + x_192 = x_191; +} +lean_ctor_set(x_192, 0, x_185); +lean_ctor_set(x_192, 1, x_190); +return x_192; +} +else +{ +lean_object* x_193; lean_object* x_194; +lean_dec(x_185); +x_193 = lean_ctor_get(x_188, 1); lean_inc(x_193); -x_194 = lean_ctor_get(x_185, 1); +lean_dec(x_188); +x_194 = lean_ctor_get(x_189, 0); lean_inc(x_194); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_195 = x_185; -} else { - lean_dec_ref(x_185); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; +lean_dec(x_189); +x_2 = x_194; +x_7 = x_193; +goto _start; } } else { -lean_object* x_197; +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_185); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_182); -lean_ctor_set(x_197, 1, x_183); -return x_197; +x_196 = lean_ctor_get(x_188, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_188, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_198 = x_188; +} else { + lean_dec_ref(x_188); + x_198 = lean_box(0); } +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_198; +} +lean_ctor_set(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +return x_199; } } else { -uint8_t x_198; +lean_object* x_200; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_198 = !lean_is_exclusive(x_164); -if (x_198 == 0) -{ -return x_164; +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_185); +lean_ctor_set(x_200, 1, x_186); +return x_200; +} +} } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_164, 0); -x_200 = lean_ctor_get(x_164, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_164); -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; +uint8_t x_201; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_201 = !lean_is_exclusive(x_167); +if (x_201 == 0) +{ +return x_167; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_167, 0); +x_203 = lean_ctor_get(x_167, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_167); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_202); +lean_ctor_set(x_204, 1, x_203); +return x_204; } } } case 10: { -lean_object* x_202; -x_202 = lean_ctor_get(x_2, 1); -lean_inc(x_202); +lean_object* x_205; +x_205 = lean_ctor_get(x_2, 1); +lean_inc(x_205); lean_dec(x_2); -x_2 = x_202; +x_2 = x_205; goto _start; } case 11: { -uint8_t x_204; lean_object* x_205; -x_204 = 1; +uint8_t x_207; uint8_t x_208; lean_object* x_209; +x_207 = 1; +x_208 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_205 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_204, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_205) == 0) +x_209 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_207, x_208, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_209) == 0) { -uint8_t x_206; -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) +uint8_t x_210; +x_210 = !lean_is_exclusive(x_209); +if (x_210 == 0) { -lean_object* x_207; lean_object* x_208; uint8_t x_209; -x_207 = lean_ctor_get(x_205, 0); -x_208 = lean_ctor_get(x_205, 1); -x_209 = l_Lean_Expr_isAppOf(x_207, x_1); -if (x_209 == 0) +lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_211 = lean_ctor_get(x_209, 0); +x_212 = lean_ctor_get(x_209, 1); +x_213 = l_Lean_Expr_isAppOf(x_211, x_1); +if (x_213 == 0) { -lean_object* x_210; -lean_free_object(x_205); +lean_object* x_214; +lean_free_object(x_209); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_207); -x_210 = l_Lean_Meta_unfoldDefinition_x3f(x_207, x_3, x_4, x_5, x_6, x_208); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; -x_211 = lean_ctor_get(x_210, 0); lean_inc(x_211); -if (lean_obj_tag(x_211) == 0) +x_214 = l_Lean_Meta_unfoldDefinition_x3f(x_211, x_3, x_4, x_5, x_6, x_212); +if (lean_obj_tag(x_214) == 0) { -uint8_t x_212; +lean_object* x_215; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +if (lean_obj_tag(x_215) == 0) +{ +uint8_t x_216; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_212 = !lean_is_exclusive(x_210); -if (x_212 == 0) +x_216 = !lean_is_exclusive(x_214); +if (x_216 == 0) { -lean_object* x_213; -x_213 = lean_ctor_get(x_210, 0); -lean_dec(x_213); -lean_ctor_set(x_210, 0, x_207); -return x_210; +lean_object* x_217; +x_217 = lean_ctor_get(x_214, 0); +lean_dec(x_217); +lean_ctor_set(x_214, 0, x_211); +return x_214; } else { -lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_210, 1); -lean_inc(x_214); -lean_dec(x_210); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_207); -lean_ctor_set(x_215, 1, x_214); -return x_215; +lean_object* x_218; lean_object* x_219; +x_218 = lean_ctor_get(x_214, 1); +lean_inc(x_218); +lean_dec(x_214); +x_219 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_219, 0, x_211); +lean_ctor_set(x_219, 1, x_218); +return x_219; } } else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_207); -x_216 = lean_ctor_get(x_210, 1); -lean_inc(x_216); -lean_dec(x_210); -x_217 = lean_ctor_get(x_211, 0); -lean_inc(x_217); +lean_object* x_220; lean_object* x_221; lean_dec(x_211); -x_2 = x_217; -x_7 = x_216; +x_220 = lean_ctor_get(x_214, 1); +lean_inc(x_220); +lean_dec(x_214); +x_221 = lean_ctor_get(x_215, 0); +lean_inc(x_221); +lean_dec(x_215); +x_2 = x_221; +x_7 = x_220; goto _start; } } else { -uint8_t x_219; -lean_dec(x_207); +uint8_t x_223; +lean_dec(x_211); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_219 = !lean_is_exclusive(x_210); -if (x_219 == 0) +x_223 = !lean_is_exclusive(x_214); +if (x_223 == 0) { -return x_210; +return x_214; } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_210, 0); -x_221 = lean_ctor_get(x_210, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_210); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_205; -} -} -else -{ -lean_object* x_223; lean_object* x_224; uint8_t x_225; -x_223 = lean_ctor_get(x_205, 0); -x_224 = lean_ctor_get(x_205, 1); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_214, 0); +x_225 = lean_ctor_get(x_214, 1); +lean_inc(x_225); lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_205); -x_225 = l_Lean_Expr_isAppOf(x_223, x_1); -if (x_225 == 0) +lean_dec(x_214); +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +} +else { -lean_object* x_226; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_209; +} +} +else +{ +lean_object* x_227; lean_object* x_228; uint8_t x_229; +x_227 = lean_ctor_get(x_209, 0); +x_228 = lean_ctor_get(x_209, 1); +lean_inc(x_228); +lean_inc(x_227); +lean_dec(x_209); +x_229 = l_Lean_Expr_isAppOf(x_227, x_1); +if (x_229 == 0) +{ +lean_object* x_230; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_223); -x_226 = l_Lean_Meta_unfoldDefinition_x3f(x_223, x_3, x_4, x_5, x_6, x_224); -if (lean_obj_tag(x_226) == 0) -{ -lean_object* x_227; -x_227 = lean_ctor_get(x_226, 0); lean_inc(x_227); -if (lean_obj_tag(x_227) == 0) +x_230 = l_Lean_Meta_unfoldDefinition_x3f(x_227, x_3, x_4, x_5, x_6, x_228); +if (lean_obj_tag(x_230) == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_object* x_231; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +if (lean_obj_tag(x_231) == 0) +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_228 = lean_ctor_get(x_226, 1); -lean_inc(x_228); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_229 = x_226; +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_233 = x_230; } else { - lean_dec_ref(x_226); - x_229 = lean_box(0); + lean_dec_ref(x_230); + x_233 = lean_box(0); } -if (lean_is_scalar(x_229)) { - x_230 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(0, 2, 0); } else { - x_230 = x_229; + x_234 = x_233; } -lean_ctor_set(x_230, 0, x_223); -lean_ctor_set(x_230, 1, x_228); -return x_230; +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_232); +return x_234; } else { -lean_object* x_231; lean_object* x_232; -lean_dec(x_223); -x_231 = lean_ctor_get(x_226, 1); -lean_inc(x_231); -lean_dec(x_226); -x_232 = lean_ctor_get(x_227, 0); -lean_inc(x_232); +lean_object* x_235; lean_object* x_236; lean_dec(x_227); -x_2 = x_232; -x_7 = x_231; +x_235 = lean_ctor_get(x_230, 1); +lean_inc(x_235); +lean_dec(x_230); +x_236 = lean_ctor_get(x_231, 0); +lean_inc(x_236); +lean_dec(x_231); +x_2 = x_236; +x_7 = x_235; goto _start; } } else { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -lean_dec(x_223); +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_227); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_234 = lean_ctor_get(x_226, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_226, 1); -lean_inc(x_235); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_236 = x_226; +x_238 = lean_ctor_get(x_230, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_230, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_240 = x_230; } else { - lean_dec_ref(x_226); - x_236 = lean_box(0); + lean_dec_ref(x_230); + x_240 = lean_box(0); } -if (lean_is_scalar(x_236)) { - x_237 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); } else { - x_237 = x_236; + x_241 = x_240; } -lean_ctor_set(x_237, 0, x_234); -lean_ctor_set(x_237, 1, x_235); -return x_237; +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +return x_241; } } else { -lean_object* x_238; +lean_object* x_242; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_238, 0, x_223); -lean_ctor_set(x_238, 1, x_224); -return x_238; -} -} -} -else -{ -uint8_t x_239; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_239 = !lean_is_exclusive(x_205); -if (x_239 == 0) -{ -return x_205; -} -else -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_205, 0); -x_241 = lean_ctor_get(x_205, 1); -lean_inc(x_241); -lean_inc(x_240); -lean_dec(x_205); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_240); -lean_ctor_set(x_242, 1, x_241); +x_242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_227); +lean_ctor_set(x_242, 1, x_228); return x_242; } } } +else +{ +uint8_t x_243; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_243 = !lean_is_exclusive(x_209); +if (x_243 == 0) +{ +return x_209; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_209, 0); +x_245 = lean_ctor_get(x_209, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_209); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} +} default: { -lean_object* x_243; +lean_object* x_247; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_2); -lean_ctor_set(x_243, 1, x_7); -return x_243; +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_2); +lean_ctor_set(x_247, 1, x_7); +return x_247; } } } @@ -32386,7 +32460,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_whnfEasyCases___closed__2; x_2 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__1; -x_3 = lean_unsigned_to_nat(825u); +x_3 = lean_unsigned_to_nat(834u); x_4 = lean_unsigned_to_nat(34u); x_5 = l_Lean_Meta_whnfEasyCases___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -32572,7 +32646,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_whnfEasyCases___closed__2; x_2 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__1; -x_3 = lean_unsigned_to_nat(834u); +x_3 = lean_unsigned_to_nat(843u); x_4 = lean_unsigned_to_nat(34u); x_5 = l_Lean_Meta_whnfEasyCases___closed__4; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33390,7 +33464,7 @@ x_84 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__ x_85 = l_Lean_Core_checkMaxHeartbeats(x_84, x_4, x_5, x_6); if (lean_obj_tag(x_85) == 0) { -lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; uint8_t x_167; +lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; uint8_t x_168; x_86 = lean_ctor_get(x_85, 1); lean_inc(x_86); if (lean_is_exclusive(x_85)) { @@ -33401,79 +33475,70 @@ if (lean_is_exclusive(x_85)) { lean_dec_ref(x_85); x_87 = lean_box(0); } -x_167 = l_Lean_Expr_hasFVar(x_1); -if (x_167 == 0) -{ -uint8_t x_168; -x_168 = l_Lean_Expr_hasExprMVar(x_1); +x_168 = l_Lean_Expr_hasFVar(x_1); if (x_168 == 0) { -lean_object* x_169; -x_169 = lean_ctor_get(x_2, 5); -lean_inc(x_169); -if (lean_obj_tag(x_169) == 0) +uint8_t x_169; +x_169 = l_Lean_Expr_hasExprMVar(x_1); +if (x_169 == 0) { -lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; -x_170 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_86); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get_uint8(x_171, 5); -lean_dec(x_171); -x_173 = lean_box(x_172); -switch (lean_obj_tag(x_173)) { +lean_object* x_170; +x_170 = lean_ctor_get(x_2, 5); +lean_inc(x_170); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; +x_171 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_86); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get_uint8(x_172, 5); +lean_dec(x_172); +x_174 = lean_box(x_173); +switch (lean_obj_tag(x_174)) { case 2: { -lean_object* x_174; uint8_t x_175; -x_174 = lean_ctor_get(x_170, 1); -lean_inc(x_174); -lean_dec(x_170); -x_175 = 0; -x_88 = x_175; -x_89 = x_174; -goto block_166; +lean_object* x_175; uint8_t x_176; +x_175 = lean_ctor_get(x_171, 1); +lean_inc(x_175); +lean_dec(x_171); +x_176 = 0; +x_88 = x_176; +x_89 = x_175; +goto block_167; } case 3: { -lean_object* x_176; uint8_t x_177; -x_176 = lean_ctor_get(x_170, 1); -lean_inc(x_176); -lean_dec(x_170); -x_177 = 0; -x_88 = x_177; -x_89 = x_176; -goto block_166; +lean_object* x_177; uint8_t x_178; +x_177 = lean_ctor_get(x_171, 1); +lean_inc(x_177); +lean_dec(x_171); +x_178 = 0; +x_88 = x_178; +x_89 = x_177; +goto block_167; } default: { -lean_object* x_178; uint8_t x_179; -lean_dec(x_173); -x_178 = lean_ctor_get(x_170, 1); -lean_inc(x_178); -lean_dec(x_170); -x_179 = 1; -x_88 = x_179; -x_89 = x_178; -goto block_166; -} -} -} -else -{ -uint8_t x_180; -lean_dec(x_169); -x_180 = 0; +lean_object* x_179; uint8_t x_180; +lean_dec(x_174); +x_179 = lean_ctor_get(x_171, 1); +lean_inc(x_179); +lean_dec(x_171); +x_180 = 1; x_88 = x_180; -x_89 = x_86; -goto block_166; +x_89 = x_179; +goto block_167; +} } } else { uint8_t x_181; +lean_dec(x_170); x_181 = 0; x_88 = x_181; x_89 = x_86; -goto block_166; +goto block_167; } } else @@ -33482,1212 +33547,1207 @@ uint8_t x_182; x_182 = 0; x_88 = x_182; x_89 = x_86; -goto block_166; -} -block_166: -{ -lean_object* x_90; lean_object* x_91; -if (x_88 == 0) -{ -lean_object* x_134; -x_134 = lean_box(0); -x_90 = x_134; -x_91 = x_89; -goto block_133; -} -else -{ -lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; -x_135 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_89); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get_uint8(x_136, 5); -lean_dec(x_136); -x_138 = lean_box(x_137); -switch (lean_obj_tag(x_138)) { -case 0: -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_139 = lean_ctor_get(x_135, 1); -lean_inc(x_139); -lean_dec(x_135); -x_140 = lean_st_ref_get(x_5, x_139); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -lean_dec(x_140); -x_142 = lean_st_ref_get(x_3, x_141); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get(x_145, 4); -lean_inc(x_146); -lean_dec(x_145); -lean_inc(x_1); -x_147 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_146, x_1); -x_90 = x_147; -x_91 = x_144; -goto block_133; -} -case 1: -{ -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; -x_148 = lean_ctor_get(x_135, 1); -lean_inc(x_148); -lean_dec(x_135); -x_149 = lean_st_ref_get(x_5, x_148); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec(x_149); -x_151 = lean_st_ref_get(x_3, x_150); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = lean_ctor_get(x_154, 3); -lean_inc(x_155); -lean_dec(x_154); -lean_inc(x_1); -x_156 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_155, x_1); -x_90 = x_156; -x_91 = x_153; -goto block_133; -} -default: -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_138); -x_157 = lean_ctor_get(x_135, 1); -lean_inc(x_157); -lean_dec(x_135); -x_158 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_159 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_158, x_2, x_3, x_4, x_5, x_157); -if (lean_obj_tag(x_159) == 0) -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); -x_90 = x_160; -x_91 = x_161; -goto block_133; -} -else -{ -uint8_t x_162; -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_162 = !lean_is_exclusive(x_159); -if (x_162 == 0) -{ -return x_159; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_159, 0); -x_164 = lean_ctor_get(x_159, 1); -lean_inc(x_164); -lean_inc(x_163); -lean_dec(x_159); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -return x_165; -} -} -} -} -} -block_133: -{ -if (lean_obj_tag(x_90) == 0) -{ -uint8_t x_92; lean_object* x_93; -lean_dec(x_87); -x_92 = 1; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_93 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_92, x_1, x_2, x_3, x_4, x_5, x_91); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_94); -x_96 = l_Lean_Meta_reduceNat_x3f(x_94, x_2, x_3, x_4, x_5, x_95); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_94); -x_99 = l_Lean_Meta_reduceNative_x3f(x_94, x_2, x_3, x_4, x_5, x_98); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_94); -x_102 = l_Lean_Meta_unfoldDefinition_x3f(x_94, x_2, x_3, x_4, x_5, x_101); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_94, x_2, x_3, x_4, x_5, x_104); -return x_105; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_94); -lean_dec(x_1); -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -lean_dec(x_102); -x_107 = lean_ctor_get(x_103, 0); -lean_inc(x_107); -lean_dec(x_103); -x_108 = lean_whnf(x_107, x_2, x_3, x_4, x_5, x_106); -return x_108; -} -} -else -{ -uint8_t x_109; -lean_dec(x_94); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_109 = !lean_is_exclusive(x_102); -if (x_109 == 0) -{ -return x_102; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_102, 0); -x_111 = lean_ctor_get(x_102, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_102); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_94); -x_113 = lean_ctor_get(x_99, 1); -lean_inc(x_113); -lean_dec(x_99); -x_114 = lean_ctor_get(x_100, 0); -lean_inc(x_114); -lean_dec(x_100); -x_115 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_114, x_2, x_3, x_4, x_5, x_113); -return x_115; -} -} -else -{ -uint8_t x_116; -lean_dec(x_94); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_116 = !lean_is_exclusive(x_99); -if (x_116 == 0) -{ -return x_99; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_99, 0); -x_118 = lean_ctor_get(x_99, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_99); -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 -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_94); -x_120 = lean_ctor_get(x_96, 1); -lean_inc(x_120); -lean_dec(x_96); -x_121 = lean_ctor_get(x_97, 0); -lean_inc(x_121); -lean_dec(x_97); -x_122 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_121, x_2, x_3, x_4, x_5, x_120); -return x_122; -} -} -else -{ -uint8_t x_123; -lean_dec(x_94); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_96); -if (x_123 == 0) -{ -return x_96; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_96, 0); -x_125 = lean_ctor_get(x_96, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_96); -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; -} -} -} -else -{ -uint8_t x_127; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_127 = !lean_is_exclusive(x_93); -if (x_127 == 0) -{ -return x_93; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_93, 0); -x_129 = lean_ctor_get(x_93, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_93); -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; -} -} -} -else -{ -lean_object* x_131; lean_object* x_132; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_131 = lean_ctor_get(x_90, 0); -lean_inc(x_131); -lean_dec(x_90); -if (lean_is_scalar(x_87)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_87; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_91); -return x_132; -} -} +goto block_167; } } else { uint8_t x_183; +x_183 = 0; +x_88 = x_183; +x_89 = x_86; +goto block_167; +} +block_167: +{ +lean_object* x_90; lean_object* x_91; +if (x_88 == 0) +{ +lean_object* x_135; +x_135 = lean_box(0); +x_90 = x_135; +x_91 = x_89; +goto block_134; +} +else +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; +x_136 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_89); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get_uint8(x_137, 5); +lean_dec(x_137); +x_139 = lean_box(x_138); +switch (lean_obj_tag(x_139)) { +case 0: +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +lean_dec(x_136); +x_141 = lean_st_ref_get(x_5, x_140); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_st_ref_get(x_3, x_142); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_ctor_get(x_146, 4); +lean_inc(x_147); +lean_dec(x_146); +lean_inc(x_1); +x_148 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_147, x_1); +x_90 = x_148; +x_91 = x_145; +goto block_134; +} +case 1: +{ +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; +x_149 = lean_ctor_get(x_136, 1); +lean_inc(x_149); +lean_dec(x_136); +x_150 = lean_st_ref_get(x_5, x_149); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec(x_150); +x_152 = lean_st_ref_get(x_3, x_151); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = lean_ctor_get(x_155, 3); +lean_inc(x_156); +lean_dec(x_155); +lean_inc(x_1); +x_157 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_156, x_1); +x_90 = x_157; +x_91 = x_154; +goto block_134; +} +default: +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_139); +x_158 = lean_ctor_get(x_136, 1); +lean_inc(x_158); +lean_dec(x_136); +x_159 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_160 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_159, x_2, x_3, x_4, x_5, x_158); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_90 = x_161; +x_91 = x_162; +goto block_134; +} +else +{ +uint8_t x_163; +lean_dec(x_87); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_183 = !lean_is_exclusive(x_85); -if (x_183 == 0) +x_163 = !lean_is_exclusive(x_160); +if (x_163 == 0) +{ +return x_160; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_160, 0); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_160); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; +} +} +} +} +} +block_134: +{ +if (lean_obj_tag(x_90) == 0) +{ +uint8_t x_92; uint8_t x_93; lean_object* x_94; +lean_dec(x_87); +x_92 = 1; +x_93 = 0; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_94 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_92, x_93, x_1, x_2, x_3, x_4, x_5, x_91); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +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); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_95); +x_97 = l_Lean_Meta_reduceNat_x3f(x_95, x_2, x_3, x_4, x_5, x_96); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_95); +x_100 = l_Lean_Meta_reduceNative_x3f(x_95, x_2, x_3, x_4, x_5, x_99); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_95); +x_103 = l_Lean_Meta_unfoldDefinition_x3f(x_95, x_2, x_3, x_4, x_5, x_102); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_95, x_2, x_3, x_4, x_5, x_105); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_95); +lean_dec(x_1); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +lean_dec(x_103); +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +lean_dec(x_104); +x_109 = lean_whnf(x_108, x_2, x_3, x_4, x_5, x_107); +return x_109; +} +} +else +{ +uint8_t x_110; +lean_dec(x_95); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_110 = !lean_is_exclusive(x_103); +if (x_110 == 0) +{ +return x_103; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_103, 0); +x_112 = lean_ctor_get(x_103, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_103); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_95); +x_114 = lean_ctor_get(x_100, 1); +lean_inc(x_114); +lean_dec(x_100); +x_115 = lean_ctor_get(x_101, 0); +lean_inc(x_115); +lean_dec(x_101); +x_116 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_115, x_2, x_3, x_4, x_5, x_114); +return x_116; +} +} +else +{ +uint8_t x_117; +lean_dec(x_95); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_117 = !lean_is_exclusive(x_100); +if (x_117 == 0) +{ +return x_100; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_100, 0); +x_119 = lean_ctor_get(x_100, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_100); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_95); +x_121 = lean_ctor_get(x_97, 1); +lean_inc(x_121); +lean_dec(x_97); +x_122 = lean_ctor_get(x_98, 0); +lean_inc(x_122); +lean_dec(x_98); +x_123 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_88, x_1, x_122, x_2, x_3, x_4, x_5, x_121); +return x_123; +} +} +else +{ +uint8_t x_124; +lean_dec(x_95); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_124 = !lean_is_exclusive(x_97); +if (x_124 == 0) +{ +return x_97; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_97, 0); +x_126 = lean_ctor_get(x_97, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_97); +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; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_128 = !lean_is_exclusive(x_94); +if (x_128 == 0) +{ +return x_94; +} +else +{ +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; +} +} +} +else +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_132 = lean_ctor_get(x_90, 0); +lean_inc(x_132); +lean_dec(x_90); +if (lean_is_scalar(x_87)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_87; +} +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_91); +return x_133; +} +} +} +} +else +{ +uint8_t x_184; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_184 = !lean_is_exclusive(x_85); +if (x_184 == 0) { return x_85; } else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_85, 0); -x_185 = lean_ctor_get(x_85, 1); +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_85, 0); +x_186 = lean_ctor_get(x_85, 1); +lean_inc(x_186); lean_inc(x_185); -lean_inc(x_184); lean_dec(x_85); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; } } } case 5: { -lean_object* x_187; lean_object* x_188; -x_187 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; -x_188 = l_Lean_Core_checkMaxHeartbeats(x_187, x_4, x_5, x_6); -if (lean_obj_tag(x_188) == 0) +lean_object* x_188; lean_object* x_189; +x_188 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; +x_189 = l_Lean_Core_checkMaxHeartbeats(x_188, x_4, x_5, x_6); +if (lean_obj_tag(x_189) == 0) { -lean_object* x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; uint8_t x_270; -x_189 = lean_ctor_get(x_188, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_190 = x_188; +lean_object* x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; uint8_t x_272; +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_191 = x_189; } else { - lean_dec_ref(x_188); - x_190 = lean_box(0); + lean_dec_ref(x_189); + x_191 = lean_box(0); } -x_270 = l_Lean_Expr_hasFVar(x_1); -if (x_270 == 0) +x_272 = l_Lean_Expr_hasFVar(x_1); +if (x_272 == 0) { -uint8_t x_271; -x_271 = l_Lean_Expr_hasExprMVar(x_1); -if (x_271 == 0) +uint8_t x_273; +x_273 = l_Lean_Expr_hasExprMVar(x_1); +if (x_273 == 0) { -lean_object* x_272; -x_272 = lean_ctor_get(x_2, 5); -lean_inc(x_272); -if (lean_obj_tag(x_272) == 0) -{ -lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; -x_273 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_189); -x_274 = lean_ctor_get(x_273, 0); +lean_object* x_274; +x_274 = lean_ctor_get(x_2, 5); lean_inc(x_274); -x_275 = lean_ctor_get_uint8(x_274, 5); -lean_dec(x_274); -x_276 = lean_box(x_275); -switch (lean_obj_tag(x_276)) { +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; uint8_t x_277; lean_object* x_278; +x_275 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_190); +x_276 = lean_ctor_get(x_275, 0); +lean_inc(x_276); +x_277 = lean_ctor_get_uint8(x_276, 5); +lean_dec(x_276); +x_278 = lean_box(x_277); +switch (lean_obj_tag(x_278)) { case 2: { -lean_object* x_277; uint8_t x_278; -x_277 = lean_ctor_get(x_273, 1); -lean_inc(x_277); -lean_dec(x_273); -x_278 = 0; -x_191 = x_278; -x_192 = x_277; -goto block_269; +lean_object* x_279; uint8_t x_280; +x_279 = lean_ctor_get(x_275, 1); +lean_inc(x_279); +lean_dec(x_275); +x_280 = 0; +x_192 = x_280; +x_193 = x_279; +goto block_271; } case 3: { -lean_object* x_279; uint8_t x_280; -x_279 = lean_ctor_get(x_273, 1); -lean_inc(x_279); -lean_dec(x_273); -x_280 = 0; -x_191 = x_280; -x_192 = x_279; -goto block_269; +lean_object* x_281; uint8_t x_282; +x_281 = lean_ctor_get(x_275, 1); +lean_inc(x_281); +lean_dec(x_275); +x_282 = 0; +x_192 = x_282; +x_193 = x_281; +goto block_271; } default: { -lean_object* x_281; uint8_t x_282; -lean_dec(x_276); -x_281 = lean_ctor_get(x_273, 1); -lean_inc(x_281); -lean_dec(x_273); -x_282 = 1; -x_191 = x_282; -x_192 = x_281; -goto block_269; +lean_object* x_283; uint8_t x_284; +lean_dec(x_278); +x_283 = lean_ctor_get(x_275, 1); +lean_inc(x_283); +lean_dec(x_275); +x_284 = 1; +x_192 = x_284; +x_193 = x_283; +goto block_271; } } } else { -uint8_t x_283; -lean_dec(x_272); -x_283 = 0; -x_191 = x_283; -x_192 = x_189; -goto block_269; -} -} -else -{ -uint8_t x_284; -x_284 = 0; -x_191 = x_284; -x_192 = x_189; -goto block_269; -} -} -else -{ uint8_t x_285; +lean_dec(x_274); x_285 = 0; -x_191 = x_285; -x_192 = x_189; -goto block_269; -} -block_269: -{ -lean_object* x_193; lean_object* x_194; -if (x_191 == 0) -{ -lean_object* x_237; -x_237 = lean_box(0); -x_193 = x_237; -x_194 = x_192; -goto block_236; -} -else -{ -lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; -x_238 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_192); -x_239 = lean_ctor_get(x_238, 0); -lean_inc(x_239); -x_240 = lean_ctor_get_uint8(x_239, 5); -lean_dec(x_239); -x_241 = lean_box(x_240); -switch (lean_obj_tag(x_241)) { -case 0: -{ -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; -x_242 = lean_ctor_get(x_238, 1); -lean_inc(x_242); -lean_dec(x_238); -x_243 = lean_st_ref_get(x_5, x_242); -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -lean_dec(x_243); -x_245 = lean_st_ref_get(x_3, x_244); -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_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -x_249 = lean_ctor_get(x_248, 4); -lean_inc(x_249); -lean_dec(x_248); -lean_inc(x_1); -x_250 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_249, x_1); -x_193 = x_250; -x_194 = x_247; -goto block_236; -} -case 1: -{ -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; -x_251 = lean_ctor_get(x_238, 1); -lean_inc(x_251); -lean_dec(x_238); -x_252 = lean_st_ref_get(x_5, x_251); -x_253 = lean_ctor_get(x_252, 1); -lean_inc(x_253); -lean_dec(x_252); -x_254 = lean_st_ref_get(x_3, x_253); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_ctor_get(x_255, 1); -lean_inc(x_257); -lean_dec(x_255); -x_258 = lean_ctor_get(x_257, 3); -lean_inc(x_258); -lean_dec(x_257); -lean_inc(x_1); -x_259 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_258, x_1); -x_193 = x_259; -x_194 = x_256; -goto block_236; -} -default: -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_241); -x_260 = lean_ctor_get(x_238, 1); -lean_inc(x_260); -lean_dec(x_238); -x_261 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_262 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_261, x_2, x_3, x_4, x_5, x_260); -if (lean_obj_tag(x_262) == 0) -{ -lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec(x_262); -x_193 = x_263; -x_194 = x_264; -goto block_236; -} -else -{ -uint8_t x_265; -lean_dec(x_190); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_265 = !lean_is_exclusive(x_262); -if (x_265 == 0) -{ -return x_262; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_266 = lean_ctor_get(x_262, 0); -x_267 = lean_ctor_get(x_262, 1); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_262); -x_268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_268, 0, x_266); -lean_ctor_set(x_268, 1, x_267); -return x_268; -} -} -} -} -} -block_236: -{ -if (lean_obj_tag(x_193) == 0) -{ -uint8_t x_195; lean_object* x_196; -lean_dec(x_190); -x_195 = 1; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_196 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_195, x_1, x_2, x_3, x_4, x_5, x_194); -if (lean_obj_tag(x_196) == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_197); -x_199 = l_Lean_Meta_reduceNat_x3f(x_197, x_2, x_3, x_4, x_5, x_198); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -if (lean_obj_tag(x_200) == 0) -{ -lean_object* x_201; lean_object* x_202; -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -lean_dec(x_199); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_197); -x_202 = l_Lean_Meta_reduceNative_x3f(x_197, x_2, x_3, x_4, x_5, x_201); -if (lean_obj_tag(x_202) == 0) -{ -lean_object* x_203; -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -if (lean_obj_tag(x_203) == 0) -{ -lean_object* x_204; lean_object* x_205; -x_204 = lean_ctor_get(x_202, 1); -lean_inc(x_204); -lean_dec(x_202); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_197); -x_205 = l_Lean_Meta_unfoldDefinition_x3f(x_197, x_2, x_3, x_4, x_5, x_204); -if (lean_obj_tag(x_205) == 0) -{ -lean_object* x_206; -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -if (lean_obj_tag(x_206) == 0) -{ -lean_object* x_207; lean_object* x_208; -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_dec(x_205); -x_208 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_191, x_1, x_197, x_2, x_3, x_4, x_5, x_207); -return x_208; -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_197); -lean_dec(x_1); -x_209 = lean_ctor_get(x_205, 1); -lean_inc(x_209); -lean_dec(x_205); -x_210 = lean_ctor_get(x_206, 0); -lean_inc(x_210); -lean_dec(x_206); -x_211 = lean_whnf(x_210, x_2, x_3, x_4, x_5, x_209); -return x_211; -} -} -else -{ -uint8_t x_212; -lean_dec(x_197); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_212 = !lean_is_exclusive(x_205); -if (x_212 == 0) -{ -return x_205; -} -else -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_205, 0); -x_214 = lean_ctor_get(x_205, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_205); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; -} -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_197); -x_216 = lean_ctor_get(x_202, 1); -lean_inc(x_216); -lean_dec(x_202); -x_217 = lean_ctor_get(x_203, 0); -lean_inc(x_217); -lean_dec(x_203); -x_218 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_191, x_1, x_217, x_2, x_3, x_4, x_5, x_216); -return x_218; -} -} -else -{ -uint8_t x_219; -lean_dec(x_197); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_219 = !lean_is_exclusive(x_202); -if (x_219 == 0) -{ -return x_202; -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_202, 0); -x_221 = lean_ctor_get(x_202, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_202); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; -} -} -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_197); -x_223 = lean_ctor_get(x_199, 1); -lean_inc(x_223); -lean_dec(x_199); -x_224 = lean_ctor_get(x_200, 0); -lean_inc(x_224); -lean_dec(x_200); -x_225 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_191, x_1, x_224, x_2, x_3, x_4, x_5, x_223); -return x_225; -} -} -else -{ -uint8_t x_226; -lean_dec(x_197); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_226 = !lean_is_exclusive(x_199); -if (x_226 == 0) -{ -return x_199; -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_199, 0); -x_228 = lean_ctor_get(x_199, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_199); -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_227); -lean_ctor_set(x_229, 1, x_228); -return x_229; -} -} -} -else -{ -uint8_t x_230; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_230 = !lean_is_exclusive(x_196); -if (x_230 == 0) -{ -return x_196; -} -else -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_231 = lean_ctor_get(x_196, 0); -x_232 = lean_ctor_get(x_196, 1); -lean_inc(x_232); -lean_inc(x_231); -lean_dec(x_196); -x_233 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set(x_233, 1, x_232); -return x_233; -} -} -} -else -{ -lean_object* x_234; lean_object* x_235; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_234 = lean_ctor_get(x_193, 0); -lean_inc(x_234); -lean_dec(x_193); -if (lean_is_scalar(x_190)) { - x_235 = lean_alloc_ctor(0, 2, 0); -} else { - x_235 = x_190; -} -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_194); -return x_235; -} -} +x_192 = x_285; +x_193 = x_190; +goto block_271; } } else { uint8_t x_286; +x_286 = 0; +x_192 = x_286; +x_193 = x_190; +goto block_271; +} +} +else +{ +uint8_t x_287; +x_287 = 0; +x_192 = x_287; +x_193 = x_190; +goto block_271; +} +block_271: +{ +lean_object* x_194; lean_object* x_195; +if (x_192 == 0) +{ +lean_object* x_239; +x_239 = lean_box(0); +x_194 = x_239; +x_195 = x_193; +goto block_238; +} +else +{ +lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; +x_240 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_193); +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get_uint8(x_241, 5); +lean_dec(x_241); +x_243 = lean_box(x_242); +switch (lean_obj_tag(x_243)) { +case 0: +{ +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; +x_244 = lean_ctor_get(x_240, 1); +lean_inc(x_244); +lean_dec(x_240); +x_245 = lean_st_ref_get(x_5, x_244); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +x_247 = lean_st_ref_get(x_3, x_246); +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +x_250 = lean_ctor_get(x_248, 1); +lean_inc(x_250); +lean_dec(x_248); +x_251 = lean_ctor_get(x_250, 4); +lean_inc(x_251); +lean_dec(x_250); +lean_inc(x_1); +x_252 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_251, x_1); +x_194 = x_252; +x_195 = x_249; +goto block_238; +} +case 1: +{ +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; +x_253 = lean_ctor_get(x_240, 1); +lean_inc(x_253); +lean_dec(x_240); +x_254 = lean_st_ref_get(x_5, x_253); +x_255 = lean_ctor_get(x_254, 1); +lean_inc(x_255); +lean_dec(x_254); +x_256 = lean_st_ref_get(x_3, x_255); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec(x_257); +x_260 = lean_ctor_get(x_259, 3); +lean_inc(x_260); +lean_dec(x_259); +lean_inc(x_1); +x_261 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_260, x_1); +x_194 = x_261; +x_195 = x_258; +goto block_238; +} +default: +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; +lean_dec(x_243); +x_262 = lean_ctor_get(x_240, 1); +lean_inc(x_262); +lean_dec(x_240); +x_263 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_264 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_263, x_2, x_3, x_4, x_5, x_262); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; lean_object* x_266; +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); +x_194 = x_265; +x_195 = x_266; +goto block_238; +} +else +{ +uint8_t x_267; +lean_dec(x_191); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_286 = !lean_is_exclusive(x_188); -if (x_286 == 0) +x_267 = !lean_is_exclusive(x_264); +if (x_267 == 0) { -return x_188; +return x_264; } else { -lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_188, 0); -x_288 = lean_ctor_get(x_188, 1); -lean_inc(x_288); -lean_inc(x_287); -lean_dec(x_188); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_287); -lean_ctor_set(x_289, 1, x_288); -return x_289; +lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_268 = lean_ctor_get(x_264, 0); +x_269 = lean_ctor_get(x_264, 1); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_264); +x_270 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_270, 0, x_268); +lean_ctor_set(x_270, 1, x_269); +return x_270; +} +} +} +} +} +block_238: +{ +if (lean_obj_tag(x_194) == 0) +{ +uint8_t x_196; uint8_t x_197; lean_object* x_198; +lean_dec(x_191); +x_196 = 1; +x_197 = 0; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_198 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_196, x_197, x_1, x_2, x_3, x_4, x_5, x_195); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_198, 1); +lean_inc(x_200); +lean_dec(x_198); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_199); +x_201 = l_Lean_Meta_reduceNat_x3f(x_199, x_2, x_3, x_4, x_5, x_200); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +if (lean_obj_tag(x_202) == 0) +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_199); +x_204 = l_Lean_Meta_reduceNative_x3f(x_199, x_2, x_3, x_4, x_5, x_203); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_199); +x_207 = l_Lean_Meta_unfoldDefinition_x3f(x_199, x_2, x_3, x_4, x_5, x_206); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +if (lean_obj_tag(x_208) == 0) +{ +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec(x_207); +x_210 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_192, x_1, x_199, x_2, x_3, x_4, x_5, x_209); +return x_210; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; +lean_dec(x_199); +lean_dec(x_1); +x_211 = lean_ctor_get(x_207, 1); +lean_inc(x_211); +lean_dec(x_207); +x_212 = lean_ctor_get(x_208, 0); +lean_inc(x_212); +lean_dec(x_208); +x_213 = lean_whnf(x_212, x_2, x_3, x_4, x_5, x_211); +return x_213; +} +} +else +{ +uint8_t x_214; +lean_dec(x_199); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_214 = !lean_is_exclusive(x_207); +if (x_214 == 0) +{ +return x_207; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_207, 0); +x_216 = lean_ctor_get(x_207, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_207); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; +} +} +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec(x_199); +x_218 = lean_ctor_get(x_204, 1); +lean_inc(x_218); +lean_dec(x_204); +x_219 = lean_ctor_get(x_205, 0); +lean_inc(x_219); +lean_dec(x_205); +x_220 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_192, x_1, x_219, x_2, x_3, x_4, x_5, x_218); +return x_220; +} +} +else +{ +uint8_t x_221; +lean_dec(x_199); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_221 = !lean_is_exclusive(x_204); +if (x_221 == 0) +{ +return x_204; +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_204, 0); +x_223 = lean_ctor_get(x_204, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_204); +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set(x_224, 1, x_223); +return x_224; +} +} +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_199); +x_225 = lean_ctor_get(x_201, 1); +lean_inc(x_225); +lean_dec(x_201); +x_226 = lean_ctor_get(x_202, 0); +lean_inc(x_226); +lean_dec(x_202); +x_227 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_192, x_1, x_226, x_2, x_3, x_4, x_5, x_225); +return x_227; +} +} +else +{ +uint8_t x_228; +lean_dec(x_199); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_228 = !lean_is_exclusive(x_201); +if (x_228 == 0) +{ +return x_201; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_201, 0); +x_230 = lean_ctor_get(x_201, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_201); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; +} +} +} +else +{ +uint8_t x_232; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_232 = !lean_is_exclusive(x_198); +if (x_232 == 0) +{ +return x_198; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_198, 0); +x_234 = lean_ctor_get(x_198, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_198); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; +} +} +} +else +{ +lean_object* x_236; lean_object* x_237; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_236 = lean_ctor_get(x_194, 0); +lean_inc(x_236); +lean_dec(x_194); +if (lean_is_scalar(x_191)) { + x_237 = lean_alloc_ctor(0, 2, 0); +} else { + x_237 = x_191; +} +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_195); +return x_237; +} +} +} +} +else +{ +uint8_t x_288; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_288 = !lean_is_exclusive(x_189); +if (x_288 == 0) +{ +return x_189; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = lean_ctor_get(x_189, 0); +x_290 = lean_ctor_get(x_189, 1); +lean_inc(x_290); +lean_inc(x_289); +lean_dec(x_189); +x_291 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +return x_291; } } } case 8: { -lean_object* x_290; lean_object* x_291; -x_290 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; -x_291 = l_Lean_Core_checkMaxHeartbeats(x_290, x_4, x_5, x_6); -if (lean_obj_tag(x_291) == 0) +lean_object* x_292; lean_object* x_293; +x_292 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; +x_293 = l_Lean_Core_checkMaxHeartbeats(x_292, x_4, x_5, x_6); +if (lean_obj_tag(x_293) == 0) { -lean_object* x_292; lean_object* x_293; uint8_t x_294; lean_object* x_295; uint8_t x_373; -x_292 = lean_ctor_get(x_291, 1); -lean_inc(x_292); -if (lean_is_exclusive(x_291)) { - lean_ctor_release(x_291, 0); - lean_ctor_release(x_291, 1); - x_293 = x_291; +lean_object* x_294; lean_object* x_295; uint8_t x_296; lean_object* x_297; uint8_t x_376; +x_294 = lean_ctor_get(x_293, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_295 = x_293; } else { - lean_dec_ref(x_291); - x_293 = lean_box(0); + lean_dec_ref(x_293); + x_295 = lean_box(0); } -x_373 = l_Lean_Expr_hasFVar(x_1); -if (x_373 == 0) +x_376 = l_Lean_Expr_hasFVar(x_1); +if (x_376 == 0) { -uint8_t x_374; -x_374 = l_Lean_Expr_hasExprMVar(x_1); -if (x_374 == 0) +uint8_t x_377; +x_377 = l_Lean_Expr_hasExprMVar(x_1); +if (x_377 == 0) { -lean_object* x_375; -x_375 = lean_ctor_get(x_2, 5); -lean_inc(x_375); -if (lean_obj_tag(x_375) == 0) +lean_object* x_378; +x_378 = lean_ctor_get(x_2, 5); +lean_inc(x_378); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_376; lean_object* x_377; uint8_t x_378; lean_object* x_379; -x_376 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_292); -x_377 = lean_ctor_get(x_376, 0); -lean_inc(x_377); -x_378 = lean_ctor_get_uint8(x_377, 5); -lean_dec(x_377); -x_379 = lean_box(x_378); -switch (lean_obj_tag(x_379)) { +lean_object* x_379; lean_object* x_380; uint8_t x_381; lean_object* x_382; +x_379 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_294); +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get_uint8(x_380, 5); +lean_dec(x_380); +x_382 = lean_box(x_381); +switch (lean_obj_tag(x_382)) { case 2: { -lean_object* x_380; uint8_t x_381; -x_380 = lean_ctor_get(x_376, 1); -lean_inc(x_380); -lean_dec(x_376); -x_381 = 0; -x_294 = x_381; -x_295 = x_380; -goto block_372; +lean_object* x_383; uint8_t x_384; +x_383 = lean_ctor_get(x_379, 1); +lean_inc(x_383); +lean_dec(x_379); +x_384 = 0; +x_296 = x_384; +x_297 = x_383; +goto block_375; } case 3: { -lean_object* x_382; uint8_t x_383; -x_382 = lean_ctor_get(x_376, 1); -lean_inc(x_382); -lean_dec(x_376); -x_383 = 0; -x_294 = x_383; -x_295 = x_382; -goto block_372; +lean_object* x_385; uint8_t x_386; +x_385 = lean_ctor_get(x_379, 1); +lean_inc(x_385); +lean_dec(x_379); +x_386 = 0; +x_296 = x_386; +x_297 = x_385; +goto block_375; } default: { -lean_object* x_384; uint8_t x_385; +lean_object* x_387; uint8_t x_388; +lean_dec(x_382); +x_387 = lean_ctor_get(x_379, 1); +lean_inc(x_387); lean_dec(x_379); -x_384 = lean_ctor_get(x_376, 1); -lean_inc(x_384); -lean_dec(x_376); -x_385 = 1; -x_294 = x_385; -x_295 = x_384; -goto block_372; +x_388 = 1; +x_296 = x_388; +x_297 = x_387; +goto block_375; } } } else { -uint8_t x_386; -lean_dec(x_375); -x_386 = 0; -x_294 = x_386; -x_295 = x_292; -goto block_372; +uint8_t x_389; +lean_dec(x_378); +x_389 = 0; +x_296 = x_389; +x_297 = x_294; +goto block_375; } } else { -uint8_t x_387; -x_387 = 0; -x_294 = x_387; -x_295 = x_292; -goto block_372; +uint8_t x_390; +x_390 = 0; +x_296 = x_390; +x_297 = x_294; +goto block_375; } } else { -uint8_t x_388; -x_388 = 0; -x_294 = x_388; -x_295 = x_292; -goto block_372; +uint8_t x_391; +x_391 = 0; +x_296 = x_391; +x_297 = x_294; +goto block_375; } -block_372: +block_375: { -lean_object* x_296; lean_object* x_297; -if (x_294 == 0) +lean_object* x_298; lean_object* x_299; +if (x_296 == 0) { -lean_object* x_340; -x_340 = lean_box(0); -x_296 = x_340; -x_297 = x_295; -goto block_339; +lean_object* x_343; +x_343 = lean_box(0); +x_298 = x_343; +x_299 = x_297; +goto block_342; } else { -lean_object* x_341; lean_object* x_342; uint8_t x_343; lean_object* x_344; -x_341 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_295); -x_342 = lean_ctor_get(x_341, 0); -lean_inc(x_342); -x_343 = lean_ctor_get_uint8(x_342, 5); -lean_dec(x_342); -x_344 = lean_box(x_343); -switch (lean_obj_tag(x_344)) { +lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_object* x_347; +x_344 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_297); +x_345 = lean_ctor_get(x_344, 0); +lean_inc(x_345); +x_346 = lean_ctor_get_uint8(x_345, 5); +lean_dec(x_345); +x_347 = lean_box(x_346); +switch (lean_obj_tag(x_347)) { case 0: { -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_345 = lean_ctor_get(x_341, 1); -lean_inc(x_345); -lean_dec(x_341); -x_346 = lean_st_ref_get(x_5, x_345); -x_347 = lean_ctor_get(x_346, 1); -lean_inc(x_347); -lean_dec(x_346); -x_348 = lean_st_ref_get(x_3, x_347); -x_349 = lean_ctor_get(x_348, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_348, 1); +lean_object* x_348; 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_348 = lean_ctor_get(x_344, 1); +lean_inc(x_348); +lean_dec(x_344); +x_349 = lean_st_ref_get(x_5, x_348); +x_350 = lean_ctor_get(x_349, 1); lean_inc(x_350); -lean_dec(x_348); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); lean_dec(x_349); -x_352 = lean_ctor_get(x_351, 4); +x_351 = lean_st_ref_get(x_3, x_350); +x_352 = lean_ctor_get(x_351, 0); lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); +lean_inc(x_353); lean_dec(x_351); +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +x_355 = lean_ctor_get(x_354, 4); +lean_inc(x_355); +lean_dec(x_354); lean_inc(x_1); -x_353 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_352, x_1); -x_296 = x_353; -x_297 = x_350; -goto block_339; +x_356 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_355, x_1); +x_298 = x_356; +x_299 = x_353; +goto block_342; } case 1: { -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_354 = lean_ctor_get(x_341, 1); -lean_inc(x_354); -lean_dec(x_341); -x_355 = lean_st_ref_get(x_5, x_354); -x_356 = lean_ctor_get(x_355, 1); -lean_inc(x_356); -lean_dec(x_355); -x_357 = lean_st_ref_get(x_3, x_356); -x_358 = lean_ctor_get(x_357, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_357, 1); +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_357 = lean_ctor_get(x_344, 1); +lean_inc(x_357); +lean_dec(x_344); +x_358 = lean_st_ref_get(x_5, x_357); +x_359 = lean_ctor_get(x_358, 1); lean_inc(x_359); -lean_dec(x_357); -x_360 = lean_ctor_get(x_358, 1); -lean_inc(x_360); lean_dec(x_358); -x_361 = lean_ctor_get(x_360, 3); +x_360 = lean_st_ref_get(x_3, x_359); +x_361 = lean_ctor_get(x_360, 0); lean_inc(x_361); +x_362 = lean_ctor_get(x_360, 1); +lean_inc(x_362); lean_dec(x_360); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +lean_dec(x_361); +x_364 = lean_ctor_get(x_363, 3); +lean_inc(x_364); +lean_dec(x_363); lean_inc(x_1); -x_362 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_361, x_1); -x_296 = x_362; -x_297 = x_359; -goto block_339; +x_365 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_364, x_1); +x_298 = x_365; +x_299 = x_362; +goto block_342; } default: { -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_dec(x_347); +x_366 = lean_ctor_get(x_344, 1); +lean_inc(x_366); lean_dec(x_344); -x_363 = lean_ctor_get(x_341, 1); -lean_inc(x_363); -lean_dec(x_341); -x_364 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; +x_367 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_365 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_364, x_2, x_3, x_4, x_5, x_363); -if (lean_obj_tag(x_365) == 0) +x_368 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_367, x_2, x_3, x_4, x_5, x_366); +if (lean_obj_tag(x_368) == 0) { -lean_object* x_366; lean_object* x_367; -x_366 = lean_ctor_get(x_365, 0); -lean_inc(x_366); -x_367 = lean_ctor_get(x_365, 1); -lean_inc(x_367); -lean_dec(x_365); -x_296 = x_366; -x_297 = x_367; -goto block_339; +lean_object* x_369; lean_object* x_370; +x_369 = lean_ctor_get(x_368, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_368, 1); +lean_inc(x_370); +lean_dec(x_368); +x_298 = x_369; +x_299 = x_370; +goto block_342; } else { -uint8_t x_368; -lean_dec(x_293); +uint8_t x_371; +lean_dec(x_295); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_368 = !lean_is_exclusive(x_365); -if (x_368 == 0) +x_371 = !lean_is_exclusive(x_368); +if (x_371 == 0) { -return x_365; +return x_368; } else { -lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_369 = lean_ctor_get(x_365, 0); -x_370 = lean_ctor_get(x_365, 1); -lean_inc(x_370); -lean_inc(x_369); -lean_dec(x_365); -x_371 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_371, 0, x_369); -lean_ctor_set(x_371, 1, x_370); -return x_371; +lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_372 = lean_ctor_get(x_368, 0); +x_373 = lean_ctor_get(x_368, 1); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_368); +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_372); +lean_ctor_set(x_374, 1, x_373); +return x_374; } } } } } -block_339: +block_342: { -if (lean_obj_tag(x_296) == 0) +if (lean_obj_tag(x_298) == 0) { -uint8_t x_298; lean_object* x_299; -lean_dec(x_293); -x_298 = 1; +uint8_t x_300; uint8_t x_301; lean_object* x_302; +lean_dec(x_295); +x_300 = 1; +x_301 = 0; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_299 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_298, x_1, x_2, x_3, x_4, x_5, x_297); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_300); -x_302 = l_Lean_Meta_reduceNat_x3f(x_300, x_2, x_3, x_4, x_5, x_301); +x_302 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_300, x_301, x_1, x_2, x_3, x_4, x_5, x_299); if (lean_obj_tag(x_302) == 0) { -lean_object* x_303; +lean_object* x_303; lean_object* x_304; lean_object* x_305; x_303 = lean_ctor_get(x_302, 0); lean_inc(x_303); -if (lean_obj_tag(x_303) == 0) -{ -lean_object* x_304; lean_object* x_305; x_304 = lean_ctor_get(x_302, 1); lean_inc(x_304); lean_dec(x_302); @@ -34695,8 +34755,8 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_300); -x_305 = l_Lean_Meta_reduceNative_x3f(x_300, x_2, x_3, x_4, x_5, x_304); +lean_inc(x_303); +x_305 = l_Lean_Meta_reduceNat_x3f(x_303, x_2, x_3, x_4, x_5, x_304); if (lean_obj_tag(x_305) == 0) { lean_object* x_306; @@ -34712,8 +34772,8 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_300); -x_308 = l_Lean_Meta_unfoldDefinition_x3f(x_300, x_2, x_3, x_4, x_5, x_307); +lean_inc(x_303); +x_308 = l_Lean_Meta_reduceNative_x3f(x_303, x_2, x_3, x_4, x_5, x_307); if (lean_obj_tag(x_308) == 0) { lean_object* x_309; @@ -34725,687 +34785,677 @@ lean_object* x_310; lean_object* x_311; x_310 = lean_ctor_get(x_308, 1); lean_inc(x_310); lean_dec(x_308); -x_311 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_294, x_1, x_300, x_2, x_3, x_4, x_5, x_310); -return x_311; -} -else +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_303); +x_311 = l_Lean_Meta_unfoldDefinition_x3f(x_303, x_2, x_3, x_4, x_5, x_310); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_312; lean_object* x_313; lean_object* x_314; -lean_dec(x_300); -lean_dec(x_1); -x_312 = lean_ctor_get(x_308, 1); +lean_object* x_312; +x_312 = lean_ctor_get(x_311, 0); lean_inc(x_312); -lean_dec(x_308); -x_313 = lean_ctor_get(x_309, 0); +if (lean_obj_tag(x_312) == 0) +{ +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_311, 1); lean_inc(x_313); -lean_dec(x_309); -x_314 = lean_whnf(x_313, x_2, x_3, x_4, x_5, x_312); +lean_dec(x_311); +x_314 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_296, x_1, x_303, x_2, x_3, x_4, x_5, x_313); return x_314; } +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; +lean_dec(x_303); +lean_dec(x_1); +x_315 = lean_ctor_get(x_311, 1); +lean_inc(x_315); +lean_dec(x_311); +x_316 = lean_ctor_get(x_312, 0); +lean_inc(x_316); +lean_dec(x_312); +x_317 = lean_whnf(x_316, x_2, x_3, x_4, x_5, x_315); +return x_317; +} } else { -uint8_t x_315; -lean_dec(x_300); +uint8_t x_318; +lean_dec(x_303); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_315 = !lean_is_exclusive(x_308); -if (x_315 == 0) +x_318 = !lean_is_exclusive(x_311); +if (x_318 == 0) +{ +return x_311; +} +else +{ +lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_319 = lean_ctor_get(x_311, 0); +x_320 = lean_ctor_get(x_311, 1); +lean_inc(x_320); +lean_inc(x_319); +lean_dec(x_311); +x_321 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_321, 0, x_319); +lean_ctor_set(x_321, 1, x_320); +return x_321; +} +} +} +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_303); +x_322 = lean_ctor_get(x_308, 1); +lean_inc(x_322); +lean_dec(x_308); +x_323 = lean_ctor_get(x_309, 0); +lean_inc(x_323); +lean_dec(x_309); +x_324 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_296, x_1, x_323, x_2, x_3, x_4, x_5, x_322); +return x_324; +} +} +else +{ +uint8_t x_325; +lean_dec(x_303); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_325 = !lean_is_exclusive(x_308); +if (x_325 == 0) { return x_308; } else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_308, 0); -x_317 = lean_ctor_get(x_308, 1); -lean_inc(x_317); -lean_inc(x_316); +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_308, 0); +x_327 = lean_ctor_get(x_308, 1); +lean_inc(x_327); +lean_inc(x_326); lean_dec(x_308); -x_318 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set(x_318, 1, x_317); -return x_318; +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; } } } else { -lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec(x_300); -x_319 = lean_ctor_get(x_305, 1); -lean_inc(x_319); +lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_303); +x_329 = lean_ctor_get(x_305, 1); +lean_inc(x_329); lean_dec(x_305); -x_320 = lean_ctor_get(x_306, 0); -lean_inc(x_320); +x_330 = lean_ctor_get(x_306, 0); +lean_inc(x_330); lean_dec(x_306); -x_321 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_294, x_1, x_320, x_2, x_3, x_4, x_5, x_319); -return x_321; +x_331 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_296, x_1, x_330, x_2, x_3, x_4, x_5, x_329); +return x_331; } } else { -uint8_t x_322; -lean_dec(x_300); +uint8_t x_332; +lean_dec(x_303); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_322 = !lean_is_exclusive(x_305); -if (x_322 == 0) +x_332 = !lean_is_exclusive(x_305); +if (x_332 == 0) { return x_305; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_305, 0); -x_324 = lean_ctor_get(x_305, 1); -lean_inc(x_324); -lean_inc(x_323); +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_305, 0); +x_334 = lean_ctor_get(x_305, 1); +lean_inc(x_334); +lean_inc(x_333); lean_dec(x_305); -x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_323); -lean_ctor_set(x_325, 1, x_324); -return x_325; +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_333); +lean_ctor_set(x_335, 1, x_334); +return x_335; } } } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; -lean_dec(x_300); -x_326 = lean_ctor_get(x_302, 1); -lean_inc(x_326); -lean_dec(x_302); -x_327 = lean_ctor_get(x_303, 0); -lean_inc(x_327); -lean_dec(x_303); -x_328 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_294, x_1, x_327, x_2, x_3, x_4, x_5, x_326); -return x_328; -} -} -else -{ -uint8_t x_329; -lean_dec(x_300); +uint8_t x_336; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_329 = !lean_is_exclusive(x_302); -if (x_329 == 0) +x_336 = !lean_is_exclusive(x_302); +if (x_336 == 0) { return x_302; } else { -lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_330 = lean_ctor_get(x_302, 0); -x_331 = lean_ctor_get(x_302, 1); -lean_inc(x_331); -lean_inc(x_330); -lean_dec(x_302); -x_332 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_332, 0, x_330); -lean_ctor_set(x_332, 1, x_331); -return x_332; -} -} -} -else -{ -uint8_t x_333; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_333 = !lean_is_exclusive(x_299); -if (x_333 == 0) -{ -return x_299; -} -else -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; -x_334 = lean_ctor_get(x_299, 0); -x_335 = lean_ctor_get(x_299, 1); -lean_inc(x_335); -lean_inc(x_334); -lean_dec(x_299); -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_334); -lean_ctor_set(x_336, 1, x_335); -return x_336; -} -} -} -else -{ -lean_object* x_337; lean_object* x_338; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_337 = lean_ctor_get(x_296, 0); +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_302, 0); +x_338 = lean_ctor_get(x_302, 1); +lean_inc(x_338); lean_inc(x_337); -lean_dec(x_296); -if (lean_is_scalar(x_293)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_293; -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_297); -return x_338; -} +lean_dec(x_302); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_337); +lean_ctor_set(x_339, 1, x_338); +return x_339; } } } else { -uint8_t x_389; +lean_object* x_340; lean_object* x_341; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_389 = !lean_is_exclusive(x_291); -if (x_389 == 0) -{ -return x_291; +x_340 = lean_ctor_get(x_298, 0); +lean_inc(x_340); +lean_dec(x_298); +if (lean_is_scalar(x_295)) { + x_341 = lean_alloc_ctor(0, 2, 0); +} else { + x_341 = x_295; +} +lean_ctor_set(x_341, 0, x_340); +lean_ctor_set(x_341, 1, x_299); +return x_341; +} +} +} } else { -lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_390 = lean_ctor_get(x_291, 0); -x_391 = lean_ctor_get(x_291, 1); -lean_inc(x_391); -lean_inc(x_390); -lean_dec(x_291); -x_392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_392, 0, x_390); -lean_ctor_set(x_392, 1, x_391); -return x_392; +uint8_t x_392; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_392 = !lean_is_exclusive(x_293); +if (x_392 == 0) +{ +return x_293; +} +else +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_293, 0); +x_394 = lean_ctor_get(x_293, 1); +lean_inc(x_394); +lean_inc(x_393); +lean_dec(x_293); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +return x_395; } } } case 10: { -lean_object* x_393; -x_393 = lean_ctor_get(x_1, 1); -lean_inc(x_393); +lean_object* x_396; +x_396 = lean_ctor_get(x_1, 1); +lean_inc(x_396); lean_dec(x_1); -x_1 = x_393; +x_1 = x_396; goto _start; } case 11: { -lean_object* x_395; lean_object* x_396; -x_395 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; -x_396 = l_Lean_Core_checkMaxHeartbeats(x_395, x_4, x_5, x_6); -if (lean_obj_tag(x_396) == 0) +lean_object* x_398; lean_object* x_399; +x_398 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__1; +x_399 = l_Lean_Core_checkMaxHeartbeats(x_398, x_4, x_5, x_6); +if (lean_obj_tag(x_399) == 0) { -lean_object* x_397; lean_object* x_398; uint8_t x_399; lean_object* x_400; uint8_t x_478; -x_397 = lean_ctor_get(x_396, 1); -lean_inc(x_397); -if (lean_is_exclusive(x_396)) { - lean_ctor_release(x_396, 0); - lean_ctor_release(x_396, 1); - x_398 = x_396; +lean_object* x_400; lean_object* x_401; uint8_t x_402; lean_object* x_403; uint8_t x_482; +x_400 = lean_ctor_get(x_399, 1); +lean_inc(x_400); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + lean_ctor_release(x_399, 1); + x_401 = x_399; } else { - lean_dec_ref(x_396); - x_398 = lean_box(0); + lean_dec_ref(x_399); + x_401 = lean_box(0); } -x_478 = l_Lean_Expr_hasFVar(x_1); -if (x_478 == 0) +x_482 = l_Lean_Expr_hasFVar(x_1); +if (x_482 == 0) { -uint8_t x_479; -x_479 = l_Lean_Expr_hasExprMVar(x_1); -if (x_479 == 0) +uint8_t x_483; +x_483 = l_Lean_Expr_hasExprMVar(x_1); +if (x_483 == 0) { -lean_object* x_480; -x_480 = lean_ctor_get(x_2, 5); -lean_inc(x_480); -if (lean_obj_tag(x_480) == 0) +lean_object* x_484; +x_484 = lean_ctor_get(x_2, 5); +lean_inc(x_484); +if (lean_obj_tag(x_484) == 0) { -lean_object* x_481; lean_object* x_482; uint8_t x_483; lean_object* x_484; -x_481 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_397); -x_482 = lean_ctor_get(x_481, 0); -lean_inc(x_482); -x_483 = lean_ctor_get_uint8(x_482, 5); -lean_dec(x_482); -x_484 = lean_box(x_483); -switch (lean_obj_tag(x_484)) { +lean_object* x_485; lean_object* x_486; uint8_t x_487; lean_object* x_488; +x_485 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_400); +x_486 = lean_ctor_get(x_485, 0); +lean_inc(x_486); +x_487 = lean_ctor_get_uint8(x_486, 5); +lean_dec(x_486); +x_488 = lean_box(x_487); +switch (lean_obj_tag(x_488)) { case 2: { -lean_object* x_485; uint8_t x_486; -x_485 = lean_ctor_get(x_481, 1); -lean_inc(x_485); -lean_dec(x_481); -x_486 = 0; -x_399 = x_486; -x_400 = x_485; -goto block_477; +lean_object* x_489; uint8_t x_490; +x_489 = lean_ctor_get(x_485, 1); +lean_inc(x_489); +lean_dec(x_485); +x_490 = 0; +x_402 = x_490; +x_403 = x_489; +goto block_481; } case 3: { -lean_object* x_487; uint8_t x_488; -x_487 = lean_ctor_get(x_481, 1); -lean_inc(x_487); -lean_dec(x_481); -x_488 = 0; -x_399 = x_488; -x_400 = x_487; -goto block_477; +lean_object* x_491; uint8_t x_492; +x_491 = lean_ctor_get(x_485, 1); +lean_inc(x_491); +lean_dec(x_485); +x_492 = 0; +x_402 = x_492; +x_403 = x_491; +goto block_481; } default: { -lean_object* x_489; uint8_t x_490; +lean_object* x_493; uint8_t x_494; +lean_dec(x_488); +x_493 = lean_ctor_get(x_485, 1); +lean_inc(x_493); +lean_dec(x_485); +x_494 = 1; +x_402 = x_494; +x_403 = x_493; +goto block_481; +} +} +} +else +{ +uint8_t x_495; lean_dec(x_484); -x_489 = lean_ctor_get(x_481, 1); -lean_inc(x_489); -lean_dec(x_481); -x_490 = 1; -x_399 = x_490; -x_400 = x_489; -goto block_477; -} -} -} -else -{ -uint8_t x_491; -lean_dec(x_480); -x_491 = 0; -x_399 = x_491; -x_400 = x_397; -goto block_477; +x_495 = 0; +x_402 = x_495; +x_403 = x_400; +goto block_481; } } else { -uint8_t x_492; -x_492 = 0; -x_399 = x_492; -x_400 = x_397; -goto block_477; +uint8_t x_496; +x_496 = 0; +x_402 = x_496; +x_403 = x_400; +goto block_481; } } else { -uint8_t x_493; -x_493 = 0; -x_399 = x_493; -x_400 = x_397; -goto block_477; +uint8_t x_497; +x_497 = 0; +x_402 = x_497; +x_403 = x_400; +goto block_481; } -block_477: +block_481: { -lean_object* x_401; lean_object* x_402; -if (x_399 == 0) +lean_object* x_404; lean_object* x_405; +if (x_402 == 0) { -lean_object* x_445; -x_445 = lean_box(0); -x_401 = x_445; -x_402 = x_400; -goto block_444; +lean_object* x_449; +x_449 = lean_box(0); +x_404 = x_449; +x_405 = x_403; +goto block_448; } else { -lean_object* x_446; lean_object* x_447; uint8_t x_448; lean_object* x_449; -x_446 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_400); -x_447 = lean_ctor_get(x_446, 0); -lean_inc(x_447); -x_448 = lean_ctor_get_uint8(x_447, 5); -lean_dec(x_447); -x_449 = lean_box(x_448); -switch (lean_obj_tag(x_449)) { +lean_object* x_450; lean_object* x_451; uint8_t x_452; lean_object* x_453; +x_450 = l_Lean_Meta_getConfig(x_2, x_3, x_4, x_5, x_403); +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get_uint8(x_451, 5); +lean_dec(x_451); +x_453 = lean_box(x_452); +switch (lean_obj_tag(x_453)) { case 0: { -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_450 = lean_ctor_get(x_446, 1); -lean_inc(x_450); -lean_dec(x_446); -x_451 = lean_st_ref_get(x_5, x_450); -x_452 = lean_ctor_get(x_451, 1); -lean_inc(x_452); -lean_dec(x_451); -x_453 = lean_st_ref_get(x_3, x_452); -x_454 = lean_ctor_get(x_453, 0); +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_454 = lean_ctor_get(x_450, 1); lean_inc(x_454); -x_455 = lean_ctor_get(x_453, 1); -lean_inc(x_455); -lean_dec(x_453); -x_456 = lean_ctor_get(x_454, 1); +lean_dec(x_450); +x_455 = lean_st_ref_get(x_5, x_454); +x_456 = lean_ctor_get(x_455, 1); lean_inc(x_456); -lean_dec(x_454); -x_457 = lean_ctor_get(x_456, 4); -lean_inc(x_457); -lean_dec(x_456); +lean_dec(x_455); +x_457 = lean_st_ref_get(x_3, x_456); +x_458 = lean_ctor_get(x_457, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_457, 1); +lean_inc(x_459); +lean_dec(x_457); +x_460 = lean_ctor_get(x_458, 1); +lean_inc(x_460); +lean_dec(x_458); +x_461 = lean_ctor_get(x_460, 4); +lean_inc(x_461); +lean_dec(x_460); lean_inc(x_1); -x_458 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_457, x_1); -x_401 = x_458; -x_402 = x_455; -goto block_444; +x_462 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_461, x_1); +x_404 = x_462; +x_405 = x_459; +goto block_448; } case 1: { -lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; -x_459 = lean_ctor_get(x_446, 1); -lean_inc(x_459); -lean_dec(x_446); -x_460 = lean_st_ref_get(x_5, x_459); -x_461 = lean_ctor_get(x_460, 1); -lean_inc(x_461); -lean_dec(x_460); -x_462 = lean_st_ref_get(x_3, x_461); -x_463 = lean_ctor_get(x_462, 0); +lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; +x_463 = lean_ctor_get(x_450, 1); lean_inc(x_463); -x_464 = lean_ctor_get(x_462, 1); -lean_inc(x_464); -lean_dec(x_462); -x_465 = lean_ctor_get(x_463, 1); +lean_dec(x_450); +x_464 = lean_st_ref_get(x_5, x_463); +x_465 = lean_ctor_get(x_464, 1); lean_inc(x_465); -lean_dec(x_463); -x_466 = lean_ctor_get(x_465, 3); -lean_inc(x_466); -lean_dec(x_465); +lean_dec(x_464); +x_466 = lean_st_ref_get(x_3, x_465); +x_467 = lean_ctor_get(x_466, 0); +lean_inc(x_467); +x_468 = lean_ctor_get(x_466, 1); +lean_inc(x_468); +lean_dec(x_466); +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +lean_dec(x_467); +x_470 = lean_ctor_get(x_469, 3); +lean_inc(x_470); +lean_dec(x_469); lean_inc(x_1); -x_467 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_466, x_1); -x_401 = x_467; -x_402 = x_464; -goto block_444; +x_471 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1(x_470, x_1); +x_404 = x_471; +x_405 = x_468; +goto block_448; } default: { -lean_object* x_468; lean_object* x_469; lean_object* x_470; -lean_dec(x_449); -x_468 = lean_ctor_get(x_446, 1); -lean_inc(x_468); -lean_dec(x_446); -x_469 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; +lean_object* x_472; lean_object* x_473; lean_object* x_474; +lean_dec(x_453); +x_472 = lean_ctor_get(x_450, 1); +lean_inc(x_472); +lean_dec(x_450); +x_473 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_470 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_469, x_2, x_3, x_4, x_5, x_468); -if (lean_obj_tag(x_470) == 0) +x_474 = l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___spec__1(x_473, x_2, x_3, x_4, x_5, x_472); +if (lean_obj_tag(x_474) == 0) { -lean_object* x_471; lean_object* x_472; -x_471 = lean_ctor_get(x_470, 0); -lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 1); -lean_inc(x_472); -lean_dec(x_470); -x_401 = x_471; -x_402 = x_472; -goto block_444; +lean_object* x_475; lean_object* x_476; +x_475 = lean_ctor_get(x_474, 0); +lean_inc(x_475); +x_476 = lean_ctor_get(x_474, 1); +lean_inc(x_476); +lean_dec(x_474); +x_404 = x_475; +x_405 = x_476; +goto block_448; } else { -uint8_t x_473; -lean_dec(x_398); +uint8_t x_477; +lean_dec(x_401); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_473 = !lean_is_exclusive(x_470); -if (x_473 == 0) +x_477 = !lean_is_exclusive(x_474); +if (x_477 == 0) { -return x_470; +return x_474; } else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; -x_474 = lean_ctor_get(x_470, 0); -x_475 = lean_ctor_get(x_470, 1); -lean_inc(x_475); -lean_inc(x_474); -lean_dec(x_470); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_475); -return x_476; +lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_478 = lean_ctor_get(x_474, 0); +x_479 = lean_ctor_get(x_474, 1); +lean_inc(x_479); +lean_inc(x_478); +lean_dec(x_474); +x_480 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_480, 0, x_478); +lean_ctor_set(x_480, 1, x_479); +return x_480; } } } } } -block_444: +block_448: { -if (lean_obj_tag(x_401) == 0) +if (lean_obj_tag(x_404) == 0) { -uint8_t x_403; lean_object* x_404; -lean_dec(x_398); -x_403 = 1; +uint8_t x_406; uint8_t x_407; lean_object* x_408; +lean_dec(x_401); +x_406 = 1; +x_407 = 0; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_404 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_403, x_1, x_2, x_3, x_4, x_5, x_402); -if (lean_obj_tag(x_404) == 0) -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_405 = lean_ctor_get(x_404, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_404, 1); -lean_inc(x_406); -lean_dec(x_404); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_405); -x_407 = l_Lean_Meta_reduceNat_x3f(x_405, x_2, x_3, x_4, x_5, x_406); -if (lean_obj_tag(x_407) == 0) -{ -lean_object* x_408; -x_408 = lean_ctor_get(x_407, 0); -lean_inc(x_408); +x_408 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_406, x_407, x_1, x_2, x_3, x_4, x_5, x_405); if (lean_obj_tag(x_408) == 0) { -lean_object* x_409; lean_object* x_410; -x_409 = lean_ctor_get(x_407, 1); +lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_409 = lean_ctor_get(x_408, 0); lean_inc(x_409); -lean_dec(x_407); +x_410 = lean_ctor_get(x_408, 1); +lean_inc(x_410); +lean_dec(x_408); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_405); -x_410 = l_Lean_Meta_reduceNative_x3f(x_405, x_2, x_3, x_4, x_5, x_409); -if (lean_obj_tag(x_410) == 0) -{ -lean_object* x_411; -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); +lean_inc(x_409); +x_411 = l_Lean_Meta_reduceNat_x3f(x_409, x_2, x_3, x_4, x_5, x_410); if (lean_obj_tag(x_411) == 0) { -lean_object* x_412; lean_object* x_413; -x_412 = lean_ctor_get(x_410, 1); +lean_object* x_412; +x_412 = lean_ctor_get(x_411, 0); lean_inc(x_412); -lean_dec(x_410); +if (lean_obj_tag(x_412) == 0) +{ +lean_object* x_413; lean_object* x_414; +x_413 = lean_ctor_get(x_411, 1); +lean_inc(x_413); +lean_dec(x_411); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_405); -x_413 = l_Lean_Meta_unfoldDefinition_x3f(x_405, x_2, x_3, x_4, x_5, x_412); -if (lean_obj_tag(x_413) == 0) -{ -lean_object* x_414; -x_414 = lean_ctor_get(x_413, 0); -lean_inc(x_414); +lean_inc(x_409); +x_414 = l_Lean_Meta_reduceNative_x3f(x_409, x_2, x_3, x_4, x_5, x_413); if (lean_obj_tag(x_414) == 0) { -lean_object* x_415; lean_object* x_416; -x_415 = lean_ctor_get(x_413, 1); +lean_object* x_415; +x_415 = lean_ctor_get(x_414, 0); lean_inc(x_415); -lean_dec(x_413); -x_416 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_399, x_1, x_405, x_2, x_3, x_4, x_5, x_415); -return x_416; -} -else +if (lean_obj_tag(x_415) == 0) { -lean_object* x_417; lean_object* x_418; lean_object* x_419; -lean_dec(x_405); -lean_dec(x_1); -x_417 = lean_ctor_get(x_413, 1); -lean_inc(x_417); -lean_dec(x_413); -x_418 = lean_ctor_get(x_414, 0); -lean_inc(x_418); +lean_object* x_416; lean_object* x_417; +x_416 = lean_ctor_get(x_414, 1); +lean_inc(x_416); lean_dec(x_414); -x_419 = lean_whnf(x_418, x_2, x_3, x_4, x_5, x_417); -return x_419; -} -} -else +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_409); +x_417 = l_Lean_Meta_unfoldDefinition_x3f(x_409, x_2, x_3, x_4, x_5, x_416); +if (lean_obj_tag(x_417) == 0) { -uint8_t x_420; -lean_dec(x_405); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_420 = !lean_is_exclusive(x_413); -if (x_420 == 0) +lean_object* x_418; +x_418 = lean_ctor_get(x_417, 0); +lean_inc(x_418); +if (lean_obj_tag(x_418) == 0) { -return x_413; +lean_object* x_419; lean_object* x_420; +x_419 = lean_ctor_get(x_417, 1); +lean_inc(x_419); +lean_dec(x_417); +x_420 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_402, x_1, x_409, x_2, x_3, x_4, x_5, x_419); +return x_420; } else { lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_421 = lean_ctor_get(x_413, 0); -x_422 = lean_ctor_get(x_413, 1); -lean_inc(x_422); +lean_dec(x_409); +lean_dec(x_1); +x_421 = lean_ctor_get(x_417, 1); lean_inc(x_421); -lean_dec(x_413); -x_423 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_423, 0, x_421); -lean_ctor_set(x_423, 1, x_422); +lean_dec(x_417); +x_422 = lean_ctor_get(x_418, 0); +lean_inc(x_422); +lean_dec(x_418); +x_423 = lean_whnf(x_422, x_2, x_3, x_4, x_5, x_421); return x_423; } } -} else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; -lean_dec(x_405); -x_424 = lean_ctor_get(x_410, 1); -lean_inc(x_424); -lean_dec(x_410); -x_425 = lean_ctor_get(x_411, 0); -lean_inc(x_425); -lean_dec(x_411); -x_426 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_399, x_1, x_425, x_2, x_3, x_4, x_5, x_424); -return x_426; -} -} -else -{ -uint8_t x_427; -lean_dec(x_405); +uint8_t x_424; +lean_dec(x_409); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_427 = !lean_is_exclusive(x_410); -if (x_427 == 0) +x_424 = !lean_is_exclusive(x_417); +if (x_424 == 0) { -return x_410; +return x_417; +} +else +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_425 = lean_ctor_get(x_417, 0); +x_426 = lean_ctor_get(x_417, 1); +lean_inc(x_426); +lean_inc(x_425); +lean_dec(x_417); +x_427 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_427, 0, x_425); +lean_ctor_set(x_427, 1, x_426); +return x_427; +} +} } else { lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_428 = lean_ctor_get(x_410, 0); -x_429 = lean_ctor_get(x_410, 1); -lean_inc(x_429); +lean_dec(x_409); +x_428 = lean_ctor_get(x_414, 1); lean_inc(x_428); -lean_dec(x_410); -x_430 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_430, 0, x_428); -lean_ctor_set(x_430, 1, x_429); +lean_dec(x_414); +x_429 = lean_ctor_get(x_415, 0); +lean_inc(x_429); +lean_dec(x_415); +x_430 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_402, x_1, x_429, x_2, x_3, x_4, x_5, x_428); return x_430; } } -} else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; -lean_dec(x_405); -x_431 = lean_ctor_get(x_407, 1); -lean_inc(x_431); -lean_dec(x_407); -x_432 = lean_ctor_get(x_408, 0); -lean_inc(x_432); -lean_dec(x_408); -x_433 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_399, x_1, x_432, x_2, x_3, x_4, x_5, x_431); -return x_433; -} -} -else -{ -uint8_t x_434; -lean_dec(x_405); +uint8_t x_431; +lean_dec(x_409); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_434 = !lean_is_exclusive(x_407); -if (x_434 == 0) +x_431 = !lean_is_exclusive(x_414); +if (x_431 == 0) { -return x_407; +return x_414; +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_414, 0); +x_433 = lean_ctor_get(x_414, 1); +lean_inc(x_433); +lean_inc(x_432); +lean_dec(x_414); +x_434 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_434, 0, x_432); +lean_ctor_set(x_434, 1, x_433); +return x_434; +} +} } else { lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_435 = lean_ctor_get(x_407, 0); -x_436 = lean_ctor_get(x_407, 1); -lean_inc(x_436); +lean_dec(x_409); +x_435 = lean_ctor_get(x_411, 1); lean_inc(x_435); -lean_dec(x_407); -x_437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_437, 0, x_435); -lean_ctor_set(x_437, 1, x_436); +lean_dec(x_411); +x_436 = lean_ctor_get(x_412, 0); +lean_inc(x_436); +lean_dec(x_412); +x_437 = l___private_Lean_Meta_WHNF_0__Lean_Meta_cache(x_402, x_1, x_436, x_2, x_3, x_4, x_5, x_435); return x_437; } } -} else { uint8_t x_438; +lean_dec(x_409); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_438 = !lean_is_exclusive(x_404); +x_438 = !lean_is_exclusive(x_411); if (x_438 == 0) { -return x_404; +return x_411; } else { lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_439 = lean_ctor_get(x_404, 0); -x_440 = lean_ctor_get(x_404, 1); +x_439 = lean_ctor_get(x_411, 0); +x_440 = lean_ctor_get(x_411, 1); lean_inc(x_440); lean_inc(x_439); -lean_dec(x_404); +lean_dec(x_411); x_441 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_441, 0, x_439); lean_ctor_set(x_441, 1, x_440); @@ -35415,66 +35465,94 @@ return x_441; } else { -lean_object* x_442; lean_object* x_443; +uint8_t x_442; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_442 = lean_ctor_get(x_401, 0); -lean_inc(x_442); -lean_dec(x_401); -if (lean_is_scalar(x_398)) { - x_443 = lean_alloc_ctor(0, 2, 0); +x_442 = !lean_is_exclusive(x_408); +if (x_442 == 0) +{ +return x_408; +} +else +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_443 = lean_ctor_get(x_408, 0); +x_444 = lean_ctor_get(x_408, 1); +lean_inc(x_444); +lean_inc(x_443); +lean_dec(x_408); +x_445 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_445, 0, x_443); +lean_ctor_set(x_445, 1, x_444); +return x_445; +} +} +} +else +{ +lean_object* x_446; lean_object* x_447; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_446 = lean_ctor_get(x_404, 0); +lean_inc(x_446); +lean_dec(x_404); +if (lean_is_scalar(x_401)) { + x_447 = lean_alloc_ctor(0, 2, 0); } else { - x_443 = x_398; + x_447 = x_401; } -lean_ctor_set(x_443, 0, x_442); -lean_ctor_set(x_443, 1, x_402); -return x_443; +lean_ctor_set(x_447, 0, x_446); +lean_ctor_set(x_447, 1, x_405); +return x_447; } } } } else { -uint8_t x_494; +uint8_t x_498; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_494 = !lean_is_exclusive(x_396); -if (x_494 == 0) +x_498 = !lean_is_exclusive(x_399); +if (x_498 == 0) { -return x_396; +return x_399; } else { -lean_object* x_495; lean_object* x_496; lean_object* x_497; -x_495 = lean_ctor_get(x_396, 0); -x_496 = lean_ctor_get(x_396, 1); -lean_inc(x_496); -lean_inc(x_495); -lean_dec(x_396); -x_497 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_497, 0, x_495); -lean_ctor_set(x_497, 1, x_496); -return x_497; +lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_499 = lean_ctor_get(x_399, 0); +x_500 = lean_ctor_get(x_399, 1); +lean_inc(x_500); +lean_inc(x_499); +lean_dec(x_399); +x_501 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_501, 0, x_499); +lean_ctor_set(x_501, 1, x_500); +return x_501; } } } default: { -lean_object* x_498; +lean_object* x_502; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_498 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_498, 0, x_1); -lean_ctor_set(x_498, 1, x_6); -return x_498; +x_502 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_502, 0, x_1); +lean_ctor_set(x_502, 1, x_6); +return x_502; } } } @@ -35750,7 +35828,7 @@ return x_38; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -35760,17 +35838,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3() { _start: { lean_object* x_1; @@ -35778,17 +35856,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5() { _start: { lean_object* x_1; @@ -35796,37 +35874,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__7; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_36____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9() { _start: { lean_object* x_1; @@ -35834,17 +35912,17 @@ x_1 = lean_mk_string_from_bytes("WHNF", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11() { _start: { lean_object* x_1; @@ -35852,33 +35930,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12; -x_2 = lean_unsigned_to_nat(10674u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12; +x_2 = lean_unsigned_to_nat(10706u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3___closed__2; x_3 = 0; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -36216,33 +36294,33 @@ l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__1 = _init_l___private_Le lean_mark_persistent(l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__1); l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__2 = _init_l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__2(); lean_mark_persistent(l___private_Lean_Meta_WHNF_0__Lean_Meta_cache___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__12); -l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674____closed__13); -res = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10674_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__12); +l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706____closed__13); +res = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_10706_(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/Parser/Syntax.c b/stage0/stdlib/Lean/Parser/Syntax.c index df37f9dc0b..e6fca0ca86 100644 --- a/stage0/stdlib/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Lean/Parser/Syntax.c @@ -190,6 +190,7 @@ static lean_object* l_Lean_Parser_Command_syntaxAbbrev___closed__4; static lean_object* l___regBuiltin_Lean_Parser_Syntax_sepBy_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Command_elab__rules_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Syntax_sepBy___closed__18; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_mixfix_formatter___closed__3; static lean_object* l_Lean_Parser_Command_catBehavior_formatter___closed__3; static lean_object* l___regBuiltin_Lean_Parser_Command_elab_declRange___closed__4; @@ -1163,6 +1164,7 @@ static lean_object* l_Lean_Parser_Command_postfix_formatter___closed__1; static lean_object* l_Lean_Parser_Syntax_binary___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_syntaxAbbrev(lean_object*); static lean_object* l_Lean_Parser_Syntax_paren___closed__10; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer(lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Command_infixr_parenthesizer___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Syntax_cat_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Syntax_cat_parenthesizer___closed__5; @@ -1231,6 +1233,7 @@ static lean_object* l_Lean_Parser_Command_postfix_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_elab___closed__9; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_prefix_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Command_catBehaviorSymbol___closed__3; +static lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2; static lean_object* l_Lean_Parser_Command_macroArg___closed__12; static lean_object* l___regBuiltin_Lean_Parser_Syntax_sepBy1_parenthesizer___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Command_notation_declRange___closed__3; @@ -1293,6 +1296,7 @@ static lean_object* l_Lean_Parser_Syntax_atom_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_notation_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_postfix_formatter___closed__2; static lean_object* l_Lean_Parser_Command_elab___closed__4; +static lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Syntax_nonReserved_declRange___closed__2; static lean_object* l_Lean_Parser_Command_postfix___closed__7; LEAN_EXPORT lean_object* l_Lean_Parser_Command_postfix_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1309,6 +1313,7 @@ static lean_object* l_Lean_Parser_Command_elab_formatter___closed__12; static lean_object* l_Lean_Parser_Command_mixfix___closed__18; lean_object* l_Lean_Parser_orelse(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_macroArg_parenthesizer___closed__1; +static lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_optKind___closed__5; static lean_object* l_Lean_Parser_Command_macroArg___closed__9; static lean_object* l_Lean_Parser_Command_macro__rules___closed__2; @@ -1333,6 +1338,7 @@ static lean_object* l_Lean_Parser_Command_prefix___closed__7; static lean_object* l_Lean_Parser_Command_optKind___closed__3; static lean_object* l_Lean_Parser_Command_infixr___closed__4; static lean_object* l_Lean_Parser_Syntax_binary___closed__9; +static lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Command_infix_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_catBehaviorSymbol_formatter___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_namedName_formatter(lean_object*); @@ -10970,6 +10976,39 @@ x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1() { +_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_Parser_initFn____x40_Lean_Parser_Syntax___hyg_5____closed__3; +x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Syntax___hyg_5____closed__4; +x_3 = l_Lean_Parser_Command_namedName___closed__1; +x_4 = l_Lean_Parser_Command_macro__rules___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Syntax_paren_formatter___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macro__rules_formatter), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_formatter(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___regBuiltin_Lean_Parser_Syntax_paren_formatter___closed__3; +x_3 = l_Lean_Parser_Command_macro__rules___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Command_optKind_parenthesizer___closed__1() { _start: { @@ -11168,6 +11207,39 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_ return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1() { +_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_Parser_initFn____x40_Lean_Parser_Syntax___hyg_5____closed__3; +x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Syntax___hyg_5____closed__4; +x_3 = l_Lean_Parser_Command_namedName___closed__1; +x_4 = l_Lean_Parser_Command_macro__rules___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Syntax_paren_parenthesizer___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macro__rules_parenthesizer), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer(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___regBuiltin_Lean_Parser_Syntax_paren_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Command_macro__rules___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Command_syntax___closed__1() { _start: { @@ -18880,6 +18952,13 @@ l_Lean_Parser_Command_macro__rules_formatter___closed__9 = _init_l_Lean_Parser_C lean_mark_persistent(l_Lean_Parser_Command_macro__rules_formatter___closed__9); l_Lean_Parser_Command_macro__rules_formatter___closed__10 = _init_l_Lean_Parser_Command_macro__rules_formatter___closed__10(); lean_mark_persistent(l_Lean_Parser_Command_macro__rules_formatter___closed__10); +l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__1); +l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro__rules_formatter___closed__2); +res = l___regBuiltin_Lean_Parser_Command_macro__rules_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Command_optKind_parenthesizer___closed__1 = _init_l_Lean_Parser_Command_optKind_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_optKind_parenthesizer___closed__1); l_Lean_Parser_Command_optKind_parenthesizer___closed__2 = _init_l_Lean_Parser_Command_optKind_parenthesizer___closed__2(); @@ -18910,6 +18989,13 @@ l_Lean_Parser_Command_macro__rules_parenthesizer___closed__9 = _init_l_Lean_Pars lean_mark_persistent(l_Lean_Parser_Command_macro__rules_parenthesizer___closed__9); l_Lean_Parser_Command_macro__rules_parenthesizer___closed__10 = _init_l_Lean_Parser_Command_macro__rules_parenthesizer___closed__10(); lean_mark_persistent(l_Lean_Parser_Command_macro__rules_parenthesizer___closed__10); +l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__1); +l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer___closed__2); +res = l___regBuiltin_Lean_Parser_Command_macro__rules_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Command_syntax___closed__1 = _init_l_Lean_Parser_Command_syntax___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_syntax___closed__1); l_Lean_Parser_Command_syntax___closed__2 = _init_l_Lean_Parser_Command_syntax___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 0c2a8a1332..6b941dbc56 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -143,6 +143,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_completion_declRange___close static lean_object* l___regBuiltin_Lean_Parser_Term_typeOf_declRange___closed__2; static lean_object* l_Lean_Parser_Term_byTactic_x27___closed__3; static lean_object* l_Lean_Parser_Term_haveIdDecl_parenthesizer___closed__6; +static lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_unreachable___closed__2; static lean_object* l_Lean_Parser_Term_let__tmp_formatter___closed__4; static lean_object* l_Lean_Parser_Term_structInstFieldAbbrev___closed__13; @@ -158,6 +159,7 @@ static lean_object* l_Lean_Parser_Term_cdot___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_noImplicitLambda_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_letMVar_parenthesizer___closed__4; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_4849____closed__33; +static lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_letRecDecls_formatter___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Term_forInMacro_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_suffices___closed__1; @@ -396,6 +398,7 @@ static lean_object* l_Lean_Parser_Term_letMVar_formatter___closed__7; static lean_object* l___regBuiltin_Lean_Parser_Term_letMVar_formatter___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_trueVal_formatter___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2; static lean_object* l_Lean_Parser_Term_stateRefT___closed__10; static lean_object* l_Lean_Parser_Term_argument___closed__7; static lean_object* l_Lean_Parser_Term_inaccessible___closed__9; @@ -447,6 +450,7 @@ static lean_object* l_Lean_Parser_Tactic_quot_formatter___closed__7; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_pipeProj_formatter(lean_object*); static lean_object* l_Lean_Parser_Term_typeOf___closed__4; static lean_object* l___regBuiltin_Lean_Parser_Term_sorry_declRange___closed__7; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer(lean_object*); lean_object* l_Lean_Parser_sepBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_completion_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Term_fun___closed__10; @@ -490,6 +494,7 @@ extern lean_object* l_Lean_Parser_charLit; LEAN_EXPORT lean_object* l_Lean_Parser_Term_waitIfContainsMVar_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Term_prop_declRange___closed__2; static lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__7; +static lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_cdot_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Term_withDeclName_formatter___closed__5; static lean_object* l_Lean_Parser_Term_inaccessible___closed__4; @@ -523,7 +528,9 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Term_match_parenthesizer(lean_object*, le static lean_object* l_Lean_Parser_Term_letIdLhs_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Term_suffices_parenthesizer___closed__7; static lean_object* l_Lean_Parser_Term_cdot___closed__8; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_formatter(lean_object*); static lean_object* l_Lean_Parser_Term_sort_parenthesizer___closed__1; +static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_sorry_declRange(lean_object*); static lean_object* l_Lean_Parser_Term_letDecl_parenthesizer___closed__3; static lean_object* l___regBuiltin_Lean_Parser_Term_structInst_declRange___closed__4; @@ -603,6 +610,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_explicit_declRange___closed_ static lean_object* l___regBuiltin_Lean_Parser_Term_binop_formatter___closed__1; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_4849____closed__10; static lean_object* l_Lean_Parser_Term_implicitBinder_parenthesizer___closed__1; +static lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1; static lean_object* l_Lean_Parser_Term_structInstFieldAbbrev_parenthesizer___closed__7; static lean_object* l_Lean_Parser_Term_explicitUniv_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__2; @@ -653,6 +661,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_binrel__no__prop_parenthesiz lean_object* l_Lean_Parser_incQuotDepth_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Term_implicitBinder_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_quot___closed__10; +static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange___closed__7; static lean_object* l_Lean_Parser_Term_letRecDecl_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Term_structInstLVal___closed__10; @@ -735,7 +744,6 @@ static lean_object* l_Lean_Parser_Term_anonymousCtor___closed__4; static lean_object* l_Lean_Parser_Term_forall___closed__15; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_assert_formatter(lean_object*); static lean_object* l_Lean_Parser_Term_pipeProj_formatter___closed__5; -static lean_object* l_Lean_Parser_Term_attributes_formatter___closed__8; static lean_object* l_Lean_Parser_Term_letMVar___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_sorry_docString___closed__1; static lean_object* l_Lean_Parser_Term_basicFun_formatter___closed__10; @@ -759,7 +767,6 @@ static lean_object* l_Lean_Parser_Term_clear_parenthesizer___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_dbgTrace_formatter___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_leading__parser_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_attributes___closed__9; -static lean_object* l_Lean_Parser_Term_bracketedBinder_formatter___closed__2; static lean_object* l_Lean_Parser_Tactic_quotSeq___closed__9; static lean_object* l_Lean_Parser_Term_type_formatter___closed__6; static lean_object* l_Lean_Parser_Term_noErrorIfUnused___closed__1; @@ -1313,6 +1320,7 @@ static lean_object* l_Lean_Parser_Term_waitIfTypeContainsMVar___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_hole_docString___closed__1; static lean_object* l_Lean_Parser_Term_structInst_formatter___closed__17; static lean_object* l_Lean_Parser_Term_matchDiscr___closed__5; +static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1; static lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_forall_parenthesizer___closed__5; static lean_object* l_Lean_Parser_Term_optEllipsis_formatter___closed__2; @@ -1490,6 +1498,7 @@ static lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__17; static lean_object* l___regBuiltin_Lean_Parser_Term_letMVar_declRange___closed__3; static lean_object* l_Lean_Parser_Term_binop_formatter___closed__4; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__2; +static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2; extern lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute; static lean_object* l_Lean_Parser_Term_funStrictImplicitBinder___closed__1; static lean_object* l_Lean_Parser_Term_suffices___closed__4; @@ -1649,6 +1658,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_explicitUniv_declRange___clo LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_stateRefT_formatter(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_byTactic_x27_formatter(lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Term_falseVal_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2; static lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__9; static lean_object* l_Lean_Parser_Term_namedArgument_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_docComment___closed__4; @@ -1795,6 +1805,7 @@ static lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_sepBy1IndentSemicolon(lean_object*); static lean_object* l_Lean_Parser_Term_forall___closed__11; static lean_object* l_Lean_Parser_Term_binrel___closed__5; +static lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1; static lean_object* l_Lean_Parser_Term_letRecDecls_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_paren_formatter___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_hole_declRange___closed__7; @@ -1850,7 +1861,6 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_basicFun_parenthesizer___clo static lean_object* l_Lean_Parser_Term_tuple_formatter___closed__4; static lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange___closed__6; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_unop_declRange(lean_object*); -static lean_object* l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_tuple_parenthesizer___closed__4; static lean_object* l___regBuiltin_Lean_Parser_Term_assert_declRange___closed__2; lean_object* l_Lean_Parser_finishCommentBlock___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -2160,6 +2170,7 @@ static lean_object* l_Lean_Parser_Term_ensureTypeOf___closed__11; static lean_object* l_Lean_Parser_Tactic_initFn____x40_Lean_Parser_Term___hyg_195____closed__7; static lean_object* l___regBuiltin_Lean_Parser_Term_subst_declRange___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_tuple_formatter(lean_object*); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Term_letIdDecl_parenthesizer___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_depArrow_formatter(lean_object*); static lean_object* l_Lean_Parser_Term_attrInstance___closed__2; @@ -2582,6 +2593,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Term_attrInstance_parenthesizer(lean_obje static lean_object* l_Lean_Parser_Term_byTactic___closed__7; static lean_object* l___regBuiltin_Lean_Parser_Term_depArrow_declRange___closed__7; static lean_object* l_Lean_Parser_Term_nomatch_parenthesizer___closed__3; +static lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_unop_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Term_panic_parenthesizer___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern(lean_object*); @@ -2720,6 +2732,7 @@ static lean_object* l_Lean_Parser_Term_generalizingParam_formatter___closed__5; static lean_object* l_Lean_Parser_Term_motive_formatter___closed__5; static lean_object* l_Lean_Parser_Term_letIdBinder_formatter___closed__1; lean_object* l_Lean_Parser_rawCh(uint32_t, uint8_t); +static lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_nomatch(lean_object*); static lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__6; static lean_object* l_Lean_Parser_Term_matchAlt_parenthesizer___closed__3; @@ -2799,6 +2812,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Term_binop_parenthesizer(lean_object*, le static lean_object* l_Lean_Parser_Term_optExprPrecedence___closed__5; static lean_object* l_Lean_Parser_Term_haveDecl_parenthesizer___closed__3; lean_object* l_Lean_Parser_registerAlias(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_formatter(lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Term_haveIdDecl_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_match_formatter___closed__6; static lean_object* l_Lean_Parser_Term_pipeProj_formatter___closed__1; @@ -2811,6 +2825,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_paren_declRange___closed__2; static lean_object* l_Lean_Parser_Term_pipeProj_formatter___closed__2; static lean_object* l_Lean_Parser_Term_binop__lazy_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__4; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer(lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Term_let__tmp_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_structInstFieldAbbrev_formatter___closed__2; @@ -3257,7 +3272,6 @@ static lean_object* l_Lean_Parser_Term_instBinder___closed__1; static lean_object* l_Lean_Parser_Term_match___closed__17; static lean_object* l_Lean_Parser_Term_attrKind_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Term_trueVal___closed__3; -static lean_object* l_Lean_Parser_Term_attributes_parenthesizer___closed__8; static lean_object* l___regBuiltin_Lean_Parser_Term_doubleQuotedName_declRange___closed__3; static lean_object* l_Lean_Parser_Term_noImplicitLambda_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_defaultOrOfNonempty___closed__2; @@ -3417,7 +3431,6 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_matchDiscr_parenthesizer___c static lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__10; static lean_object* l_Lean_Parser_Tactic_quotSeq___closed__5; static lean_object* l_Lean_Parser_Term_inaccessible___closed__7; -static lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__20; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_proj(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_4849____closed__21; LEAN_EXPORT lean_object* l_Lean_Parser_Term_strictImplicitLeftBracket_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3752,6 +3765,7 @@ static lean_object* l_Lean_Parser_Term_fromTerm___closed__6; static lean_object* l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__6; static lean_object* l_Lean_Parser_Term_char_parenthesizer___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Term_type; +static lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Term_binrel_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Term_proj_declRange___closed__7; lean_object* l_Lean_PrettyPrinter_Formatter_pushNone_formatter___boxed(lean_object*); @@ -3782,6 +3796,7 @@ static lean_object* l_Lean_Parser_Term_haveIdDecl___closed__2; static lean_object* l_Lean_Parser_Term_letIdDecl_formatter___closed__6; static lean_object* l_Lean_Parser_Term_trueVal_formatter___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_trailing__parser_parenthesizer___closed__2; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer(lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Term_forInMacro_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_waitIfContainsMVar_declRange___closed__5; static lean_object* l_Lean_Parser_Term_letIdDecl___closed__7; @@ -4117,6 +4132,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_app_declRange___closed__6; lean_object* l_Lean_Parser_nameLit_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__10; static lean_object* l_Lean_Parser_Term_proj_parenthesizer___closed__2; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_semicolonOrLinebreak_formatter___closed__3; static lean_object* l_Lean_Parser_Term_implicitBinder___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_structInstLVal_formatter___closed__2; @@ -4192,7 +4208,6 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_have_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Parser_Term_str_declRange___closed__7; static lean_object* l_Lean_Parser_Term_withDeclName___closed__6; static lean_object* l_Lean_Parser_Term_withAnonymousAntiquot___closed__6; -static lean_object* l_Lean_Parser_Term_structInst_formatter___closed__20; static lean_object* l_Lean_Parser_Term_structInstField_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Term_basicFun_parenthesizer___closed__5; LEAN_EXPORT lean_object* l_Lean_Parser_Term_sort_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4874,6 +4889,7 @@ static lean_object* l_Lean_Parser_Term_binop__lazy_formatter___closed__3; static lean_object* l_Lean_Parser_Term_basicFun_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Term_letrec___closed__10; static lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__1; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_formatter(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__delayed_docString(lean_object*); static lean_object* l_Lean_Parser_Term_fromTerm_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Tactic_tacticSeq___closed__5; @@ -4884,6 +4900,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_basicFun_formatter___closed_ static lean_object* l_Lean_Parser_Term_forInMacro_parenthesizer___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_char(lean_object*); static lean_object* l_Lean_Parser_Term_hole___closed__8; +static lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_sufficesDecl_formatter___closed__8; static lean_object* l_Lean_Parser_Term_letMVar_parenthesizer___closed__3; @@ -5050,6 +5067,7 @@ static lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__7; static lean_object* l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_subst_declRange___closed__3; static lean_object* l_Lean_Parser_Term_unop___closed__6; +static lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Tactic_quotSeq_parenthesizer(lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Term_type_declRange___closed__6; static lean_object* l_Lean_Parser_Term_declName___closed__7; @@ -18292,6 +18310,39 @@ x_7 = l_Lean_Parser_ppGroup_formatter(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_structInstField___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstField_formatter), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_formatter(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__3; +x_3 = l_Lean_Parser_Term_structInstField___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_optEllipsis_formatter___closed__1() { _start: { @@ -18450,28 +18501,20 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstField_formatter), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__7() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Parser_Term_structInstFieldAbbrev_formatter___closed__2; -x_2 = l_Lean_Parser_Term_structInst_formatter___closed__6; +x_2 = l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__8() { +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__7; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__6; x_2 = l_Lean_Parser_Term_tuple___closed__4; x_3 = l_Lean_Parser_Term_tuple_formatter___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_sepByIndent_formatter___boxed), 8, 3); @@ -18481,7 +18524,7 @@ lean_closure_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__9() { +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18493,21 +18536,33 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__10() { +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__8; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_optional_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Parser_Term_optEllipsis_formatter___closed__2; +x_2 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Parser_Term_optEllipsis_formatter___closed__2; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__7; x_2 = l_Lean_Parser_Term_structInst_formatter___closed__10; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -18519,7 +18574,7 @@ static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__12() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__8; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__5; x_2 = l_Lean_Parser_Term_structInst_formatter___closed__11; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -18530,8 +18585,16 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__13() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_ppHardSpace_formatter___boxed), 5, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__5; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__13; x_2 = l_Lean_Parser_Term_structInst_formatter___closed__12; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -18539,37 +18602,17 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__14() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_ppHardSpace_formatter___boxed), 5, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__15() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__14; -x_2 = l_Lean_Parser_Term_structInst_formatter___closed__13; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__16() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__15; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__14; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_withoutPosition_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__17() { +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -18579,11 +18622,23 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInst_formatter___closed__15; +x_2 = l_Lean_Parser_Term_structInst_formatter___closed__16; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_formatter___closed__16; +x_1 = l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__2; x_2 = l_Lean_Parser_Term_structInst_formatter___closed__17; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -18594,22 +18649,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__19() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__2; -x_2 = l_Lean_Parser_Term_structInst_formatter___closed__18; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__20() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_structInst___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_structInst_formatter___closed__19; +x_3 = l_Lean_Parser_Term_structInst_formatter___closed__18; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -18622,7 +18665,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Term_structInst_formatter___closed__1; -x_7 = l_Lean_Parser_Term_structInst_formatter___closed__20; +x_7 = l_Lean_Parser_Term_structInst_formatter___closed__19; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -19181,6 +19224,39 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_ return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_structInstField___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstField_parenthesizer), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Term_structInstField___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__1() { _start: { @@ -19339,28 +19415,20 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstField_parenthesizer), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__7() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Parser_Term_structInstFieldAbbrev_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__6; +x_2 = l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__8() { +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__7; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__6; x_2 = l_Lean_Parser_Term_tuple___closed__4; x_3 = l_Lean_Parser_Term_tuple_parenthesizer___closed__2; x_4 = 1; @@ -19373,7 +19441,7 @@ lean_closure_set(x_6, 3, x_5); return x_6; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__9() { +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -19385,21 +19453,33 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__10() { +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__9; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__8; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_optional_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Parser_Term_optEllipsis_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__9; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Parser_Term_optEllipsis_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__7; x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__10; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -19411,7 +19491,7 @@ static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__8; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__5; x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__11; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -19422,8 +19502,16 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__13() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_ppHardSpace_parenthesizer___boxed), 4, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__5; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__13; x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__12; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -19431,37 +19519,17 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__14() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_ppHardSpace_parenthesizer___boxed), 4, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__15() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__14; -x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__13; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__16() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__15; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__14; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_withoutPosition_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__17() { +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -19471,11 +19539,23 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__15; +x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__16; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst_parenthesizer___closed__16; +x_1 = l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__2; x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__17; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -19486,22 +19566,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__19() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__18; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__20() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_structInst___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_structInst_parenthesizer___closed__19; +x_3 = l_Lean_Parser_Term_structInst_parenthesizer___closed__18; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -19514,7 +19582,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Term_structInst_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Term_structInst_parenthesizer___closed__20; +x_7 = l_Lean_Parser_Term_structInst_parenthesizer___closed__19; x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -21581,7 +21649,7 @@ _start: if (x_1 == 0) { lean_object* x_7; lean_object* x_8; -x_7 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_7 = l_Lean_Parser_Term_structInst_formatter___closed__8; x_8 = l_Lean_Parser_optional_formatter(x_7, x_2, x_3, x_4, x_5, x_6); return x_8; } @@ -21589,7 +21657,7 @@ else { lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = l_Lean_Parser_Term_binderType___closed__3; -x_10 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_10 = l_Lean_Parser_Term_structInst_formatter___closed__8; x_11 = l_Lean_PrettyPrinter_Formatter_node_formatter(x_9, x_10, x_2, x_3, x_4, x_5, x_6); return x_11; } @@ -22326,6 +22394,39 @@ x_7 = l_Lean_Parser_ppGroup_formatter(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_instBinder___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_instBinder_formatter), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_formatter(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__3; +x_3 = l_Lean_Parser_Term_instBinder___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_bracketedBinder_formatter___closed__1() { _start: { @@ -22343,14 +22444,6 @@ lean_closure_set(x_6, 3, x_5); return x_6; } } -static lean_object* _init_l_Lean_Parser_Term_bracketedBinder_formatter___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_instBinder_formatter), 5, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Parser_Term_bracketedBinder_formatter(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -22364,7 +22457,7 @@ lean_closure_set(x_10, 0, x_9); x_11 = lean_box(x_1); x_12 = lean_alloc_closure((void*)(l_Lean_Parser_Term_implicitBinder_formatter___boxed), 6, 1); lean_closure_set(x_12, 0, x_11); -x_13 = l_Lean_Parser_Term_bracketedBinder_formatter___closed__2; +x_13 = l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2; x_14 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); @@ -23254,6 +23347,39 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_ return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_instBinder___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_instBinder_parenthesizer), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Term_instBinder___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__1() { _start: { @@ -23271,14 +23397,6 @@ lean_closure_set(x_6, 3, x_5); return x_6; } } -static lean_object* _init_l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_instBinder_parenthesizer), 5, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Parser_Term_bracketedBinder_parenthesizer(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -23292,7 +23410,7 @@ lean_closure_set(x_10, 0, x_9); x_11 = lean_box(x_1); x_12 = lean_alloc_closure((void*)(l_Lean_Parser_Term_implicitBinder_parenthesizer___boxed), 6, 1); lean_closure_set(x_12, 0, x_11); -x_13 = l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2; +x_13 = l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2; x_14 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); @@ -23745,7 +23863,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_typeSpec___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_3 = l_Lean_Parser_Term_structInst_formatter___closed__8; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -28444,7 +28562,7 @@ static lean_object* _init_l_Lean_Parser_Term_funBinder_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_bracketedBinder_formatter___closed__2; +x_1 = l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2; x_2 = l_Lean_Parser_Term_typeAscription_formatter___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -28984,7 +29102,7 @@ static lean_object* _init_l_Lean_Parser_Term_funBinder_parenthesizer___closed__2 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2; +x_1 = l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2; x_2 = l_Lean_Parser_Term_explicit_parenthesizer___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -38890,6 +39008,39 @@ x_7 = l_Lean_Parser_ppGroup_formatter(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_attrInstance___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrInstance_formatter), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_formatter(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__3; +x_3 = l_Lean_Parser_Term_attrInstance___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__1() { _start: { @@ -38921,16 +39072,8 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrInstance_formatter), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Parser_Term_attributes_formatter___closed__3; +x_1 = l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2; x_2 = l_Lean_Parser_Term_tuple___closed__4; x_3 = l_Lean_Parser_Term_tuple_formatter___closed__2; x_4 = 0; @@ -38943,22 +39086,34 @@ lean_closure_set(x_6, 3, x_5); return x_6; } } -static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__5() { +static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_attributes_formatter___closed__4; +x_1 = l_Lean_Parser_Term_attributes_formatter___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_withoutPosition_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_attributes_formatter___closed__4; +x_2 = l_Lean_Parser_Term_structInstArrayRef_formatter___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_attributes_formatter___closed__5; -x_2 = l_Lean_Parser_Term_structInstArrayRef_formatter___closed__3; +x_1 = l_Lean_Parser_Term_attributes_formatter___closed__2; +x_2 = l_Lean_Parser_Term_attributes_formatter___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -38968,22 +39123,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_attributes_formatter___closed__2; -x_2 = l_Lean_Parser_Term_attributes_formatter___closed__6; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_attributes_formatter___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_attributes___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_attributes_formatter___closed__7; +x_3 = l_Lean_Parser_Term_attributes_formatter___closed__6; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -38996,7 +39139,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Term_attributes_formatter___closed__1; -x_7 = l_Lean_Parser_Term_attributes_formatter___closed__8; +x_7 = l_Lean_Parser_Term_attributes_formatter___closed__7; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -39859,6 +40002,39 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_ return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_attrInstance___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrInstance_parenthesizer), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Term_attrInstance___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__1() { _start: { @@ -39890,16 +40066,8 @@ return x_2; static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrInstance_parenthesizer), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__3; +x_1 = l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2; x_2 = l_Lean_Parser_Term_tuple___closed__4; x_3 = l_Lean_Parser_Term_tuple_parenthesizer___closed__2; x_4 = 0; @@ -39912,22 +40080,34 @@ lean_closure_set(x_6, 3, x_5); return x_6; } } -static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__5() { +static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__4; +x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_withoutPosition_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__4; +x_2 = l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__5; -x_2 = l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Term_attributes_parenthesizer___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -39937,22 +40117,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_attributes_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Term_attributes_parenthesizer___closed__6; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_attributes___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_attributes_parenthesizer___closed__7; +x_3 = l_Lean_Parser_Term_attributes_parenthesizer___closed__6; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -39965,7 +40133,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Term_attributes_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Term_attributes_parenthesizer___closed__8; +x_7 = l_Lean_Parser_Term_attributes_parenthesizer___closed__7; x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -57848,6 +58016,39 @@ x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_dynamicQuot___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_dynamicQuot_formatter), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__3; +x_3 = l_Lean_Parser_Term_dynamicQuot___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1() { _start: { @@ -57970,6 +58171,39 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_ return x_8; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1() { +_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_Parser_Command_docComment___closed__1; +x_2 = l_Lean_Parser_Command_docComment___closed__2; +x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_94____closed__17; +x_4 = l_Lean_Parser_Term_dynamicQuot___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__1; +x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_dynamicQuot_parenthesizer), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer(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___regBuiltin_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Term_dynamicQuot___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1; +x_5 = l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} static lean_object* _init_l_Lean_Parser_Term_dotIdent___closed__1() { _start: { @@ -63114,6 +63348,13 @@ l_Lean_Parser_Term_structInstField_formatter___closed__6 = _init_l_Lean_Parser_T lean_mark_persistent(l_Lean_Parser_Term_structInstField_formatter___closed__6); l_Lean_Parser_Term_structInstField_formatter___closed__7 = _init_l_Lean_Parser_Term_structInstField_formatter___closed__7(); lean_mark_persistent(l_Lean_Parser_Term_structInstField_formatter___closed__7); +l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__1); +l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInstField_formatter___closed__2); +res = l___regBuiltin_Lean_Parser_Term_structInstField_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_optEllipsis_formatter___closed__1 = _init_l_Lean_Parser_Term_optEllipsis_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_optEllipsis_formatter___closed__1); l_Lean_Parser_Term_optEllipsis_formatter___closed__2 = _init_l_Lean_Parser_Term_optEllipsis_formatter___closed__2(); @@ -63167,8 +63408,6 @@ l_Lean_Parser_Term_structInst_formatter___closed__18 = _init_l_Lean_Parser_Term_ lean_mark_persistent(l_Lean_Parser_Term_structInst_formatter___closed__18); l_Lean_Parser_Term_structInst_formatter___closed__19 = _init_l_Lean_Parser_Term_structInst_formatter___closed__19(); lean_mark_persistent(l_Lean_Parser_Term_structInst_formatter___closed__19); -l_Lean_Parser_Term_structInst_formatter___closed__20 = _init_l_Lean_Parser_Term_structInst_formatter___closed__20(); -lean_mark_persistent(l_Lean_Parser_Term_structInst_formatter___closed__20); l___regBuiltin_Lean_Parser_Term_structInst_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_structInst_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInst_formatter___closed__1); l___regBuiltin_Lean_Parser_Term_structInst_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_structInst_formatter___closed__2(); @@ -63259,6 +63498,13 @@ l_Lean_Parser_Term_structInstField_parenthesizer___closed__4 = _init_l_Lean_Pars lean_mark_persistent(l_Lean_Parser_Term_structInstField_parenthesizer___closed__4); l_Lean_Parser_Term_structInstField_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_structInstField_parenthesizer___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_structInstField_parenthesizer___closed__5); +l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__1); +l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer___closed__2); +res = l___regBuiltin_Lean_Parser_Term_structInstField_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__1); l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__2(); @@ -63312,8 +63558,6 @@ l_Lean_Parser_Term_structInst_parenthesizer___closed__18 = _init_l_Lean_Parser_T lean_mark_persistent(l_Lean_Parser_Term_structInst_parenthesizer___closed__18); l_Lean_Parser_Term_structInst_parenthesizer___closed__19 = _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__19(); lean_mark_persistent(l_Lean_Parser_Term_structInst_parenthesizer___closed__19); -l_Lean_Parser_Term_structInst_parenthesizer___closed__20 = _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__20(); -lean_mark_persistent(l_Lean_Parser_Term_structInst_parenthesizer___closed__20); l___regBuiltin_Lean_Parser_Term_structInst_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_structInst_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_structInst_parenthesizer___closed__1); l___regBuiltin_Lean_Parser_Term_structInst_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_structInst_parenthesizer___closed__2(); @@ -63766,10 +64010,15 @@ l_Lean_Parser_Term_instBinder_formatter___closed__7 = _init_l_Lean_Parser_Term_i lean_mark_persistent(l_Lean_Parser_Term_instBinder_formatter___closed__7); l_Lean_Parser_Term_instBinder_formatter___closed__8 = _init_l_Lean_Parser_Term_instBinder_formatter___closed__8(); lean_mark_persistent(l_Lean_Parser_Term_instBinder_formatter___closed__8); +l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__1); +l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_instBinder_formatter___closed__2); +res = l___regBuiltin_Lean_Parser_Term_instBinder_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_bracketedBinder_formatter___closed__1 = _init_l_Lean_Parser_Term_bracketedBinder_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_bracketedBinder_formatter___closed__1); -l_Lean_Parser_Term_bracketedBinder_formatter___closed__2 = _init_l_Lean_Parser_Term_bracketedBinder_formatter___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_bracketedBinder_formatter___closed__2); l_Lean_Parser_Term_depArrow_formatter___closed__1 = _init_l_Lean_Parser_Term_depArrow_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_depArrow_formatter___closed__1); l_Lean_Parser_Term_depArrow_formatter___closed__2 = _init_l_Lean_Parser_Term_depArrow_formatter___closed__2(); @@ -63878,10 +64127,15 @@ l_Lean_Parser_Term_instBinder_parenthesizer___closed__5 = _init_l_Lean_Parser_Te lean_mark_persistent(l_Lean_Parser_Term_instBinder_parenthesizer___closed__5); l_Lean_Parser_Term_instBinder_parenthesizer___closed__6 = _init_l_Lean_Parser_Term_instBinder_parenthesizer___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_instBinder_parenthesizer___closed__6); +l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__1); +l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer___closed__2); +res = l___regBuiltin_Lean_Parser_Term_instBinder_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__1); -l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2); l_Lean_Parser_Term_depArrow_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_depArrow_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_depArrow_parenthesizer___closed__1); l_Lean_Parser_Term_depArrow_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_depArrow_parenthesizer___closed__2(); @@ -66569,6 +66823,13 @@ l_Lean_Parser_Term_attrInstance_formatter___closed__5 = _init_l_Lean_Parser_Term lean_mark_persistent(l_Lean_Parser_Term_attrInstance_formatter___closed__5); l_Lean_Parser_Term_attrInstance_formatter___closed__6 = _init_l_Lean_Parser_Term_attrInstance_formatter___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_attrInstance_formatter___closed__6); +l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__1); +l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attrInstance_formatter___closed__2); +res = l___regBuiltin_Lean_Parser_Term_attrInstance_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_attributes_formatter___closed__1 = _init_l_Lean_Parser_Term_attributes_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_attributes_formatter___closed__1); l_Lean_Parser_Term_attributes_formatter___closed__2 = _init_l_Lean_Parser_Term_attributes_formatter___closed__2(); @@ -66583,8 +66844,6 @@ l_Lean_Parser_Term_attributes_formatter___closed__6 = _init_l_Lean_Parser_Term_a lean_mark_persistent(l_Lean_Parser_Term_attributes_formatter___closed__6); l_Lean_Parser_Term_attributes_formatter___closed__7 = _init_l_Lean_Parser_Term_attributes_formatter___closed__7(); lean_mark_persistent(l_Lean_Parser_Term_attributes_formatter___closed__7); -l_Lean_Parser_Term_attributes_formatter___closed__8 = _init_l_Lean_Parser_Term_attributes_formatter___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_attributes_formatter___closed__8); l___regBuiltin_Lean_Parser_Term_attributes_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_attributes_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attributes_formatter___closed__1); l___regBuiltin_Lean_Parser_Term_attributes_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_attributes_formatter___closed__2(); @@ -66719,6 +66978,13 @@ l_Lean_Parser_Term_attrInstance_parenthesizer___closed__3 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Term_attrInstance_parenthesizer___closed__3); l_Lean_Parser_Term_attrInstance_parenthesizer___closed__4 = _init_l_Lean_Parser_Term_attrInstance_parenthesizer___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_attrInstance_parenthesizer___closed__4); +l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__1); +l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer___closed__2); +res = l___regBuiltin_Lean_Parser_Term_attrInstance_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_attributes_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_attributes_parenthesizer___closed__1); l_Lean_Parser_Term_attributes_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__2(); @@ -66733,8 +66999,6 @@ l_Lean_Parser_Term_attributes_parenthesizer___closed__6 = _init_l_Lean_Parser_Te lean_mark_persistent(l_Lean_Parser_Term_attributes_parenthesizer___closed__6); l_Lean_Parser_Term_attributes_parenthesizer___closed__7 = _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__7(); lean_mark_persistent(l_Lean_Parser_Term_attributes_parenthesizer___closed__7); -l_Lean_Parser_Term_attributes_parenthesizer___closed__8 = _init_l_Lean_Parser_Term_attributes_parenthesizer___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_attributes_parenthesizer___closed__8); l___regBuiltin_Lean_Parser_Term_attributes_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_attributes_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_attributes_parenthesizer___closed__1); l___regBuiltin_Lean_Parser_Term_attributes_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_attributes_parenthesizer___closed__2(); @@ -69853,6 +70117,13 @@ l_Lean_Parser_Term_dynamicQuot_formatter___closed__8 = _init_l_Lean_Parser_Term_ lean_mark_persistent(l_Lean_Parser_Term_dynamicQuot_formatter___closed__8); l_Lean_Parser_Term_dynamicQuot_formatter___closed__9 = _init_l_Lean_Parser_Term_dynamicQuot_formatter___closed__9(); lean_mark_persistent(l_Lean_Parser_Term_dynamicQuot_formatter___closed__9); +l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__1); +l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter___closed__2); +res = l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1); l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2(); @@ -69871,6 +70142,13 @@ l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__8 = _init_l_Lean_Parser_T lean_mark_persistent(l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__8); l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__9 = _init_l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__9(); lean_mark_persistent(l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__9); +l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1); +l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2); +res = l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_dotIdent___closed__1 = _init_l_Lean_Parser_Term_dotIdent___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_dotIdent___closed__1); l_Lean_Parser_Term_dotIdent___closed__2 = _init_l_Lean_Parser_Term_dotIdent___closed__2(); diff --git a/stage0/stdlib/Lean/ParserCompiler.c b/stage0/stdlib/Lean/ParserCompiler.c index 6d14393242..80f4840c02 100644 --- a/stage0/stdlib/Lean/ParserCompiler.c +++ b/stage0/stdlib/Lean/ParserCompiler.c @@ -517,7 +517,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compile LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__36___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__81(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__5___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__78___at_Lean_ParserCompiler_compileParserExpr___spec__79(lean_object*); LEAN_EXPORT lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___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_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -2351,331 +2351,332 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_ParserCompiler_parserNodeKind_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_7; lean_object* x_8; +uint8_t x_7; uint8_t x_8; lean_object* x_9; x_7 = 1; +x_8 = 0; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_8 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_7, x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_8) == 0) +x_9 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_7, x_8, x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -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; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -if (lean_obj_tag(x_9) == 6) +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 6) { -lean_object* x_101; lean_object* x_102; -x_101 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__9; -x_102 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_9, x_101, x_2, x_3, x_4, x_5, x_10); -return x_102; +lean_object* x_102; lean_object* x_103; +x_102 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__9; +x_103 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_10, x_102, x_2, x_3, x_4, x_5, x_11); +return x_103; } else { -lean_object* x_103; -x_103 = lean_box(0); -x_11 = x_103; -goto block_100; +lean_object* x_104; +x_104 = lean_box(0); +x_12 = x_104; +goto block_101; } -block_100: +block_101: { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_11); -x_12 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__2; -x_13 = lean_unsigned_to_nat(3u); -x_14 = l_Lean_Expr_isAppOfArity(x_9, x_12, x_13); -if (x_14 == 0) +lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_12); +x_13 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__2; +x_14 = lean_unsigned_to_nat(3u); +x_15 = l_Lean_Expr_isAppOfArity(x_10, x_13, x_14); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__4; -x_16 = lean_unsigned_to_nat(4u); -x_17 = l_Lean_Expr_isAppOfArity(x_9, x_15, x_16); -if (x_17 == 0) +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__4; +x_17 = lean_unsigned_to_nat(4u); +x_18 = l_Lean_Expr_isAppOfArity(x_10, x_16, x_17); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__6; -x_19 = lean_unsigned_to_nat(2u); -x_20 = l_Lean_Expr_isAppOfArity(x_9, x_18, x_19); -if (x_20 == 0) +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__6; +x_20 = lean_unsigned_to_nat(2u); +x_21 = l_Lean_Expr_isAppOfArity(x_10, x_19, x_20); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__8; -x_22 = l_Lean_Expr_isAppOfArity(x_9, x_21, x_19); -if (x_22 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__8; +x_23 = l_Lean_Expr_isAppOfArity(x_10, x_22, x_20); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = l_Lean_Expr_getAppFn(x_9); +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_Expr_getAppFn(x_10); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_24 = lean_infer_type(x_23, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_24) == 0) +x_25 = lean_infer_type(x_24, x_2, x_3, x_4, x_5, x_11); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_parserNodeKind_x3f___lambda__1), 8, 1); -lean_closure_set(x_27, 0, x_9); -x_28 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_27, x_2, x_3, x_4, x_5, x_26); -return x_28; +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_parserNodeKind_x3f___lambda__1), 8, 1); +lean_closure_set(x_28, 0, x_10); +x_29 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_26, x_28, x_2, x_3, x_4, x_5, x_27); +return x_29; } else { -uint8_t x_29; -lean_dec(x_9); +uint8_t x_30; +lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_29 = !lean_is_exclusive(x_24); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) { -return x_24; +return x_25; } else { -lean_object* x_30; lean_object* x_31; lean_object* 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; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_24); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_33 = lean_unsigned_to_nat(0u); -x_34 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_33); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_sub(x_34, x_35); -lean_dec(x_34); -x_37 = lean_nat_sub(x_36, x_35); -lean_dec(x_36); -x_38 = l_Lean_Expr_getRevArg_x21(x_9, x_37); -x_1 = x_38; -x_6 = x_10; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_34 = lean_unsigned_to_nat(0u); +x_35 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_10, x_34); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_sub(x_35, x_36); +lean_dec(x_35); +x_38 = lean_nat_sub(x_37, x_36); +lean_dec(x_37); +x_39 = l_Lean_Expr_getRevArg_x21(x_10, x_38); +x_1 = x_39; +x_6 = x_11; goto _start; } } 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; lean_object* x_46; -x_40 = lean_unsigned_to_nat(0u); -x_41 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_40); -x_42 = lean_nat_sub(x_41, x_40); -lean_dec(x_41); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_sub(x_42, x_43); +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_41 = lean_unsigned_to_nat(0u); +x_42 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_10, x_41); +x_43 = lean_nat_sub(x_42, x_41); lean_dec(x_42); -x_45 = l_Lean_Expr_getRevArg_x21(x_9, x_44); -x_46 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_45, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_46) == 0) +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_sub(x_43, x_44); +lean_dec(x_43); +x_46 = l_Lean_Expr_getRevArg_x21(x_10, x_45); +x_47 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_46, x_2, x_3, x_4, x_5, x_11); +if (lean_obj_tag(x_47) == 0) { -uint8_t x_47; -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +uint8_t x_48; +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_46, 0, x_49); -return x_46; +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_47, 0, x_50); +return x_47; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_46, 0); -x_51 = lean_ctor_get(x_46, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_47, 0); +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_46); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_50); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +lean_dec(x_47); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } else { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_46); -if (x_54 == 0) +uint8_t x_55; +x_55 = !lean_is_exclusive(x_47); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_46, 0); -lean_dec(x_55); -x_56 = lean_box(0); -lean_ctor_set_tag(x_46, 0); -lean_ctor_set(x_46, 0, x_56); -return x_46; +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_47, 0); +lean_dec(x_56); +x_57 = lean_box(0); +lean_ctor_set_tag(x_47, 0); +lean_ctor_set(x_47, 0, x_57); +return x_47; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_46, 1); -lean_inc(x_57); -lean_dec(x_46); -x_58 = lean_box(0); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_47, 1); +lean_inc(x_58); +lean_dec(x_47); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +return x_60; } } } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = lean_unsigned_to_nat(0u); -x_61 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_60); -x_62 = lean_nat_sub(x_61, x_60); -lean_dec(x_61); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_sub(x_62, x_63); +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_unsigned_to_nat(0u); +x_62 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_10, x_61); +x_63 = lean_nat_sub(x_62, x_61); lean_dec(x_62); -x_65 = l_Lean_Expr_getRevArg_x21(x_9, x_64); -x_66 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_65, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_66) == 0) +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_sub(x_63, x_64); +lean_dec(x_63); +x_66 = l_Lean_Expr_getRevArg_x21(x_10, x_65); +x_67 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_66, x_2, x_3, x_4, x_5, x_11); +if (lean_obj_tag(x_67) == 0) { -uint8_t x_67; -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) +uint8_t x_68; +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_66, 0); -x_69 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_66, 0, x_69); -return x_66; +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_67, 0); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_67, 0, x_70); +return x_67; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_66, 0); -x_71 = lean_ctor_get(x_66, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_67, 0); +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_66); -x_72 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_72, 0, x_70); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_dec(x_67); +x_73 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_73, 0, x_71); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } else { -uint8_t x_74; -x_74 = !lean_is_exclusive(x_66); -if (x_74 == 0) +uint8_t x_75; +x_75 = !lean_is_exclusive(x_67); +if (x_75 == 0) { -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_66, 0); -lean_dec(x_75); -x_76 = lean_box(0); -lean_ctor_set_tag(x_66, 0); -lean_ctor_set(x_66, 0, x_76); -return x_66; +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_67, 0); +lean_dec(x_76); +x_77 = lean_box(0); +lean_ctor_set_tag(x_67, 0); +lean_ctor_set(x_67, 0, x_77); +return x_67; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_66, 1); -lean_inc(x_77); -lean_dec(x_66); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -return x_79; +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_67, 1); +lean_inc(x_78); +lean_dec(x_67); +x_79 = lean_box(0); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +return x_80; } } } } else { -lean_object* x_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; -x_80 = lean_unsigned_to_nat(0u); -x_81 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_80); -x_82 = lean_nat_sub(x_81, x_80); -lean_dec(x_81); -x_83 = lean_unsigned_to_nat(1u); -x_84 = lean_nat_sub(x_82, x_83); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_81 = lean_unsigned_to_nat(0u); +x_82 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_10, x_81); +x_83 = lean_nat_sub(x_82, x_81); lean_dec(x_82); -x_85 = l_Lean_Expr_getRevArg_x21(x_9, x_84); -x_86 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_85, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_86) == 0) +x_84 = lean_unsigned_to_nat(1u); +x_85 = lean_nat_sub(x_83, x_84); +lean_dec(x_83); +x_86 = l_Lean_Expr_getRevArg_x21(x_10, x_85); +x_87 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_86, x_2, x_3, x_4, x_5, x_11); +if (lean_obj_tag(x_87) == 0) { -uint8_t x_87; -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +uint8_t x_88; +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_86, 0, x_89); -return x_86; +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_87, 0); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_87, 0, x_90); +return x_87; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_86, 0); -x_91 = lean_ctor_get(x_86, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_87, 0); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_86); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_90); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_91); -return x_93; +lean_dec(x_87); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_91); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_92); +return x_94; } } else { -uint8_t x_94; -x_94 = !lean_is_exclusive(x_86); -if (x_94 == 0) +uint8_t x_95; +x_95 = !lean_is_exclusive(x_87); +if (x_95 == 0) { -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_86, 0); -lean_dec(x_95); -x_96 = lean_box(0); -lean_ctor_set_tag(x_86, 0); -lean_ctor_set(x_86, 0, x_96); -return x_86; +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_87, 0); +lean_dec(x_96); +x_97 = lean_box(0); +lean_ctor_set_tag(x_87, 0); +lean_ctor_set(x_87, 0, x_97); +return x_87; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_86, 1); -lean_inc(x_97); -lean_dec(x_86); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -return x_99; +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_87, 1); +lean_inc(x_98); +lean_dec(x_87); +x_99 = lean_box(0); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +return x_100; } } } @@ -2683,28 +2684,28 @@ return x_99; } else { -uint8_t x_104; +uint8_t x_105; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_104 = !lean_is_exclusive(x_8); -if (x_104 == 0) +x_105 = !lean_is_exclusive(x_9); +if (x_105 == 0) { -return x_8; +return x_9; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_8, 0); -x_106 = lean_ctor_get(x_8, 1); +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_9, 0); +x_107 = lean_ctor_get(x_9, 1); +lean_inc(x_107); lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_8); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +lean_dec(x_9); +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; } } } @@ -49514,4649 +49515,4650 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg(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) { _start: { -uint8_t x_10; lean_object* x_11; +uint8_t x_10; uint8_t x_11; lean_object* x_12; x_10 = 1; +x_11 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_11 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_10, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) +x_12 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_12; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -switch (lean_obj_tag(x_12)) { +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +switch (lean_obj_tag(x_13)) { case 0: { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_14) == 4) +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_15) == 4) { -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_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_st_ref_get(x_8, x_13); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +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 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_get(x_8, x_14); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_17, 0); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = lean_ctor_get(x_1, 2); +x_20 = lean_ctor_get(x_18, 0); lean_inc(x_20); -x_21 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_20, x_19, x_15); -if (lean_obj_tag(x_21) == 0) +lean_dec(x_18); +x_21 = lean_ctor_get(x_1, 2); +lean_inc(x_21); +x_22 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_21, x_20, x_16); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_1, 0); -lean_inc(x_22); -lean_inc(x_22); -x_23 = l_Lean_Name_append(x_15, x_22); -lean_inc(x_15); -x_24 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_15, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_24) == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +lean_inc(x_23); +x_24 = l_Lean_Name_append(x_16, x_23); +lean_inc(x_16); +x_25 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_16, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_ConstantInfo_type(x_25); -x_28 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); -x_29 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_27, x_28, x_5, x_6, x_7, x_8, x_26); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_61; uint8_t x_62; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_61 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_62 = l_Lean_Expr_isConstOf(x_30, x_61); -if (x_62 == 0) -{ -lean_object* x_63; uint8_t x_64; -x_63 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_64 = l_Lean_Expr_isConstOf(x_30, x_63); -lean_dec(x_30); -if (x_64 == 0) -{ -lean_object* x_65; -lean_dec(x_27); lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); +x_28 = l_Lean_ConstantInfo_type(x_26); +x_29 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_65 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_31); -if (lean_obj_tag(x_65) == 0) +lean_inc(x_28); +x_30 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_28, x_29, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_62; uint8_t x_63; +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_62 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_63 = l_Lean_Expr_isConstOf(x_31, x_62); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_65 = l_Lean_Expr_isConstOf(x_31, x_64); +lean_dec(x_31); +if (x_65 == 0) { lean_object* x_66; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_66 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_32); if (lean_obj_tag(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_dec(x_1); -x_67 = lean_ctor_get(x_65, 1); +lean_object* x_67; +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_68, 0, x_22); -x_69 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_70 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_72 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_73, 0, x_12); -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_ParserCompiler_compileParserExpr___rarg___closed__4; -x_76 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -x_77 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_76, x_5, x_6, x_7, x_8, x_67); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_1); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_69, 0, x_23); +x_70 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_74, 0, x_13); +x_75 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_77, x_5, x_6, x_7, x_8, x_68); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_77; +return x_78; } else { -lean_object* x_78; lean_object* x_79; -lean_dec(x_22); -lean_dec(x_12); -x_78 = lean_ctor_get(x_65, 1); -lean_inc(x_78); -lean_dec(x_65); -x_79 = lean_ctor_get(x_66, 0); +lean_object* x_79; lean_object* x_80; +lean_dec(x_23); +lean_dec(x_13); +x_79 = lean_ctor_get(x_66, 1); lean_inc(x_79); lean_dec(x_66); -x_4 = x_79; -x_9 = x_78; +x_80 = lean_ctor_get(x_67, 0); +lean_inc(x_80); +lean_dec(x_67); +x_4 = x_80; +x_9 = x_79; goto _start; } } else { -uint8_t x_81; -lean_dec(x_22); -lean_dec(x_12); +uint8_t x_82; +lean_dec(x_23); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_65); -if (x_81 == 0) +x_82 = !lean_is_exclusive(x_66); +if (x_82 == 0) { -return x_65; +return x_66; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_65, 0); -x_83 = lean_ctor_get(x_65, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_66, 0); +x_84 = lean_ctor_get(x_66, 1); +lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_65); -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; +lean_dec(x_66); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; } } } else { -lean_object* x_85; -x_85 = lean_box(0); -x_32 = x_85; -goto block_60; -} -} -else -{ lean_object* x_86; -lean_dec(x_30); x_86 = lean_box(0); -x_32 = x_86; -goto block_60; +x_33 = x_86; +goto block_61; } -block_60: +} +else { -lean_object* x_33; -lean_dec(x_32); -x_33 = l_Lean_ConstantInfo_value_x3f(x_25); -if (lean_obj_tag(x_33) == 0) +lean_object* x_87; +lean_dec(x_31); +x_87 = lean_box(0); +x_33 = x_87; +goto block_61; +} +block_61: { -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); -lean_dec(x_25); -lean_dec(x_23); +lean_object* x_34; +lean_dec(x_33); +x_34 = l_Lean_ConstantInfo_value_x3f(x_26); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); +lean_dec(x_16); lean_dec(x_1); -x_34 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_34, 0, x_22); -x_35 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -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_ParserCompiler_compileParserExpr___rarg___closed__8; -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(2, 1, 0); -lean_ctor_set(x_39, 0, x_12); -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_ParserCompiler_compileParserExpr___rarg___closed__4; -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 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_42, x_5, x_6, x_7, x_8, x_31); +x_35 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_35, 0, x_23); +x_36 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_40, 0, x_13); +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 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +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 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_43, x_5, x_6, x_7, x_8, x_32); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_43; +return x_44; } else { -lean_object* x_44; lean_object* x_45; -lean_dec(x_22); -x_44 = lean_ctor_get(x_33, 0); -lean_inc(x_44); -lean_dec(x_33); -lean_inc(x_15); -x_45 = l_Lean_Environment_getModuleIdxFor_x3f(x_19, x_15); -if (lean_obj_tag(x_45) == 0) +lean_object* x_45; lean_object* x_46; +lean_dec(x_23); +x_45 = lean_ctor_get(x_34, 0); +lean_inc(x_45); +lean_dec(x_34); +lean_inc(x_16); +x_46 = l_Lean_Environment_getModuleIdxFor_x3f(x_20, x_16); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_46; lean_object* x_47; -x_46 = lean_box(0); -x_47 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(x_1, x_44, x_2, x_3, x_27, x_23, x_20, x_15, x_12, x_25, x_46, x_5, x_6, x_7, x_8, x_31); -return x_47; +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +x_48 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(x_1, x_45, x_2, x_3, x_28, x_24, x_21, x_16, x_13, x_26, x_47, x_5, x_6, x_7, x_8, x_32); +return x_48; } else { -lean_dec(x_45); +lean_dec(x_46); if (x_3 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_dec(x_44); -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_12); -lean_dec(x_1); -x_48 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_48, 0, x_15); -x_49 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -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_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_52, x_5, x_6, x_7, x_8, x_31); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -return x_53; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_53); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_box(0); -x_59 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(x_1, x_44, x_2, x_3, x_27, x_23, x_20, x_15, x_12, x_25, x_58, x_5, x_6, x_7, x_8, x_31); -return x_59; -} -} -} -} -} -else -{ -uint8_t x_87; -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_87 = !lean_is_exclusive(x_29); -if (x_87 == 0) -{ -return x_29; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_29, 0); -x_89 = lean_ctor_get(x_29, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_29); -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; -} -} -} -else -{ -uint8_t x_91; -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_24); -if (x_91 == 0) -{ -return x_24; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_24, 0); -x_93 = lean_ctor_get(x_24, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_45); +lean_dec(x_28); +lean_dec(x_26); lean_dec(x_24); -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_21); +lean_dec(x_13); +lean_dec(x_1); +x_49 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_49, 0, x_16); +x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +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_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_53, x_5, x_6, x_7, x_8, x_32); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +return x_54; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_54); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_box(0); +x_60 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(x_1, x_45, x_2, x_3, x_28, x_24, x_21, x_16, x_13, x_26, x_59, x_5, x_6, x_7, x_8, x_32); +return x_60; +} +} } } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -x_95 = lean_ctor_get(x_21, 0); -lean_inc(x_95); +uint8_t x_88; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_23); lean_dec(x_21); -x_96 = lean_box(0); -x_97 = l_Lean_Expr_const___override(x_95, x_96); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_88 = !lean_is_exclusive(x_30); +if (x_88 == 0) +{ +return x_30; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_30, 0); +x_90 = lean_ctor_get(x_30, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_30); +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_92; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_25); +if (x_92 == 0) +{ +return x_25; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_25, 0); +x_94 = lean_ctor_get(x_25, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_25); +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 +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_16); +x_96 = lean_ctor_get(x_22, 0); +lean_inc(x_96); +lean_dec(x_22); +x_97 = lean_box(0); +x_98 = l_Lean_Expr_const___override(x_96, x_97); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_97); -x_98 = lean_infer_type(x_97, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_98) == 0) +lean_inc(x_98); +x_99 = lean_infer_type(x_98, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_99) == 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_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_box(x_2); -x_102 = lean_box(x_3); -x_103 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6___boxed), 12, 5); -lean_closure_set(x_103, 0, x_12); -lean_closure_set(x_103, 1, x_1); -lean_closure_set(x_103, 2, x_101); -lean_closure_set(x_103, 3, x_102); -lean_closure_set(x_103, 4, x_97); -x_104 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_99, x_103, x_5, x_6, x_7, x_8, x_100); -return x_104; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = lean_box(x_2); +x_103 = lean_box(x_3); +x_104 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6___boxed), 12, 5); +lean_closure_set(x_104, 0, x_13); +lean_closure_set(x_104, 1, x_1); +lean_closure_set(x_104, 2, x_102); +lean_closure_set(x_104, 3, x_103); +lean_closure_set(x_104, 4, x_98); +x_105 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_100, x_104, x_5, x_6, x_7, x_8, x_101); +return x_105; } else { -uint8_t x_105; -lean_dec(x_97); -lean_dec(x_12); +uint8_t x_106; +lean_dec(x_98); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_98); -if (x_105 == 0) +x_106 = !lean_is_exclusive(x_99); +if (x_106 == 0) { -return x_98; +return x_99; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_98, 0); -x_107 = lean_ctor_get(x_98, 1); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_99, 0); +x_108 = lean_ctor_get(x_99, 1); +lean_inc(x_108); lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_98); -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_dec(x_99); +x_109 = lean_alloc_ctor(1, 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_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -lean_dec(x_14); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_15); lean_dec(x_1); -x_109 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_109, 0, x_12); -x_110 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_111 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -x_112 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_113 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -x_114 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_113, x_5, x_6, x_7, x_8, x_13); +x_110 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_110, 0, x_13); +x_111 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_112 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +x_113 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_114 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +x_115 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_114, x_5, x_6, x_7, x_8, x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_114; +return x_115; } } case 1: { -uint8_t x_115; +uint8_t x_116; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_115 = !lean_is_exclusive(x_11); -if (x_115 == 0) +x_116 = !lean_is_exclusive(x_12); +if (x_116 == 0) { -lean_object* x_116; -x_116 = lean_ctor_get(x_11, 0); -lean_dec(x_116); -return x_11; +lean_object* x_117; +x_117 = lean_ctor_get(x_12, 0); +lean_dec(x_117); +return x_12; } else { -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_11, 1); -lean_inc(x_117); -lean_dec(x_11); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_12); -lean_ctor_set(x_118, 1, x_117); -return x_118; +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_12, 1); +lean_inc(x_118); +lean_dec(x_12); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_13); +lean_ctor_set(x_119, 1, x_118); +return x_119; } } case 2: { -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_11, 1); -lean_inc(x_119); -lean_dec(x_11); -x_120 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_120) == 4) +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_12, 1); +lean_inc(x_120); +lean_dec(x_12); +x_121 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_121) == 4) { -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_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -lean_dec(x_120); -x_122 = lean_st_ref_get(x_8, x_119); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +lean_dec(x_121); +x_123 = lean_st_ref_get(x_8, x_120); +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -lean_dec(x_122); -x_125 = lean_ctor_get(x_123, 0); +x_125 = lean_ctor_get(x_123, 1); lean_inc(x_125); lean_dec(x_123); -x_126 = lean_ctor_get(x_1, 2); +x_126 = lean_ctor_get(x_124, 0); lean_inc(x_126); -x_127 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_126, x_125, x_121); -if (lean_obj_tag(x_127) == 0) +lean_dec(x_124); +x_127 = lean_ctor_get(x_1, 2); +lean_inc(x_127); +x_128 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_127, x_126, x_122); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_1, 0); -lean_inc(x_128); -lean_inc(x_128); -x_129 = l_Lean_Name_append(x_121, x_128); -lean_inc(x_121); -x_130 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_121, x_5, x_6, x_7, x_8, x_124); -if (lean_obj_tag(x_130) == 0) +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_1, 0); +lean_inc(x_129); +lean_inc(x_129); +x_130 = l_Lean_Name_append(x_122, x_129); +lean_inc(x_122); +x_131 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_122, x_5, x_6, x_7, x_8, x_125); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); -lean_dec(x_130); -x_133 = l_Lean_ConstantInfo_type(x_131); -x_134 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); -x_135 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_133, x_134, x_5, x_6, x_7, x_8, x_132); -if (lean_obj_tag(x_135) == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_167; uint8_t x_168; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_167 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_168 = l_Lean_Expr_isConstOf(x_136, x_167); -if (x_168 == 0) -{ -lean_object* x_169; uint8_t x_170; -x_169 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_170 = l_Lean_Expr_isConstOf(x_136, x_169); -lean_dec(x_136); -if (x_170 == 0) -{ -lean_object* x_171; -lean_dec(x_133); lean_dec(x_131); -lean_dec(x_129); -lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); +x_134 = l_Lean_ConstantInfo_type(x_132); +x_135 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_171 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_137); -if (lean_obj_tag(x_171) == 0) +lean_inc(x_134); +x_136 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_134, x_135, x_5, x_6, x_7, x_8, x_133); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_168; uint8_t x_169; +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +x_168 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_169 = l_Lean_Expr_isConstOf(x_137, x_168); +if (x_169 == 0) +{ +lean_object* x_170; uint8_t x_171; +x_170 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_171 = l_Lean_Expr_isConstOf(x_137, x_170); +lean_dec(x_137); +if (x_171 == 0) { lean_object* x_172; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); +lean_dec(x_134); +lean_dec(x_132); +lean_dec(x_130); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_122); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_172 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_138); if (lean_obj_tag(x_172) == 0) { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -lean_dec(x_1); -x_173 = lean_ctor_get(x_171, 1); +lean_object* x_173; +x_173 = lean_ctor_get(x_172, 0); lean_inc(x_173); -lean_dec(x_171); -x_174 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_174, 0, x_128); -x_175 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_176 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_174); -x_177 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_178 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -x_179 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_179, 0, x_12); -x_180 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -x_181 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_182 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -x_183 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_182, x_5, x_6, x_7, x_8, x_173); +if (lean_obj_tag(x_173) == 0) +{ +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_dec(x_1); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +lean_dec(x_172); +x_175 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_175, 0, x_129); +x_176 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_177 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_175); +x_178 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_179 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +x_180 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_180, 0, x_13); +x_181 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +x_182 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_183 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +x_184 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_183, x_5, x_6, x_7, x_8, x_174); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_183; +return x_184; } else { -lean_object* x_184; lean_object* x_185; -lean_dec(x_128); -lean_dec(x_12); -x_184 = lean_ctor_get(x_171, 1); -lean_inc(x_184); -lean_dec(x_171); -x_185 = lean_ctor_get(x_172, 0); +lean_object* x_185; lean_object* x_186; +lean_dec(x_129); +lean_dec(x_13); +x_185 = lean_ctor_get(x_172, 1); lean_inc(x_185); lean_dec(x_172); -x_4 = x_185; -x_9 = x_184; +x_186 = lean_ctor_get(x_173, 0); +lean_inc(x_186); +lean_dec(x_173); +x_4 = x_186; +x_9 = x_185; goto _start; } } else { -uint8_t x_187; -lean_dec(x_128); -lean_dec(x_12); +uint8_t x_188; +lean_dec(x_129); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_187 = !lean_is_exclusive(x_171); -if (x_187 == 0) +x_188 = !lean_is_exclusive(x_172); +if (x_188 == 0) { -return x_171; +return x_172; } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_171, 0); -x_189 = lean_ctor_get(x_171, 1); +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_172, 0); +x_190 = lean_ctor_get(x_172, 1); +lean_inc(x_190); lean_inc(x_189); -lean_inc(x_188); -lean_dec(x_171); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_189); -return x_190; +lean_dec(x_172); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; } } } else { -lean_object* x_191; -x_191 = lean_box(0); -x_138 = x_191; -goto block_166; -} -} -else -{ lean_object* x_192; -lean_dec(x_136); x_192 = lean_box(0); -x_138 = x_192; -goto block_166; +x_139 = x_192; +goto block_167; } -block_166: +} +else { -lean_object* x_139; -lean_dec(x_138); -x_139 = l_Lean_ConstantInfo_value_x3f(x_131); -if (lean_obj_tag(x_139) == 0) +lean_object* x_193; +lean_dec(x_137); +x_193 = lean_box(0); +x_139 = x_193; +goto block_167; +} +block_167: { -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_dec(x_133); -lean_dec(x_131); -lean_dec(x_129); +lean_object* x_140; +lean_dec(x_139); +x_140 = l_Lean_ConstantInfo_value_x3f(x_132); +if (lean_obj_tag(x_140) == 0) +{ +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_dec(x_134); +lean_dec(x_132); +lean_dec(x_130); +lean_dec(x_127); lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); +lean_dec(x_122); lean_dec(x_1); -x_140 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_140, 0, x_128); -x_141 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_142 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -x_143 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_144 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -x_145 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_145, 0, x_12); -x_146 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -x_147 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_148 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -x_149 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_148, x_5, x_6, x_7, x_8, x_137); +x_141 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_141, 0, x_129); +x_142 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_143 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_145 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +x_146 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_146, 0, x_13); +x_147 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_149 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_149, x_5, x_6, x_7, x_8, x_138); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_149; +return x_150; } else { -lean_object* x_150; lean_object* x_151; -lean_dec(x_128); -x_150 = lean_ctor_get(x_139, 0); -lean_inc(x_150); -lean_dec(x_139); -lean_inc(x_121); -x_151 = l_Lean_Environment_getModuleIdxFor_x3f(x_125, x_121); -if (lean_obj_tag(x_151) == 0) +lean_object* x_151; lean_object* x_152; +lean_dec(x_129); +x_151 = lean_ctor_get(x_140, 0); +lean_inc(x_151); +lean_dec(x_140); +lean_inc(x_122); +x_152 = l_Lean_Environment_getModuleIdxFor_x3f(x_126, x_122); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_152; lean_object* x_153; -x_152 = lean_box(0); -x_153 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(x_1, x_150, x_2, x_3, x_133, x_129, x_126, x_121, x_12, x_131, x_152, x_5, x_6, x_7, x_8, x_137); -return x_153; +lean_object* x_153; lean_object* x_154; +x_153 = lean_box(0); +x_154 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(x_1, x_151, x_2, x_3, x_134, x_130, x_127, x_122, x_13, x_132, x_153, x_5, x_6, x_7, x_8, x_138); +return x_154; } else { -lean_dec(x_151); +lean_dec(x_152); if (x_3 == 0) { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -lean_dec(x_150); -lean_dec(x_133); -lean_dec(x_131); -lean_dec(x_129); -lean_dec(x_126); -lean_dec(x_12); -lean_dec(x_1); -x_154 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_154, 0, x_121); -x_155 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_156 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_154); -x_157 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_158 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -x_159 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_158, x_5, x_6, x_7, x_8, x_137); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_160 = !lean_is_exclusive(x_159); -if (x_160 == 0) -{ -return x_159; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_159, 0); -x_162 = lean_ctor_get(x_159, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_159); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; -} -} -else -{ -lean_object* x_164; lean_object* x_165; -x_164 = lean_box(0); -x_165 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(x_1, x_150, x_2, x_3, x_133, x_129, x_126, x_121, x_12, x_131, x_164, x_5, x_6, x_7, x_8, x_137); -return x_165; -} -} -} -} -} -else -{ -uint8_t x_193; -lean_dec(x_133); -lean_dec(x_131); -lean_dec(x_129); -lean_dec(x_128); -lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_193 = !lean_is_exclusive(x_135); -if (x_193 == 0) -{ -return x_135; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_135, 0); -x_195 = lean_ctor_get(x_135, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_135); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_194); -lean_ctor_set(x_196, 1, x_195); -return x_196; -} -} -} -else -{ -uint8_t x_197; -lean_dec(x_129); -lean_dec(x_128); -lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_197 = !lean_is_exclusive(x_130); -if (x_197 == 0) -{ -return x_130; -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_130, 0); -x_199 = lean_ctor_get(x_130, 1); -lean_inc(x_199); -lean_inc(x_198); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; +lean_dec(x_151); +lean_dec(x_134); +lean_dec(x_132); lean_dec(x_130); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; +lean_dec(x_127); +lean_dec(x_13); +lean_dec(x_1); +x_155 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_155, 0, x_122); +x_156 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_157 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_159 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +x_160 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_159, x_5, x_6, x_7, x_8, x_138); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_161 = !lean_is_exclusive(x_160); +if (x_161 == 0) +{ +return x_160; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_160, 0); +x_163 = lean_ctor_get(x_160, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_160); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; +} +} +else +{ +lean_object* x_165; lean_object* x_166; +x_165 = lean_box(0); +x_166 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(x_1, x_151, x_2, x_3, x_134, x_130, x_127, x_122, x_13, x_132, x_165, x_5, x_6, x_7, x_8, x_138); +return x_166; +} +} } } } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); -x_201 = lean_ctor_get(x_127, 0); -lean_inc(x_201); +uint8_t x_194; +lean_dec(x_134); +lean_dec(x_132); +lean_dec(x_130); +lean_dec(x_129); lean_dec(x_127); -x_202 = lean_box(0); -x_203 = l_Lean_Expr_const___override(x_201, x_202); +lean_dec(x_126); +lean_dec(x_122); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_194 = !lean_is_exclusive(x_136); +if (x_194 == 0) +{ +return x_136; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_136, 0); +x_196 = lean_ctor_get(x_136, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_136); +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; +lean_dec(x_130); +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_122); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_198 = !lean_is_exclusive(x_131); +if (x_198 == 0) +{ +return x_131; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_131, 0); +x_200 = lean_ctor_get(x_131, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_131); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +return x_201; +} +} +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_122); +x_202 = lean_ctor_get(x_128, 0); +lean_inc(x_202); +lean_dec(x_128); +x_203 = lean_box(0); +x_204 = l_Lean_Expr_const___override(x_202, x_203); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_203); -x_204 = lean_infer_type(x_203, x_5, x_6, x_7, x_8, x_124); -if (lean_obj_tag(x_204) == 0) +lean_inc(x_204); +x_205 = lean_infer_type(x_204, x_5, x_6, x_7, x_8, x_125); +if (lean_obj_tag(x_205) == 0) { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_206 = lean_ctor_get(x_205, 0); lean_inc(x_206); -lean_dec(x_204); -x_207 = lean_box(x_2); -x_208 = lean_box(x_3); -x_209 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___boxed), 12, 5); -lean_closure_set(x_209, 0, x_12); -lean_closure_set(x_209, 1, x_1); -lean_closure_set(x_209, 2, x_207); -lean_closure_set(x_209, 3, x_208); -lean_closure_set(x_209, 4, x_203); -x_210 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_205, x_209, x_5, x_6, x_7, x_8, x_206); -return x_210; +x_207 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +lean_dec(x_205); +x_208 = lean_box(x_2); +x_209 = lean_box(x_3); +x_210 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___boxed), 12, 5); +lean_closure_set(x_210, 0, x_13); +lean_closure_set(x_210, 1, x_1); +lean_closure_set(x_210, 2, x_208); +lean_closure_set(x_210, 3, x_209); +lean_closure_set(x_210, 4, x_204); +x_211 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_206, x_210, x_5, x_6, x_7, x_8, x_207); +return x_211; } else { -uint8_t x_211; -lean_dec(x_203); -lean_dec(x_12); +uint8_t x_212; +lean_dec(x_204); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_211 = !lean_is_exclusive(x_204); -if (x_211 == 0) +x_212 = !lean_is_exclusive(x_205); +if (x_212 == 0) { -return x_204; +return x_205; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_204, 0); -x_213 = lean_ctor_get(x_204, 1); +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_205, 0); +x_214 = lean_ctor_get(x_205, 1); +lean_inc(x_214); lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_204); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -return x_214; +lean_dec(x_205); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; } } } } else { -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_dec(x_120); +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_dec(x_121); lean_dec(x_1); -x_215 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_215, 0, x_12); -x_216 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_217 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_215); -x_218 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_219 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -x_220 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_219, x_5, x_6, x_7, x_8, x_119); +x_216 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_216, 0, x_13); +x_217 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_218 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_216); +x_219 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_220 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +x_221 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_220, x_5, x_6, x_7, x_8, x_120); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_220; +return x_221; } } case 3: { -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_11, 1); -lean_inc(x_221); -lean_dec(x_11); -x_222 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_222) == 4) +lean_object* x_222; lean_object* x_223; +x_222 = lean_ctor_get(x_12, 1); +lean_inc(x_222); +lean_dec(x_12); +x_223 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_223) == 4) { -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; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -lean_dec(x_222); -x_224 = lean_st_ref_get(x_8, x_221); -x_225 = lean_ctor_get(x_224, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); +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; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +lean_dec(x_223); +x_225 = lean_st_ref_get(x_8, x_222); +x_226 = lean_ctor_get(x_225, 0); lean_inc(x_226); -lean_dec(x_224); -x_227 = lean_ctor_get(x_225, 0); +x_227 = lean_ctor_get(x_225, 1); lean_inc(x_227); lean_dec(x_225); -x_228 = lean_ctor_get(x_1, 2); +x_228 = lean_ctor_get(x_226, 0); lean_inc(x_228); -x_229 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_228, x_227, x_223); -if (lean_obj_tag(x_229) == 0) +lean_dec(x_226); +x_229 = lean_ctor_get(x_1, 2); +lean_inc(x_229); +x_230 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_229, x_228, x_224); +if (lean_obj_tag(x_230) == 0) { -lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_230 = lean_ctor_get(x_1, 0); -lean_inc(x_230); -lean_inc(x_230); -x_231 = l_Lean_Name_append(x_223, x_230); -lean_inc(x_223); -x_232 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_223, x_5, x_6, x_7, x_8, x_226); -if (lean_obj_tag(x_232) == 0) +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_1, 0); +lean_inc(x_231); +lean_inc(x_231); +x_232 = l_Lean_Name_append(x_224, x_231); +lean_inc(x_224); +x_233 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_224, x_5, x_6, x_7, x_8, x_227); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); lean_inc(x_234); -lean_dec(x_232); -x_235 = l_Lean_ConstantInfo_type(x_233); -x_236 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_235 = lean_ctor_get(x_233, 1); lean_inc(x_235); -x_237 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_235, x_236, x_5, x_6, x_7, x_8, x_234); -if (lean_obj_tag(x_237) == 0) -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_269; uint8_t x_270; -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); -lean_dec(x_237); -x_269 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_270 = l_Lean_Expr_isConstOf(x_238, x_269); -if (x_270 == 0) -{ -lean_object* x_271; uint8_t x_272; -x_271 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_272 = l_Lean_Expr_isConstOf(x_238, x_271); -lean_dec(x_238); -if (x_272 == 0) -{ -lean_object* x_273; -lean_dec(x_235); lean_dec(x_233); -lean_dec(x_231); -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_223); +x_236 = l_Lean_ConstantInfo_type(x_234); +x_237 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_273 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_239); -if (lean_obj_tag(x_273) == 0) +lean_inc(x_236); +x_238 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_236, x_237, x_5, x_6, x_7, x_8, x_235); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_270; uint8_t x_271; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +x_270 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_271 = l_Lean_Expr_isConstOf(x_239, x_270); +if (x_271 == 0) +{ +lean_object* x_272; uint8_t x_273; +x_272 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_273 = l_Lean_Expr_isConstOf(x_239, x_272); +lean_dec(x_239); +if (x_273 == 0) { lean_object* x_274; -x_274 = lean_ctor_get(x_273, 0); -lean_inc(x_274); +lean_dec(x_236); +lean_dec(x_234); +lean_dec(x_232); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_224); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_274 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_240); 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; 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_dec(x_1); -x_275 = lean_ctor_get(x_273, 1); +lean_object* x_275; +x_275 = lean_ctor_get(x_274, 0); lean_inc(x_275); -lean_dec(x_273); -x_276 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_276, 0, x_230); -x_277 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_278 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_276); -x_279 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_280 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -x_281 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_281, 0, x_12); -x_282 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -x_283 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_284 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_284, 0, x_282); -lean_ctor_set(x_284, 1, x_283); -x_285 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_284, x_5, x_6, x_7, x_8, x_275); +if (lean_obj_tag(x_275) == 0) +{ +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_dec(x_1); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +lean_dec(x_274); +x_277 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_277, 0, x_231); +x_278 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_279 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_277); +x_280 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_281 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_281, 0, x_279); +lean_ctor_set(x_281, 1, x_280); +x_282 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_282, 0, x_13); +x_283 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set(x_283, 1, x_282); +x_284 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_285 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_285, 0, x_283); +lean_ctor_set(x_285, 1, x_284); +x_286 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_285, x_5, x_6, x_7, x_8, x_276); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_285; +return x_286; } else { -lean_object* x_286; lean_object* x_287; -lean_dec(x_230); -lean_dec(x_12); -x_286 = lean_ctor_get(x_273, 1); -lean_inc(x_286); -lean_dec(x_273); -x_287 = lean_ctor_get(x_274, 0); +lean_object* x_287; lean_object* x_288; +lean_dec(x_231); +lean_dec(x_13); +x_287 = lean_ctor_get(x_274, 1); lean_inc(x_287); lean_dec(x_274); -x_4 = x_287; -x_9 = x_286; +x_288 = lean_ctor_get(x_275, 0); +lean_inc(x_288); +lean_dec(x_275); +x_4 = x_288; +x_9 = x_287; goto _start; } } else { -uint8_t x_289; -lean_dec(x_230); -lean_dec(x_12); +uint8_t x_290; +lean_dec(x_231); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_289 = !lean_is_exclusive(x_273); -if (x_289 == 0) +x_290 = !lean_is_exclusive(x_274); +if (x_290 == 0) { -return x_273; +return x_274; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_273, 0); -x_291 = lean_ctor_get(x_273, 1); +lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_291 = lean_ctor_get(x_274, 0); +x_292 = lean_ctor_get(x_274, 1); +lean_inc(x_292); lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_273); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; +lean_dec(x_274); +x_293 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_293, 0, x_291); +lean_ctor_set(x_293, 1, x_292); +return x_293; } } } else { -lean_object* x_293; -x_293 = lean_box(0); -x_240 = x_293; -goto block_268; -} -} -else -{ lean_object* x_294; -lean_dec(x_238); x_294 = lean_box(0); -x_240 = x_294; -goto block_268; +x_241 = x_294; +goto block_269; } -block_268: +} +else { -lean_object* x_241; -lean_dec(x_240); -x_241 = l_Lean_ConstantInfo_value_x3f(x_233); -if (lean_obj_tag(x_241) == 0) +lean_object* x_295; +lean_dec(x_239); +x_295 = lean_box(0); +x_241 = x_295; +goto block_269; +} +block_269: { -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_dec(x_235); -lean_dec(x_233); -lean_dec(x_231); +lean_object* x_242; +lean_dec(x_241); +x_242 = l_Lean_ConstantInfo_value_x3f(x_234); +if (lean_obj_tag(x_242) == 0) +{ +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_dec(x_236); +lean_dec(x_234); +lean_dec(x_232); +lean_dec(x_229); lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_223); +lean_dec(x_224); lean_dec(x_1); -x_242 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_242, 0, x_230); -x_243 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_244 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -x_245 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_246 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -x_247 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_247, 0, x_12); -x_248 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_248, 0, x_246); -lean_ctor_set(x_248, 1, x_247); -x_249 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_250 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -x_251 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_250, x_5, x_6, x_7, x_8, x_239); +x_243 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_243, 0, x_231); +x_244 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_245 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +x_246 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_247 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_247, 0, x_245); +lean_ctor_set(x_247, 1, x_246); +x_248 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_248, 0, x_13); +x_249 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_248); +x_250 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_251 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_251, 0, x_249); +lean_ctor_set(x_251, 1, x_250); +x_252 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_251, x_5, x_6, x_7, x_8, x_240); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_251; +return x_252; } else { -lean_object* x_252; lean_object* x_253; -lean_dec(x_230); -x_252 = lean_ctor_get(x_241, 0); -lean_inc(x_252); -lean_dec(x_241); -lean_inc(x_223); -x_253 = l_Lean_Environment_getModuleIdxFor_x3f(x_227, x_223); -if (lean_obj_tag(x_253) == 0) +lean_object* x_253; lean_object* x_254; +lean_dec(x_231); +x_253 = lean_ctor_get(x_242, 0); +lean_inc(x_253); +lean_dec(x_242); +lean_inc(x_224); +x_254 = l_Lean_Environment_getModuleIdxFor_x3f(x_228, x_224); +if (lean_obj_tag(x_254) == 0) { -lean_object* x_254; lean_object* x_255; -x_254 = lean_box(0); -x_255 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(x_1, x_252, x_2, x_3, x_235, x_231, x_228, x_223, x_12, x_233, x_254, x_5, x_6, x_7, x_8, x_239); -return x_255; +lean_object* x_255; lean_object* x_256; +x_255 = lean_box(0); +x_256 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(x_1, x_253, x_2, x_3, x_236, x_232, x_229, x_224, x_13, x_234, x_255, x_5, x_6, x_7, x_8, x_240); +return x_256; } else { -lean_dec(x_253); +lean_dec(x_254); if (x_3 == 0) { -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; -lean_dec(x_252); -lean_dec(x_235); -lean_dec(x_233); -lean_dec(x_231); -lean_dec(x_228); -lean_dec(x_12); -lean_dec(x_1); -x_256 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_256, 0, x_223); -x_257 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_258 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_260 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -x_261 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_260, x_5, x_6, x_7, x_8, x_239); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_262 = !lean_is_exclusive(x_261); -if (x_262 == 0) -{ -return x_261; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_261, 0); -x_264 = lean_ctor_get(x_261, 1); -lean_inc(x_264); -lean_inc(x_263); -lean_dec(x_261); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -return x_265; -} -} -else -{ -lean_object* x_266; lean_object* x_267; -x_266 = lean_box(0); -x_267 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(x_1, x_252, x_2, x_3, x_235, x_231, x_228, x_223, x_12, x_233, x_266, x_5, x_6, x_7, x_8, x_239); -return x_267; -} -} -} -} -} -else -{ -uint8_t x_295; -lean_dec(x_235); -lean_dec(x_233); -lean_dec(x_231); -lean_dec(x_230); -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_223); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_295 = !lean_is_exclusive(x_237); -if (x_295 == 0) -{ -return x_237; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_237, 0); -x_297 = lean_ctor_get(x_237, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_237); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); -return x_298; -} -} -} -else -{ -uint8_t x_299; -lean_dec(x_231); -lean_dec(x_230); -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_223); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_299 = !lean_is_exclusive(x_232); -if (x_299 == 0) -{ -return x_232; -} -else -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_232, 0); -x_301 = lean_ctor_get(x_232, 1); -lean_inc(x_301); -lean_inc(x_300); +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; +lean_dec(x_253); +lean_dec(x_236); +lean_dec(x_234); lean_dec(x_232); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_300); -lean_ctor_set(x_302, 1, x_301); -return x_302; +lean_dec(x_229); +lean_dec(x_13); +lean_dec(x_1); +x_257 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_257, 0, x_224); +x_258 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_259 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_257); +x_260 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_261 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +x_262 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_261, x_5, x_6, x_7, x_8, x_240); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_263 = !lean_is_exclusive(x_262); +if (x_263 == 0) +{ +return x_262; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_264 = lean_ctor_get(x_262, 0); +x_265 = lean_ctor_get(x_262, 1); +lean_inc(x_265); +lean_inc(x_264); +lean_dec(x_262); +x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set(x_266, 1, x_265); +return x_266; +} +} +else +{ +lean_object* x_267; lean_object* x_268; +x_267 = lean_box(0); +x_268 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(x_1, x_253, x_2, x_3, x_236, x_232, x_229, x_224, x_13, x_234, x_267, x_5, x_6, x_7, x_8, x_240); +return x_268; +} +} } } } else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_223); -x_303 = lean_ctor_get(x_229, 0); -lean_inc(x_303); +uint8_t x_296; +lean_dec(x_236); +lean_dec(x_234); +lean_dec(x_232); +lean_dec(x_231); lean_dec(x_229); -x_304 = lean_box(0); -x_305 = l_Lean_Expr_const___override(x_303, x_304); +lean_dec(x_228); +lean_dec(x_224); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_296 = !lean_is_exclusive(x_238); +if (x_296 == 0) +{ +return x_238; +} +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_297 = lean_ctor_get(x_238, 0); +x_298 = lean_ctor_get(x_238, 1); +lean_inc(x_298); +lean_inc(x_297); +lean_dec(x_238); +x_299 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_299, 0, x_297); +lean_ctor_set(x_299, 1, x_298); +return x_299; +} +} +} +else +{ +uint8_t x_300; +lean_dec(x_232); +lean_dec(x_231); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_224); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_300 = !lean_is_exclusive(x_233); +if (x_300 == 0) +{ +return x_233; +} +else +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_301 = lean_ctor_get(x_233, 0); +x_302 = lean_ctor_get(x_233, 1); +lean_inc(x_302); +lean_inc(x_301); +lean_dec(x_233); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_301); +lean_ctor_set(x_303, 1, x_302); +return x_303; +} +} +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_224); +x_304 = lean_ctor_get(x_230, 0); +lean_inc(x_304); +lean_dec(x_230); +x_305 = lean_box(0); +x_306 = l_Lean_Expr_const___override(x_304, x_305); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_305); -x_306 = lean_infer_type(x_305, x_5, x_6, x_7, x_8, x_226); -if (lean_obj_tag(x_306) == 0) +lean_inc(x_306); +x_307 = lean_infer_type(x_306, x_5, x_6, x_7, x_8, x_227); +if (lean_obj_tag(x_307) == 0) { -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_307 = lean_ctor_get(x_306, 0); -lean_inc(x_307); -x_308 = lean_ctor_get(x_306, 1); +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +x_308 = lean_ctor_get(x_307, 0); lean_inc(x_308); -lean_dec(x_306); -x_309 = lean_box(x_2); -x_310 = lean_box(x_3); -x_311 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18___boxed), 12, 5); -lean_closure_set(x_311, 0, x_12); -lean_closure_set(x_311, 1, x_1); -lean_closure_set(x_311, 2, x_309); -lean_closure_set(x_311, 3, x_310); -lean_closure_set(x_311, 4, x_305); -x_312 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_307, x_311, x_5, x_6, x_7, x_8, x_308); -return x_312; +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +lean_dec(x_307); +x_310 = lean_box(x_2); +x_311 = lean_box(x_3); +x_312 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18___boxed), 12, 5); +lean_closure_set(x_312, 0, x_13); +lean_closure_set(x_312, 1, x_1); +lean_closure_set(x_312, 2, x_310); +lean_closure_set(x_312, 3, x_311); +lean_closure_set(x_312, 4, x_306); +x_313 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_308, x_312, x_5, x_6, x_7, x_8, x_309); +return x_313; } else { -uint8_t x_313; -lean_dec(x_305); -lean_dec(x_12); +uint8_t x_314; +lean_dec(x_306); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_313 = !lean_is_exclusive(x_306); -if (x_313 == 0) +x_314 = !lean_is_exclusive(x_307); +if (x_314 == 0) { -return x_306; +return x_307; } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_314 = lean_ctor_get(x_306, 0); -x_315 = lean_ctor_get(x_306, 1); +lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_315 = lean_ctor_get(x_307, 0); +x_316 = lean_ctor_get(x_307, 1); +lean_inc(x_316); lean_inc(x_315); -lean_inc(x_314); -lean_dec(x_306); -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_314); -lean_ctor_set(x_316, 1, x_315); -return x_316; +lean_dec(x_307); +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set(x_317, 1, x_316); +return x_317; } } } } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -lean_dec(x_222); +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_223); lean_dec(x_1); -x_317 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_317, 0, x_12); -x_318 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_319 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_317); -x_320 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_321 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_321, 0, x_319); -lean_ctor_set(x_321, 1, x_320); -x_322 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_321, x_5, x_6, x_7, x_8, x_221); +x_318 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_318, 0, x_13); +x_319 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_320 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_318); +x_321 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_322 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +x_323 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_322, x_5, x_6, x_7, x_8, x_222); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_322; +return x_323; } } case 4: { -lean_object* x_323; lean_object* x_324; -x_323 = lean_ctor_get(x_11, 1); -lean_inc(x_323); -lean_dec(x_11); -x_324 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_324) == 4) +lean_object* x_324; lean_object* x_325; +x_324 = lean_ctor_get(x_12, 1); +lean_inc(x_324); +lean_dec(x_12); +x_325 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_325) == 4) { -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; -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -lean_dec(x_324); -x_326 = lean_st_ref_get(x_8, x_323); -x_327 = lean_ctor_get(x_326, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 1); +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 = lean_ctor_get(x_325, 0); +lean_inc(x_326); +lean_dec(x_325); +x_327 = lean_st_ref_get(x_8, x_324); +x_328 = lean_ctor_get(x_327, 0); lean_inc(x_328); -lean_dec(x_326); -x_329 = lean_ctor_get(x_327, 0); +x_329 = lean_ctor_get(x_327, 1); lean_inc(x_329); lean_dec(x_327); -x_330 = lean_ctor_get(x_1, 2); +x_330 = lean_ctor_get(x_328, 0); lean_inc(x_330); -x_331 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_330, x_329, x_325); -if (lean_obj_tag(x_331) == 0) +lean_dec(x_328); +x_331 = lean_ctor_get(x_1, 2); +lean_inc(x_331); +x_332 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_331, x_330, x_326); +if (lean_obj_tag(x_332) == 0) { -lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_332 = lean_ctor_get(x_1, 0); -lean_inc(x_332); -lean_inc(x_332); -x_333 = l_Lean_Name_append(x_325, x_332); -lean_inc(x_325); -x_334 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_325, x_5, x_6, x_7, x_8, x_328); -if (lean_obj_tag(x_334) == 0) +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_1, 0); +lean_inc(x_333); +lean_inc(x_333); +x_334 = l_Lean_Name_append(x_326, x_333); +lean_inc(x_326); +x_335 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_326, x_5, x_6, x_7, x_8, x_329); +if (lean_obj_tag(x_335) == 0) { -lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; +x_336 = lean_ctor_get(x_335, 0); lean_inc(x_336); -lean_dec(x_334); -x_337 = l_Lean_ConstantInfo_type(x_335); -x_338 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_337 = lean_ctor_get(x_335, 1); lean_inc(x_337); -x_339 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_337, x_338, x_5, x_6, x_7, x_8, x_336); -if (lean_obj_tag(x_339) == 0) -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_371; uint8_t x_372; -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -lean_dec(x_339); -x_371 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_372 = l_Lean_Expr_isConstOf(x_340, x_371); -if (x_372 == 0) -{ -lean_object* x_373; uint8_t x_374; -x_373 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_374 = l_Lean_Expr_isConstOf(x_340, x_373); -lean_dec(x_340); -if (x_374 == 0) -{ -lean_object* x_375; -lean_dec(x_337); lean_dec(x_335); -lean_dec(x_333); -lean_dec(x_330); -lean_dec(x_329); -lean_dec(x_325); +x_338 = l_Lean_ConstantInfo_type(x_336); +x_339 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_375 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_341); -if (lean_obj_tag(x_375) == 0) +lean_inc(x_338); +x_340 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_338, x_339, x_5, x_6, x_7, x_8, x_337); +if (lean_obj_tag(x_340) == 0) +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_372; uint8_t x_373; +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 1); +lean_inc(x_342); +lean_dec(x_340); +x_372 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_373 = l_Lean_Expr_isConstOf(x_341, x_372); +if (x_373 == 0) +{ +lean_object* x_374; uint8_t x_375; +x_374 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_375 = l_Lean_Expr_isConstOf(x_341, x_374); +lean_dec(x_341); +if (x_375 == 0) { lean_object* x_376; -x_376 = lean_ctor_get(x_375, 0); -lean_inc(x_376); +lean_dec(x_338); +lean_dec(x_336); +lean_dec(x_334); +lean_dec(x_331); +lean_dec(x_330); +lean_dec(x_326); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_376 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_342); if (lean_obj_tag(x_376) == 0) { -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; 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_dec(x_1); -x_377 = lean_ctor_get(x_375, 1); +lean_object* x_377; +x_377 = lean_ctor_get(x_376, 0); lean_inc(x_377); -lean_dec(x_375); -x_378 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_378, 0, x_332); -x_379 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_380 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_378); -x_381 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_382 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -x_383 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_383, 0, x_12); -x_384 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -x_385 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_386 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -x_387 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_386, x_5, x_6, x_7, x_8, x_377); +if (lean_obj_tag(x_377) == 0) +{ +lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; 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_dec(x_1); +x_378 = lean_ctor_get(x_376, 1); +lean_inc(x_378); +lean_dec(x_376); +x_379 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_379, 0, x_333); +x_380 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_381 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_381, 0, x_380); +lean_ctor_set(x_381, 1, x_379); +x_382 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_383 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_383, 0, x_381); +lean_ctor_set(x_383, 1, x_382); +x_384 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_384, 0, x_13); +x_385 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_385, 0, x_383); +lean_ctor_set(x_385, 1, x_384); +x_386 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_387 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +x_388 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_387, x_5, x_6, x_7, x_8, x_378); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_387; +return x_388; } else { -lean_object* x_388; lean_object* x_389; -lean_dec(x_332); -lean_dec(x_12); -x_388 = lean_ctor_get(x_375, 1); -lean_inc(x_388); -lean_dec(x_375); -x_389 = lean_ctor_get(x_376, 0); +lean_object* x_389; lean_object* x_390; +lean_dec(x_333); +lean_dec(x_13); +x_389 = lean_ctor_get(x_376, 1); lean_inc(x_389); lean_dec(x_376); -x_4 = x_389; -x_9 = x_388; +x_390 = lean_ctor_get(x_377, 0); +lean_inc(x_390); +lean_dec(x_377); +x_4 = x_390; +x_9 = x_389; goto _start; } } else { -uint8_t x_391; -lean_dec(x_332); -lean_dec(x_12); +uint8_t x_392; +lean_dec(x_333); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_391 = !lean_is_exclusive(x_375); -if (x_391 == 0) +x_392 = !lean_is_exclusive(x_376); +if (x_392 == 0) { -return x_375; +return x_376; } else { -lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_392 = lean_ctor_get(x_375, 0); -x_393 = lean_ctor_get(x_375, 1); +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_376, 0); +x_394 = lean_ctor_get(x_376, 1); +lean_inc(x_394); lean_inc(x_393); -lean_inc(x_392); -lean_dec(x_375); -x_394 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_394, 0, x_392); -lean_ctor_set(x_394, 1, x_393); -return x_394; +lean_dec(x_376); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +return x_395; } } } else { -lean_object* x_395; -x_395 = lean_box(0); -x_342 = x_395; -goto block_370; -} -} -else -{ lean_object* x_396; -lean_dec(x_340); x_396 = lean_box(0); -x_342 = x_396; -goto block_370; +x_343 = x_396; +goto block_371; } -block_370: +} +else { -lean_object* x_343; -lean_dec(x_342); -x_343 = l_Lean_ConstantInfo_value_x3f(x_335); -if (lean_obj_tag(x_343) == 0) +lean_object* x_397; +lean_dec(x_341); +x_397 = lean_box(0); +x_343 = x_397; +goto block_371; +} +block_371: { -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -lean_dec(x_337); -lean_dec(x_335); -lean_dec(x_333); +lean_object* x_344; +lean_dec(x_343); +x_344 = l_Lean_ConstantInfo_value_x3f(x_336); +if (lean_obj_tag(x_344) == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; 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_dec(x_338); +lean_dec(x_336); +lean_dec(x_334); +lean_dec(x_331); lean_dec(x_330); -lean_dec(x_329); -lean_dec(x_325); +lean_dec(x_326); lean_dec(x_1); -x_344 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_344, 0, x_332); -x_345 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_346 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_344); -x_347 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_348 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_348, 0, x_346); -lean_ctor_set(x_348, 1, x_347); -x_349 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_349, 0, x_12); -x_350 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_349); -x_351 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_352 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_352, 0, x_350); -lean_ctor_set(x_352, 1, x_351); -x_353 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_352, x_5, x_6, x_7, x_8, x_341); +x_345 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_345, 0, x_333); +x_346 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_347 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_347, 0, x_346); +lean_ctor_set(x_347, 1, x_345); +x_348 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_349 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +x_350 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_350, 0, x_13); +x_351 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_351, 0, x_349); +lean_ctor_set(x_351, 1, x_350); +x_352 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_353 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_353, 0, x_351); +lean_ctor_set(x_353, 1, x_352); +x_354 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_353, x_5, x_6, x_7, x_8, x_342); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_353; +return x_354; } else { -lean_object* x_354; lean_object* x_355; -lean_dec(x_332); -x_354 = lean_ctor_get(x_343, 0); -lean_inc(x_354); -lean_dec(x_343); -lean_inc(x_325); -x_355 = l_Lean_Environment_getModuleIdxFor_x3f(x_329, x_325); -if (lean_obj_tag(x_355) == 0) +lean_object* x_355; lean_object* x_356; +lean_dec(x_333); +x_355 = lean_ctor_get(x_344, 0); +lean_inc(x_355); +lean_dec(x_344); +lean_inc(x_326); +x_356 = l_Lean_Environment_getModuleIdxFor_x3f(x_330, x_326); +if (lean_obj_tag(x_356) == 0) { -lean_object* x_356; lean_object* x_357; -x_356 = lean_box(0); -x_357 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_1, x_354, x_2, x_3, x_337, x_333, x_330, x_325, x_12, x_335, x_356, x_5, x_6, x_7, x_8, x_341); -return x_357; +lean_object* x_357; lean_object* x_358; +x_357 = lean_box(0); +x_358 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_1, x_355, x_2, x_3, x_338, x_334, x_331, x_326, x_13, x_336, x_357, x_5, x_6, x_7, x_8, x_342); +return x_358; } else { -lean_dec(x_355); +lean_dec(x_356); if (x_3 == 0) { -lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; uint8_t x_364; -lean_dec(x_354); -lean_dec(x_337); -lean_dec(x_335); -lean_dec(x_333); -lean_dec(x_330); -lean_dec(x_12); -lean_dec(x_1); -x_358 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_358, 0, x_325); -x_359 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_360 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_358); -x_361 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_362 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_362, 0, x_360); -lean_ctor_set(x_362, 1, x_361); -x_363 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_362, x_5, x_6, x_7, x_8, x_341); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_364 = !lean_is_exclusive(x_363); -if (x_364 == 0) -{ -return x_363; -} -else -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_365 = lean_ctor_get(x_363, 0); -x_366 = lean_ctor_get(x_363, 1); -lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_363); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -return x_367; -} -} -else -{ -lean_object* x_368; lean_object* x_369; -x_368 = lean_box(0); -x_369 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_1, x_354, x_2, x_3, x_337, x_333, x_330, x_325, x_12, x_335, x_368, x_5, x_6, x_7, x_8, x_341); -return x_369; -} -} -} -} -} -else -{ -uint8_t x_397; -lean_dec(x_337); -lean_dec(x_335); -lean_dec(x_333); -lean_dec(x_332); -lean_dec(x_330); -lean_dec(x_329); -lean_dec(x_325); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_397 = !lean_is_exclusive(x_339); -if (x_397 == 0) -{ -return x_339; -} -else -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_398 = lean_ctor_get(x_339, 0); -x_399 = lean_ctor_get(x_339, 1); -lean_inc(x_399); -lean_inc(x_398); -lean_dec(x_339); -x_400 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_400, 0, x_398); -lean_ctor_set(x_400, 1, x_399); -return x_400; -} -} -} -else -{ -uint8_t x_401; -lean_dec(x_333); -lean_dec(x_332); -lean_dec(x_330); -lean_dec(x_329); -lean_dec(x_325); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_401 = !lean_is_exclusive(x_334); -if (x_401 == 0) -{ -return x_334; -} -else -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_402 = lean_ctor_get(x_334, 0); -x_403 = lean_ctor_get(x_334, 1); -lean_inc(x_403); -lean_inc(x_402); +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; +lean_dec(x_355); +lean_dec(x_338); +lean_dec(x_336); lean_dec(x_334); -x_404 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_404, 0, x_402); -lean_ctor_set(x_404, 1, x_403); -return x_404; +lean_dec(x_331); +lean_dec(x_13); +lean_dec(x_1); +x_359 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_359, 0, x_326); +x_360 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_361 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_359); +x_362 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_363 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_363, 0, x_361); +lean_ctor_set(x_363, 1, x_362); +x_364 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_363, x_5, x_6, x_7, x_8, x_342); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_365 = !lean_is_exclusive(x_364); +if (x_365 == 0) +{ +return x_364; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_364, 0); +x_367 = lean_ctor_get(x_364, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_364); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +return x_368; +} +} +else +{ +lean_object* x_369; lean_object* x_370; +x_369 = lean_box(0); +x_370 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_1, x_355, x_2, x_3, x_338, x_334, x_331, x_326, x_13, x_336, x_369, x_5, x_6, x_7, x_8, x_342); +return x_370; +} +} } } } else { -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -lean_dec(x_330); -lean_dec(x_329); -lean_dec(x_325); -x_405 = lean_ctor_get(x_331, 0); -lean_inc(x_405); +uint8_t x_398; +lean_dec(x_338); +lean_dec(x_336); +lean_dec(x_334); +lean_dec(x_333); lean_dec(x_331); -x_406 = lean_box(0); -x_407 = l_Lean_Expr_const___override(x_405, x_406); +lean_dec(x_330); +lean_dec(x_326); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_398 = !lean_is_exclusive(x_340); +if (x_398 == 0) +{ +return x_340; +} +else +{ +lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_399 = lean_ctor_get(x_340, 0); +x_400 = lean_ctor_get(x_340, 1); +lean_inc(x_400); +lean_inc(x_399); +lean_dec(x_340); +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +lean_dec(x_334); +lean_dec(x_333); +lean_dec(x_331); +lean_dec(x_330); +lean_dec(x_326); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_402 = !lean_is_exclusive(x_335); +if (x_402 == 0) +{ +return x_335; +} +else +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; +x_403 = lean_ctor_get(x_335, 0); +x_404 = lean_ctor_get(x_335, 1); +lean_inc(x_404); +lean_inc(x_403); +lean_dec(x_335); +x_405 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_405, 0, x_403); +lean_ctor_set(x_405, 1, x_404); +return x_405; +} +} +} +else +{ +lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +lean_dec(x_331); +lean_dec(x_330); +lean_dec(x_326); +x_406 = lean_ctor_get(x_332, 0); +lean_inc(x_406); +lean_dec(x_332); +x_407 = lean_box(0); +x_408 = l_Lean_Expr_const___override(x_406, x_407); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_407); -x_408 = lean_infer_type(x_407, x_5, x_6, x_7, x_8, x_328); -if (lean_obj_tag(x_408) == 0) +lean_inc(x_408); +x_409 = lean_infer_type(x_408, x_5, x_6, x_7, x_8, x_329); +if (lean_obj_tag(x_409) == 0) { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_409 = lean_ctor_get(x_408, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; +x_410 = lean_ctor_get(x_409, 0); lean_inc(x_410); -lean_dec(x_408); -x_411 = lean_box(x_2); -x_412 = lean_box(x_3); -x_413 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24___boxed), 12, 5); -lean_closure_set(x_413, 0, x_12); -lean_closure_set(x_413, 1, x_1); -lean_closure_set(x_413, 2, x_411); -lean_closure_set(x_413, 3, x_412); -lean_closure_set(x_413, 4, x_407); -x_414 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_409, x_413, x_5, x_6, x_7, x_8, x_410); -return x_414; +x_411 = lean_ctor_get(x_409, 1); +lean_inc(x_411); +lean_dec(x_409); +x_412 = lean_box(x_2); +x_413 = lean_box(x_3); +x_414 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24___boxed), 12, 5); +lean_closure_set(x_414, 0, x_13); +lean_closure_set(x_414, 1, x_1); +lean_closure_set(x_414, 2, x_412); +lean_closure_set(x_414, 3, x_413); +lean_closure_set(x_414, 4, x_408); +x_415 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_410, x_414, x_5, x_6, x_7, x_8, x_411); +return x_415; } else { -uint8_t x_415; -lean_dec(x_407); -lean_dec(x_12); +uint8_t x_416; +lean_dec(x_408); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_415 = !lean_is_exclusive(x_408); -if (x_415 == 0) +x_416 = !lean_is_exclusive(x_409); +if (x_416 == 0) { -return x_408; +return x_409; } else { -lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_416 = lean_ctor_get(x_408, 0); -x_417 = lean_ctor_get(x_408, 1); +lean_object* x_417; lean_object* x_418; lean_object* x_419; +x_417 = lean_ctor_get(x_409, 0); +x_418 = lean_ctor_get(x_409, 1); +lean_inc(x_418); lean_inc(x_417); -lean_inc(x_416); -lean_dec(x_408); -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_416); -lean_ctor_set(x_418, 1, x_417); -return x_418; +lean_dec(x_409); +x_419 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_419, 0, x_417); +lean_ctor_set(x_419, 1, x_418); +return x_419; } } } } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -lean_dec(x_324); +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; +lean_dec(x_325); lean_dec(x_1); -x_419 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_419, 0, x_12); -x_420 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_421 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_421, 0, x_420); -lean_ctor_set(x_421, 1, x_419); -x_422 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_423 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_423, 0, x_421); -lean_ctor_set(x_423, 1, x_422); -x_424 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_423, x_5, x_6, x_7, x_8, x_323); +x_420 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_420, 0, x_13); +x_421 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_422 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_420); +x_423 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_424 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_423); +x_425 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_424, x_5, x_6, x_7, x_8, x_324); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_424; +return x_425; } } case 5: { -lean_object* x_425; lean_object* x_426; -x_425 = lean_ctor_get(x_11, 1); -lean_inc(x_425); -lean_dec(x_11); -x_426 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_426) == 4) +lean_object* x_426; lean_object* x_427; +x_426 = lean_ctor_get(x_12, 1); +lean_inc(x_426); +lean_dec(x_12); +x_427 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_427) == 4) { -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; -x_427 = lean_ctor_get(x_426, 0); -lean_inc(x_427); -lean_dec(x_426); -x_428 = lean_st_ref_get(x_8, x_425); -x_429 = lean_ctor_get(x_428, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_428, 1); +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_428 = lean_ctor_get(x_427, 0); +lean_inc(x_428); +lean_dec(x_427); +x_429 = lean_st_ref_get(x_8, x_426); +x_430 = lean_ctor_get(x_429, 0); lean_inc(x_430); -lean_dec(x_428); -x_431 = lean_ctor_get(x_429, 0); +x_431 = lean_ctor_get(x_429, 1); lean_inc(x_431); lean_dec(x_429); -x_432 = lean_ctor_get(x_1, 2); +x_432 = lean_ctor_get(x_430, 0); lean_inc(x_432); -x_433 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_432, x_431, x_427); -if (lean_obj_tag(x_433) == 0) +lean_dec(x_430); +x_433 = lean_ctor_get(x_1, 2); +lean_inc(x_433); +x_434 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_433, x_432, x_428); +if (lean_obj_tag(x_434) == 0) { -lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_434 = lean_ctor_get(x_1, 0); -lean_inc(x_434); -lean_inc(x_434); -x_435 = l_Lean_Name_append(x_427, x_434); -lean_inc(x_427); -x_436 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_427, x_5, x_6, x_7, x_8, x_430); -if (lean_obj_tag(x_436) == 0) +lean_object* x_435; lean_object* x_436; lean_object* x_437; +x_435 = lean_ctor_get(x_1, 0); +lean_inc(x_435); +lean_inc(x_435); +x_436 = l_Lean_Name_append(x_428, x_435); +lean_inc(x_428); +x_437 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_428, x_5, x_6, x_7, x_8, x_431); +if (lean_obj_tag(x_437) == 0) { -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_437 = lean_ctor_get(x_436, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_436, 1); +lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +x_438 = lean_ctor_get(x_437, 0); lean_inc(x_438); -lean_dec(x_436); -x_439 = l_Lean_ConstantInfo_type(x_437); -x_440 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_439 = lean_ctor_get(x_437, 1); lean_inc(x_439); -x_441 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_439, x_440, x_5, x_6, x_7, x_8, x_438); -if (lean_obj_tag(x_441) == 0) -{ -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_473; uint8_t x_474; -x_442 = lean_ctor_get(x_441, 0); -lean_inc(x_442); -x_443 = lean_ctor_get(x_441, 1); -lean_inc(x_443); -lean_dec(x_441); -x_473 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_474 = l_Lean_Expr_isConstOf(x_442, x_473); -if (x_474 == 0) -{ -lean_object* x_475; uint8_t x_476; -x_475 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_476 = l_Lean_Expr_isConstOf(x_442, x_475); -lean_dec(x_442); -if (x_476 == 0) -{ -lean_object* x_477; -lean_dec(x_439); lean_dec(x_437); -lean_dec(x_435); -lean_dec(x_432); -lean_dec(x_431); -lean_dec(x_427); +x_440 = l_Lean_ConstantInfo_type(x_438); +x_441 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_477 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_443); -if (lean_obj_tag(x_477) == 0) +lean_inc(x_440); +x_442 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_440, x_441, x_5, x_6, x_7, x_8, x_439); +if (lean_obj_tag(x_442) == 0) +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_474; uint8_t x_475; +x_443 = lean_ctor_get(x_442, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_442, 1); +lean_inc(x_444); +lean_dec(x_442); +x_474 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_475 = l_Lean_Expr_isConstOf(x_443, x_474); +if (x_475 == 0) +{ +lean_object* x_476; uint8_t x_477; +x_476 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_477 = l_Lean_Expr_isConstOf(x_443, x_476); +lean_dec(x_443); +if (x_477 == 0) { lean_object* x_478; -x_478 = lean_ctor_get(x_477, 0); -lean_inc(x_478); +lean_dec(x_440); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); +lean_dec(x_432); +lean_dec(x_428); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_478 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_444); if (lean_obj_tag(x_478) == 0) { -lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -lean_dec(x_1); -x_479 = lean_ctor_get(x_477, 1); +lean_object* x_479; +x_479 = lean_ctor_get(x_478, 0); lean_inc(x_479); -lean_dec(x_477); -x_480 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_480, 0, x_434); -x_481 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_482 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_482, 0, x_481); -lean_ctor_set(x_482, 1, x_480); -x_483 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_484 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_484, 0, x_482); -lean_ctor_set(x_484, 1, x_483); -x_485 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_485, 0, x_12); -x_486 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_486, 0, x_484); -lean_ctor_set(x_486, 1, x_485); -x_487 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_488 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_488, 0, x_486); -lean_ctor_set(x_488, 1, x_487); -x_489 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_488, x_5, x_6, x_7, x_8, x_479); +if (lean_obj_tag(x_479) == 0) +{ +lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; +lean_dec(x_1); +x_480 = lean_ctor_get(x_478, 1); +lean_inc(x_480); +lean_dec(x_478); +x_481 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_481, 0, x_435); +x_482 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_483 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_483, 0, x_482); +lean_ctor_set(x_483, 1, x_481); +x_484 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_485 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_485, 0, x_483); +lean_ctor_set(x_485, 1, x_484); +x_486 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_486, 0, x_13); +x_487 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_487, 0, x_485); +lean_ctor_set(x_487, 1, x_486); +x_488 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_489 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_489, 0, x_487); +lean_ctor_set(x_489, 1, x_488); +x_490 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_489, x_5, x_6, x_7, x_8, x_480); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_489; +return x_490; } else { -lean_object* x_490; lean_object* x_491; -lean_dec(x_434); -lean_dec(x_12); -x_490 = lean_ctor_get(x_477, 1); -lean_inc(x_490); -lean_dec(x_477); -x_491 = lean_ctor_get(x_478, 0); +lean_object* x_491; lean_object* x_492; +lean_dec(x_435); +lean_dec(x_13); +x_491 = lean_ctor_get(x_478, 1); lean_inc(x_491); lean_dec(x_478); -x_4 = x_491; -x_9 = x_490; +x_492 = lean_ctor_get(x_479, 0); +lean_inc(x_492); +lean_dec(x_479); +x_4 = x_492; +x_9 = x_491; goto _start; } } else { -uint8_t x_493; -lean_dec(x_434); -lean_dec(x_12); +uint8_t x_494; +lean_dec(x_435); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_493 = !lean_is_exclusive(x_477); -if (x_493 == 0) +x_494 = !lean_is_exclusive(x_478); +if (x_494 == 0) { -return x_477; +return x_478; } else { -lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_494 = lean_ctor_get(x_477, 0); -x_495 = lean_ctor_get(x_477, 1); +lean_object* x_495; lean_object* x_496; lean_object* x_497; +x_495 = lean_ctor_get(x_478, 0); +x_496 = lean_ctor_get(x_478, 1); +lean_inc(x_496); lean_inc(x_495); -lean_inc(x_494); -lean_dec(x_477); -x_496 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_496, 0, x_494); -lean_ctor_set(x_496, 1, x_495); -return x_496; +lean_dec(x_478); +x_497 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_497, 0, x_495); +lean_ctor_set(x_497, 1, x_496); +return x_497; } } } else { -lean_object* x_497; -x_497 = lean_box(0); -x_444 = x_497; -goto block_472; -} -} -else -{ lean_object* x_498; -lean_dec(x_442); x_498 = lean_box(0); -x_444 = x_498; -goto block_472; +x_445 = x_498; +goto block_473; } -block_472: +} +else { -lean_object* x_445; -lean_dec(x_444); -x_445 = l_Lean_ConstantInfo_value_x3f(x_437); -if (lean_obj_tag(x_445) == 0) +lean_object* x_499; +lean_dec(x_443); +x_499 = lean_box(0); +x_445 = x_499; +goto block_473; +} +block_473: { -lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; -lean_dec(x_439); -lean_dec(x_437); -lean_dec(x_435); +lean_object* x_446; +lean_dec(x_445); +x_446 = l_Lean_ConstantInfo_value_x3f(x_438); +if (lean_obj_tag(x_446) == 0) +{ +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; +lean_dec(x_440); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); lean_dec(x_432); -lean_dec(x_431); -lean_dec(x_427); +lean_dec(x_428); lean_dec(x_1); -x_446 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_446, 0, x_434); -x_447 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_448 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_448, 0, x_447); -lean_ctor_set(x_448, 1, x_446); -x_449 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_450 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_450, 0, x_448); -lean_ctor_set(x_450, 1, x_449); -x_451 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_451, 0, x_12); -x_452 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_452, 0, x_450); -lean_ctor_set(x_452, 1, x_451); -x_453 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_454 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_454, 0, x_452); -lean_ctor_set(x_454, 1, x_453); -x_455 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_454, x_5, x_6, x_7, x_8, x_443); +x_447 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_447, 0, x_435); +x_448 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_449 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_449, 0, x_448); +lean_ctor_set(x_449, 1, x_447); +x_450 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_451 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_451, 0, x_449); +lean_ctor_set(x_451, 1, x_450); +x_452 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_452, 0, x_13); +x_453 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_453, 0, x_451); +lean_ctor_set(x_453, 1, x_452); +x_454 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_455 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_455, 0, x_453); +lean_ctor_set(x_455, 1, x_454); +x_456 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_455, x_5, x_6, x_7, x_8, x_444); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_455; +return x_456; } else { -lean_object* x_456; lean_object* x_457; -lean_dec(x_434); -x_456 = lean_ctor_get(x_445, 0); -lean_inc(x_456); -lean_dec(x_445); -lean_inc(x_427); -x_457 = l_Lean_Environment_getModuleIdxFor_x3f(x_431, x_427); -if (lean_obj_tag(x_457) == 0) +lean_object* x_457; lean_object* x_458; +lean_dec(x_435); +x_457 = lean_ctor_get(x_446, 0); +lean_inc(x_457); +lean_dec(x_446); +lean_inc(x_428); +x_458 = l_Lean_Environment_getModuleIdxFor_x3f(x_432, x_428); +if (lean_obj_tag(x_458) == 0) { -lean_object* x_458; lean_object* x_459; -x_458 = lean_box(0); -x_459 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_1, x_456, x_2, x_3, x_439, x_435, x_432, x_427, x_12, x_437, x_458, x_5, x_6, x_7, x_8, x_443); -return x_459; +lean_object* x_459; lean_object* x_460; +x_459 = lean_box(0); +x_460 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_1, x_457, x_2, x_3, x_440, x_436, x_433, x_428, x_13, x_438, x_459, x_5, x_6, x_7, x_8, x_444); +return x_460; } else { -lean_dec(x_457); +lean_dec(x_458); if (x_3 == 0) { -lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; uint8_t x_466; -lean_dec(x_456); -lean_dec(x_439); -lean_dec(x_437); -lean_dec(x_435); -lean_dec(x_432); -lean_dec(x_12); -lean_dec(x_1); -x_460 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_460, 0, x_427); -x_461 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_462 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_460); -x_463 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_464 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_464, 0, x_462); -lean_ctor_set(x_464, 1, x_463); -x_465 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_464, x_5, x_6, x_7, x_8, x_443); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_466 = !lean_is_exclusive(x_465); -if (x_466 == 0) -{ -return x_465; -} -else -{ -lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_467 = lean_ctor_get(x_465, 0); -x_468 = lean_ctor_get(x_465, 1); -lean_inc(x_468); -lean_inc(x_467); -lean_dec(x_465); -x_469 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_469, 0, x_467); -lean_ctor_set(x_469, 1, x_468); -return x_469; -} -} -else -{ -lean_object* x_470; lean_object* x_471; -x_470 = lean_box(0); -x_471 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_1, x_456, x_2, x_3, x_439, x_435, x_432, x_427, x_12, x_437, x_470, x_5, x_6, x_7, x_8, x_443); -return x_471; -} -} -} -} -} -else -{ -uint8_t x_499; -lean_dec(x_439); -lean_dec(x_437); -lean_dec(x_435); -lean_dec(x_434); -lean_dec(x_432); -lean_dec(x_431); -lean_dec(x_427); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_499 = !lean_is_exclusive(x_441); -if (x_499 == 0) -{ -return x_441; -} -else -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; -x_500 = lean_ctor_get(x_441, 0); -x_501 = lean_ctor_get(x_441, 1); -lean_inc(x_501); -lean_inc(x_500); -lean_dec(x_441); -x_502 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_502, 0, x_500); -lean_ctor_set(x_502, 1, x_501); -return x_502; -} -} -} -else -{ -uint8_t x_503; -lean_dec(x_435); -lean_dec(x_434); -lean_dec(x_432); -lean_dec(x_431); -lean_dec(x_427); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_503 = !lean_is_exclusive(x_436); -if (x_503 == 0) -{ -return x_436; -} -else -{ -lean_object* x_504; lean_object* x_505; lean_object* x_506; -x_504 = lean_ctor_get(x_436, 0); -x_505 = lean_ctor_get(x_436, 1); -lean_inc(x_505); -lean_inc(x_504); +lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; uint8_t x_467; +lean_dec(x_457); +lean_dec(x_440); +lean_dec(x_438); lean_dec(x_436); -x_506 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_506, 0, x_504); -lean_ctor_set(x_506, 1, x_505); -return x_506; +lean_dec(x_433); +lean_dec(x_13); +lean_dec(x_1); +x_461 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_461, 0, x_428); +x_462 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_463 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_463, 0, x_462); +lean_ctor_set(x_463, 1, x_461); +x_464 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_465 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_465, 0, x_463); +lean_ctor_set(x_465, 1, x_464); +x_466 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_465, x_5, x_6, x_7, x_8, x_444); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_467 = !lean_is_exclusive(x_466); +if (x_467 == 0) +{ +return x_466; +} +else +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; +x_468 = lean_ctor_get(x_466, 0); +x_469 = lean_ctor_get(x_466, 1); +lean_inc(x_469); +lean_inc(x_468); +lean_dec(x_466); +x_470 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_470, 0, x_468); +lean_ctor_set(x_470, 1, x_469); +return x_470; +} +} +else +{ +lean_object* x_471; lean_object* x_472; +x_471 = lean_box(0); +x_472 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_1, x_457, x_2, x_3, x_440, x_436, x_433, x_428, x_13, x_438, x_471, x_5, x_6, x_7, x_8, x_444); +return x_472; +} +} } } } else { -lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; -lean_dec(x_432); -lean_dec(x_431); -lean_dec(x_427); -x_507 = lean_ctor_get(x_433, 0); -lean_inc(x_507); +uint8_t x_500; +lean_dec(x_440); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_435); lean_dec(x_433); -x_508 = lean_box(0); -x_509 = l_Lean_Expr_const___override(x_507, x_508); +lean_dec(x_432); +lean_dec(x_428); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_500 = !lean_is_exclusive(x_442); +if (x_500 == 0) +{ +return x_442; +} +else +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; +x_501 = lean_ctor_get(x_442, 0); +x_502 = lean_ctor_get(x_442, 1); +lean_inc(x_502); +lean_inc(x_501); +lean_dec(x_442); +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_501); +lean_ctor_set(x_503, 1, x_502); +return x_503; +} +} +} +else +{ +uint8_t x_504; +lean_dec(x_436); +lean_dec(x_435); +lean_dec(x_433); +lean_dec(x_432); +lean_dec(x_428); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_504 = !lean_is_exclusive(x_437); +if (x_504 == 0) +{ +return x_437; +} +else +{ +lean_object* x_505; lean_object* x_506; lean_object* x_507; +x_505 = lean_ctor_get(x_437, 0); +x_506 = lean_ctor_get(x_437, 1); +lean_inc(x_506); +lean_inc(x_505); +lean_dec(x_437); +x_507 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_507, 0, x_505); +lean_ctor_set(x_507, 1, x_506); +return x_507; +} +} +} +else +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +lean_dec(x_433); +lean_dec(x_432); +lean_dec(x_428); +x_508 = lean_ctor_get(x_434, 0); +lean_inc(x_508); +lean_dec(x_434); +x_509 = lean_box(0); +x_510 = l_Lean_Expr_const___override(x_508, x_509); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_509); -x_510 = lean_infer_type(x_509, x_5, x_6, x_7, x_8, x_430); -if (lean_obj_tag(x_510) == 0) +lean_inc(x_510); +x_511 = lean_infer_type(x_510, x_5, x_6, x_7, x_8, x_431); +if (lean_obj_tag(x_511) == 0) { -lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; -x_511 = lean_ctor_get(x_510, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_510, 1); +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; +x_512 = lean_ctor_get(x_511, 0); lean_inc(x_512); -lean_dec(x_510); -x_513 = lean_box(x_2); -x_514 = lean_box(x_3); -x_515 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30___boxed), 12, 5); -lean_closure_set(x_515, 0, x_12); -lean_closure_set(x_515, 1, x_1); -lean_closure_set(x_515, 2, x_513); -lean_closure_set(x_515, 3, x_514); -lean_closure_set(x_515, 4, x_509); -x_516 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_511, x_515, x_5, x_6, x_7, x_8, x_512); -return x_516; +x_513 = lean_ctor_get(x_511, 1); +lean_inc(x_513); +lean_dec(x_511); +x_514 = lean_box(x_2); +x_515 = lean_box(x_3); +x_516 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30___boxed), 12, 5); +lean_closure_set(x_516, 0, x_13); +lean_closure_set(x_516, 1, x_1); +lean_closure_set(x_516, 2, x_514); +lean_closure_set(x_516, 3, x_515); +lean_closure_set(x_516, 4, x_510); +x_517 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_512, x_516, x_5, x_6, x_7, x_8, x_513); +return x_517; } else { -uint8_t x_517; -lean_dec(x_509); -lean_dec(x_12); +uint8_t x_518; +lean_dec(x_510); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_517 = !lean_is_exclusive(x_510); -if (x_517 == 0) +x_518 = !lean_is_exclusive(x_511); +if (x_518 == 0) { -return x_510; +return x_511; } else { -lean_object* x_518; lean_object* x_519; lean_object* x_520; -x_518 = lean_ctor_get(x_510, 0); -x_519 = lean_ctor_get(x_510, 1); +lean_object* x_519; lean_object* x_520; lean_object* x_521; +x_519 = lean_ctor_get(x_511, 0); +x_520 = lean_ctor_get(x_511, 1); +lean_inc(x_520); lean_inc(x_519); -lean_inc(x_518); -lean_dec(x_510); -x_520 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_520, 0, x_518); -lean_ctor_set(x_520, 1, x_519); -return x_520; +lean_dec(x_511); +x_521 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_521, 0, x_519); +lean_ctor_set(x_521, 1, x_520); +return x_521; } } } } else { -lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; -lean_dec(x_426); +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; +lean_dec(x_427); lean_dec(x_1); -x_521 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_521, 0, x_12); -x_522 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_523 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_523, 0, x_522); -lean_ctor_set(x_523, 1, x_521); -x_524 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_525 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_525, 0, x_523); -lean_ctor_set(x_525, 1, x_524); -x_526 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_525, x_5, x_6, x_7, x_8, x_425); +x_522 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_522, 0, x_13); +x_523 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_524 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_524, 0, x_523); +lean_ctor_set(x_524, 1, x_522); +x_525 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_526 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_526, 0, x_524); +lean_ctor_set(x_526, 1, x_525); +x_527 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_526, x_5, x_6, x_7, x_8, x_426); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_526; +return x_527; } } case 6: { -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_527 = lean_ctor_get(x_11, 1); -lean_inc(x_527); -lean_dec(x_11); -x_528 = lean_box(x_2); -x_529 = lean_box(x_3); -x_530 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31___boxed), 10, 3); -lean_closure_set(x_530, 0, x_1); -lean_closure_set(x_530, 1, x_528); -lean_closure_set(x_530, 2, x_529); -x_531 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_12, x_530, x_5, x_6, x_7, x_8, x_527); -return x_531; +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; +x_528 = lean_ctor_get(x_12, 1); +lean_inc(x_528); +lean_dec(x_12); +x_529 = lean_box(x_2); +x_530 = lean_box(x_3); +x_531 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31___boxed), 10, 3); +lean_closure_set(x_531, 0, x_1); +lean_closure_set(x_531, 1, x_529); +lean_closure_set(x_531, 2, x_530); +x_532 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_13, x_531, x_5, x_6, x_7, x_8, x_528); +return x_532; } case 7: { -lean_object* x_532; lean_object* x_533; -x_532 = lean_ctor_get(x_11, 1); -lean_inc(x_532); -lean_dec(x_11); -x_533 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_533) == 4) +lean_object* x_533; lean_object* x_534; +x_533 = lean_ctor_get(x_12, 1); +lean_inc(x_533); +lean_dec(x_12); +x_534 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_534) == 4) { -lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; -x_534 = lean_ctor_get(x_533, 0); -lean_inc(x_534); -lean_dec(x_533); -x_535 = lean_st_ref_get(x_8, x_532); -x_536 = lean_ctor_get(x_535, 0); -lean_inc(x_536); -x_537 = lean_ctor_get(x_535, 1); +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_535 = lean_ctor_get(x_534, 0); +lean_inc(x_535); +lean_dec(x_534); +x_536 = lean_st_ref_get(x_8, x_533); +x_537 = lean_ctor_get(x_536, 0); lean_inc(x_537); -lean_dec(x_535); -x_538 = lean_ctor_get(x_536, 0); +x_538 = lean_ctor_get(x_536, 1); lean_inc(x_538); lean_dec(x_536); -x_539 = lean_ctor_get(x_1, 2); +x_539 = lean_ctor_get(x_537, 0); lean_inc(x_539); -x_540 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_539, x_538, x_534); -if (lean_obj_tag(x_540) == 0) +lean_dec(x_537); +x_540 = lean_ctor_get(x_1, 2); +lean_inc(x_540); +x_541 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_540, x_539, x_535); +if (lean_obj_tag(x_541) == 0) { -lean_object* x_541; lean_object* x_542; lean_object* x_543; -x_541 = lean_ctor_get(x_1, 0); -lean_inc(x_541); -lean_inc(x_541); -x_542 = l_Lean_Name_append(x_534, x_541); -lean_inc(x_534); -x_543 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_534, x_5, x_6, x_7, x_8, x_537); -if (lean_obj_tag(x_543) == 0) +lean_object* x_542; lean_object* x_543; lean_object* x_544; +x_542 = lean_ctor_get(x_1, 0); +lean_inc(x_542); +lean_inc(x_542); +x_543 = l_Lean_Name_append(x_535, x_542); +lean_inc(x_535); +x_544 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_535, x_5, x_6, x_7, x_8, x_538); +if (lean_obj_tag(x_544) == 0) { -lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; -x_544 = lean_ctor_get(x_543, 0); -lean_inc(x_544); -x_545 = lean_ctor_get(x_543, 1); +lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +x_545 = lean_ctor_get(x_544, 0); lean_inc(x_545); -lean_dec(x_543); -x_546 = l_Lean_ConstantInfo_type(x_544); -x_547 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_546 = lean_ctor_get(x_544, 1); lean_inc(x_546); -x_548 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_546, x_547, x_5, x_6, x_7, x_8, x_545); -if (lean_obj_tag(x_548) == 0) -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_580; uint8_t x_581; -x_549 = lean_ctor_get(x_548, 0); -lean_inc(x_549); -x_550 = lean_ctor_get(x_548, 1); -lean_inc(x_550); -lean_dec(x_548); -x_580 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_581 = l_Lean_Expr_isConstOf(x_549, x_580); -if (x_581 == 0) -{ -lean_object* x_582; uint8_t x_583; -x_582 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_583 = l_Lean_Expr_isConstOf(x_549, x_582); -lean_dec(x_549); -if (x_583 == 0) -{ -lean_object* x_584; -lean_dec(x_546); lean_dec(x_544); -lean_dec(x_542); -lean_dec(x_539); -lean_dec(x_538); -lean_dec(x_534); +x_547 = l_Lean_ConstantInfo_type(x_545); +x_548 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_584 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_550); -if (lean_obj_tag(x_584) == 0) +lean_inc(x_547); +x_549 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_547, x_548, x_5, x_6, x_7, x_8, x_546); +if (lean_obj_tag(x_549) == 0) +{ +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_581; uint8_t x_582; +x_550 = lean_ctor_get(x_549, 0); +lean_inc(x_550); +x_551 = lean_ctor_get(x_549, 1); +lean_inc(x_551); +lean_dec(x_549); +x_581 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_582 = l_Lean_Expr_isConstOf(x_550, x_581); +if (x_582 == 0) +{ +lean_object* x_583; uint8_t x_584; +x_583 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_584 = l_Lean_Expr_isConstOf(x_550, x_583); +lean_dec(x_550); +if (x_584 == 0) { lean_object* x_585; -x_585 = lean_ctor_get(x_584, 0); -lean_inc(x_585); +lean_dec(x_547); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_540); +lean_dec(x_539); +lean_dec(x_535); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_585 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_551); if (lean_obj_tag(x_585) == 0) { -lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; -lean_dec(x_1); -x_586 = lean_ctor_get(x_584, 1); +lean_object* x_586; +x_586 = lean_ctor_get(x_585, 0); lean_inc(x_586); -lean_dec(x_584); -x_587 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_587, 0, x_541); -x_588 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_589 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_589, 0, x_588); -lean_ctor_set(x_589, 1, x_587); -x_590 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_591 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_591, 0, x_589); -lean_ctor_set(x_591, 1, x_590); -x_592 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_592, 0, x_12); -x_593 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_593, 0, x_591); -lean_ctor_set(x_593, 1, x_592); -x_594 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_595 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_595, 0, x_593); -lean_ctor_set(x_595, 1, x_594); -x_596 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_595, x_5, x_6, x_7, x_8, x_586); +if (lean_obj_tag(x_586) == 0) +{ +lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; +lean_dec(x_1); +x_587 = lean_ctor_get(x_585, 1); +lean_inc(x_587); +lean_dec(x_585); +x_588 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_588, 0, x_542); +x_589 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_590 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_590, 0, x_589); +lean_ctor_set(x_590, 1, x_588); +x_591 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_592 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_592, 0, x_590); +lean_ctor_set(x_592, 1, x_591); +x_593 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_593, 0, x_13); +x_594 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_594, 0, x_592); +lean_ctor_set(x_594, 1, x_593); +x_595 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_596 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_596, 0, x_594); +lean_ctor_set(x_596, 1, x_595); +x_597 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_596, x_5, x_6, x_7, x_8, x_587); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_596; +return x_597; } else { -lean_object* x_597; lean_object* x_598; -lean_dec(x_541); -lean_dec(x_12); -x_597 = lean_ctor_get(x_584, 1); -lean_inc(x_597); -lean_dec(x_584); -x_598 = lean_ctor_get(x_585, 0); +lean_object* x_598; lean_object* x_599; +lean_dec(x_542); +lean_dec(x_13); +x_598 = lean_ctor_get(x_585, 1); lean_inc(x_598); lean_dec(x_585); -x_4 = x_598; -x_9 = x_597; +x_599 = lean_ctor_get(x_586, 0); +lean_inc(x_599); +lean_dec(x_586); +x_4 = x_599; +x_9 = x_598; goto _start; } } else { -uint8_t x_600; -lean_dec(x_541); -lean_dec(x_12); +uint8_t x_601; +lean_dec(x_542); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_600 = !lean_is_exclusive(x_584); -if (x_600 == 0) +x_601 = !lean_is_exclusive(x_585); +if (x_601 == 0) { -return x_584; +return x_585; } else { -lean_object* x_601; lean_object* x_602; lean_object* x_603; -x_601 = lean_ctor_get(x_584, 0); -x_602 = lean_ctor_get(x_584, 1); +lean_object* x_602; lean_object* x_603; lean_object* x_604; +x_602 = lean_ctor_get(x_585, 0); +x_603 = lean_ctor_get(x_585, 1); +lean_inc(x_603); lean_inc(x_602); -lean_inc(x_601); -lean_dec(x_584); -x_603 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_603, 0, x_601); -lean_ctor_set(x_603, 1, x_602); -return x_603; +lean_dec(x_585); +x_604 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_604, 0, x_602); +lean_ctor_set(x_604, 1, x_603); +return x_604; } } } else { -lean_object* x_604; -x_604 = lean_box(0); -x_551 = x_604; -goto block_579; -} -} -else -{ lean_object* x_605; -lean_dec(x_549); x_605 = lean_box(0); -x_551 = x_605; -goto block_579; +x_552 = x_605; +goto block_580; } -block_579: +} +else { -lean_object* x_552; -lean_dec(x_551); -x_552 = l_Lean_ConstantInfo_value_x3f(x_544); -if (lean_obj_tag(x_552) == 0) +lean_object* x_606; +lean_dec(x_550); +x_606 = lean_box(0); +x_552 = x_606; +goto block_580; +} +block_580: { -lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; -lean_dec(x_546); -lean_dec(x_544); -lean_dec(x_542); +lean_object* x_553; +lean_dec(x_552); +x_553 = l_Lean_ConstantInfo_value_x3f(x_545); +if (lean_obj_tag(x_553) == 0) +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; +lean_dec(x_547); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_540); lean_dec(x_539); -lean_dec(x_538); -lean_dec(x_534); +lean_dec(x_535); lean_dec(x_1); -x_553 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_553, 0, x_541); -x_554 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_555 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_555, 0, x_554); -lean_ctor_set(x_555, 1, x_553); -x_556 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_557 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_557, 0, x_555); -lean_ctor_set(x_557, 1, x_556); -x_558 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_558, 0, x_12); -x_559 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_559, 0, x_557); -lean_ctor_set(x_559, 1, x_558); -x_560 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_561 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_561, 0, x_559); -lean_ctor_set(x_561, 1, x_560); -x_562 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_561, x_5, x_6, x_7, x_8, x_550); +x_554 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_554, 0, x_542); +x_555 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_556 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_556, 0, x_555); +lean_ctor_set(x_556, 1, x_554); +x_557 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_558 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_558, 0, x_556); +lean_ctor_set(x_558, 1, x_557); +x_559 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_559, 0, x_13); +x_560 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_560, 0, x_558); +lean_ctor_set(x_560, 1, x_559); +x_561 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_562 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_562, 0, x_560); +lean_ctor_set(x_562, 1, x_561); +x_563 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_562, x_5, x_6, x_7, x_8, x_551); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_562; +return x_563; } else { -lean_object* x_563; lean_object* x_564; -lean_dec(x_541); -x_563 = lean_ctor_get(x_552, 0); -lean_inc(x_563); -lean_dec(x_552); -lean_inc(x_534); -x_564 = l_Lean_Environment_getModuleIdxFor_x3f(x_538, x_534); -if (lean_obj_tag(x_564) == 0) +lean_object* x_564; lean_object* x_565; +lean_dec(x_542); +x_564 = lean_ctor_get(x_553, 0); +lean_inc(x_564); +lean_dec(x_553); +lean_inc(x_535); +x_565 = l_Lean_Environment_getModuleIdxFor_x3f(x_539, x_535); +if (lean_obj_tag(x_565) == 0) { -lean_object* x_565; lean_object* x_566; -x_565 = lean_box(0); -x_566 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(x_1, x_563, x_2, x_3, x_546, x_542, x_539, x_534, x_12, x_544, x_565, x_5, x_6, x_7, x_8, x_550); -return x_566; +lean_object* x_566; lean_object* x_567; +x_566 = lean_box(0); +x_567 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(x_1, x_564, x_2, x_3, x_547, x_543, x_540, x_535, x_13, x_545, x_566, x_5, x_6, x_7, x_8, x_551); +return x_567; } else { -lean_dec(x_564); +lean_dec(x_565); if (x_3 == 0) { -lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; uint8_t x_573; -lean_dec(x_563); -lean_dec(x_546); -lean_dec(x_544); -lean_dec(x_542); -lean_dec(x_539); -lean_dec(x_12); -lean_dec(x_1); -x_567 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_567, 0, x_534); -x_568 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_569 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_569, 0, x_568); -lean_ctor_set(x_569, 1, x_567); -x_570 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_571 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_571, 0, x_569); -lean_ctor_set(x_571, 1, x_570); -x_572 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_571, x_5, x_6, x_7, x_8, x_550); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_573 = !lean_is_exclusive(x_572); -if (x_573 == 0) -{ -return x_572; -} -else -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_574 = lean_ctor_get(x_572, 0); -x_575 = lean_ctor_get(x_572, 1); -lean_inc(x_575); -lean_inc(x_574); -lean_dec(x_572); -x_576 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_576, 0, x_574); -lean_ctor_set(x_576, 1, x_575); -return x_576; -} -} -else -{ -lean_object* x_577; lean_object* x_578; -x_577 = lean_box(0); -x_578 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(x_1, x_563, x_2, x_3, x_546, x_542, x_539, x_534, x_12, x_544, x_577, x_5, x_6, x_7, x_8, x_550); -return x_578; -} -} -} -} -} -else -{ -uint8_t x_606; -lean_dec(x_546); -lean_dec(x_544); -lean_dec(x_542); -lean_dec(x_541); -lean_dec(x_539); -lean_dec(x_538); -lean_dec(x_534); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_606 = !lean_is_exclusive(x_548); -if (x_606 == 0) -{ -return x_548; -} -else -{ -lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_607 = lean_ctor_get(x_548, 0); -x_608 = lean_ctor_get(x_548, 1); -lean_inc(x_608); -lean_inc(x_607); -lean_dec(x_548); -x_609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_609, 0, x_607); -lean_ctor_set(x_609, 1, x_608); -return x_609; -} -} -} -else -{ -uint8_t x_610; -lean_dec(x_542); -lean_dec(x_541); -lean_dec(x_539); -lean_dec(x_538); -lean_dec(x_534); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_610 = !lean_is_exclusive(x_543); -if (x_610 == 0) -{ -return x_543; -} -else -{ -lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_611 = lean_ctor_get(x_543, 0); -x_612 = lean_ctor_get(x_543, 1); -lean_inc(x_612); -lean_inc(x_611); +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; uint8_t x_574; +lean_dec(x_564); +lean_dec(x_547); +lean_dec(x_545); lean_dec(x_543); -x_613 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_613, 0, x_611); -lean_ctor_set(x_613, 1, x_612); -return x_613; +lean_dec(x_540); +lean_dec(x_13); +lean_dec(x_1); +x_568 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_568, 0, x_535); +x_569 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_570 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_570, 0, x_569); +lean_ctor_set(x_570, 1, x_568); +x_571 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_572 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_572, 0, x_570); +lean_ctor_set(x_572, 1, x_571); +x_573 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_572, x_5, x_6, x_7, x_8, x_551); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_574 = !lean_is_exclusive(x_573); +if (x_574 == 0) +{ +return x_573; +} +else +{ +lean_object* x_575; lean_object* x_576; lean_object* x_577; +x_575 = lean_ctor_get(x_573, 0); +x_576 = lean_ctor_get(x_573, 1); +lean_inc(x_576); +lean_inc(x_575); +lean_dec(x_573); +x_577 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_577, 0, x_575); +lean_ctor_set(x_577, 1, x_576); +return x_577; +} +} +else +{ +lean_object* x_578; lean_object* x_579; +x_578 = lean_box(0); +x_579 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(x_1, x_564, x_2, x_3, x_547, x_543, x_540, x_535, x_13, x_545, x_578, x_5, x_6, x_7, x_8, x_551); +return x_579; +} +} } } } else { -lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; -lean_dec(x_539); -lean_dec(x_538); -lean_dec(x_534); -x_614 = lean_ctor_get(x_540, 0); -lean_inc(x_614); +uint8_t x_607; +lean_dec(x_547); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_542); lean_dec(x_540); -x_615 = lean_box(0); -x_616 = l_Lean_Expr_const___override(x_614, x_615); +lean_dec(x_539); +lean_dec(x_535); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_607 = !lean_is_exclusive(x_549); +if (x_607 == 0) +{ +return x_549; +} +else +{ +lean_object* x_608; lean_object* x_609; lean_object* x_610; +x_608 = lean_ctor_get(x_549, 0); +x_609 = lean_ctor_get(x_549, 1); +lean_inc(x_609); +lean_inc(x_608); +lean_dec(x_549); +x_610 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_610, 0, x_608); +lean_ctor_set(x_610, 1, x_609); +return x_610; +} +} +} +else +{ +uint8_t x_611; +lean_dec(x_543); +lean_dec(x_542); +lean_dec(x_540); +lean_dec(x_539); +lean_dec(x_535); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_611 = !lean_is_exclusive(x_544); +if (x_611 == 0) +{ +return x_544; +} +else +{ +lean_object* x_612; lean_object* x_613; lean_object* x_614; +x_612 = lean_ctor_get(x_544, 0); +x_613 = lean_ctor_get(x_544, 1); +lean_inc(x_613); +lean_inc(x_612); +lean_dec(x_544); +x_614 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_614, 0, x_612); +lean_ctor_set(x_614, 1, x_613); +return x_614; +} +} +} +else +{ +lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; +lean_dec(x_540); +lean_dec(x_539); +lean_dec(x_535); +x_615 = lean_ctor_get(x_541, 0); +lean_inc(x_615); +lean_dec(x_541); +x_616 = lean_box(0); +x_617 = l_Lean_Expr_const___override(x_615, x_616); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_616); -x_617 = lean_infer_type(x_616, x_5, x_6, x_7, x_8, x_537); -if (lean_obj_tag(x_617) == 0) +lean_inc(x_617); +x_618 = lean_infer_type(x_617, x_5, x_6, x_7, x_8, x_538); +if (lean_obj_tag(x_618) == 0) { -lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; -x_618 = lean_ctor_get(x_617, 0); -lean_inc(x_618); -x_619 = lean_ctor_get(x_617, 1); +lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_619 = lean_ctor_get(x_618, 0); lean_inc(x_619); -lean_dec(x_617); -x_620 = lean_box(x_2); -x_621 = lean_box(x_3); -x_622 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37___boxed), 12, 5); -lean_closure_set(x_622, 0, x_12); -lean_closure_set(x_622, 1, x_1); -lean_closure_set(x_622, 2, x_620); -lean_closure_set(x_622, 3, x_621); -lean_closure_set(x_622, 4, x_616); -x_623 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_618, x_622, x_5, x_6, x_7, x_8, x_619); -return x_623; +x_620 = lean_ctor_get(x_618, 1); +lean_inc(x_620); +lean_dec(x_618); +x_621 = lean_box(x_2); +x_622 = lean_box(x_3); +x_623 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37___boxed), 12, 5); +lean_closure_set(x_623, 0, x_13); +lean_closure_set(x_623, 1, x_1); +lean_closure_set(x_623, 2, x_621); +lean_closure_set(x_623, 3, x_622); +lean_closure_set(x_623, 4, x_617); +x_624 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_619, x_623, x_5, x_6, x_7, x_8, x_620); +return x_624; } else { -uint8_t x_624; -lean_dec(x_616); -lean_dec(x_12); +uint8_t x_625; +lean_dec(x_617); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_624 = !lean_is_exclusive(x_617); -if (x_624 == 0) +x_625 = !lean_is_exclusive(x_618); +if (x_625 == 0) { -return x_617; +return x_618; } else { -lean_object* x_625; lean_object* x_626; lean_object* x_627; -x_625 = lean_ctor_get(x_617, 0); -x_626 = lean_ctor_get(x_617, 1); +lean_object* x_626; lean_object* x_627; lean_object* x_628; +x_626 = lean_ctor_get(x_618, 0); +x_627 = lean_ctor_get(x_618, 1); +lean_inc(x_627); lean_inc(x_626); -lean_inc(x_625); -lean_dec(x_617); -x_627 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_627, 0, x_625); -lean_ctor_set(x_627, 1, x_626); -return x_627; +lean_dec(x_618); +x_628 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_628, 0, x_626); +lean_ctor_set(x_628, 1, x_627); +return x_628; } } } } else { -lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; -lean_dec(x_533); +lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; +lean_dec(x_534); lean_dec(x_1); -x_628 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_628, 0, x_12); -x_629 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_630 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_630, 0, x_629); -lean_ctor_set(x_630, 1, x_628); -x_631 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_632 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_632, 0, x_630); -lean_ctor_set(x_632, 1, x_631); -x_633 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_632, x_5, x_6, x_7, x_8, x_532); +x_629 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_629, 0, x_13); +x_630 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_631 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_631, 0, x_630); +lean_ctor_set(x_631, 1, x_629); +x_632 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_633 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_633, 0, x_631); +lean_ctor_set(x_633, 1, x_632); +x_634 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_633, x_5, x_6, x_7, x_8, x_533); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_633; +return x_634; } } case 8: { -lean_object* x_634; lean_object* x_635; -x_634 = lean_ctor_get(x_11, 1); -lean_inc(x_634); -lean_dec(x_11); -x_635 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_635) == 4) +lean_object* x_635; lean_object* x_636; +x_635 = lean_ctor_get(x_12, 1); +lean_inc(x_635); +lean_dec(x_12); +x_636 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_636) == 4) { -lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_636 = lean_ctor_get(x_635, 0); -lean_inc(x_636); -lean_dec(x_635); -x_637 = lean_st_ref_get(x_8, x_634); -x_638 = lean_ctor_get(x_637, 0); -lean_inc(x_638); -x_639 = lean_ctor_get(x_637, 1); +lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_637 = lean_ctor_get(x_636, 0); +lean_inc(x_637); +lean_dec(x_636); +x_638 = lean_st_ref_get(x_8, x_635); +x_639 = lean_ctor_get(x_638, 0); lean_inc(x_639); -lean_dec(x_637); -x_640 = lean_ctor_get(x_638, 0); +x_640 = lean_ctor_get(x_638, 1); lean_inc(x_640); lean_dec(x_638); -x_641 = lean_ctor_get(x_1, 2); +x_641 = lean_ctor_get(x_639, 0); lean_inc(x_641); -x_642 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_641, x_640, x_636); -if (lean_obj_tag(x_642) == 0) +lean_dec(x_639); +x_642 = lean_ctor_get(x_1, 2); +lean_inc(x_642); +x_643 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_642, x_641, x_637); +if (lean_obj_tag(x_643) == 0) { -lean_object* x_643; lean_object* x_644; lean_object* x_645; -x_643 = lean_ctor_get(x_1, 0); -lean_inc(x_643); -lean_inc(x_643); -x_644 = l_Lean_Name_append(x_636, x_643); -lean_inc(x_636); -x_645 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_636, x_5, x_6, x_7, x_8, x_639); -if (lean_obj_tag(x_645) == 0) +lean_object* x_644; lean_object* x_645; lean_object* x_646; +x_644 = lean_ctor_get(x_1, 0); +lean_inc(x_644); +lean_inc(x_644); +x_645 = l_Lean_Name_append(x_637, x_644); +lean_inc(x_637); +x_646 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_637, x_5, x_6, x_7, x_8, x_640); +if (lean_obj_tag(x_646) == 0) { -lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; -x_646 = lean_ctor_get(x_645, 0); -lean_inc(x_646); -x_647 = lean_ctor_get(x_645, 1); +lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_647 = lean_ctor_get(x_646, 0); lean_inc(x_647); -lean_dec(x_645); -x_648 = l_Lean_ConstantInfo_type(x_646); -x_649 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_648 = lean_ctor_get(x_646, 1); lean_inc(x_648); -x_650 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_648, x_649, x_5, x_6, x_7, x_8, x_647); -if (lean_obj_tag(x_650) == 0) -{ -lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_682; uint8_t x_683; -x_651 = lean_ctor_get(x_650, 0); -lean_inc(x_651); -x_652 = lean_ctor_get(x_650, 1); -lean_inc(x_652); -lean_dec(x_650); -x_682 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_683 = l_Lean_Expr_isConstOf(x_651, x_682); -if (x_683 == 0) -{ -lean_object* x_684; uint8_t x_685; -x_684 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_685 = l_Lean_Expr_isConstOf(x_651, x_684); -lean_dec(x_651); -if (x_685 == 0) -{ -lean_object* x_686; -lean_dec(x_648); lean_dec(x_646); -lean_dec(x_644); -lean_dec(x_641); -lean_dec(x_640); -lean_dec(x_636); +x_649 = l_Lean_ConstantInfo_type(x_647); +x_650 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_686 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_652); -if (lean_obj_tag(x_686) == 0) +lean_inc(x_649); +x_651 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_649, x_650, x_5, x_6, x_7, x_8, x_648); +if (lean_obj_tag(x_651) == 0) +{ +lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_683; uint8_t x_684; +x_652 = lean_ctor_get(x_651, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_651, 1); +lean_inc(x_653); +lean_dec(x_651); +x_683 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_684 = l_Lean_Expr_isConstOf(x_652, x_683); +if (x_684 == 0) +{ +lean_object* x_685; uint8_t x_686; +x_685 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_686 = l_Lean_Expr_isConstOf(x_652, x_685); +lean_dec(x_652); +if (x_686 == 0) { lean_object* x_687; -x_687 = lean_ctor_get(x_686, 0); -lean_inc(x_687); +lean_dec(x_649); +lean_dec(x_647); +lean_dec(x_645); +lean_dec(x_642); +lean_dec(x_641); +lean_dec(x_637); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_687 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_653); if (lean_obj_tag(x_687) == 0) { -lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; -lean_dec(x_1); -x_688 = lean_ctor_get(x_686, 1); +lean_object* x_688; +x_688 = lean_ctor_get(x_687, 0); lean_inc(x_688); -lean_dec(x_686); -x_689 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_689, 0, x_643); -x_690 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_691 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_691, 0, x_690); -lean_ctor_set(x_691, 1, x_689); -x_692 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_693 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_693, 0, x_691); -lean_ctor_set(x_693, 1, x_692); -x_694 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_694, 0, x_12); -x_695 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_695, 0, x_693); -lean_ctor_set(x_695, 1, x_694); -x_696 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_697 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_697, 0, x_695); -lean_ctor_set(x_697, 1, x_696); -x_698 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_697, x_5, x_6, x_7, x_8, x_688); +if (lean_obj_tag(x_688) == 0) +{ +lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; +lean_dec(x_1); +x_689 = lean_ctor_get(x_687, 1); +lean_inc(x_689); +lean_dec(x_687); +x_690 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_690, 0, x_644); +x_691 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_692 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_692, 0, x_691); +lean_ctor_set(x_692, 1, x_690); +x_693 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_694 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_694, 0, x_692); +lean_ctor_set(x_694, 1, x_693); +x_695 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_695, 0, x_13); +x_696 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_696, 0, x_694); +lean_ctor_set(x_696, 1, x_695); +x_697 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_698 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_698, 0, x_696); +lean_ctor_set(x_698, 1, x_697); +x_699 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_698, x_5, x_6, x_7, x_8, x_689); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_698; +return x_699; } else { -lean_object* x_699; lean_object* x_700; -lean_dec(x_643); -lean_dec(x_12); -x_699 = lean_ctor_get(x_686, 1); -lean_inc(x_699); -lean_dec(x_686); -x_700 = lean_ctor_get(x_687, 0); +lean_object* x_700; lean_object* x_701; +lean_dec(x_644); +lean_dec(x_13); +x_700 = lean_ctor_get(x_687, 1); lean_inc(x_700); lean_dec(x_687); -x_4 = x_700; -x_9 = x_699; +x_701 = lean_ctor_get(x_688, 0); +lean_inc(x_701); +lean_dec(x_688); +x_4 = x_701; +x_9 = x_700; goto _start; } } else { -uint8_t x_702; -lean_dec(x_643); -lean_dec(x_12); +uint8_t x_703; +lean_dec(x_644); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_702 = !lean_is_exclusive(x_686); -if (x_702 == 0) +x_703 = !lean_is_exclusive(x_687); +if (x_703 == 0) { -return x_686; +return x_687; } else { -lean_object* x_703; lean_object* x_704; lean_object* x_705; -x_703 = lean_ctor_get(x_686, 0); -x_704 = lean_ctor_get(x_686, 1); +lean_object* x_704; lean_object* x_705; lean_object* x_706; +x_704 = lean_ctor_get(x_687, 0); +x_705 = lean_ctor_get(x_687, 1); +lean_inc(x_705); lean_inc(x_704); -lean_inc(x_703); -lean_dec(x_686); -x_705 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_705, 0, x_703); -lean_ctor_set(x_705, 1, x_704); -return x_705; +lean_dec(x_687); +x_706 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_706, 0, x_704); +lean_ctor_set(x_706, 1, x_705); +return x_706; } } } else { -lean_object* x_706; -x_706 = lean_box(0); -x_653 = x_706; -goto block_681; -} -} -else -{ lean_object* x_707; -lean_dec(x_651); x_707 = lean_box(0); -x_653 = x_707; -goto block_681; +x_654 = x_707; +goto block_682; } -block_681: +} +else { -lean_object* x_654; -lean_dec(x_653); -x_654 = l_Lean_ConstantInfo_value_x3f(x_646); -if (lean_obj_tag(x_654) == 0) +lean_object* x_708; +lean_dec(x_652); +x_708 = lean_box(0); +x_654 = x_708; +goto block_682; +} +block_682: { -lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; -lean_dec(x_648); -lean_dec(x_646); -lean_dec(x_644); +lean_object* x_655; +lean_dec(x_654); +x_655 = l_Lean_ConstantInfo_value_x3f(x_647); +if (lean_obj_tag(x_655) == 0) +{ +lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; +lean_dec(x_649); +lean_dec(x_647); +lean_dec(x_645); +lean_dec(x_642); lean_dec(x_641); -lean_dec(x_640); -lean_dec(x_636); +lean_dec(x_637); lean_dec(x_1); -x_655 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_655, 0, x_643); -x_656 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_657 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_657, 0, x_656); -lean_ctor_set(x_657, 1, x_655); -x_658 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_659 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_659, 0, x_657); -lean_ctor_set(x_659, 1, x_658); -x_660 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_660, 0, x_12); -x_661 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_661, 0, x_659); -lean_ctor_set(x_661, 1, x_660); -x_662 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_663 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_663, 0, x_661); -lean_ctor_set(x_663, 1, x_662); -x_664 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_663, x_5, x_6, x_7, x_8, x_652); +x_656 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_656, 0, x_644); +x_657 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_658 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_658, 0, x_657); +lean_ctor_set(x_658, 1, x_656); +x_659 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_660 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_660, 0, x_658); +lean_ctor_set(x_660, 1, x_659); +x_661 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_661, 0, x_13); +x_662 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_662, 0, x_660); +lean_ctor_set(x_662, 1, x_661); +x_663 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_664 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_664, 0, x_662); +lean_ctor_set(x_664, 1, x_663); +x_665 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_664, x_5, x_6, x_7, x_8, x_653); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_664; +return x_665; } else { -lean_object* x_665; lean_object* x_666; -lean_dec(x_643); -x_665 = lean_ctor_get(x_654, 0); -lean_inc(x_665); -lean_dec(x_654); -lean_inc(x_636); -x_666 = l_Lean_Environment_getModuleIdxFor_x3f(x_640, x_636); -if (lean_obj_tag(x_666) == 0) +lean_object* x_666; lean_object* x_667; +lean_dec(x_644); +x_666 = lean_ctor_get(x_655, 0); +lean_inc(x_666); +lean_dec(x_655); +lean_inc(x_637); +x_667 = l_Lean_Environment_getModuleIdxFor_x3f(x_641, x_637); +if (lean_obj_tag(x_667) == 0) { -lean_object* x_667; lean_object* x_668; -x_667 = lean_box(0); -x_668 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(x_1, x_665, x_2, x_3, x_648, x_644, x_641, x_636, x_12, x_646, x_667, x_5, x_6, x_7, x_8, x_652); -return x_668; +lean_object* x_668; lean_object* x_669; +x_668 = lean_box(0); +x_669 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(x_1, x_666, x_2, x_3, x_649, x_645, x_642, x_637, x_13, x_647, x_668, x_5, x_6, x_7, x_8, x_653); +return x_669; } else { -lean_dec(x_666); +lean_dec(x_667); if (x_3 == 0) { -lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; -lean_dec(x_665); -lean_dec(x_648); -lean_dec(x_646); -lean_dec(x_644); -lean_dec(x_641); -lean_dec(x_12); -lean_dec(x_1); -x_669 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_669, 0, x_636); -x_670 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_671 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_671, 0, x_670); -lean_ctor_set(x_671, 1, x_669); -x_672 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_673 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_673, 0, x_671); -lean_ctor_set(x_673, 1, x_672); -x_674 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_673, x_5, x_6, x_7, x_8, x_652); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_675 = !lean_is_exclusive(x_674); -if (x_675 == 0) -{ -return x_674; -} -else -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_676 = lean_ctor_get(x_674, 0); -x_677 = lean_ctor_get(x_674, 1); -lean_inc(x_677); -lean_inc(x_676); -lean_dec(x_674); -x_678 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_678, 0, x_676); -lean_ctor_set(x_678, 1, x_677); -return x_678; -} -} -else -{ -lean_object* x_679; lean_object* x_680; -x_679 = lean_box(0); -x_680 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(x_1, x_665, x_2, x_3, x_648, x_644, x_641, x_636, x_12, x_646, x_679, x_5, x_6, x_7, x_8, x_652); -return x_680; -} -} -} -} -} -else -{ -uint8_t x_708; -lean_dec(x_648); -lean_dec(x_646); -lean_dec(x_644); -lean_dec(x_643); -lean_dec(x_641); -lean_dec(x_640); -lean_dec(x_636); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_708 = !lean_is_exclusive(x_650); -if (x_708 == 0) -{ -return x_650; -} -else -{ -lean_object* x_709; lean_object* x_710; lean_object* x_711; -x_709 = lean_ctor_get(x_650, 0); -x_710 = lean_ctor_get(x_650, 1); -lean_inc(x_710); -lean_inc(x_709); -lean_dec(x_650); -x_711 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_711, 0, x_709); -lean_ctor_set(x_711, 1, x_710); -return x_711; -} -} -} -else -{ -uint8_t x_712; -lean_dec(x_644); -lean_dec(x_643); -lean_dec(x_641); -lean_dec(x_640); -lean_dec(x_636); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_712 = !lean_is_exclusive(x_645); -if (x_712 == 0) -{ -return x_645; -} -else -{ -lean_object* x_713; lean_object* x_714; lean_object* x_715; -x_713 = lean_ctor_get(x_645, 0); -x_714 = lean_ctor_get(x_645, 1); -lean_inc(x_714); -lean_inc(x_713); +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; uint8_t x_676; +lean_dec(x_666); +lean_dec(x_649); +lean_dec(x_647); lean_dec(x_645); -x_715 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_715, 0, x_713); -lean_ctor_set(x_715, 1, x_714); -return x_715; +lean_dec(x_642); +lean_dec(x_13); +lean_dec(x_1); +x_670 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_670, 0, x_637); +x_671 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_672 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_672, 0, x_671); +lean_ctor_set(x_672, 1, x_670); +x_673 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_674 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_674, 0, x_672); +lean_ctor_set(x_674, 1, x_673); +x_675 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_674, x_5, x_6, x_7, x_8, x_653); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_676 = !lean_is_exclusive(x_675); +if (x_676 == 0) +{ +return x_675; +} +else +{ +lean_object* x_677; lean_object* x_678; lean_object* x_679; +x_677 = lean_ctor_get(x_675, 0); +x_678 = lean_ctor_get(x_675, 1); +lean_inc(x_678); +lean_inc(x_677); +lean_dec(x_675); +x_679 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_679, 0, x_677); +lean_ctor_set(x_679, 1, x_678); +return x_679; +} +} +else +{ +lean_object* x_680; lean_object* x_681; +x_680 = lean_box(0); +x_681 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(x_1, x_666, x_2, x_3, x_649, x_645, x_642, x_637, x_13, x_647, x_680, x_5, x_6, x_7, x_8, x_653); +return x_681; +} +} } } } else { -lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; -lean_dec(x_641); -lean_dec(x_640); -lean_dec(x_636); -x_716 = lean_ctor_get(x_642, 0); -lean_inc(x_716); +uint8_t x_709; +lean_dec(x_649); +lean_dec(x_647); +lean_dec(x_645); +lean_dec(x_644); lean_dec(x_642); -x_717 = lean_box(0); -x_718 = l_Lean_Expr_const___override(x_716, x_717); +lean_dec(x_641); +lean_dec(x_637); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_709 = !lean_is_exclusive(x_651); +if (x_709 == 0) +{ +return x_651; +} +else +{ +lean_object* x_710; lean_object* x_711; lean_object* x_712; +x_710 = lean_ctor_get(x_651, 0); +x_711 = lean_ctor_get(x_651, 1); +lean_inc(x_711); +lean_inc(x_710); +lean_dec(x_651); +x_712 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_712, 0, x_710); +lean_ctor_set(x_712, 1, x_711); +return x_712; +} +} +} +else +{ +uint8_t x_713; +lean_dec(x_645); +lean_dec(x_644); +lean_dec(x_642); +lean_dec(x_641); +lean_dec(x_637); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_713 = !lean_is_exclusive(x_646); +if (x_713 == 0) +{ +return x_646; +} +else +{ +lean_object* x_714; lean_object* x_715; lean_object* x_716; +x_714 = lean_ctor_get(x_646, 0); +x_715 = lean_ctor_get(x_646, 1); +lean_inc(x_715); +lean_inc(x_714); +lean_dec(x_646); +x_716 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_716, 0, x_714); +lean_ctor_set(x_716, 1, x_715); +return x_716; +} +} +} +else +{ +lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; +lean_dec(x_642); +lean_dec(x_641); +lean_dec(x_637); +x_717 = lean_ctor_get(x_643, 0); +lean_inc(x_717); +lean_dec(x_643); +x_718 = lean_box(0); +x_719 = l_Lean_Expr_const___override(x_717, x_718); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_718); -x_719 = lean_infer_type(x_718, x_5, x_6, x_7, x_8, x_639); -if (lean_obj_tag(x_719) == 0) +lean_inc(x_719); +x_720 = lean_infer_type(x_719, x_5, x_6, x_7, x_8, x_640); +if (lean_obj_tag(x_720) == 0) { -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -x_720 = lean_ctor_get(x_719, 0); -lean_inc(x_720); -x_721 = lean_ctor_get(x_719, 1); +lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_721 = lean_ctor_get(x_720, 0); lean_inc(x_721); -lean_dec(x_719); -x_722 = lean_box(x_2); -x_723 = lean_box(x_3); -x_724 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___boxed), 12, 5); -lean_closure_set(x_724, 0, x_12); -lean_closure_set(x_724, 1, x_1); -lean_closure_set(x_724, 2, x_722); -lean_closure_set(x_724, 3, x_723); -lean_closure_set(x_724, 4, x_718); -x_725 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_720, x_724, x_5, x_6, x_7, x_8, x_721); -return x_725; +x_722 = lean_ctor_get(x_720, 1); +lean_inc(x_722); +lean_dec(x_720); +x_723 = lean_box(x_2); +x_724 = lean_box(x_3); +x_725 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___boxed), 12, 5); +lean_closure_set(x_725, 0, x_13); +lean_closure_set(x_725, 1, x_1); +lean_closure_set(x_725, 2, x_723); +lean_closure_set(x_725, 3, x_724); +lean_closure_set(x_725, 4, x_719); +x_726 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_721, x_725, x_5, x_6, x_7, x_8, x_722); +return x_726; } else { -uint8_t x_726; -lean_dec(x_718); -lean_dec(x_12); +uint8_t x_727; +lean_dec(x_719); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_726 = !lean_is_exclusive(x_719); -if (x_726 == 0) +x_727 = !lean_is_exclusive(x_720); +if (x_727 == 0) { -return x_719; +return x_720; } else { -lean_object* x_727; lean_object* x_728; lean_object* x_729; -x_727 = lean_ctor_get(x_719, 0); -x_728 = lean_ctor_get(x_719, 1); +lean_object* x_728; lean_object* x_729; lean_object* x_730; +x_728 = lean_ctor_get(x_720, 0); +x_729 = lean_ctor_get(x_720, 1); +lean_inc(x_729); lean_inc(x_728); -lean_inc(x_727); -lean_dec(x_719); -x_729 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_729, 0, x_727); -lean_ctor_set(x_729, 1, x_728); -return x_729; +lean_dec(x_720); +x_730 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_730, 0, x_728); +lean_ctor_set(x_730, 1, x_729); +return x_730; } } } } else { -lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; -lean_dec(x_635); +lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; +lean_dec(x_636); lean_dec(x_1); -x_730 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_730, 0, x_12); -x_731 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_732 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_732, 0, x_731); -lean_ctor_set(x_732, 1, x_730); -x_733 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_734 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_734, 0, x_732); -lean_ctor_set(x_734, 1, x_733); -x_735 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_734, x_5, x_6, x_7, x_8, x_634); +x_731 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_731, 0, x_13); +x_732 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_733 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_733, 0, x_732); +lean_ctor_set(x_733, 1, x_731); +x_734 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_735 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_735, 0, x_733); +lean_ctor_set(x_735, 1, x_734); +x_736 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_735, x_5, x_6, x_7, x_8, x_635); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_735; +return x_736; } } case 9: { -lean_object* x_736; lean_object* x_737; -x_736 = lean_ctor_get(x_11, 1); -lean_inc(x_736); -lean_dec(x_11); -x_737 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_737) == 4) +lean_object* x_737; lean_object* x_738; +x_737 = lean_ctor_get(x_12, 1); +lean_inc(x_737); +lean_dec(x_12); +x_738 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_738) == 4) { -lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; -x_738 = lean_ctor_get(x_737, 0); -lean_inc(x_738); -lean_dec(x_737); -x_739 = lean_st_ref_get(x_8, x_736); -x_740 = lean_ctor_get(x_739, 0); -lean_inc(x_740); -x_741 = lean_ctor_get(x_739, 1); +lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_739 = lean_ctor_get(x_738, 0); +lean_inc(x_739); +lean_dec(x_738); +x_740 = lean_st_ref_get(x_8, x_737); +x_741 = lean_ctor_get(x_740, 0); lean_inc(x_741); -lean_dec(x_739); -x_742 = lean_ctor_get(x_740, 0); +x_742 = lean_ctor_get(x_740, 1); lean_inc(x_742); lean_dec(x_740); -x_743 = lean_ctor_get(x_1, 2); +x_743 = lean_ctor_get(x_741, 0); lean_inc(x_743); -x_744 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_743, x_742, x_738); -if (lean_obj_tag(x_744) == 0) +lean_dec(x_741); +x_744 = lean_ctor_get(x_1, 2); +lean_inc(x_744); +x_745 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_744, x_743, x_739); +if (lean_obj_tag(x_745) == 0) { -lean_object* x_745; lean_object* x_746; lean_object* x_747; -x_745 = lean_ctor_get(x_1, 0); -lean_inc(x_745); -lean_inc(x_745); -x_746 = l_Lean_Name_append(x_738, x_745); -lean_inc(x_738); -x_747 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_738, x_5, x_6, x_7, x_8, x_741); -if (lean_obj_tag(x_747) == 0) +lean_object* x_746; lean_object* x_747; lean_object* x_748; +x_746 = lean_ctor_get(x_1, 0); +lean_inc(x_746); +lean_inc(x_746); +x_747 = l_Lean_Name_append(x_739, x_746); +lean_inc(x_739); +x_748 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_739, x_5, x_6, x_7, x_8, x_742); +if (lean_obj_tag(x_748) == 0) { -lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; -x_748 = lean_ctor_get(x_747, 0); -lean_inc(x_748); -x_749 = lean_ctor_get(x_747, 1); +lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; +x_749 = lean_ctor_get(x_748, 0); lean_inc(x_749); -lean_dec(x_747); -x_750 = l_Lean_ConstantInfo_type(x_748); -x_751 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_750 = lean_ctor_get(x_748, 1); lean_inc(x_750); -x_752 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_750, x_751, x_5, x_6, x_7, x_8, x_749); -if (lean_obj_tag(x_752) == 0) -{ -lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_784; uint8_t x_785; -x_753 = lean_ctor_get(x_752, 0); -lean_inc(x_753); -x_754 = lean_ctor_get(x_752, 1); -lean_inc(x_754); -lean_dec(x_752); -x_784 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_785 = l_Lean_Expr_isConstOf(x_753, x_784); -if (x_785 == 0) -{ -lean_object* x_786; uint8_t x_787; -x_786 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_787 = l_Lean_Expr_isConstOf(x_753, x_786); -lean_dec(x_753); -if (x_787 == 0) -{ -lean_object* x_788; -lean_dec(x_750); lean_dec(x_748); -lean_dec(x_746); -lean_dec(x_743); -lean_dec(x_742); -lean_dec(x_738); +x_751 = l_Lean_ConstantInfo_type(x_749); +x_752 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_788 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_754); -if (lean_obj_tag(x_788) == 0) +lean_inc(x_751); +x_753 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_751, x_752, x_5, x_6, x_7, x_8, x_750); +if (lean_obj_tag(x_753) == 0) +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_785; uint8_t x_786; +x_754 = lean_ctor_get(x_753, 0); +lean_inc(x_754); +x_755 = lean_ctor_get(x_753, 1); +lean_inc(x_755); +lean_dec(x_753); +x_785 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_786 = l_Lean_Expr_isConstOf(x_754, x_785); +if (x_786 == 0) +{ +lean_object* x_787; uint8_t x_788; +x_787 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_788 = l_Lean_Expr_isConstOf(x_754, x_787); +lean_dec(x_754); +if (x_788 == 0) { lean_object* x_789; -x_789 = lean_ctor_get(x_788, 0); -lean_inc(x_789); +lean_dec(x_751); +lean_dec(x_749); +lean_dec(x_747); +lean_dec(x_744); +lean_dec(x_743); +lean_dec(x_739); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_789 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_755); if (lean_obj_tag(x_789) == 0) { -lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; -lean_dec(x_1); -x_790 = lean_ctor_get(x_788, 1); +lean_object* x_790; +x_790 = lean_ctor_get(x_789, 0); lean_inc(x_790); -lean_dec(x_788); -x_791 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_791, 0, x_745); -x_792 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_793 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_793, 0, x_792); -lean_ctor_set(x_793, 1, x_791); -x_794 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_795 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_795, 0, x_793); -lean_ctor_set(x_795, 1, x_794); -x_796 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_796, 0, x_12); -x_797 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_797, 0, x_795); -lean_ctor_set(x_797, 1, x_796); -x_798 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_799 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_799, 0, x_797); -lean_ctor_set(x_799, 1, x_798); -x_800 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_799, x_5, x_6, x_7, x_8, x_790); +if (lean_obj_tag(x_790) == 0) +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; +lean_dec(x_1); +x_791 = lean_ctor_get(x_789, 1); +lean_inc(x_791); +lean_dec(x_789); +x_792 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_792, 0, x_746); +x_793 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_794 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_794, 0, x_793); +lean_ctor_set(x_794, 1, x_792); +x_795 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_796 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_796, 0, x_794); +lean_ctor_set(x_796, 1, x_795); +x_797 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_797, 0, x_13); +x_798 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_798, 0, x_796); +lean_ctor_set(x_798, 1, x_797); +x_799 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_800 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_800, 0, x_798); +lean_ctor_set(x_800, 1, x_799); +x_801 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_800, x_5, x_6, x_7, x_8, x_791); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_800; +return x_801; } else { -lean_object* x_801; lean_object* x_802; -lean_dec(x_745); -lean_dec(x_12); -x_801 = lean_ctor_get(x_788, 1); -lean_inc(x_801); -lean_dec(x_788); -x_802 = lean_ctor_get(x_789, 0); +lean_object* x_802; lean_object* x_803; +lean_dec(x_746); +lean_dec(x_13); +x_802 = lean_ctor_get(x_789, 1); lean_inc(x_802); lean_dec(x_789); -x_4 = x_802; -x_9 = x_801; +x_803 = lean_ctor_get(x_790, 0); +lean_inc(x_803); +lean_dec(x_790); +x_4 = x_803; +x_9 = x_802; goto _start; } } else { -uint8_t x_804; -lean_dec(x_745); -lean_dec(x_12); +uint8_t x_805; +lean_dec(x_746); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_804 = !lean_is_exclusive(x_788); -if (x_804 == 0) +x_805 = !lean_is_exclusive(x_789); +if (x_805 == 0) { -return x_788; +return x_789; } else { -lean_object* x_805; lean_object* x_806; lean_object* x_807; -x_805 = lean_ctor_get(x_788, 0); -x_806 = lean_ctor_get(x_788, 1); +lean_object* x_806; lean_object* x_807; lean_object* x_808; +x_806 = lean_ctor_get(x_789, 0); +x_807 = lean_ctor_get(x_789, 1); +lean_inc(x_807); lean_inc(x_806); -lean_inc(x_805); -lean_dec(x_788); -x_807 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_807, 0, x_805); -lean_ctor_set(x_807, 1, x_806); -return x_807; +lean_dec(x_789); +x_808 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_808, 0, x_806); +lean_ctor_set(x_808, 1, x_807); +return x_808; } } } else { -lean_object* x_808; -x_808 = lean_box(0); -x_755 = x_808; -goto block_783; -} -} -else -{ lean_object* x_809; -lean_dec(x_753); x_809 = lean_box(0); -x_755 = x_809; -goto block_783; +x_756 = x_809; +goto block_784; } -block_783: +} +else { -lean_object* x_756; -lean_dec(x_755); -x_756 = l_Lean_ConstantInfo_value_x3f(x_748); -if (lean_obj_tag(x_756) == 0) +lean_object* x_810; +lean_dec(x_754); +x_810 = lean_box(0); +x_756 = x_810; +goto block_784; +} +block_784: { -lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; -lean_dec(x_750); -lean_dec(x_748); -lean_dec(x_746); +lean_object* x_757; +lean_dec(x_756); +x_757 = l_Lean_ConstantInfo_value_x3f(x_749); +if (lean_obj_tag(x_757) == 0) +{ +lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; +lean_dec(x_751); +lean_dec(x_749); +lean_dec(x_747); +lean_dec(x_744); lean_dec(x_743); -lean_dec(x_742); -lean_dec(x_738); +lean_dec(x_739); lean_dec(x_1); -x_757 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_757, 0, x_745); -x_758 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_759 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_759, 0, x_758); -lean_ctor_set(x_759, 1, x_757); -x_760 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_761 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_761, 0, x_759); -lean_ctor_set(x_761, 1, x_760); -x_762 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_762, 0, x_12); -x_763 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_763, 0, x_761); -lean_ctor_set(x_763, 1, x_762); -x_764 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_765 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_765, 0, x_763); -lean_ctor_set(x_765, 1, x_764); -x_766 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_765, x_5, x_6, x_7, x_8, x_754); +x_758 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_758, 0, x_746); +x_759 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_760 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_760, 0, x_759); +lean_ctor_set(x_760, 1, x_758); +x_761 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_762 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_762, 0, x_760); +lean_ctor_set(x_762, 1, x_761); +x_763 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_763, 0, x_13); +x_764 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_764, 0, x_762); +lean_ctor_set(x_764, 1, x_763); +x_765 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_766 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_766, 0, x_764); +lean_ctor_set(x_766, 1, x_765); +x_767 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_766, x_5, x_6, x_7, x_8, x_755); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_766; +return x_767; } else { -lean_object* x_767; lean_object* x_768; -lean_dec(x_745); -x_767 = lean_ctor_get(x_756, 0); -lean_inc(x_767); -lean_dec(x_756); -lean_inc(x_738); -x_768 = l_Lean_Environment_getModuleIdxFor_x3f(x_742, x_738); -if (lean_obj_tag(x_768) == 0) +lean_object* x_768; lean_object* x_769; +lean_dec(x_746); +x_768 = lean_ctor_get(x_757, 0); +lean_inc(x_768); +lean_dec(x_757); +lean_inc(x_739); +x_769 = l_Lean_Environment_getModuleIdxFor_x3f(x_743, x_739); +if (lean_obj_tag(x_769) == 0) { -lean_object* x_769; lean_object* x_770; -x_769 = lean_box(0); -x_770 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(x_1, x_767, x_2, x_3, x_750, x_746, x_743, x_738, x_12, x_748, x_769, x_5, x_6, x_7, x_8, x_754); -return x_770; +lean_object* x_770; lean_object* x_771; +x_770 = lean_box(0); +x_771 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(x_1, x_768, x_2, x_3, x_751, x_747, x_744, x_739, x_13, x_749, x_770, x_5, x_6, x_7, x_8, x_755); +return x_771; } else { -lean_dec(x_768); +lean_dec(x_769); if (x_3 == 0) { -lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; uint8_t x_777; -lean_dec(x_767); -lean_dec(x_750); -lean_dec(x_748); -lean_dec(x_746); -lean_dec(x_743); -lean_dec(x_12); -lean_dec(x_1); -x_771 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_771, 0, x_738); -x_772 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_773 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_773, 0, x_772); -lean_ctor_set(x_773, 1, x_771); -x_774 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_775 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_775, 0, x_773); -lean_ctor_set(x_775, 1, x_774); -x_776 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_775, x_5, x_6, x_7, x_8, x_754); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_777 = !lean_is_exclusive(x_776); -if (x_777 == 0) -{ -return x_776; -} -else -{ -lean_object* x_778; lean_object* x_779; lean_object* x_780; -x_778 = lean_ctor_get(x_776, 0); -x_779 = lean_ctor_get(x_776, 1); -lean_inc(x_779); -lean_inc(x_778); -lean_dec(x_776); -x_780 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_780, 0, x_778); -lean_ctor_set(x_780, 1, x_779); -return x_780; -} -} -else -{ -lean_object* x_781; lean_object* x_782; -x_781 = lean_box(0); -x_782 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(x_1, x_767, x_2, x_3, x_750, x_746, x_743, x_738, x_12, x_748, x_781, x_5, x_6, x_7, x_8, x_754); -return x_782; -} -} -} -} -} -else -{ -uint8_t x_810; -lean_dec(x_750); -lean_dec(x_748); -lean_dec(x_746); -lean_dec(x_745); -lean_dec(x_743); -lean_dec(x_742); -lean_dec(x_738); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_810 = !lean_is_exclusive(x_752); -if (x_810 == 0) -{ -return x_752; -} -else -{ -lean_object* x_811; lean_object* x_812; lean_object* x_813; -x_811 = lean_ctor_get(x_752, 0); -x_812 = lean_ctor_get(x_752, 1); -lean_inc(x_812); -lean_inc(x_811); -lean_dec(x_752); -x_813 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_813, 0, x_811); -lean_ctor_set(x_813, 1, x_812); -return x_813; -} -} -} -else -{ -uint8_t x_814; -lean_dec(x_746); -lean_dec(x_745); -lean_dec(x_743); -lean_dec(x_742); -lean_dec(x_738); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_814 = !lean_is_exclusive(x_747); -if (x_814 == 0) -{ -return x_747; -} -else -{ -lean_object* x_815; lean_object* x_816; lean_object* x_817; -x_815 = lean_ctor_get(x_747, 0); -x_816 = lean_ctor_get(x_747, 1); -lean_inc(x_816); -lean_inc(x_815); +lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; uint8_t x_778; +lean_dec(x_768); +lean_dec(x_751); +lean_dec(x_749); lean_dec(x_747); -x_817 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_817, 0, x_815); -lean_ctor_set(x_817, 1, x_816); -return x_817; +lean_dec(x_744); +lean_dec(x_13); +lean_dec(x_1); +x_772 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_772, 0, x_739); +x_773 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_774 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_774, 0, x_773); +lean_ctor_set(x_774, 1, x_772); +x_775 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_776 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_776, 0, x_774); +lean_ctor_set(x_776, 1, x_775); +x_777 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_776, x_5, x_6, x_7, x_8, x_755); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_778 = !lean_is_exclusive(x_777); +if (x_778 == 0) +{ +return x_777; +} +else +{ +lean_object* x_779; lean_object* x_780; lean_object* x_781; +x_779 = lean_ctor_get(x_777, 0); +x_780 = lean_ctor_get(x_777, 1); +lean_inc(x_780); +lean_inc(x_779); +lean_dec(x_777); +x_781 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_781, 0, x_779); +lean_ctor_set(x_781, 1, x_780); +return x_781; +} +} +else +{ +lean_object* x_782; lean_object* x_783; +x_782 = lean_box(0); +x_783 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(x_1, x_768, x_2, x_3, x_751, x_747, x_744, x_739, x_13, x_749, x_782, x_5, x_6, x_7, x_8, x_755); +return x_783; +} +} } } } else { -lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; -lean_dec(x_743); -lean_dec(x_742); -lean_dec(x_738); -x_818 = lean_ctor_get(x_744, 0); -lean_inc(x_818); +uint8_t x_811; +lean_dec(x_751); +lean_dec(x_749); +lean_dec(x_747); +lean_dec(x_746); lean_dec(x_744); -x_819 = lean_box(0); -x_820 = l_Lean_Expr_const___override(x_818, x_819); +lean_dec(x_743); +lean_dec(x_739); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_811 = !lean_is_exclusive(x_753); +if (x_811 == 0) +{ +return x_753; +} +else +{ +lean_object* x_812; lean_object* x_813; lean_object* x_814; +x_812 = lean_ctor_get(x_753, 0); +x_813 = lean_ctor_get(x_753, 1); +lean_inc(x_813); +lean_inc(x_812); +lean_dec(x_753); +x_814 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_814, 0, x_812); +lean_ctor_set(x_814, 1, x_813); +return x_814; +} +} +} +else +{ +uint8_t x_815; +lean_dec(x_747); +lean_dec(x_746); +lean_dec(x_744); +lean_dec(x_743); +lean_dec(x_739); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_815 = !lean_is_exclusive(x_748); +if (x_815 == 0) +{ +return x_748; +} +else +{ +lean_object* x_816; lean_object* x_817; lean_object* x_818; +x_816 = lean_ctor_get(x_748, 0); +x_817 = lean_ctor_get(x_748, 1); +lean_inc(x_817); +lean_inc(x_816); +lean_dec(x_748); +x_818 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_818, 0, x_816); +lean_ctor_set(x_818, 1, x_817); +return x_818; +} +} +} +else +{ +lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; +lean_dec(x_744); +lean_dec(x_743); +lean_dec(x_739); +x_819 = lean_ctor_get(x_745, 0); +lean_inc(x_819); +lean_dec(x_745); +x_820 = lean_box(0); +x_821 = l_Lean_Expr_const___override(x_819, x_820); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_820); -x_821 = lean_infer_type(x_820, x_5, x_6, x_7, x_8, x_741); -if (lean_obj_tag(x_821) == 0) +lean_inc(x_821); +x_822 = lean_infer_type(x_821, x_5, x_6, x_7, x_8, x_742); +if (lean_obj_tag(x_822) == 0) { -lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; -x_822 = lean_ctor_get(x_821, 0); -lean_inc(x_822); -x_823 = lean_ctor_get(x_821, 1); +lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; +x_823 = lean_ctor_get(x_822, 0); lean_inc(x_823); -lean_dec(x_821); -x_824 = lean_box(x_2); -x_825 = lean_box(x_3); -x_826 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49___boxed), 12, 5); -lean_closure_set(x_826, 0, x_12); -lean_closure_set(x_826, 1, x_1); -lean_closure_set(x_826, 2, x_824); -lean_closure_set(x_826, 3, x_825); -lean_closure_set(x_826, 4, x_820); -x_827 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_822, x_826, x_5, x_6, x_7, x_8, x_823); -return x_827; +x_824 = lean_ctor_get(x_822, 1); +lean_inc(x_824); +lean_dec(x_822); +x_825 = lean_box(x_2); +x_826 = lean_box(x_3); +x_827 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49___boxed), 12, 5); +lean_closure_set(x_827, 0, x_13); +lean_closure_set(x_827, 1, x_1); +lean_closure_set(x_827, 2, x_825); +lean_closure_set(x_827, 3, x_826); +lean_closure_set(x_827, 4, x_821); +x_828 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_823, x_827, x_5, x_6, x_7, x_8, x_824); +return x_828; } else { -uint8_t x_828; -lean_dec(x_820); -lean_dec(x_12); +uint8_t x_829; +lean_dec(x_821); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_828 = !lean_is_exclusive(x_821); -if (x_828 == 0) +x_829 = !lean_is_exclusive(x_822); +if (x_829 == 0) { -return x_821; +return x_822; } else { -lean_object* x_829; lean_object* x_830; lean_object* x_831; -x_829 = lean_ctor_get(x_821, 0); -x_830 = lean_ctor_get(x_821, 1); +lean_object* x_830; lean_object* x_831; lean_object* x_832; +x_830 = lean_ctor_get(x_822, 0); +x_831 = lean_ctor_get(x_822, 1); +lean_inc(x_831); lean_inc(x_830); -lean_inc(x_829); -lean_dec(x_821); -x_831 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_831, 0, x_829); -lean_ctor_set(x_831, 1, x_830); -return x_831; +lean_dec(x_822); +x_832 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_832, 0, x_830); +lean_ctor_set(x_832, 1, x_831); +return x_832; } } } } else { -lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; -lean_dec(x_737); +lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; +lean_dec(x_738); lean_dec(x_1); -x_832 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_832, 0, x_12); -x_833 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_834 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_834, 0, x_833); -lean_ctor_set(x_834, 1, x_832); -x_835 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_836 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_836, 0, x_834); -lean_ctor_set(x_836, 1, x_835); -x_837 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_836, x_5, x_6, x_7, x_8, x_736); +x_833 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_833, 0, x_13); +x_834 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_835 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_835, 0, x_834); +lean_ctor_set(x_835, 1, x_833); +x_836 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_837 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_837, 0, x_835); +lean_ctor_set(x_837, 1, x_836); +x_838 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_837, x_5, x_6, x_7, x_8, x_737); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_837; +return x_838; } } case 10: { -lean_object* x_838; lean_object* x_839; -x_838 = lean_ctor_get(x_11, 1); -lean_inc(x_838); -lean_dec(x_11); -x_839 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_839) == 4) +lean_object* x_839; lean_object* x_840; +x_839 = lean_ctor_get(x_12, 1); +lean_inc(x_839); +lean_dec(x_12); +x_840 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_840) == 4) { -lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; -x_840 = lean_ctor_get(x_839, 0); -lean_inc(x_840); -lean_dec(x_839); -x_841 = lean_st_ref_get(x_8, x_838); -x_842 = lean_ctor_get(x_841, 0); -lean_inc(x_842); -x_843 = lean_ctor_get(x_841, 1); +lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; +x_841 = lean_ctor_get(x_840, 0); +lean_inc(x_841); +lean_dec(x_840); +x_842 = lean_st_ref_get(x_8, x_839); +x_843 = lean_ctor_get(x_842, 0); lean_inc(x_843); -lean_dec(x_841); -x_844 = lean_ctor_get(x_842, 0); +x_844 = lean_ctor_get(x_842, 1); lean_inc(x_844); lean_dec(x_842); -x_845 = lean_ctor_get(x_1, 2); +x_845 = lean_ctor_get(x_843, 0); lean_inc(x_845); -x_846 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_845, x_844, x_840); -if (lean_obj_tag(x_846) == 0) +lean_dec(x_843); +x_846 = lean_ctor_get(x_1, 2); +lean_inc(x_846); +x_847 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_846, x_845, x_841); +if (lean_obj_tag(x_847) == 0) { -lean_object* x_847; lean_object* x_848; lean_object* x_849; -x_847 = lean_ctor_get(x_1, 0); -lean_inc(x_847); -lean_inc(x_847); -x_848 = l_Lean_Name_append(x_840, x_847); -lean_inc(x_840); -x_849 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_840, x_5, x_6, x_7, x_8, x_843); -if (lean_obj_tag(x_849) == 0) +lean_object* x_848; lean_object* x_849; lean_object* x_850; +x_848 = lean_ctor_get(x_1, 0); +lean_inc(x_848); +lean_inc(x_848); +x_849 = l_Lean_Name_append(x_841, x_848); +lean_inc(x_841); +x_850 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_841, x_5, x_6, x_7, x_8, x_844); +if (lean_obj_tag(x_850) == 0) { -lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; -x_850 = lean_ctor_get(x_849, 0); -lean_inc(x_850); -x_851 = lean_ctor_get(x_849, 1); +lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; +x_851 = lean_ctor_get(x_850, 0); lean_inc(x_851); -lean_dec(x_849); -x_852 = l_Lean_ConstantInfo_type(x_850); -x_853 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_852 = lean_ctor_get(x_850, 1); lean_inc(x_852); -x_854 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_852, x_853, x_5, x_6, x_7, x_8, x_851); -if (lean_obj_tag(x_854) == 0) -{ -lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_886; uint8_t x_887; -x_855 = lean_ctor_get(x_854, 0); -lean_inc(x_855); -x_856 = lean_ctor_get(x_854, 1); -lean_inc(x_856); -lean_dec(x_854); -x_886 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_887 = l_Lean_Expr_isConstOf(x_855, x_886); -if (x_887 == 0) -{ -lean_object* x_888; uint8_t x_889; -x_888 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_889 = l_Lean_Expr_isConstOf(x_855, x_888); -lean_dec(x_855); -if (x_889 == 0) -{ -lean_object* x_890; -lean_dec(x_852); lean_dec(x_850); -lean_dec(x_848); -lean_dec(x_845); -lean_dec(x_844); -lean_dec(x_840); +x_853 = l_Lean_ConstantInfo_type(x_851); +x_854 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_890 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_856); -if (lean_obj_tag(x_890) == 0) +lean_inc(x_853); +x_855 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_853, x_854, x_5, x_6, x_7, x_8, x_852); +if (lean_obj_tag(x_855) == 0) +{ +lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_887; uint8_t x_888; +x_856 = lean_ctor_get(x_855, 0); +lean_inc(x_856); +x_857 = lean_ctor_get(x_855, 1); +lean_inc(x_857); +lean_dec(x_855); +x_887 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_888 = l_Lean_Expr_isConstOf(x_856, x_887); +if (x_888 == 0) +{ +lean_object* x_889; uint8_t x_890; +x_889 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_890 = l_Lean_Expr_isConstOf(x_856, x_889); +lean_dec(x_856); +if (x_890 == 0) { lean_object* x_891; -x_891 = lean_ctor_get(x_890, 0); -lean_inc(x_891); +lean_dec(x_853); +lean_dec(x_851); +lean_dec(x_849); +lean_dec(x_846); +lean_dec(x_845); +lean_dec(x_841); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_891 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_857); if (lean_obj_tag(x_891) == 0) { -lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; -lean_dec(x_1); -x_892 = lean_ctor_get(x_890, 1); +lean_object* x_892; +x_892 = lean_ctor_get(x_891, 0); lean_inc(x_892); -lean_dec(x_890); -x_893 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_893, 0, x_847); -x_894 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_895 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_895, 0, x_894); -lean_ctor_set(x_895, 1, x_893); -x_896 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_897 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_897, 0, x_895); -lean_ctor_set(x_897, 1, x_896); -x_898 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_898, 0, x_12); -x_899 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_899, 0, x_897); -lean_ctor_set(x_899, 1, x_898); -x_900 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_901 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_901, 0, x_899); -lean_ctor_set(x_901, 1, x_900); -x_902 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_901, x_5, x_6, x_7, x_8, x_892); +if (lean_obj_tag(x_892) == 0) +{ +lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; +lean_dec(x_1); +x_893 = lean_ctor_get(x_891, 1); +lean_inc(x_893); +lean_dec(x_891); +x_894 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_894, 0, x_848); +x_895 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_896 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_896, 0, x_895); +lean_ctor_set(x_896, 1, x_894); +x_897 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_898 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_898, 0, x_896); +lean_ctor_set(x_898, 1, x_897); +x_899 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_899, 0, x_13); +x_900 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_900, 0, x_898); +lean_ctor_set(x_900, 1, x_899); +x_901 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_902 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_902, 0, x_900); +lean_ctor_set(x_902, 1, x_901); +x_903 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_902, x_5, x_6, x_7, x_8, x_893); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_902; +return x_903; } else { -lean_object* x_903; lean_object* x_904; -lean_dec(x_847); -lean_dec(x_12); -x_903 = lean_ctor_get(x_890, 1); -lean_inc(x_903); -lean_dec(x_890); -x_904 = lean_ctor_get(x_891, 0); +lean_object* x_904; lean_object* x_905; +lean_dec(x_848); +lean_dec(x_13); +x_904 = lean_ctor_get(x_891, 1); lean_inc(x_904); lean_dec(x_891); -x_4 = x_904; -x_9 = x_903; +x_905 = lean_ctor_get(x_892, 0); +lean_inc(x_905); +lean_dec(x_892); +x_4 = x_905; +x_9 = x_904; goto _start; } } else { -uint8_t x_906; -lean_dec(x_847); -lean_dec(x_12); +uint8_t x_907; +lean_dec(x_848); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_906 = !lean_is_exclusive(x_890); -if (x_906 == 0) +x_907 = !lean_is_exclusive(x_891); +if (x_907 == 0) { -return x_890; +return x_891; } else { -lean_object* x_907; lean_object* x_908; lean_object* x_909; -x_907 = lean_ctor_get(x_890, 0); -x_908 = lean_ctor_get(x_890, 1); +lean_object* x_908; lean_object* x_909; lean_object* x_910; +x_908 = lean_ctor_get(x_891, 0); +x_909 = lean_ctor_get(x_891, 1); +lean_inc(x_909); lean_inc(x_908); -lean_inc(x_907); -lean_dec(x_890); -x_909 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_909, 0, x_907); -lean_ctor_set(x_909, 1, x_908); -return x_909; +lean_dec(x_891); +x_910 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_910, 0, x_908); +lean_ctor_set(x_910, 1, x_909); +return x_910; } } } else { -lean_object* x_910; -x_910 = lean_box(0); -x_857 = x_910; -goto block_885; -} -} -else -{ lean_object* x_911; -lean_dec(x_855); x_911 = lean_box(0); -x_857 = x_911; -goto block_885; +x_858 = x_911; +goto block_886; } -block_885: +} +else { -lean_object* x_858; -lean_dec(x_857); -x_858 = l_Lean_ConstantInfo_value_x3f(x_850); -if (lean_obj_tag(x_858) == 0) +lean_object* x_912; +lean_dec(x_856); +x_912 = lean_box(0); +x_858 = x_912; +goto block_886; +} +block_886: { -lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; -lean_dec(x_852); -lean_dec(x_850); -lean_dec(x_848); +lean_object* x_859; +lean_dec(x_858); +x_859 = l_Lean_ConstantInfo_value_x3f(x_851); +if (lean_obj_tag(x_859) == 0) +{ +lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; +lean_dec(x_853); +lean_dec(x_851); +lean_dec(x_849); +lean_dec(x_846); lean_dec(x_845); -lean_dec(x_844); -lean_dec(x_840); +lean_dec(x_841); lean_dec(x_1); -x_859 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_859, 0, x_847); -x_860 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_861 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_861, 0, x_860); -lean_ctor_set(x_861, 1, x_859); -x_862 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_863 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_863, 0, x_861); -lean_ctor_set(x_863, 1, x_862); -x_864 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_864, 0, x_12); -x_865 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_865, 0, x_863); -lean_ctor_set(x_865, 1, x_864); -x_866 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_867 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_867, 0, x_865); -lean_ctor_set(x_867, 1, x_866); -x_868 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_867, x_5, x_6, x_7, x_8, x_856); +x_860 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_860, 0, x_848); +x_861 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_862 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_862, 0, x_861); +lean_ctor_set(x_862, 1, x_860); +x_863 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_864 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_864, 0, x_862); +lean_ctor_set(x_864, 1, x_863); +x_865 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_865, 0, x_13); +x_866 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_866, 0, x_864); +lean_ctor_set(x_866, 1, x_865); +x_867 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_868 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_868, 0, x_866); +lean_ctor_set(x_868, 1, x_867); +x_869 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_868, x_5, x_6, x_7, x_8, x_857); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_868; +return x_869; } else { -lean_object* x_869; lean_object* x_870; -lean_dec(x_847); -x_869 = lean_ctor_get(x_858, 0); -lean_inc(x_869); -lean_dec(x_858); -lean_inc(x_840); -x_870 = l_Lean_Environment_getModuleIdxFor_x3f(x_844, x_840); -if (lean_obj_tag(x_870) == 0) +lean_object* x_870; lean_object* x_871; +lean_dec(x_848); +x_870 = lean_ctor_get(x_859, 0); +lean_inc(x_870); +lean_dec(x_859); +lean_inc(x_841); +x_871 = l_Lean_Environment_getModuleIdxFor_x3f(x_845, x_841); +if (lean_obj_tag(x_871) == 0) { -lean_object* x_871; lean_object* x_872; -x_871 = lean_box(0); -x_872 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__54(x_1, x_869, x_2, x_3, x_852, x_848, x_845, x_840, x_12, x_850, x_871, x_5, x_6, x_7, x_8, x_856); -return x_872; +lean_object* x_872; lean_object* x_873; +x_872 = lean_box(0); +x_873 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__54(x_1, x_870, x_2, x_3, x_853, x_849, x_846, x_841, x_13, x_851, x_872, x_5, x_6, x_7, x_8, x_857); +return x_873; } else { -lean_dec(x_870); +lean_dec(x_871); if (x_3 == 0) { -lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; uint8_t x_879; -lean_dec(x_869); -lean_dec(x_852); -lean_dec(x_850); -lean_dec(x_848); -lean_dec(x_845); -lean_dec(x_12); -lean_dec(x_1); -x_873 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_873, 0, x_840); -x_874 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_875 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_875, 0, x_874); -lean_ctor_set(x_875, 1, x_873); -x_876 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_877 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_877, 0, x_875); -lean_ctor_set(x_877, 1, x_876); -x_878 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_877, x_5, x_6, x_7, x_8, x_856); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_879 = !lean_is_exclusive(x_878); -if (x_879 == 0) -{ -return x_878; -} -else -{ -lean_object* x_880; lean_object* x_881; lean_object* x_882; -x_880 = lean_ctor_get(x_878, 0); -x_881 = lean_ctor_get(x_878, 1); -lean_inc(x_881); -lean_inc(x_880); -lean_dec(x_878); -x_882 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_882, 0, x_880); -lean_ctor_set(x_882, 1, x_881); -return x_882; -} -} -else -{ -lean_object* x_883; lean_object* x_884; -x_883 = lean_box(0); -x_884 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__54(x_1, x_869, x_2, x_3, x_852, x_848, x_845, x_840, x_12, x_850, x_883, x_5, x_6, x_7, x_8, x_856); -return x_884; -} -} -} -} -} -else -{ -uint8_t x_912; -lean_dec(x_852); -lean_dec(x_850); -lean_dec(x_848); -lean_dec(x_847); -lean_dec(x_845); -lean_dec(x_844); -lean_dec(x_840); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_912 = !lean_is_exclusive(x_854); -if (x_912 == 0) -{ -return x_854; -} -else -{ -lean_object* x_913; lean_object* x_914; lean_object* x_915; -x_913 = lean_ctor_get(x_854, 0); -x_914 = lean_ctor_get(x_854, 1); -lean_inc(x_914); -lean_inc(x_913); -lean_dec(x_854); -x_915 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_915, 0, x_913); -lean_ctor_set(x_915, 1, x_914); -return x_915; -} -} -} -else -{ -uint8_t x_916; -lean_dec(x_848); -lean_dec(x_847); -lean_dec(x_845); -lean_dec(x_844); -lean_dec(x_840); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_916 = !lean_is_exclusive(x_849); -if (x_916 == 0) -{ -return x_849; -} -else -{ -lean_object* x_917; lean_object* x_918; lean_object* x_919; -x_917 = lean_ctor_get(x_849, 0); -x_918 = lean_ctor_get(x_849, 1); -lean_inc(x_918); -lean_inc(x_917); +lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; uint8_t x_880; +lean_dec(x_870); +lean_dec(x_853); +lean_dec(x_851); lean_dec(x_849); -x_919 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_919, 0, x_917); -lean_ctor_set(x_919, 1, x_918); -return x_919; +lean_dec(x_846); +lean_dec(x_13); +lean_dec(x_1); +x_874 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_874, 0, x_841); +x_875 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_876 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_876, 0, x_875); +lean_ctor_set(x_876, 1, x_874); +x_877 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_878 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_878, 0, x_876); +lean_ctor_set(x_878, 1, x_877); +x_879 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_878, x_5, x_6, x_7, x_8, x_857); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_880 = !lean_is_exclusive(x_879); +if (x_880 == 0) +{ +return x_879; +} +else +{ +lean_object* x_881; lean_object* x_882; lean_object* x_883; +x_881 = lean_ctor_get(x_879, 0); +x_882 = lean_ctor_get(x_879, 1); +lean_inc(x_882); +lean_inc(x_881); +lean_dec(x_879); +x_883 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_883, 0, x_881); +lean_ctor_set(x_883, 1, x_882); +return x_883; +} +} +else +{ +lean_object* x_884; lean_object* x_885; +x_884 = lean_box(0); +x_885 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__54(x_1, x_870, x_2, x_3, x_853, x_849, x_846, x_841, x_13, x_851, x_884, x_5, x_6, x_7, x_8, x_857); +return x_885; +} +} } } } else { -lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; -lean_dec(x_845); -lean_dec(x_844); -lean_dec(x_840); -x_920 = lean_ctor_get(x_846, 0); -lean_inc(x_920); +uint8_t x_913; +lean_dec(x_853); +lean_dec(x_851); +lean_dec(x_849); +lean_dec(x_848); lean_dec(x_846); -x_921 = lean_box(0); -x_922 = l_Lean_Expr_const___override(x_920, x_921); +lean_dec(x_845); +lean_dec(x_841); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_913 = !lean_is_exclusive(x_855); +if (x_913 == 0) +{ +return x_855; +} +else +{ +lean_object* x_914; lean_object* x_915; lean_object* x_916; +x_914 = lean_ctor_get(x_855, 0); +x_915 = lean_ctor_get(x_855, 1); +lean_inc(x_915); +lean_inc(x_914); +lean_dec(x_855); +x_916 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_916, 0, x_914); +lean_ctor_set(x_916, 1, x_915); +return x_916; +} +} +} +else +{ +uint8_t x_917; +lean_dec(x_849); +lean_dec(x_848); +lean_dec(x_846); +lean_dec(x_845); +lean_dec(x_841); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_917 = !lean_is_exclusive(x_850); +if (x_917 == 0) +{ +return x_850; +} +else +{ +lean_object* x_918; lean_object* x_919; lean_object* x_920; +x_918 = lean_ctor_get(x_850, 0); +x_919 = lean_ctor_get(x_850, 1); +lean_inc(x_919); +lean_inc(x_918); +lean_dec(x_850); +x_920 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_920, 0, x_918); +lean_ctor_set(x_920, 1, x_919); +return x_920; +} +} +} +else +{ +lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; +lean_dec(x_846); +lean_dec(x_845); +lean_dec(x_841); +x_921 = lean_ctor_get(x_847, 0); +lean_inc(x_921); +lean_dec(x_847); +x_922 = lean_box(0); +x_923 = l_Lean_Expr_const___override(x_921, x_922); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_922); -x_923 = lean_infer_type(x_922, x_5, x_6, x_7, x_8, x_843); -if (lean_obj_tag(x_923) == 0) +lean_inc(x_923); +x_924 = lean_infer_type(x_923, x_5, x_6, x_7, x_8, x_844); +if (lean_obj_tag(x_924) == 0) { -lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; -x_924 = lean_ctor_get(x_923, 0); -lean_inc(x_924); -x_925 = lean_ctor_get(x_923, 1); +lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; +x_925 = lean_ctor_get(x_924, 0); lean_inc(x_925); -lean_dec(x_923); -x_926 = lean_box(x_2); -x_927 = lean_box(x_3); -x_928 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__55___boxed), 12, 5); -lean_closure_set(x_928, 0, x_12); -lean_closure_set(x_928, 1, x_1); -lean_closure_set(x_928, 2, x_926); -lean_closure_set(x_928, 3, x_927); -lean_closure_set(x_928, 4, x_922); -x_929 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_924, x_928, x_5, x_6, x_7, x_8, x_925); -return x_929; +x_926 = lean_ctor_get(x_924, 1); +lean_inc(x_926); +lean_dec(x_924); +x_927 = lean_box(x_2); +x_928 = lean_box(x_3); +x_929 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__55___boxed), 12, 5); +lean_closure_set(x_929, 0, x_13); +lean_closure_set(x_929, 1, x_1); +lean_closure_set(x_929, 2, x_927); +lean_closure_set(x_929, 3, x_928); +lean_closure_set(x_929, 4, x_923); +x_930 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_925, x_929, x_5, x_6, x_7, x_8, x_926); +return x_930; } else { -uint8_t x_930; -lean_dec(x_922); -lean_dec(x_12); +uint8_t x_931; +lean_dec(x_923); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_930 = !lean_is_exclusive(x_923); -if (x_930 == 0) +x_931 = !lean_is_exclusive(x_924); +if (x_931 == 0) { -return x_923; +return x_924; } else { -lean_object* x_931; lean_object* x_932; lean_object* x_933; -x_931 = lean_ctor_get(x_923, 0); -x_932 = lean_ctor_get(x_923, 1); +lean_object* x_932; lean_object* x_933; lean_object* x_934; +x_932 = lean_ctor_get(x_924, 0); +x_933 = lean_ctor_get(x_924, 1); +lean_inc(x_933); lean_inc(x_932); -lean_inc(x_931); -lean_dec(x_923); -x_933 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_933, 0, x_931); -lean_ctor_set(x_933, 1, x_932); -return x_933; +lean_dec(x_924); +x_934 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_934, 0, x_932); +lean_ctor_set(x_934, 1, x_933); +return x_934; } } } } else { -lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; -lean_dec(x_839); +lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; +lean_dec(x_840); lean_dec(x_1); -x_934 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_934, 0, x_12); -x_935 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_936 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_936, 0, x_935); -lean_ctor_set(x_936, 1, x_934); -x_937 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_938 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_938, 0, x_936); -lean_ctor_set(x_938, 1, x_937); -x_939 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_938, x_5, x_6, x_7, x_8, x_838); +x_935 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_935, 0, x_13); +x_936 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_937 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_937, 0, x_936); +lean_ctor_set(x_937, 1, x_935); +x_938 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_939 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_939, 0, x_937); +lean_ctor_set(x_939, 1, x_938); +x_940 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_939, x_5, x_6, x_7, x_8, x_839); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_939; +return x_940; } } default: { -lean_object* x_940; lean_object* x_941; -x_940 = lean_ctor_get(x_11, 1); -lean_inc(x_940); -lean_dec(x_11); -x_941 = l_Lean_Expr_getAppFn(x_12); -if (lean_obj_tag(x_941) == 4) +lean_object* x_941; lean_object* x_942; +x_941 = lean_ctor_get(x_12, 1); +lean_inc(x_941); +lean_dec(x_12); +x_942 = l_Lean_Expr_getAppFn(x_13); +if (lean_obj_tag(x_942) == 4) { -lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; -x_942 = lean_ctor_get(x_941, 0); -lean_inc(x_942); -lean_dec(x_941); -x_943 = lean_st_ref_get(x_8, x_940); -x_944 = lean_ctor_get(x_943, 0); -lean_inc(x_944); -x_945 = lean_ctor_get(x_943, 1); +lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; +x_943 = lean_ctor_get(x_942, 0); +lean_inc(x_943); +lean_dec(x_942); +x_944 = lean_st_ref_get(x_8, x_941); +x_945 = lean_ctor_get(x_944, 0); lean_inc(x_945); -lean_dec(x_943); -x_946 = lean_ctor_get(x_944, 0); +x_946 = lean_ctor_get(x_944, 1); lean_inc(x_946); lean_dec(x_944); -x_947 = lean_ctor_get(x_1, 2); +x_947 = lean_ctor_get(x_945, 0); lean_inc(x_947); -x_948 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_947, x_946, x_942); -if (lean_obj_tag(x_948) == 0) +lean_dec(x_945); +x_948 = lean_ctor_get(x_1, 2); +lean_inc(x_948); +x_949 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_948, x_947, x_943); +if (lean_obj_tag(x_949) == 0) { -lean_object* x_949; lean_object* x_950; lean_object* x_951; -x_949 = lean_ctor_get(x_1, 0); -lean_inc(x_949); -lean_inc(x_949); -x_950 = l_Lean_Name_append(x_942, x_949); -lean_inc(x_942); -x_951 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_942, x_5, x_6, x_7, x_8, x_945); -if (lean_obj_tag(x_951) == 0) +lean_object* x_950; lean_object* x_951; lean_object* x_952; +x_950 = lean_ctor_get(x_1, 0); +lean_inc(x_950); +lean_inc(x_950); +x_951 = l_Lean_Name_append(x_943, x_950); +lean_inc(x_943); +x_952 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_943, x_5, x_6, x_7, x_8, x_946); +if (lean_obj_tag(x_952) == 0) { -lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; -x_952 = lean_ctor_get(x_951, 0); -lean_inc(x_952); -x_953 = lean_ctor_get(x_951, 1); +lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; +x_953 = lean_ctor_get(x_952, 0); lean_inc(x_953); -lean_dec(x_951); -x_954 = l_Lean_ConstantInfo_type(x_952); -x_955 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +x_954 = lean_ctor_get(x_952, 1); lean_inc(x_954); -x_956 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_954, x_955, x_5, x_6, x_7, x_8, x_953); -if (lean_obj_tag(x_956) == 0) -{ -lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_988; uint8_t x_989; -x_957 = lean_ctor_get(x_956, 0); -lean_inc(x_957); -x_958 = lean_ctor_get(x_956, 1); -lean_inc(x_958); -lean_dec(x_956); -x_988 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; -x_989 = l_Lean_Expr_isConstOf(x_957, x_988); -if (x_989 == 0) -{ -lean_object* x_990; uint8_t x_991; -x_990 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; -x_991 = l_Lean_Expr_isConstOf(x_957, x_990); -lean_dec(x_957); -if (x_991 == 0) -{ -lean_object* x_992; -lean_dec(x_954); lean_dec(x_952); -lean_dec(x_950); -lean_dec(x_947); -lean_dec(x_946); -lean_dec(x_942); +x_955 = l_Lean_ConstantInfo_type(x_953); +x_956 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__3___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_992 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_5, x_6, x_7, x_8, x_958); -if (lean_obj_tag(x_992) == 0) +lean_inc(x_955); +x_957 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_955, x_956, x_5, x_6, x_7, x_8, x_954); +if (lean_obj_tag(x_957) == 0) +{ +lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_989; uint8_t x_990; +x_958 = lean_ctor_get(x_957, 0); +lean_inc(x_958); +x_959 = lean_ctor_get(x_957, 1); +lean_inc(x_959); +lean_dec(x_957); +x_989 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__14; +x_990 = l_Lean_Expr_isConstOf(x_958, x_989); +if (x_990 == 0) +{ +lean_object* x_991; uint8_t x_992; +x_991 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__3; +x_992 = l_Lean_Expr_isConstOf(x_958, x_991); +lean_dec(x_958); +if (x_992 == 0) { lean_object* x_993; -x_993 = lean_ctor_get(x_992, 0); -lean_inc(x_993); +lean_dec(x_955); +lean_dec(x_953); +lean_dec(x_951); +lean_dec(x_948); +lean_dec(x_947); +lean_dec(x_943); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +x_993 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_5, x_6, x_7, x_8, x_959); if (lean_obj_tag(x_993) == 0) { -lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; -lean_dec(x_1); -x_994 = lean_ctor_get(x_992, 1); +lean_object* x_994; +x_994 = lean_ctor_get(x_993, 0); lean_inc(x_994); -lean_dec(x_992); -x_995 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_995, 0, x_949); -x_996 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_997 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_997, 0, x_996); -lean_ctor_set(x_997, 1, x_995); -x_998 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; -x_999 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_999, 0, x_997); -lean_ctor_set(x_999, 1, x_998); -x_1000 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1000, 0, x_12); -x_1001 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1001, 0, x_999); -lean_ctor_set(x_1001, 1, x_1000); -x_1002 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_1003 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1003, 0, x_1001); -lean_ctor_set(x_1003, 1, x_1002); -x_1004 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_1003, x_5, x_6, x_7, x_8, x_994); +if (lean_obj_tag(x_994) == 0) +{ +lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; +lean_dec(x_1); +x_995 = lean_ctor_get(x_993, 1); +lean_inc(x_995); +lean_dec(x_993); +x_996 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_996, 0, x_950); +x_997 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_998 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_998, 0, x_997); +lean_ctor_set(x_998, 1, x_996); +x_999 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__16; +x_1000 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1000, 0, x_998); +lean_ctor_set(x_1000, 1, x_999); +x_1001 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1001, 0, x_13); +x_1002 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1002, 0, x_1000); +lean_ctor_set(x_1002, 1, x_1001); +x_1003 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_1004 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1004, 0, x_1002); +lean_ctor_set(x_1004, 1, x_1003); +x_1005 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_1004, x_5, x_6, x_7, x_8, x_995); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1004; +return x_1005; } else { -lean_object* x_1005; lean_object* x_1006; -lean_dec(x_949); -lean_dec(x_12); -x_1005 = lean_ctor_get(x_992, 1); -lean_inc(x_1005); -lean_dec(x_992); -x_1006 = lean_ctor_get(x_993, 0); +lean_object* x_1006; lean_object* x_1007; +lean_dec(x_950); +lean_dec(x_13); +x_1006 = lean_ctor_get(x_993, 1); lean_inc(x_1006); lean_dec(x_993); -x_4 = x_1006; -x_9 = x_1005; +x_1007 = lean_ctor_get(x_994, 0); +lean_inc(x_1007); +lean_dec(x_994); +x_4 = x_1007; +x_9 = x_1006; goto _start; } } else { -uint8_t x_1008; -lean_dec(x_949); -lean_dec(x_12); +uint8_t x_1009; +lean_dec(x_950); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_1008 = !lean_is_exclusive(x_992); -if (x_1008 == 0) +x_1009 = !lean_is_exclusive(x_993); +if (x_1009 == 0) { -return x_992; +return x_993; } else { -lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; -x_1009 = lean_ctor_get(x_992, 0); -x_1010 = lean_ctor_get(x_992, 1); +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; +x_1010 = lean_ctor_get(x_993, 0); +x_1011 = lean_ctor_get(x_993, 1); +lean_inc(x_1011); lean_inc(x_1010); -lean_inc(x_1009); -lean_dec(x_992); -x_1011 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1011, 0, x_1009); -lean_ctor_set(x_1011, 1, x_1010); -return x_1011; +lean_dec(x_993); +x_1012 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1012, 0, x_1010); +lean_ctor_set(x_1012, 1, x_1011); +return x_1012; } } } else { -lean_object* x_1012; -x_1012 = lean_box(0); -x_959 = x_1012; -goto block_987; -} -} -else -{ lean_object* x_1013; -lean_dec(x_957); x_1013 = lean_box(0); -x_959 = x_1013; -goto block_987; +x_960 = x_1013; +goto block_988; } -block_987: +} +else { -lean_object* x_960; -lean_dec(x_959); -x_960 = l_Lean_ConstantInfo_value_x3f(x_952); -if (lean_obj_tag(x_960) == 0) +lean_object* x_1014; +lean_dec(x_958); +x_1014 = lean_box(0); +x_960 = x_1014; +goto block_988; +} +block_988: { -lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; -lean_dec(x_954); -lean_dec(x_952); -lean_dec(x_950); +lean_object* x_961; +lean_dec(x_960); +x_961 = l_Lean_ConstantInfo_value_x3f(x_953); +if (lean_obj_tag(x_961) == 0) +{ +lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; +lean_dec(x_955); +lean_dec(x_953); +lean_dec(x_951); +lean_dec(x_948); lean_dec(x_947); -lean_dec(x_946); -lean_dec(x_942); +lean_dec(x_943); lean_dec(x_1); -x_961 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_961, 0, x_949); -x_962 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; -x_963 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_963, 0, x_962); -lean_ctor_set(x_963, 1, x_961); -x_964 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; -x_965 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_965, 0, x_963); -lean_ctor_set(x_965, 1, x_964); -x_966 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_966, 0, x_12); -x_967 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_967, 0, x_965); -lean_ctor_set(x_967, 1, x_966); -x_968 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_969 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_969, 0, x_967); -lean_ctor_set(x_969, 1, x_968); -x_970 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_969, x_5, x_6, x_7, x_8, x_958); +x_962 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_962, 0, x_950); +x_963 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6; +x_964 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_964, 0, x_963); +lean_ctor_set(x_964, 1, x_962); +x_965 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8; +x_966 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_966, 0, x_964); +lean_ctor_set(x_966, 1, x_965); +x_967 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_967, 0, x_13); +x_968 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_968, 0, x_966); +lean_ctor_set(x_968, 1, x_967); +x_969 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_970 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_970, 0, x_968); +lean_ctor_set(x_970, 1, x_969); +x_971 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_970, x_5, x_6, x_7, x_8, x_959); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_970; +return x_971; } else { -lean_object* x_971; lean_object* x_972; -lean_dec(x_949); -x_971 = lean_ctor_get(x_960, 0); -lean_inc(x_971); -lean_dec(x_960); -lean_inc(x_942); -x_972 = l_Lean_Environment_getModuleIdxFor_x3f(x_946, x_942); -if (lean_obj_tag(x_972) == 0) +lean_object* x_972; lean_object* x_973; +lean_dec(x_950); +x_972 = lean_ctor_get(x_961, 0); +lean_inc(x_972); +lean_dec(x_961); +lean_inc(x_943); +x_973 = l_Lean_Environment_getModuleIdxFor_x3f(x_947, x_943); +if (lean_obj_tag(x_973) == 0) { -lean_object* x_973; lean_object* x_974; -x_973 = lean_box(0); -x_974 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__60(x_1, x_971, x_2, x_3, x_954, x_950, x_947, x_942, x_12, x_952, x_973, x_5, x_6, x_7, x_8, x_958); -return x_974; +lean_object* x_974; lean_object* x_975; +x_974 = lean_box(0); +x_975 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__60(x_1, x_972, x_2, x_3, x_955, x_951, x_948, x_943, x_13, x_953, x_974, x_5, x_6, x_7, x_8, x_959); +return x_975; } else { -lean_dec(x_972); +lean_dec(x_973); if (x_3 == 0) { -lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; uint8_t x_981; -lean_dec(x_971); -lean_dec(x_954); -lean_dec(x_952); -lean_dec(x_950); -lean_dec(x_947); -lean_dec(x_12); -lean_dec(x_1); -x_975 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_975, 0, x_942); -x_976 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; -x_977 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_977, 0, x_976); -lean_ctor_set(x_977, 1, x_975); -x_978 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; -x_979 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_979, 0, x_977); -lean_ctor_set(x_979, 1, x_978); -x_980 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_979, x_5, x_6, x_7, x_8, x_958); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_981 = !lean_is_exclusive(x_980); -if (x_981 == 0) -{ -return x_980; -} -else -{ -lean_object* x_982; lean_object* x_983; lean_object* x_984; -x_982 = lean_ctor_get(x_980, 0); -x_983 = lean_ctor_get(x_980, 1); -lean_inc(x_983); -lean_inc(x_982); -lean_dec(x_980); -x_984 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_984, 0, x_982); -lean_ctor_set(x_984, 1, x_983); -return x_984; -} -} -else -{ -lean_object* x_985; lean_object* x_986; -x_985 = lean_box(0); -x_986 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__60(x_1, x_971, x_2, x_3, x_954, x_950, x_947, x_942, x_12, x_952, x_985, x_5, x_6, x_7, x_8, x_958); -return x_986; -} -} -} -} -} -else -{ -uint8_t x_1014; -lean_dec(x_954); -lean_dec(x_952); -lean_dec(x_950); -lean_dec(x_949); -lean_dec(x_947); -lean_dec(x_946); -lean_dec(x_942); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_1014 = !lean_is_exclusive(x_956); -if (x_1014 == 0) -{ -return x_956; -} -else -{ -lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; -x_1015 = lean_ctor_get(x_956, 0); -x_1016 = lean_ctor_get(x_956, 1); -lean_inc(x_1016); -lean_inc(x_1015); -lean_dec(x_956); -x_1017 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1017, 0, x_1015); -lean_ctor_set(x_1017, 1, x_1016); -return x_1017; -} -} -} -else -{ -uint8_t x_1018; -lean_dec(x_950); -lean_dec(x_949); -lean_dec(x_947); -lean_dec(x_946); -lean_dec(x_942); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_1018 = !lean_is_exclusive(x_951); -if (x_1018 == 0) -{ -return x_951; -} -else -{ -lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; -x_1019 = lean_ctor_get(x_951, 0); -x_1020 = lean_ctor_get(x_951, 1); -lean_inc(x_1020); -lean_inc(x_1019); +lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; uint8_t x_982; +lean_dec(x_972); +lean_dec(x_955); +lean_dec(x_953); lean_dec(x_951); -x_1021 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1021, 0, x_1019); -lean_ctor_set(x_1021, 1, x_1020); -return x_1021; +lean_dec(x_948); +lean_dec(x_13); +lean_dec(x_1); +x_976 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_976, 0, x_943); +x_977 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10; +x_978 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_978, 0, x_977); +lean_ctor_set(x_978, 1, x_976); +x_979 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12; +x_980 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_980, 0, x_978); +lean_ctor_set(x_980, 1, x_979); +x_981 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_980, x_5, x_6, x_7, x_8, x_959); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_982 = !lean_is_exclusive(x_981); +if (x_982 == 0) +{ +return x_981; +} +else +{ +lean_object* x_983; lean_object* x_984; lean_object* x_985; +x_983 = lean_ctor_get(x_981, 0); +x_984 = lean_ctor_get(x_981, 1); +lean_inc(x_984); +lean_inc(x_983); +lean_dec(x_981); +x_985 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_985, 0, x_983); +lean_ctor_set(x_985, 1, x_984); +return x_985; +} +} +else +{ +lean_object* x_986; lean_object* x_987; +x_986 = lean_box(0); +x_987 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__60(x_1, x_972, x_2, x_3, x_955, x_951, x_948, x_943, x_13, x_953, x_986, x_5, x_6, x_7, x_8, x_959); +return x_987; +} +} } } } else { -lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; -lean_dec(x_947); -lean_dec(x_946); -lean_dec(x_942); -x_1022 = lean_ctor_get(x_948, 0); -lean_inc(x_1022); +uint8_t x_1015; +lean_dec(x_955); +lean_dec(x_953); +lean_dec(x_951); +lean_dec(x_950); lean_dec(x_948); -x_1023 = lean_box(0); -x_1024 = l_Lean_Expr_const___override(x_1022, x_1023); +lean_dec(x_947); +lean_dec(x_943); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_1015 = !lean_is_exclusive(x_957); +if (x_1015 == 0) +{ +return x_957; +} +else +{ +lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; +x_1016 = lean_ctor_get(x_957, 0); +x_1017 = lean_ctor_get(x_957, 1); +lean_inc(x_1017); +lean_inc(x_1016); +lean_dec(x_957); +x_1018 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1018, 0, x_1016); +lean_ctor_set(x_1018, 1, x_1017); +return x_1018; +} +} +} +else +{ +uint8_t x_1019; +lean_dec(x_951); +lean_dec(x_950); +lean_dec(x_948); +lean_dec(x_947); +lean_dec(x_943); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_1019 = !lean_is_exclusive(x_952); +if (x_1019 == 0) +{ +return x_952; +} +else +{ +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; +x_1020 = lean_ctor_get(x_952, 0); +x_1021 = lean_ctor_get(x_952, 1); +lean_inc(x_1021); +lean_inc(x_1020); +lean_dec(x_952); +x_1022 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1022, 0, x_1020); +lean_ctor_set(x_1022, 1, x_1021); +return x_1022; +} +} +} +else +{ +lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; +lean_dec(x_948); +lean_dec(x_947); +lean_dec(x_943); +x_1023 = lean_ctor_get(x_949, 0); +lean_inc(x_1023); +lean_dec(x_949); +x_1024 = lean_box(0); +x_1025 = l_Lean_Expr_const___override(x_1023, x_1024); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_1024); -x_1025 = lean_infer_type(x_1024, x_5, x_6, x_7, x_8, x_945); -if (lean_obj_tag(x_1025) == 0) +lean_inc(x_1025); +x_1026 = lean_infer_type(x_1025, x_5, x_6, x_7, x_8, x_946); +if (lean_obj_tag(x_1026) == 0) { -lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; -x_1026 = lean_ctor_get(x_1025, 0); -lean_inc(x_1026); -x_1027 = lean_ctor_get(x_1025, 1); +lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; +x_1027 = lean_ctor_get(x_1026, 0); lean_inc(x_1027); -lean_dec(x_1025); -x_1028 = lean_box(x_2); -x_1029 = lean_box(x_3); -x_1030 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__61___boxed), 12, 5); -lean_closure_set(x_1030, 0, x_12); -lean_closure_set(x_1030, 1, x_1); -lean_closure_set(x_1030, 2, x_1028); -lean_closure_set(x_1030, 3, x_1029); -lean_closure_set(x_1030, 4, x_1024); -x_1031 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_1026, x_1030, x_5, x_6, x_7, x_8, x_1027); -return x_1031; +x_1028 = lean_ctor_get(x_1026, 1); +lean_inc(x_1028); +lean_dec(x_1026); +x_1029 = lean_box(x_2); +x_1030 = lean_box(x_3); +x_1031 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__61___boxed), 12, 5); +lean_closure_set(x_1031, 0, x_13); +lean_closure_set(x_1031, 1, x_1); +lean_closure_set(x_1031, 2, x_1029); +lean_closure_set(x_1031, 3, x_1030); +lean_closure_set(x_1031, 4, x_1025); +x_1032 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_1027, x_1031, x_5, x_6, x_7, x_8, x_1028); +return x_1032; } else { -uint8_t x_1032; -lean_dec(x_1024); -lean_dec(x_12); +uint8_t x_1033; +lean_dec(x_1025); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_1032 = !lean_is_exclusive(x_1025); -if (x_1032 == 0) +x_1033 = !lean_is_exclusive(x_1026); +if (x_1033 == 0) { -return x_1025; +return x_1026; } else { -lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; -x_1033 = lean_ctor_get(x_1025, 0); -x_1034 = lean_ctor_get(x_1025, 1); +lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +x_1034 = lean_ctor_get(x_1026, 0); +x_1035 = lean_ctor_get(x_1026, 1); +lean_inc(x_1035); lean_inc(x_1034); -lean_inc(x_1033); -lean_dec(x_1025); -x_1035 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1035, 0, x_1033); -lean_ctor_set(x_1035, 1, x_1034); -return x_1035; +lean_dec(x_1026); +x_1036 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1036, 0, x_1034); +lean_ctor_set(x_1036, 1, x_1035); +return x_1036; } } } } else { -lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -lean_dec(x_941); +lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; +lean_dec(x_942); lean_dec(x_1); -x_1036 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1036, 0, x_12); -x_1037 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; -x_1038 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1038, 0, x_1037); -lean_ctor_set(x_1038, 1, x_1036); -x_1039 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; -x_1040 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1040, 0, x_1038); -lean_ctor_set(x_1040, 1, x_1039); -x_1041 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_1040, x_5, x_6, x_7, x_8, x_940); +x_1037 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1037, 0, x_13); +x_1038 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2; +x_1039 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1039, 0, x_1038); +lean_ctor_set(x_1039, 1, x_1037); +x_1040 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4; +x_1041 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1041, 0, x_1039); +lean_ctor_set(x_1041, 1, x_1040); +x_1042 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_1041, x_5, x_6, x_7, x_8, x_941); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1041; +return x_1042; } } } } else { -uint8_t x_1042; +uint8_t x_1043; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_1042 = !lean_is_exclusive(x_11); -if (x_1042 == 0) +x_1043 = !lean_is_exclusive(x_12); +if (x_1043 == 0) { -return x_11; +return x_12; } else { -lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; -x_1043 = lean_ctor_get(x_11, 0); -x_1044 = lean_ctor_get(x_11, 1); +lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; +x_1044 = lean_ctor_get(x_12, 0); +x_1045 = lean_ctor_get(x_12, 1); +lean_inc(x_1045); lean_inc(x_1044); -lean_inc(x_1043); -lean_dec(x_11); -x_1045 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1045, 0, x_1043); -lean_ctor_set(x_1045, 1, x_1044); -return x_1045; +lean_dec(x_12); +x_1046 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1046, 0, x_1044); +lean_ctor_set(x_1046, 1, x_1045); +return x_1046; } } }