From cb75ac6de67da44a98892275f8c8f57eb4ccb845 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sun, 18 Oct 2020 10:40:23 -0700 Subject: [PATCH] chore: update stage0 --- .../Lean/Elab/PreDefinition/Structural.lean | 8 +- stage0/src/Std/Data/PersistentArray.lean | 87 +- .../Lean/Compiler/IR/ElimDeadBranches.c | 40 +- stage0/stdlib/Lean/CoreM.c | 14 +- stage0/stdlib/Lean/Elab/Command.c | 24 +- stage0/stdlib/Lean/Elab/Frontend.c | 4 +- .../Lean/Elab/PreDefinition/Structural.c | 1355 ++++++--- stage0/stdlib/Lean/Elab/Term.c | 24 +- stage0/stdlib/Lean/Environment.c | 4 +- stage0/stdlib/Lean/LocalContext.c | 251 +- stage0/stdlib/Lean/Message.c | 394 +-- stage0/stdlib/Lean/Meta/Instances.c | 4 +- stage0/stdlib/Lean/Meta/LevelDefEq.c | 32 +- stage0/stdlib/Lean/Meta/Tactic/Assert.c | 44 +- stage0/stdlib/Lean/Meta/Tactic/Assumption.c | 84 +- stage0/stdlib/Lean/Meta/Tactic/Cases.c | 98 +- stage0/stdlib/Lean/Meta/Tactic/Clear.c | 14 +- stage0/stdlib/Lean/Meta/Tactic/Subst.c | 84 +- stage0/stdlib/Lean/MetavarContext.c | 254 +- stage0/stdlib/Lean/Parser/Module.c | 24 +- stage0/stdlib/Lean/Server.c | 10 +- stage0/stdlib/Lean/Util/PPGoal.c | 14 +- stage0/stdlib/Lean/Util/Trace.c | 38 +- stage0/stdlib/Std/Data/PersistentArray.c | 2547 ++++++++++------- 24 files changed, 3356 insertions(+), 2096 deletions(-) diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural.lean b/stage0/src/Lean/Elab/PreDefinition/Structural.lean index a9fe679a7c..413136090c 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Structural.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Structural.lean @@ -231,8 +231,12 @@ let rec loop : Expr → Expr → MetaM Expr -- Recall that the fixed parameters are not in the scope of the `brecOn`. So, we skip them. let argsNonFixed := args.extract numFixed args.size -- The function `f` does not explicitly take `recArg` and its indices as arguments. So, we skip them too. - let fArgs := argsNonFixed.iterate #[] fun i a fArgs => - if recArgInfo.pos == i.val || recArgInfo.indicesPos.contains i.val then fArgs else fArgs.push a + let fArgs := #[] + for i in [:argsNonFixed.size] do + if recArgInfo.pos != i && !recArgInfo.indicesPos.contains i then + let arg := argsNonFixed[i] + let arg ← replaceRecApps recFnName recArgInfo below arg + fArgs := fArgs.push arg pure $ mkAppN f fArgs else pure $ mkAppN (← loop below f) (← args.mapM (loop below)) diff --git a/stage0/src/Std/Data/PersistentArray.lean b/stage0/src/Std/Data/PersistentArray.lean index a842fe4e4a..dea5697e29 100644 --- a/stage0/src/Std/Data/PersistentArray.lean +++ b/stage0/src/Std/Data/PersistentArray.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,8 +9,8 @@ universes u v w namespace Std inductive PersistentArrayNode (α : Type u) -| node (cs : Array PersistentArrayNode) : PersistentArrayNode -| leaf (vs : Array α) : PersistentArrayNode +| node (cs : Array (PersistentArrayNode α)) : PersistentArrayNode α +| leaf (vs : Array α) : PersistentArrayNode α namespace PersistentArrayNode @@ -72,9 +73,9 @@ self.get! idx partial def setAux : PersistentArrayNode α → USize → USize → α → PersistentArrayNode α | node cs, i, shift, a => - let j := div2Shift i shift; - let i := mod2Shift i shift; - let shift := shift - initShift; + let j := div2Shift i shift + let i := mod2Shift i shift + let shift := shift - initShift node $ cs.modify j.toNat $ fun c => setAux c i shift a | leaf cs, i, _, a => leaf (cs.set! i.toNat a) @@ -86,10 +87,10 @@ else @[specialize] partial def modifyAux [Inhabited α] (f : α → α) : PersistentArrayNode α → USize → USize → PersistentArrayNode α | node cs, i, shift => - let j := div2Shift i shift; - let i := mod2Shift i shift; - let shift := shift - initShift; - node $ cs.modify j.toNat $ fun c => modifyAux c i shift + let j := div2Shift i shift + let i := mod2Shift i shift + let shift := shift - initShift + node $ cs.modify j.toNat $ fun c => modifyAux f c i shift | leaf cs, i, _ => leaf (cs.modify i.toNat f) @[specialize] def modify [Inhabited α] (t : PersistentArray α) (i : Nat) (f : α → α) : PersistentArray α := @@ -110,11 +111,11 @@ partial def insertNewLeaf : PersistentArrayNode α → USize → USize → Array if i < branching then node (cs.push (leaf a)) else - let j := div2Shift i shift; - let i := mod2Shift i shift; - let shift := shift - initShift; + let j := div2Shift i shift + let i := mod2Shift i shift + let shift := shift - initShift if j.toNat < cs.size then - node $ cs.modify j.toNat $ fun c => insertNewLeaf c i shift a + node $ cs.modify j.toNat fun c => insertNewLeaf c i shift a else node $ cs.push $ mkNewPath shift a | n, _, _, _ => n -- unreachable @@ -135,7 +136,7 @@ else def tooBig : Nat := usizeSz / 8 def push (t : PersistentArray α) (a : α) : PersistentArray α := -let r := { t with tail := t.tail.push a, size := t.size + 1 }; +let r := { t with tail := t.tail.push a, size := t.size + 1 } if r.tail.size < branching.toNat || t.size >= tooBig then r else @@ -147,14 +148,14 @@ Array.mkEmpty PersistentArray.branching.toNat partial def popLeaf : PersistentArrayNode α → Option (Array α) × Array (PersistentArrayNode α) | n@(node cs) => if h : cs.size ≠ 0 then - let idx : Fin cs.size := ⟨cs.size - 1, Nat.predLt h⟩; - let last := cs.get idx; - let cs := cs.set idx (arbitrary _); + let idx : Fin cs.size := ⟨cs.size - 1, Nat.predLt h⟩ + let last := cs.get idx + let cs := cs.set idx (arbitrary _) match popLeaf last with | (none, _) => (none, emptyArray) | (some l, newLast) => if newLast.size == 0 then - let cs := cs.pop; + let cs := cs.pop if cs.isEmpty then (some l, emptyArray) else (some l, cs) else (some l, cs.set idx (node newLast)) @@ -169,9 +170,9 @@ else match popLeaf t.root with | (none, _) => t | (some last, newRoots) => - let last := last.pop; - let newSize := t.size - 1; - let newTailOff := newSize - last.size; + let last := last.pop + let newSize := t.size - 1 + let newTailOff := newSize - last.size if newRoots.size == 1 && (newRoots.get! 0).isNode then { root := newRoots.get! 0, shift := t.shift - initShift, @@ -190,48 +191,49 @@ variables {m : Type v → Type w} [Monad m] variable {β : Type v} @[specialize] partial def foldlMAux (f : β → α → m β) : PersistentArrayNode α → β → m β -| node cs, b => cs.foldlM (fun b c => foldlMAux c b) b +| node cs, b => cs.foldlM (fun b c => foldlMAux f c b) b | leaf vs, b => vs.foldlM f b -@[specialize] def foldlM (t : PersistentArray α) (f : β → α → m β) (b : β) : m β := do -b ← foldlMAux f t.root b; t.tail.foldlM f b +@[specialize] def foldlM (t : PersistentArray α) (f : β → α → m β) (init : β) : m β := do +let b ← foldlMAux f t.root init +t.tail.foldlM f b @[specialize] partial def findSomeMAux (f : α → m (Option β)) : PersistentArrayNode α → m (Option β) -| node cs => cs.findSomeM? (fun c => findSomeMAux c) +| node cs => cs.findSomeM? (fun c => findSomeMAux f c) | leaf vs => vs.findSomeM? f @[specialize] def findSomeM? (t : PersistentArray α) (f : α → m (Option β)) : m (Option β) := do -b ← findSomeMAux f t.root; +let b ← findSomeMAux f t.root match b with | none => t.tail.findSomeM? f | some b => pure (some b) @[specialize] partial def findSomeRevMAux (f : α → m (Option β)) : PersistentArrayNode α → m (Option β) -| node cs => cs.findSomeRevM? (fun c => findSomeRevMAux c) +| node cs => cs.findSomeRevM? (fun c => findSomeRevMAux f c) | leaf vs => vs.findSomeRevM? f @[specialize] def findSomeRevM? (t : PersistentArray α) (f : α → m (Option β)) : m (Option β) := do -b ← t.tail.findSomeRevM? f; +let b ← t.tail.findSomeRevM? f match b with | none => findSomeRevMAux f t.root | some b => pure (some b) partial def foldlFromMAux (f : β → α → m β) : PersistentArrayNode α → USize → USize → β → m β | node cs, i, shift, b => do - let j := (div2Shift i shift).toNat; - b ← foldlFromMAux (cs.get! j) (mod2Shift i shift) (shift - initShift) b; + let j := (div2Shift i shift).toNat + let b ← foldlFromMAux f (cs.get! j) (mod2Shift i shift) (shift - initShift) b cs.foldlFromM (fun b c => foldlMAux f c b) b (j+1) | leaf vs, i, _, b => vs.foldlFromM f b i.toNat -def foldlFromM (t : PersistentArray α) (f : β → α → m β) (b : β) (ini : Nat) : m β := -if ini >= t.tailOff then - t.tail.foldlFromM f b (ini - t.tailOff) +def foldlFromM (t : PersistentArray α) (f : β → α → m β) (init : β) (start : Nat) : m β := +if start >= t.tailOff then + t.tail.foldlFromM f init (start - t.tailOff) else do - b ← foldlFromMAux f t.root (USize.ofNat ini) t.shift b; + let b ← foldlFromMAux f t.root (USize.ofNat start) t.shift init; t.tail.foldlM f b @[specialize] partial def forMAux (f : α → m PUnit) : PersistentArrayNode α → m PUnit -| node cs => cs.forM (fun c => forMAux c) +| node cs => cs.forM (fun c => forMAux f c) | leaf vs => vs.forM f @[specialize] def forM (t : PersistentArray α) (f : α → m PUnit) : m PUnit := @@ -269,14 +271,15 @@ def toList (t : PersistentArray α) : List α := section variables {m : Type → Type w} [Monad m] @[specialize] partial def anyMAux (p : α → m Bool) : PersistentArrayNode α → m Bool -| node cs => cs.anyM (fun c => anyMAux c) +| node cs => cs.anyM fun c => anyMAux p c | leaf vs => vs.anyM p @[specialize] def anyM (t : PersistentArray α) (p : α → m Bool) : m Bool := anyMAux p t.root <||> t.tail.anyM p @[inline] def allM (a : PersistentArray α) (p : α → m Bool) : m Bool := do -b ← anyM a (fun v => do b ← p v; pure (not b)); pure (not b) +let b ← anyM a (fun v => do let b ← p v; pure (not b)) +pure (not b) end @@ -291,12 +294,12 @@ variables {m : Type u → Type v} [Monad m] variable {β : Type u} @[specialize] partial def mapMAux (f : α → m β) : PersistentArrayNode α → m (PersistentArrayNode β) -| node cs => node <$> cs.mapM (fun c => mapMAux c) +| node cs => node <$> cs.mapM (fun c => mapMAux f c) | leaf vs => leaf <$> vs.mapM f @[specialize] def mapM (f : α → m β) (t : PersistentArray α) : m (PersistentArray β) := do -root ← mapMAux f t.root; -tail ← t.tail.mapM f; +let root ← mapMAux f t.root +let tail ← t.tail.mapM f pure { t with tail := tail, root := root } end @@ -318,7 +321,7 @@ def stats (r : PersistentArray α) : Stats := collectStats r.root { numNodes := 0, depth := 0, tailSize := r.tail.size } 0 def Stats.toString (s : Stats) : String := -"{nodes := " ++ toString s.numNodes ++ ", depth := " ++ toString s.depth ++ ", tail size := " ++ toString s.tailSize ++ "}" +s!"\{nodes := {s.numNodes}, depth := {s.depth}, tail size := {s.tailSize}}" instance : HasToString Stats := ⟨Stats.toString⟩ @@ -336,7 +339,7 @@ open Std (PersistentArray PersistentArray.empty) def List.toPersistentArrayAux {α : Type u} : List α → PersistentArray α → PersistentArray α | [], t => t -| x::xs, t => List.toPersistentArrayAux xs (t.push x) +| x::xs, t => toPersistentArrayAux xs (t.push x) def List.toPersistentArray {α : Type u} (xs : List α) : PersistentArray α := xs.toPersistentArrayAux {} diff --git a/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c b/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c index b49355aa3c..8b934267b8 100644 --- a/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c +++ b/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c @@ -18,6 +18,7 @@ lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranch lean_object* l_Lean_IR_UnreachableBranches_Value_merge_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___closed__3; lean_object* l_Lean_IR_UnreachableBranches_InterpContext_currFnIdx___default; +lean_object* l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_IR_Lean_Compiler_IR_Basic___instance__11; lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranches___instance__3___closed__1; lean_object* l_Nat_foldMAux___main___at_Lean_IR_UnreachableBranches_inferStep___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -67,6 +68,7 @@ lean_object* l_Lean_IR_UnreachableBranches_inferMain_match__1___rarg(lean_object lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__3___boxed(lean_object*, lean_object*); uint8_t l_Array_isEqvAux___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_format___closed__1; +extern lean_object* l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; lean_object* l_Lean_IR_UnreachableBranches_interpFnBody_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_joinSep___main___at_Lean_IR_UnreachableBranches_Value_format___spec__4(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -77,7 +79,6 @@ lean_object* l_Array_forMAux___main___at___private_Lean_Compiler_IR_ElimDeadBran lean_object* l_Lean_IR_UnreachableBranches_inferMain___boxed(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_containsCtor___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_LocalContext_getJPParams(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(lean_object*, size_t, size_t); lean_object* l_Lean_IR_UnreachableBranches_inferStep_match__1(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -124,6 +125,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_format(lean_object*); +lean_object* l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(lean_object*, size_t, size_t); uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_interpExpr_match__1(lean_object*); uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(lean_object*, uint8_t, lean_object*); @@ -154,7 +156,6 @@ lean_object* l_Lean_IR_UnreachableBranches_resetVarAssignment(lean_object*, lean lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_arrayHasFormat___rarg___closed__1; lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt; -lean_object* l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_elimDeadBranches_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDeadAux_match__2(lean_object*); @@ -173,10 +174,8 @@ extern lean_object* l_Lean_IR_paramInh; lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__1___boxed(lean_object*); lean_object* l_Nat_foldAux___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_IR_UnreachableBranches_elimDeadAux___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArrayNode_Inhabited___closed__1; uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(lean_object*, uint8_t, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_IR_UnreachableBranches_elimDeadAux_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_findArgValue___boxed(lean_object*, lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; @@ -203,7 +202,6 @@ lean_object* l_Array_forMAux___main___at_Lean_IR_UnreachableBranches_interpFnBod lean_object* l_Lean_IR_UnreachableBranches_projValue___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); uint8_t l_Lean_IR_UnreachableBranches_containsCtor(lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Lean_IR_UnreachableBranches_Value_addChoice(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams_match__2(lean_object*); extern lean_object* l_Lean_NameSet_empty; @@ -253,6 +251,7 @@ lean_object* l_Std_HashMapImp_expand___at_Lean_IR_UnreachableBranches_mkFunction uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___lambda__2___boxed(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_findArgValue_match__1(lean_object*); +lean_object* l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_elimDeadBranches_match__1(lean_object*); extern lean_object* l_Lean_Format_sbracket___closed__4; lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__3(lean_object*, lean_object*); @@ -303,7 +302,6 @@ lean_object* l_Lean_IR_UnreachableBranches_interpFnBody(lean_object*, lean_objec lean_object* l_Lean_IR_formatArray___at_Lean_IR_UnreachableBranches_Value_format___spec__1(lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; lean_object* l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); @@ -358,6 +356,7 @@ lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_IR_UnreachableBr lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranches___instance__1; lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___closed__4; lean_object* l_Array_umapMAux___main___at_Lean_IR_UnreachableBranches_elimDeadAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__17(lean_object*, lean_object*); @@ -365,6 +364,7 @@ lean_object* l_Lean_IR_UnreachableBranches_getFunctionSummary_x3f(lean_object*, lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; static lean_object* _init_l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranches___instance__1() { _start: { @@ -5965,7 +5965,7 @@ return x_13; } } } -lean_object* l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(lean_object* x_1, size_t x_2, size_t x_3) { +lean_object* l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(lean_object* x_1, size_t x_2, size_t x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5976,7 +5976,7 @@ lean_inc(x_4); lean_dec(x_1); x_5 = x_2 >> x_3; x_6 = lean_usize_to_nat(x_5); -x_7 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_7 = l_Std_PersistentArray_getAux___rarg___closed__1; x_8 = lean_array_get(x_7, x_4, x_6); lean_dec(x_6); lean_dec(x_4); @@ -6022,7 +6022,7 @@ lean_inc(x_5); x_6 = lean_usize_of_nat(x_2); x_7 = lean_ctor_get_usize(x_1, 4); lean_dec(x_1); -x_8 = l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(x_5, x_6, x_7); return x_8; } else @@ -6219,7 +6219,7 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4___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; @@ -6227,7 +6227,7 @@ x_4 = lean_unbox_usize(x_2); lean_dec(x_2); x_5 = lean_unbox_usize(x_3); lean_dec(x_3); -x_6 = l_Std_PersistentArray_getAux___main___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(x_1, x_4, x_5); +x_6 = l_Std_PersistentArray_getAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__4(x_1, x_4, x_5); return x_6; } } @@ -6384,7 +6384,7 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +lean_object* l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -6417,9 +6417,9 @@ else { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_18 = lean_array_fget(x_7, x_15); -x_19 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_19 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_20 = lean_array_fset(x_7, x_15, x_19); -x_21 = l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_18, x_12, x_14); +x_21 = l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_18, x_12, x_14); x_22 = lean_array_fset(x_20, x_15, x_21); lean_dec(x_15); lean_ctor_set(x_3, 0, x_22); @@ -6457,9 +6457,9 @@ else { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_35 = lean_array_fget(x_23, x_31); -x_36 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_36 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_37 = lean_array_fset(x_23, x_31, x_36); -x_38 = l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_35, x_28, x_30); +x_38 = l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_35, x_28, x_30); x_39 = lean_array_fset(x_37, x_31, x_38); lean_dec(x_31); x_40 = lean_alloc_ctor(0, 1, 0); @@ -6560,7 +6560,7 @@ if (x_10 == 0) { size_t x_11; lean_object* x_12; x_11 = lean_usize_of_nat(x_4); -x_12 = l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_6, x_11, x_8); +x_12 = l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_6, x_11, x_8); lean_ctor_set(x_3, 0, x_12); return x_3; } @@ -6613,7 +6613,7 @@ if (x_27 == 0) { size_t x_28; lean_object* x_29; lean_object* x_30; x_28 = lean_usize_of_nat(x_4); -x_29 = l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_22, x_28, x_25); +x_29 = l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_22, x_28, x_25); x_30 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_23); @@ -6708,7 +6708,7 @@ return x_15; } } } -lean_object* l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { size_t x_6; size_t x_7; lean_object* x_8; @@ -6716,7 +6716,7 @@ x_6 = lean_unbox_usize(x_4); lean_dec(x_4); x_7 = lean_unbox_usize(x_5); lean_dec(x_5); -x_8 = l_Std_PersistentArray_modifyAux___main___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_3, x_6, x_7); +x_8 = l_Std_PersistentArray_modifyAux___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__2(x_1, x_2, x_3, x_6, x_7); return x_8; } } diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index 5e4ce5987c..eee27e891e 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -43,6 +43,7 @@ lean_object* l_Lean_catchInternalIds___rarg___lambda__1___boxed(lean_object*, le lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Core_hasEval___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_MonadTrace___closed__3; +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_catchInternalIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; lean_object* l_Lean_Core_Lean_MonadNameGenerator___closed__1; @@ -55,7 +56,6 @@ extern lean_object* l_Lean_Exception_inhabited___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Core_CoreM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_catchInternalIds(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkEmptyEnvironment___closed__1; lean_object* l_Lean_Core_Lean_MonadTrace___closed__4; lean_object* l_Lean_Core_Lean_MonadEnv___closed__1; @@ -138,7 +138,6 @@ lean_object* l_Lean_Core_Lean_MonadEnv___lambda__1___boxed(lean_object*, lean_ob lean_object* l_Lean_Core_Lean_MonadTrace___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Unhygienic_run___rarg___closed__1; lean_object* l_Lean_Core_CoreM_run_x27(lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_mkFreshUserName(lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Core_hasEval___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_MonadNameGenerator___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -146,6 +145,7 @@ lean_object* l_Lean_Core_MonadIO___closed__1; lean_object* l_Lean_catchInternalId___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_MonadEnv; lean_object* l_Lean_Core_Lean_MonadNameGenerator___closed__3; +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_MonadRecDepth___closed__2; lean_object* l_Lean_Core_CoreM_toIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_liftIOCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1824,7 +1824,7 @@ else { lean_object* x_10; lean_object* x_11; x_10 = lean_array_fget(x_1, x_2); -x_11 = l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3(x_10, x_3, x_4, x_5); +x_11 = l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3(x_10, x_3, x_4, x_5); lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { @@ -2005,7 +2005,7 @@ return x_46; } } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2032,7 +2032,7 @@ _start: lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3(x_5, x_2, x_3, x_4); +x_7 = l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3(x_5, x_2, x_3, x_4); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -2324,11 +2324,11 @@ lean_dec(x_1); return x_6; } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Std_PersistentArray_forMAux___main___at_Lean_Core_hasEval___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_forMAux___at_Lean_Core_hasEval___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 9346d44dff..a9814867b5 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -127,6 +127,7 @@ lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Comman lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___boxed(lean_object*); extern lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__3; @@ -509,7 +510,6 @@ lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object*, lean_obje lean_object* l_Lean_Elab_Command_CommandElabM_monadLog; lean_object* l_Lean_Elab_Command_addUnivLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_setOption___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__1; @@ -538,14 +538,12 @@ lean_object* l_Lean_Elab_Command_elabCommand_match__3(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_Elab_Command_elabVariables___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__1; lean_object* l_Lean_Elab_Command_getScope(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__6; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); @@ -607,6 +605,7 @@ lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_inhabited; extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__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_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -779,6 +778,7 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___clo extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; lean_object* l_Lean_Elab_Command_liftEIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInCmd___closed__6; lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; @@ -861,7 +861,7 @@ static lean_object* _init_l_Lean_Elab_Command_State_messages___default() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArray_empty___closed__3; +x_1 = l_Std_PersistentArray_empty___closed__1; return x_1; } } @@ -974,7 +974,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; lean_object* x_7; lean_object* x_8; x_1 = l_Lean_Core_State_inhabited___closed__1; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; x_3 = l_Lean_Elab_Command_State_inhabited___closed__2; x_4 = l_Lean_Unhygienic_run___rarg___closed__1; x_5 = lean_unsigned_to_nat(0u); @@ -6824,7 +6824,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -6900,7 +6900,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -6992,7 +6992,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_5 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_4, x_3); +x_5 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_4, x_3); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__5(x_1, x_2, x_6, x_7, x_5); @@ -7028,11 +7028,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -14870,7 +14870,7 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_75; x_13 = lean_ctor_get(x_10, 1); lean_dec(x_13); -x_14 = l_Std_PersistentArray_empty___closed__3; +x_14 = l_Std_PersistentArray_empty___closed__1; lean_ctor_set(x_10, 1, x_14); x_15 = lean_st_ref_set(x_3, x_10, x_11); x_16 = lean_ctor_get(x_15, 1); @@ -15129,7 +15129,7 @@ lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); lean_dec(x_10); -x_100 = l_Std_PersistentArray_empty___closed__3; +x_100 = l_Std_PersistentArray_empty___closed__1; x_101 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_101, 0, x_94); lean_ctor_set(x_101, 1, x_100); diff --git a/stage0/stdlib/Lean/Elab/Frontend.c b/stage0/stdlib/Lean/Elab/Frontend.c index 0a6c51f767..148d7a903c 100644 --- a/stage0/stdlib/Lean/Elab/Frontend.c +++ b/stage0/stdlib/Lean/Elab/Frontend.c @@ -28,6 +28,7 @@ lean_object* l_Lean_Elab_Frontend_setCommandState___boxed(lean_object*, lean_obj lean_object* l_Lean_Elab_Frontend_getCommandState___rarg___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_runCommandElabM___closed__2; +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Elab_Frontend_runCommandElabM___closed__1; lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_runCommandElabM(lean_object*, lean_object*, lean_object*, lean_object*); @@ -52,7 +53,6 @@ lean_object* l_Lean_Elab_Frontend_setCommandState(lean_object*, lean_object*, le lean_object* l_Lean_Elab_Frontend_processCommand(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_updateCmdPos___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_Elab_Frontend_processCommand___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_isExitCommand(lean_object*); lean_object* l_Lean_Elab_Frontend_getInputContext(lean_object*, lean_object*, lean_object*); @@ -1386,7 +1386,7 @@ lean_object* l_Lean_Elab_process(lean_object* x_1, lean_object* x_2, lean_object _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Std_PersistentArray_empty___closed__3; +x_6 = l_Std_PersistentArray_empty___closed__1; x_7 = l_Lean_Elab_Command_mkState(x_2, x_6, x_3); if (lean_obj_tag(x_4) == 0) { diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index 0918328d68..ab26971e71 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -35,7 +35,6 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__12(lean_object*); @@ -83,7 +82,7 @@ lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean extern lean_object* l_Lean_Elab_PreDefinition_inhabited; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__10; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos(lean_object*, lean_object*); @@ -93,7 +92,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___closed__1; lean_object* l_Lean_MessageData_ofList(lean_object*); @@ -105,7 +104,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___closed__2; lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_findAssumption_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -117,7 +116,7 @@ lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBinding lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__3___closed__6; lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_mkFnInhabitant_x3f_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__17; @@ -131,10 +130,12 @@ lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinit lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__1; lean_object* l_Array_zip___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__9; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1(lean_object*); @@ -157,9 +158,8 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Struc lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__7(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1; @@ -176,7 +176,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__3(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -204,9 +203,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Str lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__14; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__15; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__6; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg___lambda__2___closed__1; @@ -214,20 +211,21 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replace lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forEachExpr_x27___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___closed__1; lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_containsRecFn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__12___rarg(lean_object*, 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_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__1; @@ -238,10 +236,11 @@ uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Le lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getArrayArgType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3364_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3429_(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__2; +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__4; lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__12; @@ -254,7 +253,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadP size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_2__decLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__3___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__6; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -278,10 +276,10 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__2; extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchMatcherApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -376,11 +374,12 @@ extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_66 lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__13; lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__11; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -391,7 +390,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadI lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_23__lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -403,6 +402,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__2___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__1___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: @@ -8337,74 +8337,238 @@ return x_30; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_5); -x_9 = lean_nat_dec_lt(x_6, x_8); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_6, 1); +x_16 = lean_nat_dec_le(x_15, x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_7, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_39; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_7, x_19); +lean_dec(x_7); +x_39 = lean_nat_dec_eq(x_4, x_8); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_2, 3); +lean_inc(x_40); +x_41 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_40, x_8); +lean_dec(x_40); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = 1; +x_21 = x_42; +goto block_38; +} +else +{ +uint8_t x_43; +x_43 = 0; +x_21 = x_43; +goto block_38; +} +} +else +{ +uint8_t x_44; +x_44 = 0; +x_21 = x_44; +goto block_38; +} +block_38: +{ +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_6, 2); +x_23 = lean_nat_add(x_8, x_22); lean_dec(x_8); -if (x_9 == 0) -{ -lean_dec(x_6); -return x_7; -} -else -{ -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_array_fget(x_5, x_6); -x_11 = lean_nat_dec_eq(x_3, x_6); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_6, x_12); -if (x_11 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_1, 3); -x_15 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_14, x_6); -lean_dec(x_6); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_array_push(x_7, x_10); -x_6 = x_13; -x_7 = x_16; +x_7 = x_20; +x_8 = x_23; goto _start; } else { +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = l_Lean_Expr_Inhabited; +x_26 = lean_array_get(x_25, x_5, x_8); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_27 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop(x_1, x_2, x_3, x_26, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_array_push(x_9, x_28); +x_31 = lean_ctor_get(x_6, 2); +x_32 = lean_nat_add(x_8, x_31); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_32; +x_9 = x_30; +x_14 = x_29; +goto _start; +} +else +{ +uint8_t x_34; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); lean_dec(x_10); -x_6 = x_13; -goto _start; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +return x_27; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_27); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} } } else { +lean_object* x_45; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_6); -x_6 = x_13; -goto _start; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_9); +lean_ctor_set(x_45, 1, x_14); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_9); +lean_ctor_set(x_46, 1, x_14); +return x_46; } } } -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_array_get_size(x_1); -lean_inc(x_1); -x_12 = l_Array_extract___rarg(x_1, x_2, x_11); -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Array_empty___closed__1; -x_15 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(x_3, x_1, x_4, x_12, x_12, x_13, x_14); -lean_dec(x_12); -lean_dec(x_1); -x_16 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_15, x_15, x_13, x_5); -lean_dec(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_10); -return x_17; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_array_get_size(x_1); +x_14 = l_Array_extract___rarg(x_1, x_2, x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_unsigned_to_nat(1u); +lean_inc(x_15); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_15); +lean_ctor_set(x_18, 2, x_17); +x_19 = l_Array_empty___closed__1; +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(x_3, x_4, x_5, x_6, x_14, x_18, x_15, x_16, x_19, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_18); +lean_dec(x_14); +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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_22, x_22, x_16, x_7); +lean_dec(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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_24, x_24, x_16, x_7); +lean_dec(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_7); +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; +} +} } } static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__1() { @@ -8424,74 +8588,76 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l_Lean_Expr_Inhabited; -x_15 = lean_array_get(x_14, x_1, x_2); -x_16 = lean_ctor_get(x_4, 6); -x_17 = lean_array_get_size(x_16); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = l_Lean_Expr_Inhabited; +x_16 = lean_array_get(x_15, x_1, x_2); +x_17 = lean_ctor_get(x_5, 6); +lean_inc(x_17); +x_18 = lean_array_get_size(x_17); +lean_dec(x_17); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -x_18 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_17, x_15, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_6); +x_19 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_18, x_16, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_7); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_8); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(x_1, x_3, x_4, x_5, x_19, x_9, x_10, x_11, x_12, x_20); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -return x_21; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_20, x_10, x_11, x_12, x_13, x_21); +return x_22; } 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; uint8_t x_29; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = l_Lean_indentExpr(x_7); -x_24 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_27, x_9, x_10, x_11, x_12, x_22); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = l_Lean_indentExpr(x_8); +x_25 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_28, x_10, x_11, x_12, x_13, x_23); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -return x_28; +return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_28); -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_29); +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; } } } @@ -8656,7 +8822,6 @@ 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_5); -lean_dec(x_1); x_43 = lean_ctor_get(x_2, 0); lean_inc(x_43); x_44 = lean_array_get_size(x_43); @@ -8671,9 +8836,8 @@ if (x_48 == 0) { lean_object* x_49; lean_object* x_50; x_49 = lean_box(0); -x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(x_6, x_46, x_44, x_2, x_45, x_3, x_4, x_49, x_8, x_9, x_10, x_11, x_12); +x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(x_6, x_46, x_44, x_1, x_2, x_3, x_45, x_4, x_49, x_8, x_9, x_10, x_11, x_12); lean_dec(x_45); -lean_dec(x_2); lean_dec(x_46); return x_50; } @@ -8686,6 +8850,7 @@ lean_dec(x_44); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_51 = l_Lean_indentExpr(x_4); x_52 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; x_53 = lean_alloc_ctor(10, 2, 0); @@ -8814,144 +8979,310 @@ return x_30; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_5); -x_9 = lean_nat_dec_lt(x_6, x_8); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_6, 1); +x_16 = lean_nat_dec_le(x_15, x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_7, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_39; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_7, x_19); +lean_dec(x_7); +x_39 = lean_nat_dec_eq(x_4, x_8); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_2, 3); +lean_inc(x_40); +x_41 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_40, x_8); +lean_dec(x_40); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = 1; +x_21 = x_42; +goto block_38; +} +else +{ +uint8_t x_43; +x_43 = 0; +x_21 = x_43; +goto block_38; +} +} +else +{ +uint8_t x_44; +x_44 = 0; +x_21 = x_44; +goto block_38; +} +block_38: +{ +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_6, 2); +x_23 = lean_nat_add(x_8, x_22); lean_dec(x_8); -if (x_9 == 0) -{ -lean_dec(x_6); -return x_7; -} -else -{ -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_array_fget(x_5, x_6); -x_11 = lean_nat_dec_eq(x_3, x_6); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_6, x_12); -if (x_11 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_1, 3); -x_15 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_14, x_6); -lean_dec(x_6); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_array_push(x_7, x_10); -x_6 = x_13; -x_7 = x_16; +x_7 = x_20; +x_8 = x_23; goto _start; } else { -lean_dec(x_10); -x_6 = x_13; -goto _start; -} -} -else -{ -lean_dec(x_10); -lean_dec(x_6); -x_6 = x_13; -goto _start; -} -} -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_array_get_size(x_1); -lean_inc(x_1); -x_12 = l_Array_extract___rarg(x_1, x_2, x_11); -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Array_empty___closed__1; -x_15 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(x_3, x_1, x_4, x_12, x_12, x_13, x_14); -lean_dec(x_12); -lean_dec(x_1); -x_16 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_15, x_15, x_13, x_5); -lean_dec(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_10); -return x_17; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l_Lean_Expr_Inhabited; -x_15 = lean_array_get(x_14, x_1, x_2); -x_16 = lean_ctor_get(x_4, 6); -x_17 = lean_array_get_size(x_16); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = l_Lean_Expr_Inhabited; +x_26 = lean_array_get(x_25, x_5, x_8); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -x_18 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_17, x_15, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_27 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop(x_1, x_2, x_3, x_26, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_7); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(x_1, x_3, x_4, x_5, x_19, x_9, x_10, x_11, x_12, x_20); +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_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_array_push(x_9, x_28); +x_31 = lean_ctor_get(x_6, 2); +x_32 = lean_nat_add(x_8, x_31); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_32; +x_9 = x_30; +x_14 = x_29; +goto _start; +} +else +{ +uint8_t x_34; +lean_dec(x_20); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -return x_21; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +return x_27; } 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; uint8_t x_29; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_27); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +} +else +{ +lean_object* x_45; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_9); +lean_ctor_set(x_45, 1, x_14); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_9); +lean_ctor_set(x_46, 1, x_14); +return x_46; +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_array_get_size(x_1); +x_14 = l_Array_extract___rarg(x_1, x_2, x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_unsigned_to_nat(1u); +lean_inc(x_15); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_15); +lean_ctor_set(x_18, 2, x_17); +x_19 = l_Array_empty___closed__1; +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(x_3, x_4, x_5, x_6, x_14, x_18, x_15, x_16, x_19, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_18); +lean_dec(x_14); +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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_22, x_22, x_16, x_7); +lean_dec(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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_24, x_24, x_16, x_7); +lean_dec(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_7); +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; +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = l_Lean_Expr_Inhabited; +x_16 = lean_array_get(x_15, x_1, x_2); +x_17 = lean_ctor_get(x_5, 6); +lean_inc(x_17); +x_18 = lean_array_get_size(x_17); +lean_dec(x_17); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_6); +x_19 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_18, x_16, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_8); +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 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_20, x_10, x_11, x_12, x_13, x_21); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = l_Lean_indentExpr(x_7); -x_24 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_27, x_9, x_10, x_11, x_12, x_22); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = l_Lean_indentExpr(x_8); +x_25 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_28, x_10, x_11, x_12, x_13, x_23); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -return x_28; +return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_28); -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_29); +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; } } } @@ -9099,7 +9430,6 @@ 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_5); -lean_dec(x_1); x_43 = lean_ctor_get(x_2, 0); lean_inc(x_43); x_44 = lean_array_get_size(x_43); @@ -9114,9 +9444,8 @@ if (x_48 == 0) { lean_object* x_49; lean_object* x_50; x_49 = lean_box(0); -x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(x_6, x_46, x_44, x_2, x_45, x_3, x_4, x_49, x_8, x_9, x_10, x_11, x_12); +x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(x_6, x_46, x_44, x_1, x_2, x_3, x_45, x_4, x_49, x_8, x_9, x_10, x_11, x_12); lean_dec(x_45); -lean_dec(x_2); lean_dec(x_46); return x_50; } @@ -9129,6 +9458,7 @@ lean_dec(x_44); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_51 = l_Lean_indentExpr(x_4); x_52 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; x_53 = lean_alloc_ctor(10, 2, 0); @@ -9697,144 +10027,310 @@ return x_30; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_5); -x_9 = lean_nat_dec_lt(x_6, x_8); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_6, 1); +x_16 = lean_nat_dec_le(x_15, x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_7, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_39; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_7, x_19); +lean_dec(x_7); +x_39 = lean_nat_dec_eq(x_4, x_8); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_2, 3); +lean_inc(x_40); +x_41 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_40, x_8); +lean_dec(x_40); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = 1; +x_21 = x_42; +goto block_38; +} +else +{ +uint8_t x_43; +x_43 = 0; +x_21 = x_43; +goto block_38; +} +} +else +{ +uint8_t x_44; +x_44 = 0; +x_21 = x_44; +goto block_38; +} +block_38: +{ +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_6, 2); +x_23 = lean_nat_add(x_8, x_22); lean_dec(x_8); -if (x_9 == 0) -{ -lean_dec(x_6); -return x_7; -} -else -{ -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_array_fget(x_5, x_6); -x_11 = lean_nat_dec_eq(x_3, x_6); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_6, x_12); -if (x_11 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_1, 3); -x_15 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_14, x_6); -lean_dec(x_6); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_array_push(x_7, x_10); -x_6 = x_13; -x_7 = x_16; +x_7 = x_20; +x_8 = x_23; goto _start; } else { -lean_dec(x_10); -x_6 = x_13; -goto _start; -} -} -else -{ -lean_dec(x_10); -lean_dec(x_6); -x_6 = x_13; -goto _start; -} -} -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_array_get_size(x_1); -lean_inc(x_1); -x_12 = l_Array_extract___rarg(x_1, x_2, x_11); -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Array_empty___closed__1; -x_15 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(x_3, x_1, x_4, x_12, x_12, x_13, x_14); -lean_dec(x_12); -lean_dec(x_1); -x_16 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_15, x_15, x_13, x_5); -lean_dec(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_10); -return x_17; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l_Lean_Expr_Inhabited; -x_15 = lean_array_get(x_14, x_1, x_2); -x_16 = lean_ctor_get(x_4, 6); -x_17 = lean_array_get_size(x_16); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = l_Lean_Expr_Inhabited; +x_26 = lean_array_get(x_25, x_5, x_8); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -x_18 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_17, x_15, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_27 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop(x_1, x_2, x_3, x_26, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_7); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(x_1, x_3, x_4, x_5, x_19, x_9, x_10, x_11, x_12, x_20); +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_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_array_push(x_9, x_28); +x_31 = lean_ctor_get(x_6, 2); +x_32 = lean_nat_add(x_8, x_31); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_32; +x_9 = x_30; +x_14 = x_29; +goto _start; +} +else +{ +uint8_t x_34; +lean_dec(x_20); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -return x_21; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +return x_27; } 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; uint8_t x_29; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_27); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +} +else +{ +lean_object* x_45; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_9); +lean_ctor_set(x_45, 1, x_14); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_9); +lean_ctor_set(x_46, 1, x_14); +return x_46; +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_array_get_size(x_1); +x_14 = l_Array_extract___rarg(x_1, x_2, x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_unsigned_to_nat(1u); +lean_inc(x_15); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_15); +lean_ctor_set(x_18, 2, x_17); +x_19 = l_Array_empty___closed__1; +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(x_3, x_4, x_5, x_6, x_14, x_18, x_15, x_16, x_19, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_18); +lean_dec(x_14); +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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_22, x_22, x_16, x_7); +lean_dec(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 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_24, x_24, x_16, x_7); +lean_dec(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_7); +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; +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = l_Lean_Expr_Inhabited; +x_16 = lean_array_get(x_15, x_1, x_2); +x_17 = lean_ctor_get(x_5, 6); +lean_inc(x_17); +x_18 = lean_array_get_size(x_17); +lean_dec(x_17); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_6); +x_19 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(x_6, x_18, x_16, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_8); +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 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_20, x_10, x_11, x_12, x_13, x_21); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = l_Lean_indentExpr(x_7); -x_24 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_27, x_9, x_10, x_11, x_12, x_22); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = l_Lean_indentExpr(x_8); +x_25 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(x_28, x_10, x_11, x_12, x_13, x_23); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -return x_28; +return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_28); -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_29); +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; } } } @@ -9982,7 +10478,6 @@ 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_5); -lean_dec(x_1); x_43 = lean_ctor_get(x_2, 0); lean_inc(x_43); x_44 = lean_array_get_size(x_43); @@ -9997,9 +10492,8 @@ if (x_48 == 0) { lean_object* x_49; lean_object* x_50; x_49 = lean_box(0); -x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(x_6, x_46, x_44, x_2, x_45, x_3, x_4, x_49, x_8, x_9, x_10, x_11, x_12); +x_50 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(x_6, x_46, x_44, x_1, x_2, x_3, x_45, x_4, x_49, x_8, x_9, x_10, x_11, x_12); lean_dec(x_45); -lean_dec(x_2); lean_dec(x_46); return x_50; } @@ -10012,6 +10506,7 @@ lean_dec(x_44); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_51 = l_Lean_indentExpr(x_4); x_52 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; x_53 = lean_alloc_ctor(10, 2, 0); @@ -11030,82 +11525,74 @@ return x_190; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; +lean_object* x_10; +x_10 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_11; -x_11 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_object* x_15; +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -return x_14; +return x_15; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_object* x_13; +x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -return x_11; +return x_13; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_14; -x_14 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); +lean_object* x_15; +x_15 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_2); +return x_15; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +return x_15; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_6); +return x_13; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_2); -return x_14; +return x_15; } } lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -11118,43 +11605,35 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_object* x_15; +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); +return x_15; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_6); +return x_13; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_2); -return x_14; +return x_15; } } lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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) { @@ -11175,14 +11654,6 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} lean_object* l_Array_filterAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -13185,7 +13656,7 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3364_(lean_object* x_1) { +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3429_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -13393,7 +13864,7 @@ l_Lean_Elab_structuralRecursion___closed__2 = _init_l_Lean_Elab_structuralRecurs lean_mark_persistent(l_Lean_Elab_structuralRecursion___closed__2); l_Lean_Elab_structuralRecursion___closed__3 = _init_l_Lean_Elab_structuralRecursion___closed__3(); lean_mark_persistent(l_Lean_Elab_structuralRecursion___closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3364_(lean_io_mk_world()); +res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3429_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 4a227e9b01..09cb8ac4d6 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -62,7 +62,6 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___ lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__2; lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureTypeOf_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Elab_Term_monadLog___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -193,6 +192,7 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; lean_object* l_Lean_Elab_Term_withDeclName(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabCDot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; extern lean_object* l_Lean_Elab_throwAbort___rarg___closed__1; extern lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -335,7 +335,6 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext_ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabHole(lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_observing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -494,6 +493,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureExpectedType_match__1(lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors___closed__3; +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_Term___instance__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forM___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___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*); @@ -722,7 +722,6 @@ extern lean_object* l_Lean_Elab_postponeExceptionId; lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg(lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f_match__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__2; @@ -912,6 +911,7 @@ lean_object* l_Lean_Elab_Term_getLetRecsToLift___boxed(lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(lean_object*); +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_Lean_Elab_Term___instance__6(lean_object*); @@ -1259,7 +1259,7 @@ static lean_object* _init_l_Lean_Elab_Term_State_messages___default() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArray_empty___closed__3; +x_1 = l_Std_PersistentArray_empty___closed__1; return x_1; } } @@ -1276,7 +1276,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; x_3 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -1340,7 +1340,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; x_3 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -1687,7 +1687,7 @@ lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object* x_1, lean_object* x_2 _start: { lean_object* x_8; lean_object* x_9; -x_8 = l_Std_PersistentArray_empty___closed__3; +x_8 = l_Std_PersistentArray_empty___closed__1; x_9 = l_Lean_Elab_Term_setMessageLog(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_9; } @@ -33613,7 +33613,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_2, x_3); lean_inc(x_1); -x_10 = l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_9, x_4); +x_10 = l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_9, x_4); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -33719,7 +33719,7 @@ return x_18; } } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -33811,7 +33811,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_6 = l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_4, x_3); +x_6 = l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_4, x_3); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -34270,11 +34270,11 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_forMAux___main___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_Lean_Elab_Term___instance__6___spec__3(x_1, x_2, x_3); lean_dec(x_2); return x_4; } diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index c8860be703..7f8578f2d9 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -31,6 +31,7 @@ lean_object* l_Lean_monadEnvFromLift___rarg___lambda__1(lean_object*, lean_objec lean_object* l_Lean_SimplePersistentEnvExtension_setState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_numBuckets___at_Lean_Environment_displayStats___spec__5(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__5___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Environment_10__setImportedEntries___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); @@ -438,7 +439,6 @@ lean_object* l_Lean_EnvExtensionState_inhabited; lean_object* l_Lean_EnvExtensionInterfaceImp___elambda__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterface_inhabited___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Environment_10__setImportedEntries___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_mkModuleData___spec__2(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Environment_addAux___spec__5(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4931,7 +4931,7 @@ lean_object* l_Lean_mkStateFromImportedEntries___rarg___lambda__1(lean_object* x _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed), 4, 1); lean_closure_set(x_5, 0, x_1); x_6 = l_Id_Monad; x_7 = lean_unsigned_to_nat(0u); diff --git a/stage0/stdlib/Lean/LocalContext.c b/stage0/stdlib/Lean/LocalContext.c index 7feacc8c37..bda7af9eaa 100644 --- a/stage0/stdlib/Lean/LocalContext.c +++ b/stage0/stdlib/Lean/LocalContext.c @@ -42,10 +42,11 @@ lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_fin lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__2(lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_LocalContext_isSubPrefixOfAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3(lean_object*); lean_object* l_Lean_LocalDecl_isAuxDecl___boxed(lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_isEmpty___at_Lean_LocalContext_isEmpty___spec__1(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,18 +65,15 @@ lean_object* l_Lean_LocalDecl_value___closed__3; lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__2(lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_Inhabited; lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findFromUserName_x3f___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_getSanitizeNames(lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkLambda___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__8(lean_object*); @@ -83,6 +81,7 @@ lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___s lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_LocalContext_any___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_sanitizeName(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -99,28 +98,29 @@ uint8_t l_Lean_LocalContext_isSubPrefixOfAux(lean_object*, lean_object*, lean_ob lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar_x3f(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5(lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2(lean_object*); lean_object* lean_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__9(lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_eraseAux___main___at_Lean_LocalContext_erase___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_getFVarIds___spec__1(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__2___rarg(lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_any___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_Inhabited___closed__1; +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_updateBinderInfo___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -161,7 +161,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__5__ lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__5(lean_object*); lean_object* l_Lean_LocalContext_forM(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__4(lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___main___rarg___closed__3; lean_object* l_Lean_LocalContext_findDecl_x3f(lean_object*); @@ -172,16 +172,15 @@ lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_foldl___spec__2 lean_object* l_Lean_LocalContext_all___boxed(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3(lean_object*); lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_foldl___spec__1(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__5___rarg(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_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_any___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4(lean_object*); uint8_t lean_local_decl_binder_info(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__5___rarg(lean_object*, lean_object*, lean_object*); @@ -199,6 +198,7 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_LocalContext_any___spec__4(lean_ob lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4___rarg___lambda__1(lean_object*, uint8_t); lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1(lean_object*); size_t l_Lean_Name_hash(lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1(lean_object*); lean_object* l_Lean_LocalContext_foldlFrom___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -207,21 +207,20 @@ uint8_t l_Std_PersistentArray_anyM___at_Lean_LocalContext_any___spec__1(lean_obj uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_LocalDecl_value___boxed(lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__2___rarg___boxed(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__1(lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkLambda___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2(lean_object*); lean_object* l_Lean_LocalContext_mkLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_local_ctx_rename_user_name(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVar_x21(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFrom(lean_object*); @@ -231,15 +230,14 @@ size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_Lean_LocalDecl_Inhabited; lean_object* l_Std_PersistentHashMap_erase___at_Lean_LocalContext_erase___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value___closed__1; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_foldl___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object*, size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__6(lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_pop(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_getFVarIds___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_isSubPrefixOfAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -252,22 +250,23 @@ size_t l_USize_mul(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_getFVarIds___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr___boxed(lean_object*); uint8_t l_Lean_LocalContext_all(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar_x3f___boxed(lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_LocalContext_1__popTailNoneAux(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__5(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__1(lean_object*); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_LocalContext_updateBinderInfo(lean_object*, lean_object*, uint8_t); lean_object* l_Std_PersistentArray_get_x21___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVarId(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1(lean_object*); size_t l_USize_land(size_t, size_t); @@ -286,7 +285,6 @@ lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_LocalContext_find_ lean_object* l_Lean_LocalContext_foldlFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_hasMacroScopes___main(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_getFVarIds___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__5(lean_object*); lean_object* l_Lean_LocalContext_findDecl_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlM(lean_object*); @@ -300,27 +298,28 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4__ lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDecl_x3f___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__1(lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_LocalContext_mkLocalDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldl(lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId___boxed(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); lean_object* l_Lean_mkLocalDeclEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_all___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_get(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_isEmpty___boxed(lean_object*); lean_object* l_Std_PersistentArray_pop___rarg(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_foldl___spec__2(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2(lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findFromUserName_x3f___spec__1(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_LocalContext_2__getUnusedNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_all___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21___closed__2; @@ -338,23 +337,22 @@ lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkForall___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldl___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_LocalContext_find_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_any(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4(lean_object*); lean_object* l_Lean_LocalContext_get_x21___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Std_PersistentHashMap_eraseAux___main___at_Lean_LocalContext_erase___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_getFVarIds___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__6(lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2(lean_object*); lean_object* l_Lean_LocalContext_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_all___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVar_x21___boxed(lean_object*, lean_object*); @@ -363,15 +361,19 @@ lean_object* l___private_Lean_LocalContext_1__popTailNoneAux___main(lean_object* lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__7(lean_object*); lean_object* l_Lean_LocalContext_getFVars___boxed(lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3(lean_object*); lean_object* l_Lean_LocalContext_foldl___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_foldl___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_LocalContext_all___spec__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__3(lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_isSubPrefixOf___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setUserName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_mkBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__6(lean_object*); @@ -383,20 +385,18 @@ lean_object* l_Lean_LocalContext_foldlFromM___rarg(lean_object*, lean_object*, l lean_object* l_Nat_foldRevMAux___main___at_Lean_LocalContext_sanitizeNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_allM(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_anyM(lean_object*); lean_object* l_Lean_LocalContext_mkForall(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_binderInfoEx___boxed(lean_object*); lean_object* lean_usize_to_nat(size_t); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_updateBinderInfo(lean_object*, uint8_t); lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_contains___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_isSubPrefixOf(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4(lean_object*); uint8_t l_Lean_LocalContext_isSubPrefixOfAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_LocalContext_find_x3f___spec__1___boxed(lean_object*, lean_object*); @@ -404,7 +404,6 @@ lean_object* l_Lean_LocalContext_mkLetDecl___boxed(lean_object*, lean_object*, l lean_object* l_Lean_LocalContext_containsFVar___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_sanitizeNames(lean_object*, lean_object*); lean_object* l_Lean_monadLCtxTrans___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__4(lean_object*); lean_object* l_Lean_LocalContext_mkForall___boxed(lean_object*, lean_object*, lean_object*); @@ -415,6 +414,7 @@ lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_o uint8_t l_Lean_LocalDecl_isLet(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__2(lean_object*); +extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; lean_object* l_Lean_LocalDecl_setIndex(lean_object*, lean_object*); lean_object* lean_mk_local_decl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { _start: @@ -1109,7 +1109,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_LocalContext_Inhabited___closed__1; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___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); @@ -2324,7 +2324,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -2375,7 +2375,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2441,7 +2441,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Lean_LocalContext_getFVarIds___spec__5(x_1, x_5, x_6, x_4); @@ -2478,11 +2478,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_getFVarIds___spec__2(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_getFVarIds___spec__2(x_1, x_2); lean_dec(x_1); return x_3; } @@ -2569,7 +2569,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2580,7 +2580,7 @@ lean_inc(x_4); lean_dec(x_1); x_5 = x_2 >> x_3; x_6 = lean_usize_to_nat(x_5); -x_7 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_7 = l_Std_PersistentArray_getAux___rarg___closed__1; x_8 = lean_array_get(x_7, x_4, x_6); lean_dec(x_6); lean_dec(x_4); @@ -2627,7 +2627,7 @@ lean_inc(x_6); x_7 = lean_usize_of_nat(x_2); x_8 = lean_ctor_get_usize(x_1, 4); lean_dec(x_1); -x_9 = l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(x_6, x_7, x_8); +x_9 = l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(x_6, x_7, x_8); return x_9; } else @@ -2682,7 +2682,7 @@ return x_1; } } } -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___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; @@ -2690,7 +2690,7 @@ x_4 = lean_unbox_usize(x_2); lean_dec(x_2); x_5 = lean_unbox_usize(x_3); lean_dec(x_3); -x_6 = l_Std_PersistentArray_getAux___main___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(x_1, x_4, x_5); +x_6 = l_Std_PersistentArray_getAux___at___private_Lean_LocalContext_1__popTailNoneAux___main___spec__2(x_1, x_4, x_5); return x_6; } } @@ -3624,7 +3624,7 @@ x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_sub(x_3, x_8); lean_dec(x_3); x_10 = lean_array_fget(x_2, x_9); -x_11 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_10); +x_11 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_10); lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { @@ -3691,7 +3691,7 @@ return x_10; } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3723,13 +3723,28 @@ if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_2, 0); -x_7 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_6); +x_7 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_6); return x_7; } else { +uint8_t x_8; +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ return x_5; } +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} } } lean_object* lean_local_ctx_find_from_user_name(lean_object* x_1, lean_object* x_2) { @@ -3775,11 +3790,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_2); +x_3 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findFromUserName_x3f___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -4494,7 +4509,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -4561,7 +4576,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_LocalConte return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4582,11 +4597,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg___boxed), 3, 0); return x_2; } } @@ -4644,7 +4659,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_5 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_4, x_3); +x_5 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_4, x_3); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__6___rarg(x_1, x_2, x_6, x_7, x_5); @@ -4712,11 +4727,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__3___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -4778,7 +4793,7 @@ else lean_object* x_7; lean_object* x_8; x_7 = lean_array_fget(x_2, x_3); lean_inc(x_1); -x_8 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_7); +x_8 = l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_7); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -4869,7 +4884,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_findSomeMAux___main___at_Lean_LocalCont return x_2; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4890,11 +4905,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed), 2, 0); return x_2; } } @@ -4967,7 +4982,7 @@ _start: lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_3); +x_4 = l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_3); if (lean_obj_tag(x_4) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; @@ -4978,9 +4993,24 @@ return x_7; } else { +uint8_t x_8; lean_dec(x_1); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ return x_4; } +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} } } lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__2(lean_object* x_1) { @@ -5042,11 +5072,11 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(x_1, x_2); lean_dec(x_2); return x_3; } @@ -5168,7 +5198,7 @@ x_9 = lean_nat_sub(x_3, x_8); lean_dec(x_3); x_10 = lean_array_fget(x_2, x_9); lean_inc(x_1); -x_11 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_10); +x_11 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_10); lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { @@ -5252,7 +5282,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_findSomeRevMAux___main___at_Lean_LocalC return x_2; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5273,11 +5303,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4(lean_object* x_1) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed), 2, 0); return x_2; } } @@ -5293,14 +5323,29 @@ if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_2, 0); -x_7 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_6); +x_7 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_6); return x_7; } else { +uint8_t x_8; lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ return x_5; } +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} } } lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findDeclRev_x3f___spec__2(lean_object* x_1) { @@ -5371,11 +5416,11 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(x_1, x_2); lean_dec(x_2); return x_3; } @@ -5425,7 +5470,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -5480,7 +5525,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_LocalConte return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5501,11 +5546,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed), 3, 0); return x_2; } } @@ -5527,7 +5572,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -5582,7 +5627,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_LocalConte return x_2; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5591,7 +5636,7 @@ lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x x_6 = lean_ctor_get(x_2, 0); x_7 = x_3 >> x_4; x_8 = lean_usize_to_nat(x_7); -x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_9 = l_Std_PersistentArray_getAux___rarg___closed__1; x_10 = lean_array_get(x_9, x_6, x_8); x_11 = 1; x_12 = x_11 << x_4; @@ -5600,7 +5645,7 @@ x_14 = x_3 & x_13; x_15 = 5; x_16 = x_4 - x_15; lean_inc(x_1); -x_17 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_1, x_10, x_14, x_16, x_5); +x_17 = l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_1, x_10, x_14, x_16, x_5); lean_dec(x_10); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_8, x_18); @@ -5618,11 +5663,11 @@ return x_23; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg___boxed), 5, 0); return x_2; } } @@ -5711,7 +5756,7 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_2, x_7, x_8, x_9, x_3); x_11 = lean_ctor_get(x_1, 1); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__9___rarg(x_1, x_2, x_11, x_12, x_10); @@ -5809,11 +5854,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldlFrom___spec__4___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -5838,7 +5883,7 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___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* l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___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: { size_t x_6; size_t x_7; lean_object* x_8; @@ -5846,7 +5891,7 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Std_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldlFrom___spec__3___rarg(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } @@ -6597,7 +6642,7 @@ lean_inc(x_13); x_14 = lean_array_fget(x_4, x_6); lean_inc(x_2); lean_inc(x_1); -x_15 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg(x_1, x_2, x_14); +x_15 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2___rarg(x_1, x_2, x_14); x_16 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__3___rarg___lambda__1___boxed), 7, 6); lean_closure_set(x_16, 0, x_6); lean_closure_set(x_16, 1, x_1); @@ -6725,7 +6770,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Lean_LocalCont return x_2; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -6754,11 +6799,11 @@ return x_11; } } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2___rarg), 3, 0); return x_2; } } @@ -6909,7 +6954,7 @@ x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_inc(x_2); lean_inc(x_1); -x_6 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg(x_1, x_2, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2___rarg(x_1, x_2, x_5); x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1___rarg___lambda__1___boxed), 4, 3); lean_closure_set(x_7, 0, x_3); lean_closure_set(x_7, 1, x_1); @@ -7053,7 +7098,7 @@ x_15 = lean_array_fget(x_5, x_7); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_16 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2___rarg(x_1, x_2, x_3, x_15); +x_16 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg(x_1, x_2, x_3, x_15); x_17 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__3___rarg___lambda__1___boxed), 8, 7); lean_closure_set(x_17, 0, x_7); lean_closure_set(x_17, 1, x_1); @@ -7224,7 +7269,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Lean_LocalCont return x_2; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -7253,11 +7298,11 @@ return x_12; } } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg), 4, 0); return x_2; } } @@ -7419,7 +7464,7 @@ lean_inc(x_6); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_7 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_allM___spec__2___rarg(x_1, x_2, x_3, x_6); +x_7 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg(x_1, x_2, x_3, x_6); x_8 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1___rarg___lambda__1___boxed), 5, 4); lean_closure_set(x_8, 0, x_4); lean_closure_set(x_8, 1, x_1); @@ -7534,7 +7579,7 @@ else lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); lean_inc(x_1); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -7609,7 +7654,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7695,7 +7740,7 @@ _start: lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -7746,11 +7791,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec__2(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_any___spec__2(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; @@ -7806,7 +7851,7 @@ else lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); lean_inc(x_1); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -7883,7 +7928,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7971,7 +8016,7 @@ _start: lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -8033,11 +8078,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_LocalContext_all___spec__2(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index 0e0d613bd1..56cc7e479b 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -21,7 +21,7 @@ lean_object* l_Lean_Lean_Message___instance__1(lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__51; lean_object* l_Lean_addMessageContextPartial___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__19; @@ -46,7 +46,6 @@ lean_object* l_Lean_MessageData_hasCoeOfName(lean_object*); lean_object* l_Lean_MessageLog_hasErrors___boxed(lean_object*); lean_object* l_Lean_Lean_Message___instance__9(lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____lambda__1___closed__7; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MessageLog_hasErrors___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__24; lean_object* l_Lean_MessageData_sbracket(lean_object*); @@ -63,6 +62,7 @@ lean_object* l_Lean_MessageData_coeOfLevel(lean_object*); lean_object* l_Lean_Lean_Message___instance__9___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_hasCoeOfList; +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; lean_object* l_Lean_MessageData_hasCoeOfExpr(lean_object*); @@ -105,6 +105,7 @@ extern lean_object* l_Lean_Format_sbracket___closed__2; lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__3; lean_object* lean_message_string(lean_object*); lean_object* l_Lean_MessageData_coeOfList; +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2(lean_object*, lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); extern lean_object* l_EStateM_Result_toString___rarg___closed__2; extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; @@ -119,8 +120,7 @@ lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__46; lean_object* l_Lean_Lean_Message___instance__5; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Option_format___rarg___closed__1; lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); lean_object* l_Lean_MessageData_coeOfName(lean_object*); @@ -128,7 +128,6 @@ lean_object* l_Lean_MessageData_coeOfOptExpr(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; lean_object* l_Lean_MessageData_hasCoeOfList___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__2(lean_object*); lean_object* l_Lean_Lean_Message___instance__6(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageData_formatAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_Inhabited; @@ -144,7 +143,7 @@ lean_object* l_Lean_MessageLog_errorsToWarnings(lean_object*); extern lean_object* l_stdNext___closed__1; lean_object* l_Lean_KernelException_toMessageData___closed__25; lean_object* l_Lean_MessageData_mkPPContext___boxed(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__30; lean_object* l_Lean_Message_Inhabited; lean_object* l_Lean_MessageLog_HasAppend; @@ -163,7 +162,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; lean_object* l_Lean_KernelException_toMessageData___closed__14; lean_object* l_Lean_KernelException_toMessageData___closed__28; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageData_formatAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Message_toString___closed__1; lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); @@ -171,9 +169,7 @@ lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____lambda__1___closed_ lean_object* l_Lean_Message_toString___closed__2; lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__10; lean_object* l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1___boxed(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2___boxed(lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__7; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2___boxed(lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_addMessageContextTrans___rarg(lean_object*, lean_object*, lean_object*); @@ -184,10 +180,12 @@ lean_object* l_Lean_MessageData_hasCoeOfArrayExpr___closed__1; lean_object* l_Lean_ppExpr(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_formatAux___main___closed__1; lean_object* l_Lean_KernelException_toMessageData___closed__15; +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_isEmpty___rarg(lean_object*); lean_object* l_Lean_addMessageContextPartial___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__42; lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_toList___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_getInfoMessages___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList___closed__2; @@ -195,7 +193,7 @@ lean_object* l_Lean_KernelException_toMessageData___closed__27; lean_object* l_Lean_MessageData_hasCoeOfArrayExpr___closed__2; lean_object* l_Lean_MessageData_ofList___boxed(lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__3; -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__40; lean_object* l_Lean_MessageData_arrayExpr_toMessageData(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull(lean_object*); @@ -234,7 +232,6 @@ lean_object* l_Lean_MessageLog_empty; lean_object* l_Lean_KernelException_toMessageData___closed__4; lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__4; -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_MessageData_nestD(lean_object*); lean_object* l_Lean_Lean_Message___instance__8; lean_object* l_Lean_KernelException_toMessageData___closed__17; @@ -247,6 +244,7 @@ extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; extern lean_object* l_Lean_Format_sbracket___closed__4; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_MessageData_coeOfString___lambda__1(lean_object*); +lean_object* l_Lean_MessageLog_getInfoMessages___lambda__1___boxed(lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__6; lean_object* l_Lean_MessageLog_getInfoMessages(lean_object*); lean_object* l_Std_PersistentArray_forM___rarg(lean_object*, lean_object*, lean_object*); @@ -261,15 +259,16 @@ lean_object* l_Lean_MessageData_joinSep___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__31; lean_object* l_Lean_KernelException_toMessageData___closed__35; +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__41; lean_object* l_Lean_ppTerm(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextTrans(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__23; lean_object* l_Lean_Lean_Message___instance__10(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MessageLog_hasErrors___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__48; @@ -285,7 +284,9 @@ extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; lean_object* l_Lean_MessageLog_forM(lean_object*); lean_object* l_Lean_MessageData_coeOfListExpr(lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___at_Lean_MessageLog_errorsToWarnings___spec__2(lean_object*); uint8_t l_Lean_MessageLog_hasErrors(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2___boxed(lean_object*); lean_object* lean_string_length(lean_object*); lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____lambda__1___closed__6; @@ -295,6 +296,7 @@ lean_object* l_Lean_MessageData_coeOfOptExpr___boxed(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_Inhabited___closed__1; lean_object* l_Lean_addMessageContextFull___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(lean_object*); lean_object* l_Lean_MessageData_coeOfString___closed__1; lean_object* l_Lean_Lean_Message___instance__4(lean_object*); @@ -320,9 +322,10 @@ lean_object* l_Lean_Message_getSeverityEx___boxed(lean_object*); lean_object* l_Lean_MessageLog_append___boxed(lean_object*, lean_object*); lean_object* l_Lean_Message_toString(lean_object*, lean_object*); lean_object* l_Lean_MessageData_formatAux(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18; lean_object* l_Lean_MessageData_hasCoeOfSyntax(lean_object*); +uint8_t l_Lean_MessageLog_getInfoMessages___lambda__1(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__9; extern lean_object* l_Lean_mkAppStx___closed__2; @@ -340,6 +343,7 @@ lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__8; lean_object* lean_nat_to_int(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MessageData_formatAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_toList___spec__1(lean_object*, lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_mkErrorStringWithPos(lean_object*, lean_object*, lean_object*, lean_object*); @@ -355,7 +359,6 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_stringToMessageData___spec__3(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MessageLog_hasErrors___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2(lean_object*); lean_object* l_Lean_MessageLog_getInfoMessages___boxed(lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125_; lean_object* l_Lean_KernelException_toMessageData___closed__39; @@ -2950,7 +2953,7 @@ static lean_object* _init_l_Lean_MessageLog_empty() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArray_empty___closed__3; +x_1 = l_Std_PersistentArray_empty___closed__1; return x_1; } } @@ -2976,7 +2979,7 @@ static lean_object* _init_l_Lean_MessageLog_Inhabited() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArray_empty___closed__3; +x_1 = l_Std_PersistentArray_empty___closed__1; return x_1; } } @@ -3037,7 +3040,7 @@ else { lean_object* x_7; uint8_t x_8; x_7 = lean_array_fget(x_2, x_4); -x_8 = l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2(x_7); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(x_7); lean_dec(x_7); if (x_8 == 0) { @@ -3095,7 +3098,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2(lean_object* x_1) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3164,7 +3167,7 @@ _start: { lean_object* x_2; uint8_t x_3; x_2 = lean_ctor_get(x_1, 0); -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2(x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(x_2); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -3213,11 +3216,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2___boxed(lean_object* x_1) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l_Std_PersistentArray_anyMAux___main___at_Lean_MessageLog_hasErrors___spec__2(x_1); +x_2 = l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; @@ -3276,7 +3279,7 @@ x_6 = lean_array_fget(x_2, x_1); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_fset(x_2, x_1, x_7); x_9 = x_6; -x_10 = l_Std_PersistentArray_mapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__2(x_9); +x_10 = l_Std_PersistentArray_mapMAux___at_Lean_MessageLog_errorsToWarnings___spec__2(x_9); x_11 = lean_unsigned_to_nat(1u); x_12 = lean_nat_add(x_1, x_11); x_13 = x_10; @@ -3388,7 +3391,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_mapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_mapMAux___at_Lean_MessageLog_errorsToWarnings___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3463,7 +3466,7 @@ if (x_2 == 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; lean_object* x_9; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); -x_5 = l_Std_PersistentArray_mapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__2(x_3); +x_5 = l_Std_PersistentArray_mapMAux___at_Lean_MessageLog_errorsToWarnings___spec__2(x_3); x_6 = x_4; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_umapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__4(x_7, x_6); @@ -3485,7 +3488,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_15 = l_Std_PersistentArray_mapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__2(x_10); +x_15 = l_Std_PersistentArray_mapMAux___at_Lean_MessageLog_errorsToWarnings___spec__2(x_10); x_16 = x_11; x_17 = lean_unsigned_to_nat(0u); x_18 = l_Array_umapMAux___main___at_Lean_MessageLog_errorsToWarnings___spec__4(x_17, x_16); @@ -3508,198 +3511,243 @@ x_2 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1 return x_2; } } -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_2); -x_6 = lean_nat_dec_lt(x_3, x_5); -lean_dec(x_5); -if (x_6 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) { -lean_dec(x_3); -return x_4; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2(x_7, x_4); -lean_dec(x_7); -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_3, x_9); -lean_dec(x_3); -x_3 = x_10; -x_4 = x_8; -goto _start; -} -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_2); -x_6 = lean_nat_dec_lt(x_3, x_5); -lean_dec(x_5); -if (x_6 == 0) -{ -lean_dec(x_3); -return x_4; -} -else -{ -lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*5); -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_3, x_9); -lean_dec(x_3); -x_11 = lean_box(x_8); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; -x_12 = l_Std_PersistentArray_push___rarg(x_4, x_7); -x_3 = x_10; -x_4 = x_12; -goto _start; -} -else -{ -lean_dec(x_11); -lean_dec(x_7); -x_3 = x_10; -goto _start; -} -} -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(x_3, x_3, x_4, x_2); +lean_dec(x_4); return x_5; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_1, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2(x_1, x_8, x_5); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +x_5 = x_9; +goto _start; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___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_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +return x_5; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*5); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_12 = lean_box(x_9); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = l_Std_PersistentArray_push___rarg(x_5, x_8); +x_4 = x_11; +x_5 = x_13; +goto _start; +} +else +{ +lean_dec(x_12); +lean_dec(x_8); +x_4 = x_11; +goto _start; +} +} +} +} +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(x_1, x_4, x_4, x_5, x_3); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(x_1, x_7, x_7, x_8, x_3); +return x_9; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +return x_5; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*5); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_12 = lean_box(x_9); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = l_Std_PersistentArray_push___rarg(x_5, x_8); +x_4 = x_11; +x_5 = x_13; +goto _start; +} +else +{ +lean_dec(x_12); +lean_dec(x_8); +x_4 = x_11; +goto _start; +} +} +} +} +lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2(x_1, x_4, x_3); +x_6 = lean_ctor_get(x_2, 1); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(x_6, x_6, x_7, x_2); +x_8 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(x_1, x_2, x_6, x_7, x_5); return x_8; } } -} -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Lean_MessageLog_getInfoMessages___lambda__1(lean_object* x_1) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_2); -x_6 = lean_nat_dec_lt(x_3, x_5); -lean_dec(x_5); -if (x_6 == 0) +uint8_t x_2; lean_object* x_3; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_3 = lean_box(x_2); +if (lean_obj_tag(x_3) == 0) { -lean_dec(x_3); +uint8_t x_4; +x_4 = 1; return x_4; } else { -lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*5); -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_3, x_9); +uint8_t x_5; lean_dec(x_3); -x_11 = lean_box(x_8); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; -x_12 = l_Std_PersistentArray_push___rarg(x_4, x_7); -x_3 = x_10; -x_4 = x_12; -goto _start; -} -else -{ -lean_dec(x_11); -lean_dec(x_7); -x_3 = x_10; -goto _start; +x_5 = 0; +return x_5; } } } -} -lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_MessageLog_getInfoMessages___closed__1() { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2(x_3, x_2); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(x_1, x_5, x_6, x_4); -return x_7; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_MessageLog_getInfoMessages___lambda__1___boxed), 1, 0); +return x_1; } } lean_object* l_Lean_MessageLog_getInfoMessages(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_Std_PersistentArray_empty___closed__3; -x_3 = l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_1, x_2); -return x_3; +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_MessageLog_getInfoMessages___closed__1; +x_3 = l_Std_PersistentArray_empty___closed__1; +x_4 = l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_2, x_1, x_3); +return x_4; } } -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_6; } } -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___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_5; -x_5 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_getInfoMessages___spec__2(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(x_1, x_2, x_3, x_4); +lean_object* x_4; +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_4; } } -lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5___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_3; -x_3 = l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_1, x_2); +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_MessageLog_getInfoMessages___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Std_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_MessageLog_getInfoMessages___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_MessageLog_getInfoMessages___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); return x_3; } } @@ -3744,7 +3792,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -3783,7 +3831,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3837,7 +3885,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Lean_MessageLog_toList___spec__5(x_1, x_5, x_6, x_4); @@ -3874,11 +3922,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MessageLog_toList___spec__2(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Lean_MessageLog_toList___spec__2(x_1, x_2); lean_dec(x_1); return x_3; } @@ -5870,6 +5918,8 @@ l_Lean_MessageLog_HasAppend___closed__1 = _init_l_Lean_MessageLog_HasAppend___cl lean_mark_persistent(l_Lean_MessageLog_HasAppend___closed__1); l_Lean_MessageLog_HasAppend = _init_l_Lean_MessageLog_HasAppend(); lean_mark_persistent(l_Lean_MessageLog_HasAppend); +l_Lean_MessageLog_getInfoMessages___closed__1 = _init_l_Lean_MessageLog_getInfoMessages___closed__1(); +lean_mark_persistent(l_Lean_MessageLog_getInfoMessages___closed__1); l_Lean_KernelException_toMessageData___closed__1 = _init_l_Lean_KernelException_toMessageData___closed__1(); lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__1); l_Lean_KernelException_toMessageData___closed__2 = _init_l_Lean_KernelException_toMessageData___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index 72f2864559..3c9526e8d9 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -45,6 +45,7 @@ extern lean_object* l_Lean_Meta_DiscrTree_Key_inhabited; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_Trie_inhabited___closed__1; lean_object* l_Lean_Meta_addGlobalInstance___at_Lean_Meta_registerInstanceAttr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Meta_addInstanceEntry___spec__8(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2(lean_object*); @@ -143,7 +144,6 @@ lean_object* l_Lean_Meta_registerInstanceAttr___lambda__1___boxed(lean_object*, lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_addInstanceEntry___spec__14___boxed(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; extern lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1; uint8_t l_Lean_Syntax_hasArgs(lean_object*); lean_object* l_Lean_Environment_getGlobalInstances(lean_object*); @@ -2359,7 +2359,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_LocalContext_Inhabited___closed__1; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___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); diff --git a/stage0/stdlib/Lean/Meta/LevelDefEq.c b/stage0/stdlib/Lean/Meta/LevelDefEq.c index 80a1339c01..41a57a16ed 100644 --- a/stage0/stdlib/Lean/Meta/LevelDefEq.c +++ b/stage0/stdlib/Lean/Meta/LevelDefEq.c @@ -41,7 +41,7 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__6; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t l___private_Lean_Meta_LevelDefEq_3__strictOccursMaxAux(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Meta_isReadOnlyLevelMVar___at___private_Lean_Meta_LevelDefEq_1__decAux_x3f___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__3___closed__6; lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*); @@ -178,13 +178,11 @@ lean_object* l___private_Lean_Meta_LevelDefEq_12__processPostponedAux___main___r lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel_x3f___at_Lean_Meta_decLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_4__addNode___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_6__solveSelfMax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelSucc(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_14__restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_Meta_decLevel_x3f___at_Lean_Meta_isLevelDefEqAux___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_occurs___main(lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEq___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -206,6 +204,7 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Util_Trace_4__addNode__ lean_object* l___private_Lean_Meta_LevelDefEq_12__processPostponedAux___main___rarg___lambda__2___closed__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___at_Lean_Meta_getDecLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isListLevelDefEqAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEqAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +224,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_12__processPostponedAux___rarg(lea lean_object* l_Lean_Meta_isLevelDefEqAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_12__processPostponedAux___main___rarg___lambda__2___closed__2; +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_12__processPostponedAux___main___rarg___lambda__2___boxed(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_11__processPostponedStep___closed__3; lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -5119,7 +5119,7 @@ x_10 = lean_st_ref_take(x_1, x_9); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); -x_12 = l_Std_PersistentArray_empty___closed__3; +x_12 = l_Std_PersistentArray_empty___closed__1; x_13 = lean_st_ref_set(x_1, x_12, x_11); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) @@ -5180,7 +5180,7 @@ x_15 = lean_array_fget(x_2, x_3); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_3, x_16); lean_dec(x_3); -x_18 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_18 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_15); if (lean_obj_tag(x_18) == 0) { @@ -5307,7 +5307,7 @@ return x_30; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5417,7 +5417,7 @@ _start: { lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_1, 0); -x_10 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; @@ -5493,7 +5493,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_15 = lean_ctor_get(x_10, 0); lean_dec(x_15); -x_16 = l_Std_PersistentArray_empty___closed__3; +x_16 = l_Std_PersistentArray_empty___closed__1; lean_ctor_set(x_10, 0, x_16); x_17 = lean_st_ref_set(x_1, x_9, x_11); x_18 = !lean_is_exclusive(x_17); @@ -5522,7 +5522,7 @@ else 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; x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*1); lean_dec(x_10); -x_23 = l_Std_PersistentArray_empty___closed__3; +x_23 = l_Std_PersistentArray_empty___closed__1; x_24 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_24, 0, x_23); lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_22); @@ -5566,7 +5566,7 @@ if (lean_is_exclusive(x_10)) { lean_dec_ref(x_10); x_33 = lean_box(0); } -x_34 = l_Std_PersistentArray_empty___closed__3; +x_34 = l_Std_PersistentArray_empty___closed__1; if (lean_is_scalar(x_33)) { x_35 = lean_alloc_ctor(0, 1, 1); } else { @@ -6823,13 +6823,13 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Std_PersistentArray_foldlMAux___at___private_Lean_Meta_LevelDefEq_11__processPostponedStep___spec__2(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9206,7 +9206,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object* x_1, le _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = l_Std_PersistentArray_empty___closed__3; +x_7 = l_Std_PersistentArray_empty___closed__1; x_8 = lean_st_mk_ref(x_7, x_6); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); @@ -9581,7 +9581,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_15 = lean_ctor_get(x_10, 0); lean_dec(x_15); -x_16 = l_Std_PersistentArray_empty___closed__3; +x_16 = l_Std_PersistentArray_empty___closed__1; lean_ctor_set(x_10, 0, x_16); x_17 = lean_st_ref_set(x_1, x_9, x_11); x_18 = !lean_is_exclusive(x_17); @@ -9610,7 +9610,7 @@ else 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; x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*1); lean_dec(x_10); -x_23 = l_Std_PersistentArray_empty___closed__3; +x_23 = l_Std_PersistentArray_empty___closed__1; x_24 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_24, 0, x_23); lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_22); @@ -9654,7 +9654,7 @@ if (lean_is_exclusive(x_10)) { lean_dec_ref(x_10); x_33 = lean_box(0); } -x_34 = l_Std_PersistentArray_empty___closed__3; +x_34 = l_Std_PersistentArray_empty___closed__1; if (lean_is_scalar(x_33)) { x_35 = lean_alloc_ctor(0, 1, 1); } else { diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assert.c b/stage0/stdlib/Lean/Meta/Tactic/Assert.c index 55af080f6e..d57552502b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assert.c @@ -14,12 +14,14 @@ extern "C" { #endif lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5(lean_object*); lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_assertExt___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6(lean_object*); lean_object* l_Lean_Meta_assert___closed__2; lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9(lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -34,9 +36,11 @@ lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, le lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Meta_assertAfter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assert___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -56,7 +60,6 @@ lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3 extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,9 +75,9 @@ lean_object* l_Lean_Meta_assertAfter_match__2(lean_object*); lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_assert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_Lean_Meta_define___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -82,12 +85,10 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8___r lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Lean_Meta_assertAfter_match__1(lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,6 +108,7 @@ lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_assertExt___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*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1(lean_object*, lean_object*); @@ -130,7 +132,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___ lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_define___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; @@ -145,15 +146,14 @@ lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___box lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkBVar(lean_object*); lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8(lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; lean_object* l_Lean_Meta_assert___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: { @@ -890,7 +890,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -945,7 +945,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_asser return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -966,11 +966,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg___boxed), 3, 0); return x_2; } } @@ -992,7 +992,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -1047,7 +1047,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_asser return x_2; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1056,7 +1056,7 @@ lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x x_6 = lean_ctor_get(x_2, 0); x_7 = x_3 >> x_4; x_8 = lean_usize_to_nat(x_7); -x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_9 = l_Std_PersistentArray_getAux___rarg___closed__1; x_10 = lean_array_get(x_9, x_6, x_8); x_11 = 1; x_12 = x_11 << x_4; @@ -1065,7 +1065,7 @@ x_14 = x_3 & x_13; x_15 = 5; x_16 = x_4 - x_15; lean_inc(x_1); -x_17 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_10, x_14, x_16, x_5); +x_17 = l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_10, x_14, x_16, x_5); lean_dec(x_10); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_8, x_18); @@ -1083,11 +1083,11 @@ return x_23; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg___boxed), 5, 0); return x_2; } } @@ -1176,7 +1176,7 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg(x_2, x_7, x_8, x_9, x_3); x_11 = lean_ctor_get(x_1, 1); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg(x_1, x_2, x_11, x_12, x_10); @@ -2097,11 +2097,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -2126,7 +2126,7 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___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* l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___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; @@ -2134,7 +2134,7 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Std_PersistentArray_foldlFromMAux___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assumption.c b/stage0/stdlib/Lean/Meta/Tactic/Assumption.c index d8882670f5..b766aa57ce 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assumption.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assumption.c @@ -17,10 +17,10 @@ lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, le uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -28,7 +28,6 @@ lean_object* l_Lean_Meta_assumption___closed__1; lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___closed__2; lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -45,6 +44,7 @@ lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_assumption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1370,7 +1370,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_17 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_16, x_5, x_6, x_7, x_8, x_9); +x_17 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5(x_1, x_16, x_5, x_6, x_7, x_8, x_9); lean_dec(x_16); if (lean_obj_tag(x_17) == 0) { @@ -1748,7 +1748,7 @@ return x_58; } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1793,7 +1793,7 @@ x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); x_13 = lean_ctor_get(x_2, 0); -x_14 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_13, x_3, x_4, x_5, x_6, x_12); +x_14 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5(x_1, x_13, x_3, x_4, x_5, x_6, x_12); return x_14; } else @@ -1807,49 +1807,79 @@ lean_dec(x_1); x_15 = !lean_is_exclusive(x_10); if (x_15 == 0) { -lean_object* x_16; +lean_object* x_16; uint8_t x_17; x_16 = lean_ctor_get(x_10, 0); lean_dec(x_16); +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) +{ return x_10; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_10, 0, x_19); +return x_10; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); lean_dec(x_10); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_21 = lean_ctor_get(x_11, 0); +lean_inc(x_21); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + x_22 = x_11; +} else { + lean_dec_ref(x_11); + x_22 = lean_box(0); +} +if (lean_is_scalar(x_22)) { + x_23 = lean_alloc_ctor(1, 1, 0); +} else { + x_23 = x_22; +} +lean_ctor_set(x_23, 0, x_21); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +return x_24; } } } else { -uint8_t x_19; +uint8_t x_25; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 0) +x_25 = !lean_is_exclusive(x_10); +if (x_25 == 0) { return x_10; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_inc(x_20); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_10, 0); +x_27 = lean_ctor_get(x_10, 1); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_10); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_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; } } } @@ -2084,11 +2114,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_assumptionAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index ab7d4f7531..61cf59c7a9 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -62,7 +62,6 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Le lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7; -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -73,13 +72,13 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, l lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -89,6 +88,7 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux__ lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(lean_object*, lean_object*, lean_object*); @@ -122,7 +122,6 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContex lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__5; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(lean_object*, lean_object*, lean_object*); @@ -132,11 +131,11 @@ lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_casesOnSuffix; lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -151,9 +150,9 @@ lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0 lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6___rarg(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_6__visit_x3f(lean_object*, lean_object*); @@ -213,10 +212,12 @@ lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_M lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2; +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -237,6 +238,7 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loo lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__2(lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -248,7 +250,6 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Le lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__2; lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -262,6 +263,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Met lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5(lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_Context_nminors___default(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6___boxed(lean_object*, lean_object*, lean_object*); @@ -277,11 +279,11 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_m lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__4; lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); @@ -292,8 +294,8 @@ lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1(lean_object*); lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases_match__1(lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -317,10 +319,10 @@ lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0 lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices___lambda__1___closed__1; lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -338,7 +340,6 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndice lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); @@ -346,7 +347,6 @@ lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0 lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -360,7 +360,7 @@ lean_object* l_Lean_indentExpr(lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -368,15 +368,14 @@ uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_C lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23(lean_object*, lean_object*, lean_object*); @@ -387,6 +386,7 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Le uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_cases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1() { _start: @@ -3266,7 +3266,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -3341,7 +3341,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -3427,7 +3427,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -4365,7 +4365,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -4440,7 +4440,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -4526,7 +4526,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -5464,7 +5464,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -5539,7 +5539,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -5625,7 +5625,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -6563,7 +6563,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -6638,7 +6638,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6724,7 +6724,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -7662,7 +7662,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -7737,7 +7737,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -7823,7 +7823,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -8761,7 +8761,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -8836,7 +8836,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -8922,7 +8922,7 @@ _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -9862,7 +9862,7 @@ else lean_object* x_11; uint8_t x_12; x_11 = lean_array_fget(x_6, x_8); lean_inc(x_4); -x_12 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_11); +x_12 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_11); lean_dec(x_11); if (x_12 == 0) { @@ -10183,7 +10183,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_5) == 0) @@ -10515,7 +10515,7 @@ _start: lean_object* x_6; uint8_t x_7; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_4); -x_7 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_6); +x_7 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_6); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -10746,11 +10746,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10828,11 +10828,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10910,11 +10910,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10992,11 +10992,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -11074,11 +11074,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -11156,11 +11156,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___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 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -11238,11 +11238,11 @@ x_10 = lean_box(x_9); return x_10; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Std_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Clear.c b/stage0/stdlib/Lean/Meta/Tactic/Clear.c index 0cb7136a82..826dd58f83 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Clear.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Clear.c @@ -49,15 +49,14 @@ lean_object* l_Lean_Meta_clear___closed__2; lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_HasRepr___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); @@ -80,6 +79,7 @@ lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5(lean_object*, lean_object* l_Lean_Meta_clear_match__1(lean_object*); lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3; +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_clear_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -142,7 +142,7 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_17 = l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_16, x_7, x_8, x_9, x_10, x_11); +x_17 = l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_16, x_7, x_8, x_9, x_10, x_11); lean_dec(x_16); if (lean_obj_tag(x_17) == 0) { @@ -354,7 +354,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { if (lean_obj_tag(x_5) == 0) @@ -509,7 +509,7 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_13 = l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -1065,11 +1065,11 @@ lean_dec(x_5); return x_12; } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Std_PersistentArray_forMAux___at_Lean_Meta_clear___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index 1c0abff14e..81a8ee79f8 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -47,6 +47,7 @@ lean_object* l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(lean_object*, lean_ lean_object* l_Lean_Meta_substCore___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__2___boxed(lean_object**); lean_object* l_Lean_Meta_substCore___lambda__12___closed__1; +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_subst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -91,6 +92,7 @@ lean_object* l_Lean_Meta_subst_match__3___rarg(lean_object*, lean_object*, lean_ lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore_match__3(lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,7 +109,6 @@ lean_object* l_Lean_Meta_substCore___lambda__13___boxed(lean_object*, lean_objec lean_object* l_Lean_Meta_subst_match__3(lean_object*); lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__13___closed__1; -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__6___boxed(lean_object**); @@ -174,7 +175,6 @@ lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_Meta_subst___spec__2( extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Meta_substCore___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__13___closed__4; -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_Lean_Meta_substCore___lambda__13___closed__17; @@ -4335,7 +4335,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); -x_15 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3(x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9); lean_dec(x_14); if (lean_obj_tag(x_15) == 0) { @@ -4738,7 +4738,7 @@ return x_15; } } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5091,7 +5091,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; @@ -5119,49 +5119,79 @@ lean_dec(x_2); x_16 = !lean_is_exclusive(x_10); if (x_16 == 0) { -lean_object* x_17; +lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_10, 0); lean_dec(x_17); +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ return x_10; } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_10, 0, x_20); +return x_10; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); lean_dec(x_10); -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; +x_22 = lean_ctor_get(x_11, 0); +lean_inc(x_22); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + x_23 = x_11; +} else { + lean_dec_ref(x_11); + x_23 = lean_box(0); +} +if (lean_is_scalar(x_23)) { + x_24 = lean_alloc_ctor(1, 1, 0); +} else { + x_24 = x_23; +} +lean_ctor_set(x_24, 0, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; } } } else { -uint8_t x_20; +uint8_t x_26; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_20 = !lean_is_exclusive(x_10); -if (x_20 == 0) +x_26 = !lean_is_exclusive(x_10); +if (x_26 == 0) { return x_10; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_10, 0); -x_22 = lean_ctor_get(x_10, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_10, 0); +x_28 = lean_ctor_get(x_10, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_10); -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; +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; } } } @@ -5713,11 +5743,11 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___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: { lean_object* x_9; -x_9 = l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_1); return x_9; diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index 708bf737e8..1f11912180 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -31,6 +31,7 @@ lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toStri lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignLevel___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2; lean_object* l___private_Lean_MetavarContext_8__dep___main___lambda__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24___boxed(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findLevelDepth_x3f(lean_object*, lean_object*); @@ -40,13 +41,13 @@ uint8_t l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isLevelAssigne uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1; lean_object* l_Lean_LocalDecl_userName(lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9(lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_19__anyDependsOn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_21__elimMVarDepsAux___main(lean_object*, lean_object*, uint8_t, lean_object*); uint8_t l_Std_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isExprAssigned___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_mkParamName___main___boxed(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18___boxed(lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__26(lean_object*, lean_object*); @@ -54,6 +55,7 @@ lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lam extern lean_object* l_List_repr___rarg___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_MetavarContext_findUserName_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -66,7 +68,6 @@ lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object* extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* l_Std_PersistentHashMap_insert___at_Lean_MetavarContext_assignExprCore___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__2; -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_18__mkMVarApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarKind_isNatural(uint8_t); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -80,7 +81,7 @@ lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__14(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* lean_mk_metavar_ctx(lean_object*); uint8_t l_List_elem___main___at___private_Lean_MetavarContext_6__visit_x3f___spec__2(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_19__anyDependsOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findUserName_x3f___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_localDeclDependsOn___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,10 +109,10 @@ lean_object* l_Lean_LocalContext_foldlFromM___at___private_Lean_MetavarContext_1 uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Lean_MetavarContext_getDecl___closed__2; lean_object* l___private_Lean_MetavarContext_11__reduceLocalContext(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3(lean_object*, lean_object*); lean_object* l_Lean_monadMCtxTrans(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_mkBinding(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl___closed__1; -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_14__getInScope___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_MetavarContext_instantiateMVars___spec__1(lean_object*); @@ -128,7 +129,7 @@ lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__2; lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -139,7 +140,6 @@ lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, l lean_object* l_List_foldl___main___at___private_Lean_MetavarContext_6__visit_x3f___spec__6(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Std_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isExprAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_forM___at_Lean_MetavarContext_findUserName_x3f___spec__1(lean_object*, lean_object*); @@ -160,7 +160,6 @@ lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_M lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4; size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__32___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isAnonymousMVar___boxed(lean_object*, lean_object*); @@ -174,7 +173,6 @@ lean_object* l_Lean_MetavarContext_getExprAssignmentDomain(lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLCtxMVars___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43(lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_10__collectDeps___spec__35(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,6 +186,7 @@ lean_object* l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayed lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getLevelAssignment_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__12(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at___private_Lean_MetavarContext_6__visit_x3f___spec__3(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__31(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,9 +215,7 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDepen uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_exprDependsOn___spec__8(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at___private_Lean_MetavarContext_10__collectDeps___spec__41___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_getExprAssignmentDomain___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_HasRepr___rarg___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -256,7 +253,6 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDepen lean_object* l_Lean_MetavarContext_instantiateMVars___closed__1; lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1(lean_object*, uint8_t, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__38(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_isUnaryNode___rarg(lean_object*); lean_object* l_Lean_MetavarContext_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -270,6 +266,7 @@ lean_object* l___private_Lean_MetavarContext_12__visit___boxed(lean_object*, lea lean_object* l_Nat_forMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_6__visit_x3f(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___main(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3___boxed(lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___main___rarg___closed__3; lean_object* l_Std_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignDelayed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,15 +286,18 @@ lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_a lean_object* l_Array_filterAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_MetavarContext_21__elimMVarDepsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignedLevelMVar(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_visitLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isExprAssignable___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findDecl_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_20__elimMVarDepsApp(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36(lean_object*, lean_object*); lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_MetavarContext_10__collectDeps___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_9__getLocalDeclWithSmallestIdx(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_eraseAux___main___at_Lean_MetavarContext_eraseDelayed___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42(lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getLevelAssignment_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__20(lean_object*, lean_object*); @@ -305,14 +305,16 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__c lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_eraseAux___main___at_Lean_MetavarContext_eraseDelayed___spec__2(lean_object*, size_t, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* lean_metavar_ctx_assign_expr(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignExprCore___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_mkParamName(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_visitLevel___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object*, lean_object*, uint8_t, lean_object*); @@ -343,6 +345,7 @@ lean_object* l_Lean_MetavarContext_elimMVarDeps(lean_object*, lean_object*, uint lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_findUserName_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_13__getMCtx___boxed(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -353,16 +356,15 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_20__elimM size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3___boxed(lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_localDeclDependsOn___spec__31(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignableLevelMVar___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVar_x21(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_16__abstractRangeAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; @@ -377,7 +379,6 @@ uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_10__collec uint8_t l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayedAssigned___spec__1(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_10__collectDeps___spec__17(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__45___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalInstances_erase(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -387,7 +388,7 @@ lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object* lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_localDeclDependsOn___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateApp_x21___closed__1; lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,7 +401,6 @@ lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__ lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__32(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_10__collectDeps(lean_object*, lean_object*, lean_object*, uint8_t); size_t l_USize_mul(size_t, size_t); lean_object* l_Lean_LocalContext_foldlM___at_Lean_MetavarContext_instantiateLCtxMVars___spec__1___boxed(lean_object*, lean_object*); @@ -415,7 +415,6 @@ lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___clo lean_object* l_Std_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isDelayedAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__14(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_MetavarContext_getExprAssignmentDomain___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot(lean_object*, lean_object*); @@ -436,20 +435,21 @@ size_t l_USize_land(size_t, size_t); lean_object* l_Lean_monadMCtxTrans___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_23__visit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findLevelDepth_x3f___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at___private_Lean_MetavarContext_10__collectDeps___spec__40___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9___boxed(lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__2; lean_object* l___private_Lean_MetavarContext_8__dep___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_LocalInstance_beq___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_20__elimMVarDepsApp___main(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__3; +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_17__mkAuxMVarType(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_localDeclDependsOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLCtxMVars(lean_object*, lean_object*); @@ -457,10 +457,12 @@ lean_object* l___private_Lean_MetavarContext_9__getLocalDeclWithSmallestIdx___bo lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_MetavarContext_MkBinding_Exception_hasToString; +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findLevelDepth_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findDecl_x3f___spec__2(lean_object*, size_t, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15___boxed(lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedLevelMVar___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignableLevelMVar___main___boxed(lean_object*, lean_object*); @@ -498,7 +500,6 @@ lean_object* l___private_Lean_MetavarContext_20__elimMVarDepsApp___boxed(lean_ob lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Nat_forMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24(lean_object*, lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignableLevelMVar(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isExprAssigned___boxed(lean_object*, lean_object*); @@ -514,21 +515,19 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignLevel___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_incDepth(lean_object*); lean_object* l_Lean_MetavarContext_localDeclDependsOn___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_exprDependsOn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_15__withFreshCache___rarg(lean_object*, uint8_t, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot___main(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_renameMVar___closed__1; uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__32(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getLevelAssignment_x3f___spec__1___boxed(lean_object*, lean_object*); @@ -536,14 +535,12 @@ lean_object* l_ReaderT_bind___at_Lean_MetavarContext_MkBinding_Lean_MonadHashMap lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getDelayedAssignment_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18___boxed(lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___closed__2; uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalInstance_hasBeq___closed__1; lean_object* l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_10__collectDeps___spec__35___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalInstance_hasBeq; uint8_t l_Lean_MetavarContext_isLevelAssignable(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); @@ -553,6 +550,7 @@ lean_object* l_Std_PersistentHashMap_foldlMAux___main___at_Lean_MetavarContext_f uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_10__collectDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getDelayedAssignment_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24(lean_object*, lean_object*); lean_object* l_Std_AssocList_replace___at___private_Lean_MetavarContext_2__visit___spec__8(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLet_x21___closed__1; lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__44___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -564,15 +562,17 @@ lean_object* l_Std_PersistentHashMap_foldlMAux___main___at_Lean_MetavarContext_f lean_object* lean_level_update_succ(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_MetavarContext_10__collectDeps___spec__34(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_exprDependsOn___spec__8___boxed(lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at___private_Lean_MetavarContext_6__visit_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignLevel___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_MetavarContext_10__collectDeps___spec__28(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_localDeclDependsOn___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42(lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__44___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -585,23 +585,23 @@ lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, le extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43(lean_object*); lean_object* l_Lean_LocalInstances_erase___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_2__visit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFromM___at___private_Lean_MetavarContext_10__collectDeps___spec__40___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_anyAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__49(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__1; uint8_t l_Std_AssocList_contains___at___private_Lean_MetavarContext_2__visit___spec__4(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___main___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_findUserName_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at_Lean_LocalInstances_erase___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_findDecl_x3f___spec__1(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignLevel___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_12__visit(lean_object*, lean_object*, uint8_t, lean_object*); @@ -610,7 +610,6 @@ lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars(lean_object*, lean_o lean_object* lean_mk_metavar_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Std_PersistentHashMap_insert___at_Lean_MetavarContext_addLevelMVarDecl___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlM___at_Lean_MetavarContext_instantiateLCtxMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_preserveOrder___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -626,8 +625,8 @@ lean_object* l_Lean_MetavarContext_addExprMVarDecl___boxed(lean_object*, lean_ob uint8_t l_Lean_MetavarContext_isExprAssignable(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarContext_exprDependsOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedLevelMVar___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__49___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__8___boxed(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -660,6 +659,7 @@ lean_object* l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___ma lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignedLevelMVar___main(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__48___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -679,10 +679,8 @@ lean_object* l_Array_filterAux___main___at___private_Lean_MetavarContext_20__eli lean_object* l_Array_umapMAux___main___at___private_Lean_MetavarContext_20__elimMVarDepsApp___main___spec__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__47___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_getExprAssignmentDomain___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_13__getMCtx(uint8_t); lean_object* l___private_Lean_MetavarContext_14__getInScope(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findUserName_x3f(lean_object*, lean_object*); @@ -693,9 +691,9 @@ lean_object* l___private_Lean_MetavarContext_8__dep___main___at_Lean_MetavarCont uint8_t lean_metavar_ctx_is_level_assigned(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_19__anyDependsOn___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3___boxed(lean_object*, lean_object*); lean_object* l_List_elem___main___at___private_Lean_MetavarContext_6__visit_x3f___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_21__elimMVarDepsAux(lean_object*, lean_object*, uint8_t, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getExprAssignment_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_InstantiateExprMVars_main___main(lean_object*, lean_object*); @@ -720,8 +718,10 @@ lean_object* l_List_mapM___main___at_Lean_MetavarContext_LevelMVarToParam_main__ lean_object* l_Std_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignExprCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12___boxed(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at___private_Lean_MetavarContext_6__visit_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15(lean_object*, lean_object*); lean_object* l_Std_AssocList_foldlM___at___private_Lean_MetavarContext_2__visit___spec__7(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_exprDependsOn___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -729,13 +729,13 @@ lean_object* l_List_toStringAux___main___at_Lean_MetavarContext_MkBinding_Except lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_MetavarContext_6__visit_x3f___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21___boxed(lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_MetavarContext_10__collectDeps___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_20__elimMVarDepsApp___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignableMVar(lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__4; lean_object* l_Lean_MetavarContext_hasAssignedMVar(lean_object*, lean_object*); @@ -13700,7 +13700,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -13843,7 +13843,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -14001,7 +14001,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__6(x_1, x_5, x_6, x_4); @@ -14049,11 +14049,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__3(x_1, x_2); lean_dec(x_1); return x_3; } @@ -15934,7 +15934,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -16006,7 +16006,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16089,7 +16089,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -17011,7 +17011,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -17083,7 +17083,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17166,7 +17166,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -18139,11 +18139,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -18209,11 +18209,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__9(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -18278,7 +18278,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -18350,7 +18350,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -18433,7 +18433,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -19355,7 +19355,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -19427,7 +19427,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -19510,7 +19510,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -20432,7 +20432,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -20504,7 +20504,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -20587,7 +20587,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -21509,7 +21509,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -21581,7 +21581,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -21664,7 +21664,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -22586,7 +22586,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -22658,7 +22658,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -22741,7 +22741,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -23663,7 +23663,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -23735,7 +23735,7 @@ return x_14; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -23818,7 +23818,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -24906,11 +24906,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -24976,11 +24976,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__9(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -25046,11 +25046,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__15(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -25116,11 +25116,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -25186,11 +25186,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -25256,11 +25256,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__33(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -25964,7 +25964,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -26039,7 +26039,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -26125,7 +26125,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -27050,7 +27050,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -27125,7 +27125,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -27211,7 +27211,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -28136,7 +28136,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -28211,7 +28211,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -28297,7 +28297,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -29222,7 +29222,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -29297,7 +29297,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -29383,7 +29383,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -30308,7 +30308,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -30383,7 +30383,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -30469,7 +30469,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -31394,7 +31394,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -31469,7 +31469,7 @@ return x_16; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -31555,7 +31555,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -32485,7 +32485,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_10 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_9, x_5); +x_10 = l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -32599,7 +32599,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Lean_ return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32620,11 +32620,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed), 3, 0); return x_2; } } @@ -32649,7 +32649,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_10 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_9, x_5); +x_10 = l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -32763,7 +32763,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Lean_ return x_2; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32772,7 +32772,7 @@ lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x x_6 = lean_ctor_get(x_2, 0); x_7 = x_3 >> x_4; x_8 = lean_usize_to_nat(x_7); -x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_9 = l_Std_PersistentArray_getAux___rarg___closed__1; x_10 = lean_array_get(x_9, x_6, x_8); x_11 = 1; x_12 = x_11 << x_4; @@ -32781,7 +32781,7 @@ x_14 = x_3 & x_13; x_15 = 5; x_16 = x_4 - x_15; lean_inc(x_1); -x_17 = l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_1, x_10, x_14, x_16, x_5); +x_17 = l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_1, x_10, x_14, x_16, x_5); lean_dec(x_10); if (lean_obj_tag(x_17) == 0) { @@ -32827,11 +32827,11 @@ return x_27; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg___boxed), 5, 0); return x_2; } } @@ -32982,7 +32982,7 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_2, x_7, x_8, x_9, x_3); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -33648,11 +33648,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__6(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -33718,11 +33718,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__12(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -33788,11 +33788,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__18(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -33858,11 +33858,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__24(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -33928,11 +33928,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__30(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -33998,11 +33998,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__36(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -34062,11 +34062,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__43___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -34091,7 +34091,7 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___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; @@ -34099,7 +34099,7 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_Std_PersistentArray_foldlFromMAux___main___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Std_PersistentArray_foldlFromMAux___at___private_Lean_MetavarContext_10__collectDeps___spec__42___rarg(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Parser/Module.c b/stage0/stdlib/Lean/Parser/Module.c index 730aaa76e2..a1a61454f2 100644 --- a/stage0/stdlib/Lean/Parser/Module.c +++ b/stage0/stdlib/Lean/Parser/Module.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Parser_Module_header_parenthesizer___closed__10; lean_object* l_Lean_Parser_Module_module_parenthesizer___closed__6; lean_object* l_Lean_Parser_Module_module_formatter___closed__2; lean_object* l_Lean_Parser_Module_module___closed__5; +lean_object* l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_manyAux___main___closed__1; lean_object* l_Lean_Parser_Module_module_formatter___closed__1; lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*); @@ -55,13 +56,13 @@ lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter(lean_object*, lean_ extern lean_object* l_Lean_Parser_ident; lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkParserState(lean_object*); +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Parser_Module_prelude___elambda__1___closed__2; lean_object* l_Lean_Parser_Module_import; lean_object* l_Lean_Parser_Module_import___elambda__1___closed__2; lean_object* l___private_Lean_Parser_Module_1__mkErrorMessage___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_prelude_formatter___closed__2; lean_object* l_Lean_Parser_Module_module___closed__3; -lean_object* l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageLog_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_header___closed__4; lean_object* l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); @@ -170,7 +171,6 @@ lean_object* l_Lean_Parser_addParserTokens(lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_header_parenthesizer___closed__2; lean_object* l___private_Lean_Parser_Module_4__testModuleParserAux___main___closed__1; lean_object* l_Lean_Parser_Module_import___closed__1; -lean_object* l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Module_4__testModuleParserAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_import_formatter___closed__7; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); @@ -210,7 +210,6 @@ lean_object* l_Lean_Parser_Module_module___closed__9; lean_object* l_Lean_MessageLog_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Error_toString(lean_object*); lean_object* l___private_Lean_Parser_Module_2__mkEOI___closed__2; -extern lean_object* l_Std_PersistentArray_empty___closed__3; uint8_t l_Lean_Parser_isExitCommand(lean_object*); lean_object* l_Lean_Parser_Module_updateTokens(lean_object*); lean_object* l_Lean_Parser_Module_prelude___closed__3; @@ -219,6 +218,7 @@ lean_object* l_Lean_Parser_Module_import___closed__3; lean_object* l_Lean_Parser_Module_module_formatter___closed__7; lean_object* l_Lean_Parser_Module_prelude___closed__1; lean_object* l___private_Lean_Parser_Module_2__mkEOI___closed__1; +lean_object* l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_header_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Module_header___closed__7; lean_object* l_Lean_Parser_Module_import_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3371,7 +3371,7 @@ x_18 = 0; x_19 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_19, 0, x_17); lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); -x_20 = l_Std_PersistentArray_empty___closed__3; +x_20 = l_Std_PersistentArray_empty___closed__1; x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -3398,7 +3398,7 @@ x_27 = 1; x_28 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_28, 0, x_24); lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); -x_29 = l_Std_PersistentArray_empty___closed__3; +x_29 = l_Std_PersistentArray_empty___closed__1; x_30 = l_Std_PersistentArray_push___rarg(x_29, x_26); x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_28); @@ -3447,7 +3447,7 @@ x_46 = 0; x_47 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_47, 0, x_45); lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46); -x_48 = l_Std_PersistentArray_empty___closed__3; +x_48 = l_Std_PersistentArray_empty___closed__1; x_49 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -3476,7 +3476,7 @@ x_56 = 1; x_57 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_57, 0, x_53); lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); -x_58 = l_Std_PersistentArray_empty___closed__3; +x_58 = l_Std_PersistentArray_empty___closed__1; x_59 = l_Std_PersistentArray_push___rarg(x_58, x_55); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_57); @@ -4052,7 +4052,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_2, x_3); lean_inc(x_1); -x_10 = l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_9, x_4); +x_10 = l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_9, x_4); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -4158,7 +4158,7 @@ return x_18; } } } -lean_object* l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4250,7 +4250,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_6 = l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_4, x_3); +x_6 = l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_4, x_3); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -4621,11 +4621,11 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_forMAux___main___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_forMAux___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__4(x_1, x_2, x_3); lean_dec(x_2); return x_4; } diff --git a/stage0/stdlib/Lean/Server.c b/stage0/stdlib/Lean/Server.c index eb4e989f2a..4d26e2fac5 100644 --- a/stage0/stdlib/Lean/Server.c +++ b/stage0/stdlib/Lean/Server.c @@ -111,11 +111,11 @@ lean_object* l_Lean_Server_writeLspNotification(lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__7; extern lean_object* l_IO_FS_Stream_readRequestAs___closed__3; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Server_sendDiagnostics___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_writeLspNotification___at_Lean_Server_clearDiagnostics___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_TextDocumentPositionParams_hasFromJson___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___at_Lean_Server_sendDiagnostics___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_handleDidChange___closed__4; lean_object* l_Lean_Server_Snapshots_compileHeader(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1(lean_object*, lean_object*, lean_object*); @@ -3473,7 +3473,7 @@ x_12 = lean_array_fset(x_3, x_2, x_11); x_13 = x_10; lean_inc(x_4); lean_inc(x_1); -x_14 = l_Std_PersistentArray_mapMAux___main___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_13, x_4, x_5); +x_14 = l_Std_PersistentArray_mapMAux___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_13, x_4, x_5); 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; lean_object* x_20; @@ -3592,7 +3592,7 @@ return x_26; } } } -lean_object* l_Std_PersistentArray_mapMAux___main___at_Lean_Server_sendDiagnostics___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Server_sendDiagnostics___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3948,7 +3948,7 @@ x_8 = lean_ctor_get(x_2, 2); x_9 = lean_ctor_get(x_2, 3); lean_inc(x_3); lean_inc(x_1); -x_10 = l_Std_PersistentArray_mapMAux___main___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_6, x_3, x_4); +x_10 = l_Std_PersistentArray_mapMAux___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_6, x_3, x_4); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -4065,7 +4065,7 @@ lean_inc(x_31); lean_dec(x_2); lean_inc(x_3); lean_inc(x_1); -x_36 = l_Std_PersistentArray_mapMAux___main___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_31, x_3, x_4); +x_36 = l_Std_PersistentArray_mapMAux___at_Lean_Server_sendDiagnostics___spec__2(x_1, x_31, x_3, x_4); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; diff --git a/stage0/stdlib/Lean/Util/PPGoal.c b/stage0/stdlib/Lean/Util/PPGoal.c index 49973ba978..64607e0aca 100644 --- a/stage0/stdlib/Lean/Util/PPGoal.c +++ b/stage0/stdlib/Lean/Util/PPGoal.c @@ -21,13 +21,13 @@ uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* l_Lean_ppGoal___closed__2; lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_ppAuxDeclsOption___closed__5; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ppGoal___closed__6; lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_ppGoal(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_ppGoal___closed__4; +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5; uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__4; @@ -36,6 +36,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__8; lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_ppGoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; lean_object* l_Lean_ppExpr(lean_object*, lean_object*, lean_object*); extern lean_object* l_String_Iterator_HasRepr___closed__2; @@ -61,7 +62,6 @@ lean_object* l_Lean_getAuxDeclsOption___boxed(lean_object*); lean_object* l_Lean_ppAuxDeclsOption___closed__3; lean_object* l_Lean_LocalContext_foldlM___at_Lean_ppGoal___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_simp_macro_scopes(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); @@ -242,7 +242,7 @@ x_14 = lean_nat_add(x_6, x_13); lean_dec(x_6); lean_inc(x_3); lean_inc(x_1); -x_15 = l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4(x_1, x_2, x_3, x_12, x_7, x_8); +x_15 = l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4(x_1, x_2, x_3, x_12, x_7, x_8); lean_dec(x_12); if (lean_obj_tag(x_15) == 0) { @@ -4177,7 +4177,7 @@ return x_22; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4(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* l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { if (lean_obj_tag(x_4) == 0) @@ -8024,7 +8024,7 @@ lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_3); lean_inc(x_1); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4(x_1, x_2, x_3, x_7, x_5, x_6); +x_8 = l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4(x_1, x_2, x_3, x_7, x_5, x_6); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -13536,13 +13536,13 @@ lean_dec(x_4); return x_10; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___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: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_2); lean_dec(x_2); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Lean_ppGoal___spec__4(x_1, x_7, x_3, x_4, x_5, x_6); +x_8 = l_Std_PersistentArray_foldlMAux___at_Lean_ppGoal___spec__4(x_1, x_7, x_3, x_4, x_5, x_6); lean_dec(x_4); return x_8; } diff --git a/stage0/stdlib/Lean/Util/Trace.c b/stage0/stdlib/Lean/Util/Trace.c index 31bc2f9d48..d4c6eca8df 100644 --- a/stage0/stdlib/Lean/Util/Trace.c +++ b/stage0/stdlib/Lean/Util/Trace.c @@ -15,7 +15,6 @@ extern "C" { #endif extern lean_object* l_Lean_mkHole___closed__3; lean_object* lean_string_push(lean_object*, uint32_t); -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3(lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9; lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__6___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); @@ -42,11 +41,11 @@ lean_object* l_Lean_trace___rarg___lambda__1(lean_object*, lean_object*, lean_ob uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__2; lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__11; +extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_resetTraceState___rarg___closed__1; lean_object* l_Lean_enableTracing___rarg(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_TraceState_Inhabited; lean_object* l_Lean_traceCtx___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2(lean_object*, size_t, size_t); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Util_Trace_5__getResetTraces___rarg___lambda__1(lean_object*); @@ -73,6 +72,7 @@ lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__16; lean_object* l_Lean_setTraceState(lean_object*, lean_object*); extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5; uint8_t l___private_Lean_Util_Trace_2__checkTraceOptionAux(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___spec__2(lean_object*, size_t, size_t); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__3; lean_object* l_Lean_traceM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -114,6 +114,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resetTraceState___rarg(lean_object*); size_t l_USize_shiftLeft(size_t, size_t); +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_traceCtx___rarg___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__10; lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -130,7 +131,6 @@ extern lean_object* l_finally___rarg___closed__1; lean_object* l_Lean_addTrace___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_traceCtx___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; extern lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__13; @@ -157,11 +157,9 @@ lean_object* l_Lean_enableTracing___rarg___lambda__3___boxed(lean_object*, lean_ lean_object* l_Lean_traceCtx(lean_object*, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__4; lean_object* l_IO_println___at_Lean_printTraces___spec__1(lean_object*, lean_object*); -extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__3; lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__5___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__15; -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3; extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; @@ -181,7 +179,6 @@ lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__4; lean_object* l_Lean_printTraces(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Util_Trace_4__addNode___spec__1(lean_object*, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11; -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__4; lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__2; lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__8; @@ -223,6 +220,8 @@ lean_object* l_Lean_printTraces___rarg___lambda__1(lean_object*, lean_object*, l lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__2; lean_object* l_Lean_getTraces___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3(lean_object*); +lean_object* l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1; lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__6; lean_object* l_Lean_trace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -252,6 +251,7 @@ lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_modifyTraces___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; static lean_object* _init_l_Lean_traceElem_inhabited___closed__1() { _start: { @@ -277,7 +277,7 @@ _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 1; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); @@ -292,7 +292,7 @@ x_1 = l_Lean_TraceState_Inhabited___closed__1; return x_1; } } -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -303,7 +303,7 @@ lean_inc(x_4); lean_dec(x_1); x_5 = x_2 >> x_3; x_6 = lean_usize_to_nat(x_5); -x_7 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_7 = l_Std_PersistentArray_getAux___rarg___closed__1; x_8 = lean_array_get(x_7, x_4, x_6); lean_dec(x_6); lean_dec(x_4); @@ -349,7 +349,7 @@ lean_inc(x_5); x_6 = lean_usize_of_nat(x_2); x_7 = lean_ctor_get_usize(x_1, 4); lean_dec(x_1); -x_8 = l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2(x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___spec__2(x_5, x_6, x_7); return x_8; } else @@ -480,7 +480,7 @@ lean_dec(x_4); return x_6; } } -lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___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; @@ -488,7 +488,7 @@ x_4 = lean_unbox_usize(x_2); lean_dec(x_2); x_5 = lean_unbox_usize(x_3); lean_dec(x_3); -x_6 = l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2(x_1, x_4, x_5); +x_6 = l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_1__toFormat___spec__2(x_1, x_4, x_5); return x_6; } } @@ -604,7 +604,7 @@ lean_inc(x_13); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_14 = l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3___rarg(x_1, x_2, x_3, x_12); +x_14 = l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3___rarg(x_1, x_2, x_3, x_12); x_15 = lean_alloc_closure((void*)(l_Array_forMAux___main___at_Lean_printTraces___spec__4___rarg___lambda__1___boxed), 6, 5); lean_closure_set(x_15, 0, x_5); lean_closure_set(x_15, 1, x_1); @@ -705,7 +705,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_forMAux___main___at_Lean_printTraces___ return x_2; } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -730,11 +730,11 @@ return x_10; } } } -lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3___rarg), 4, 0); return x_2; } } @@ -823,7 +823,7 @@ lean_inc(x_7); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_8 = l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3___rarg(x_1, x_2, x_3, x_7); +x_8 = l_Std_PersistentArray_forMAux___at_Lean_printTraces___spec__3___rarg(x_1, x_2, x_3, x_7); x_9 = lean_ctor_get(x_4, 1); lean_inc(x_9); lean_dec(x_4); @@ -1579,7 +1579,7 @@ if (x_2 == 0) lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_1, 0); lean_dec(x_3); -x_4 = l_Std_PersistentArray_empty___closed__3; +x_4 = l_Std_PersistentArray_empty___closed__1; lean_ctor_set(x_1, 0, x_4); return x_1; } @@ -1588,7 +1588,7 @@ else uint8_t x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); lean_dec(x_1); -x_6 = l_Std_PersistentArray_empty___closed__3; +x_6 = l_Std_PersistentArray_empty___closed__1; x_7 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_7, 0, x_6); lean_ctor_set_uint8(x_7, sizeof(void*)*1, x_5); diff --git a/stage0/stdlib/Std/Data/PersistentArray.c b/stage0/stdlib/Std/Data/PersistentArray.c index 60eab8cecc..39c50f692a 100644 --- a/stage0/stdlib/Std/Data/PersistentArray.c +++ b/stage0/stdlib/Std/Data/PersistentArray.c @@ -14,37 +14,36 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArrayNode_isNode(lean_object*); uint8_t l_Std_PersistentArrayNode_isNode___rarg(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_foldl___spec__1(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__5(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_root___default___closed__2; lean_object* l_Std_PersistentArray_forMAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_setAux___main(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toList___spec__1(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__5___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArrayNode_Inhabited(lean_object*); lean_object* l_Std_PersistentArray_filter___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__5(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); +lean_object* l_Std_PersistentArray_modifyAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_root___default___closed__1; lean_object* l_List_toPersistentArrayAux___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__1(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Std_mkPersistentArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_collectStats___main(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Std_PersistentArray_HasAppend(lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_tailOff___default; +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_toPersistentArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkEmptyArray(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_filter___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -52,34 +51,38 @@ lean_object* l_Std_PersistentArray_anyMAux(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* l_Std_PersistentArray_foldlFromMAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_popLeaf___rarg(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at_Std_PersistentArray_foldlFrom___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_insertNewLeaf___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_PersistentArray_all(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mkNewPath_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_pop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Std_PersistentArray_any___spec__1___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_popLeaf___main___rarg(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toArray___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getOp___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__5(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forMAux(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mkNewPath___main___rarg(size_t, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__3(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlMAux(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___closed__2; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Std_PersistentArray_findSomeRev_x3f___spec__1___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; size_t l_Std_PersistentArray_mul2Shift(size_t, size_t); +lean_object* l_Std_PersistentArray_mapMAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__7(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_collectStats___rarg(lean_object*, lean_object*, lean_object*); @@ -87,9 +90,9 @@ lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_filter___spec lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__4(lean_object*); lean_object* l_Std_PersistentArray_mapM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeM_x3f_match__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_empty___closed__2; uint8_t l_Std_PersistentArray_all___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toList___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_empty___closed__1; @@ -97,43 +100,45 @@ lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__3 lean_object* l_Std_PersistentArray_foldlFromM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Std_PersistentArray_findSomeRev_x3f___spec__1___rarg(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_any(lean_object*); lean_object* l_Std_PersistentArray_modifyAux(lean_object*); lean_object* l_Std_PersistentArray_set___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___closed__2; +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_toArray___rarg___boxed(lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__1(lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldl___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__5(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getOp(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_collectStats_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_any___spec__1___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__5(lean_object*, lean_object*); lean_object* l_Nat_max(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_tooBig; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkPersistentArray___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_insertNewLeaf___main(lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__4; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forMAux_match__1(lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Std_PersistentArray_modify___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Std_PersistentArray_branching; lean_object* l_Std_PersistentArray_findSomeRev_x3f(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__4(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_toPersistentArray___rarg(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_foldl___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,59 +150,52 @@ lean_object* l_Std_PersistentArray_stats___rarg___boxed(lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Std_PersistentArray_foldl(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_setAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1(lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_insertNewLeaf(lean_object*); -lean_object* l_Std_PersistentArray_mkNewPath___main(lean_object*); lean_object* l_Std_PersistentArray_empty(lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__4(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_modifyAux___main(lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_Stats_toString___closed__2; lean_object* l_Std_PersistentArray_findSome_x3f(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toArray___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_popLeaf___main(lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_HasAppend___closed__1; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__4(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__6(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_all___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_filter(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_append___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_popLeaf(lean_object*); -lean_object* l_Std_PersistentArray_forMAux___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_HasToString; +lean_object* l_Std_PersistentArray_foldlFromMAux_match__1___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__3(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__28; lean_object* l_Std_PersistentArray_map___rarg(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__5(lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__5(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__4(lean_object*); -lean_object* l_Std_PersistentArray_Inhabited(lean_object*); +lean_object* l_Std_PersistentArray_insertNewLeaf_match__1___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_allM___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_List_toPersistentArrayAux___main(lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Std_PersistentArray_findSome_x3f___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__4(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Std_mkPersistentArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Std_PersistentArray_map___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -205,78 +203,74 @@ lean_object* l_Std_mkPersistentArray___rarg___closed__1; lean_object* l_Std_PersistentArray_Stats_toString___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkNewTail___rarg(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toPersistentArray(lean_object*); +lean_object* l_Std_PersistentArray_findSomeM_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__5___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__3(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Std_PersistentArray_map___spec__1(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__5(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__3(lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_div2Shift___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_pop_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_Stats_toString(lean_object*); lean_object* l_Std_PersistentArray_findSome_x3f___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFrom___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_filter___spec__1(lean_object*); lean_object* l_Std_mkPersistentArray(lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2(lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toArray___spec__1(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Std_Data_PersistentArray_1__emptyArray(lean_object*); -lean_object* l_Std_PersistentArrayNode_Inhabited___closed__1; -lean_object* l_Std_PersistentArray_setAux___main___rarg(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toPersistentArray(lean_object*); lean_object* l_Array_iterateMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__4___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_setAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_popLeaf___main___rarg___closed__1; +lean_object* l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2(lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Std_mkPersistentArray___spec__1(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_insertNewLeaf___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArrayNode_isNode_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkNewPath___rarg(size_t, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Array_toPersistentArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__4(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_modify(lean_object*); lean_object* l_Std_PersistentArray_stats(lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mod2Shift___boxed(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_foldl___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_isEmpty(lean_object*); lean_object* l_Std_PersistentArray_collectStats___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toPArray___rarg___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__3(lean_object*); @@ -284,26 +278,32 @@ lean_object* l_Std_PersistentArray_all___rarg___boxed(lean_object*, lean_object* uint8_t l_Array_isEmpty___rarg(lean_object*); uint8_t l_Std_PersistentArray_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__9(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevM_x3f_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21(lean_object*); lean_object* l_Std_PersistentArray_map(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_append___spec__1___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__5(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2(lean_object*); uint8_t l_Std_PersistentArray_any___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_allM___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__3(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__4(lean_object*); lean_object* l_Std_PersistentArray_toList(lean_object*); size_t l_Std_PersistentArray_initShift; size_t lean_usize_of_nat(lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux_match__1(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__5(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2(lean_object*); lean_object* l_Std_PersistentArray_any___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_mkPArray___rarg(lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__3(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_size___default; size_t l_USize_land(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__8(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_isEmpty___rarg___boxed(lean_object*); @@ -318,134 +318,145 @@ lean_object* l_Std_PersistentArray_modifyAux___rarg___boxed(lean_object*, lean_o lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_toList___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_pop(lean_object*); lean_object* l_Array_umapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main___rarg(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_mkPArray(lean_object*); lean_object* l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__3(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__5(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRev_x3f___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_setAux(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_insertNewLeaf_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_allM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_popLeaf_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkNewTail(lean_object*); -lean_object* l_Std_PersistentArray_empty___closed__3; -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Std_PersistentArray_append___spec__1(lean_object*); lean_object* l_Std_PersistentArray_getOp___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Std_PersistentArray_findSomeRev_x3f___spec__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_tail___default(lean_object*); lean_object* l_Std_PersistentArray_allM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getAux___rarg(lean_object*, lean_object*, size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forM(lean_object*, lean_object*); +lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_emptyArray(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkNewPath___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___at_Std_PersistentArray_foldlFrom___spec__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2(lean_object*); lean_object* l_Std_PersistentArray_collectStats(lean_object*); lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_pop___rarg(lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_modifyAux___main___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__3(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_insertNewLeaf___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArrayNode_isNode_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevM_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mkNewPath(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_modifyAux___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Std_PersistentArray_modify___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_PersistentArray_setAux_match__1___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_allM___spec__1(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__3(lean_object*); +lean_object* l_Std_PersistentArray_insertNewLeaf_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_stats___rarg(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2(lean_object*); +lean_object* l_Std_PersistentArray_forMAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__4(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromMAux(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_collectStats___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_HasToString___closed__1; +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1; +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mapMAux___rarg___closed__1; lean_object* l_Std_PersistentArray_tooBig___closed__1; lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_setAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRev_x3f___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mkNewPath_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f(lean_object*, lean_object*); +lean_object* l_List_toPersistentArrayAux_match__1(lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); lean_object* l_Std_PersistentArray_anyM(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1; size_t l_Std_PersistentArray_div2Shift(size_t, size_t); +lean_object* l_Std_PersistentArray_popLeaf_match__2(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_toPersistentArray___spec__1(lean_object*); lean_object* l_Std_PersistentArray_Stats_toString___closed__3; lean_object* l_Array_toPArray(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2(lean_object*); -lean_object* l_Std_PersistentArray_mkNewPath___main___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1(lean_object*); +lean_object* l_Std_PersistentArray_setAux_match__1(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_getAux___main(lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Std_PersistentArray_all___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_popLeaf_match__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_popLeaf_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_modifyAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__3(lean_object*); lean_object* l_Std_PersistentArray_set(lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__4(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_toList___rarg___boxed(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push(lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Std_PersistentArray_findSome_x3f___spec__1(lean_object*, lean_object*); extern lean_object* l_usizeSz; lean_object* l_Std_PersistentArray_foldlFromM___at_Std_PersistentArray_foldlFrom___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_modifyAux_match__1(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFrom(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeMAux(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_popLeaf___rarg___closed__1; lean_object* l_Std_PersistentArray_foldl___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeMAux_match__1(lean_object*, lean_object*); lean_object* l_Array_toPersistentArray___rarg___boxed(lean_object*); -lean_object* l_Std_PersistentArray_insertNewLeaf___main___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__2(lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___closed__1; -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg(lean_object*, lean_object*); lean_object* l_List_toPersistentArrayAux(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Std_PersistentArray_mapMAux(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_List_toPersistentArray___rarg(lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Std_PersistentArray_all___spec__1(lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_toArray(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__3(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toPersistentArrayAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux_match__1___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getAux(lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArrayNode_isNode___rarg___boxed(lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Std_PersistentArray_findSome_x3f___spec__1___rarg(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -454,31 +465,34 @@ lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spe lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_modifyAux_match__1___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); +size_t l_Std_PersistentArray_shift___default; +lean_object* l_Std_PersistentArray_collectStats_match__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__4(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mul2Shift___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2(lean_object*); lean_object* l_Std_PersistentArray_filter___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_toPersistentArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_mkNewPath_match__1___rarg(size_t, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_any___spec__4(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_collectStats___main___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__5(lean_object*); lean_object* l_Std_PersistentArray_allM(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2(lean_object*); +lean_object* l_Std_PersistentArray_root___default(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Std_PersistentArray_all___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_setAux___rarg(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; lean_object* l_Array_toPArray___rarg(lean_object*); -static lean_object* _init_l_Std_PersistentArrayNode_Inhabited___closed__1() { +static lean_object* _init_l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -488,14 +502,47 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Std_PersistentArrayNode_Inhabited(lean_object* x_1) { +lean_object* l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_2 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; return x_2; } } +lean_object* l_Std_PersistentArrayNode_isNode_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArrayNode_isNode_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArrayNode_isNode_match__1___rarg), 3, 0); +return x_3; +} +} uint8_t l_Std_PersistentArrayNode_isNode___rarg(lean_object* x_1) { _start: { @@ -547,7 +594,7 @@ x_1 = 32; return x_1; } } -static lean_object* _init_l_Std_PersistentArray_empty___closed__1() { +static lean_object* _init_l_Std_PersistentArray_root___default___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -556,23 +603,63 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Std_PersistentArray_empty___closed__2() { +static lean_object* _init_l_Std_PersistentArray_root___default___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_PersistentArray_empty___closed__1; +x_1 = l_Std_PersistentArray_root___default___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Std_PersistentArray_empty___closed__3() { +lean_object* l_Std_PersistentArray_root___default(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_PersistentArray_root___default___closed__2; +return x_2; +} +} +lean_object* l_Std_PersistentArray_tail___default(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_PersistentArray_root___default___closed__1; +return x_2; +} +} +static lean_object* _init_l_Std_PersistentArray_size___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static size_t _init_l_Std_PersistentArray_shift___default() { +_start: +{ +size_t x_1; +x_1 = 5; +return x_1; +} +} +static lean_object* _init_l_Std_PersistentArray_tailOff___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static lean_object* _init_l_Std_PersistentArray_empty___closed__1() { _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_Std_PersistentArray_empty___closed__2; -x_3 = l_Std_PersistentArray_empty___closed__1; +x_2 = l_Std_PersistentArray_root___default___closed__2; +x_3 = l_Std_PersistentArray_root___default___closed__1; 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); @@ -587,7 +674,7 @@ lean_object* l_Std_PersistentArray_empty(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; return x_2; } } @@ -619,11 +706,11 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Std_PersistentArray_Inhabited(lean_object* x_1) { +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArray_empty___closed__3; +x_2 = l_Std_PersistentArray_empty___closed__1; return x_2; } } @@ -631,7 +718,7 @@ lean_object* l_Std_PersistentArray_mkEmptyArray(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArray_empty___closed__1; +x_2 = l_Std_PersistentArray_root___default___closed__1; return x_2; } } @@ -701,15 +788,64 @@ x_6 = lean_box_usize(x_5); return x_6; } } -static lean_object* _init_l_Std_PersistentArray_getAux___main___rarg___closed__1() { +lean_object* l_Std_PersistentArray_getAux_match__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_box_usize(x_2); +x_8 = lean_box_usize(x_3); +x_9 = lean_apply_3(x_4, x_6, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_box_usize(x_2); +x_12 = lean_box_usize(x_3); +x_13 = lean_apply_3(x_5, x_10, x_11, x_12); +return x_13; +} +} +} +lean_object* l_Std_PersistentArray_getAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_getAux_match__1___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_getAux_match__1___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_Std_PersistentArray_getAux_match__1___rarg(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l_Std_PersistentArray_getAux___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArrayNode_Inhabited(lean_box(0)); +x_1 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1(lean_box(0)); return x_1; } } -lean_object* l_Std_PersistentArray_getAux___main___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +lean_object* l_Std_PersistentArray_getAux___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -720,7 +856,7 @@ lean_inc(x_5); lean_dec(x_2); x_6 = x_3 >> x_4; x_7 = lean_usize_to_nat(x_6); -x_8 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_8 = l_Std_PersistentArray_getAux___rarg___closed__1; x_9 = lean_array_get(x_8, x_5, x_7); lean_dec(x_7); lean_dec(x_5); @@ -749,34 +885,6 @@ return x_19; } } } -lean_object* l_Std_PersistentArray_getAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_getAux___main___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_getAux___main___rarg___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_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Std_PersistentArray_getAux___main___rarg(x_1, x_2, x_5, x_6); -return x_7; -} -} -lean_object* l_Std_PersistentArray_getAux___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_getAux___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_getAux(lean_object* x_1) { _start: { @@ -813,7 +921,7 @@ lean_inc(x_6); x_7 = lean_usize_of_nat(x_3); x_8 = lean_ctor_get_usize(x_2, 4); lean_dec(x_2); -x_9 = l_Std_PersistentArray_getAux___main___rarg(x_1, x_6, x_7, x_8); +x_9 = l_Std_PersistentArray_getAux___rarg(x_1, x_6, x_7, x_8); return x_9; } else @@ -873,7 +981,56 @@ lean_dec(x_3); return x_4; } } -lean_object* l_Std_PersistentArray_setAux___main___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_setAux_match__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_box_usize(x_2); +x_9 = lean_box_usize(x_3); +x_10 = lean_apply_4(x_5, x_7, x_8, x_9, x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_box_usize(x_2); +x_13 = lean_box_usize(x_3); +x_14 = lean_apply_4(x_6, x_11, x_12, x_13, x_4); +return x_14; +} +} +} +lean_object* l_Std_PersistentArray_setAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_setAux_match__1___rarg___boxed), 6, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_setAux_match__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: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Std_PersistentArray_setAux_match__1___rarg(x_1, x_7, x_8, x_4, x_5, x_6); +return x_9; +} +} +lean_object* l_Std_PersistentArray_setAux___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -905,9 +1062,9 @@ else { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_17 = lean_array_fget(x_6, x_14); -x_18 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_18 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_19 = lean_array_fset(x_6, x_14, x_18); -x_20 = l_Std_PersistentArray_setAux___main___rarg(x_17, x_11, x_13, x_4); +x_20 = l_Std_PersistentArray_setAux___rarg(x_17, x_11, x_13, x_4); x_21 = lean_array_fset(x_19, x_14, x_20); lean_dec(x_14); lean_ctor_set(x_1, 0, x_21); @@ -944,9 +1101,9 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_34 = lean_array_fget(x_22, x_30); -x_35 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_35 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_36 = lean_array_fset(x_22, x_30, x_35); -x_37 = l_Std_PersistentArray_setAux___main___rarg(x_34, x_27, x_29, x_4); +x_37 = l_Std_PersistentArray_setAux___rarg(x_34, x_27, x_29, x_4); x_38 = lean_array_fset(x_36, x_30, x_37); lean_dec(x_30); x_39 = lean_alloc_ctor(0, 1, 0); @@ -985,34 +1142,6 @@ return x_47; } } } -lean_object* l_Std_PersistentArray_setAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_setAux___main___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_setAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Std_PersistentArray_setAux___main___rarg(x_1, x_5, x_6, x_4); -return x_7; -} -} -lean_object* l_Std_PersistentArray_setAux___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_setAux___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_setAux(lean_object* x_1) { _start: { @@ -1050,7 +1179,7 @@ if (x_9 == 0) { size_t x_10; lean_object* x_11; x_10 = lean_usize_of_nat(x_2); -x_11 = l_Std_PersistentArray_setAux___main___rarg(x_5, x_10, x_7, x_3); +x_11 = l_Std_PersistentArray_setAux___rarg(x_5, x_10, x_7, x_3); lean_ctor_set(x_1, 0, x_11); return x_1; } @@ -1082,7 +1211,7 @@ if (x_19 == 0) { size_t x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_usize_of_nat(x_2); -x_21 = l_Std_PersistentArray_setAux___main___rarg(x_14, x_20, x_17, x_3); +x_21 = l_Std_PersistentArray_setAux___rarg(x_14, x_20, x_17, x_3); x_22 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_15); @@ -1125,7 +1254,56 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Std_PersistentArray_modifyAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +lean_object* l_Std_PersistentArray_modifyAux_match__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_box_usize(x_2); +x_8 = lean_box_usize(x_3); +x_9 = lean_apply_3(x_4, x_6, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_box_usize(x_2); +x_12 = lean_box_usize(x_3); +x_13 = lean_apply_3(x_5, x_10, x_11, x_12); +return x_13; +} +} +} +lean_object* l_Std_PersistentArray_modifyAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_modifyAux_match__1___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_modifyAux_match__1___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_Std_PersistentArray_modifyAux_match__1___rarg(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +lean_object* l_Std_PersistentArray_modifyAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1158,9 +1336,9 @@ else { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_18 = lean_array_fget(x_7, x_15); -x_19 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_19 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_20 = lean_array_fset(x_7, x_15, x_19); -x_21 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_2, x_18, x_12, x_14); +x_21 = l_Std_PersistentArray_modifyAux___rarg(x_1, x_2, x_18, x_12, x_14); x_22 = lean_array_fset(x_20, x_15, x_21); lean_dec(x_15); lean_ctor_set(x_3, 0, x_22); @@ -1198,9 +1376,9 @@ else { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_35 = lean_array_fget(x_23, x_31); -x_36 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_36 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_37 = lean_array_fset(x_23, x_31, x_36); -x_38 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_2, x_35, x_28, x_30); +x_38 = l_Std_PersistentArray_modifyAux___rarg(x_1, x_2, x_35, x_28, x_30); x_39 = lean_array_fset(x_37, x_31, x_38); lean_dec(x_31); x_40 = lean_alloc_ctor(0, 1, 0); @@ -1276,34 +1454,6 @@ return x_59; } } } -lean_object* l_Std_PersistentArray_modifyAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_modifyAux___main___rarg___boxed), 5, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_modifyAux___main___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_4); -lean_dec(x_4); -x_7 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_8 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_2, x_3, x_6, x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_modifyAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} lean_object* l_Std_PersistentArray_modifyAux(lean_object* x_1) { _start: { @@ -1341,7 +1491,7 @@ if (x_10 == 0) { size_t x_11; lean_object* x_12; x_11 = lean_usize_of_nat(x_3); -x_12 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_4, x_6, x_11, x_8); +x_12 = l_Std_PersistentArray_modifyAux___rarg(x_1, x_4, x_6, x_11, x_8); lean_ctor_set(x_2, 0, x_12); return x_2; } @@ -1390,7 +1540,7 @@ if (x_25 == 0) { size_t x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_usize_of_nat(x_3); -x_27 = l_Std_PersistentArray_modifyAux___main___rarg(x_1, x_4, x_20, x_26, x_23); +x_27 = l_Std_PersistentArray_modifyAux___rarg(x_1, x_4, x_20, x_26, x_23); x_28 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_21); @@ -1457,7 +1607,34 @@ lean_dec(x_3); return x_5; } } -lean_object* l_Std_PersistentArray_mkNewPath___main___rarg(size_t x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_mkNewPath_match__1___rarg(size_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_box_usize(x_1); +x_5 = lean_apply_2(x_3, x_4, x_2); +return x_5; +} +} +lean_object* l_Std_PersistentArray_mkNewPath_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mkNewPath_match__1___rarg___boxed), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_mkNewPath_match__1___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_1); +lean_dec(x_1); +x_5 = l_Std_PersistentArray_mkNewPath_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Std_PersistentArray_mkNewPath___rarg(size_t x_1, lean_object* x_2) { _start: { size_t x_3; uint8_t x_4; @@ -1468,8 +1645,8 @@ if (x_4 == 0) size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_5 = 5; x_6 = x_1 - x_5; -x_7 = l_Std_PersistentArray_mkNewPath___main___rarg(x_6, x_2); -x_8 = l_Std_PersistentArray_empty___closed__1; +x_7 = l_Std_PersistentArray_mkNewPath___rarg(x_6, x_2); +x_8 = l_Std_PersistentArray_root___default___closed__1; x_9 = lean_array_push(x_8, x_7); x_10 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_10, 0, x_9); @@ -1484,32 +1661,6 @@ return x_11; } } } -lean_object* l_Std_PersistentArray_mkNewPath___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_mkNewPath___main___rarg___boxed), 2, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_mkNewPath___main___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -size_t x_3; lean_object* x_4; -x_3 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_4 = l_Std_PersistentArray_mkNewPath___main___rarg(x_3, x_2); -return x_4; -} -} -lean_object* l_Std_PersistentArray_mkNewPath___rarg(size_t x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_PersistentArray_mkNewPath___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_Std_PersistentArray_mkNewPath(lean_object* x_1) { _start: { @@ -1528,7 +1679,53 @@ x_4 = l_Std_PersistentArray_mkNewPath___rarg(x_3, x_2); return x_4; } } -lean_object* l_Std_PersistentArray_insertNewLeaf___main___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_insertNewLeaf_match__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_box_usize(x_2); +x_9 = lean_box_usize(x_3); +x_10 = lean_apply_4(x_5, x_7, x_8, x_9, x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_5); +x_11 = lean_box_usize(x_2); +x_12 = lean_box_usize(x_3); +x_13 = lean_apply_4(x_6, x_1, x_11, x_12, x_4); +return x_13; +} +} +} +lean_object* l_Std_PersistentArray_insertNewLeaf_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_insertNewLeaf_match__1___rarg___boxed), 6, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_insertNewLeaf_match__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: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Std_PersistentArray_insertNewLeaf_match__1___rarg(x_1, x_7, x_8, x_4, x_5, x_6); +return x_9; +} +} +lean_object* l_Std_PersistentArray_insertNewLeaf___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1559,7 +1756,7 @@ if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_dec(x_16); -x_19 = l_Std_PersistentArray_mkNewPath___main___rarg(x_15, x_4); +x_19 = l_Std_PersistentArray_mkNewPath___rarg(x_15, x_4); x_20 = lean_array_push(x_6, x_19); lean_ctor_set(x_1, 0, x_20); return x_1; @@ -1568,9 +1765,9 @@ 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_6, x_16); -x_22 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_22 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_23 = lean_array_fset(x_6, x_16, x_22); -x_24 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_21, x_13, x_15, x_4); +x_24 = l_Std_PersistentArray_insertNewLeaf___rarg(x_21, x_13, x_15, x_4); x_25 = lean_array_fset(x_23, x_16, x_24); lean_dec(x_16); lean_ctor_set(x_1, 0, x_25); @@ -1614,7 +1811,7 @@ if (x_40 == 0) { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_dec(x_38); -x_41 = l_Std_PersistentArray_mkNewPath___main___rarg(x_37, x_4); +x_41 = l_Std_PersistentArray_mkNewPath___rarg(x_37, x_4); x_42 = lean_array_push(x_28, x_41); x_43 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_43, 0, x_42); @@ -1624,9 +1821,9 @@ else { lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; x_44 = lean_array_fget(x_28, x_38); -x_45 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_45 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_46 = lean_array_fset(x_28, x_38, x_45); -x_47 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_44, x_35, x_37, x_4); +x_47 = l_Std_PersistentArray_insertNewLeaf___rarg(x_44, x_35, x_37, x_4); x_48 = lean_array_fset(x_46, x_38, x_47); lean_dec(x_38); x_49 = lean_alloc_ctor(0, 1, 0); @@ -1653,34 +1850,6 @@ return x_1; } } } -lean_object* l_Std_PersistentArray_insertNewLeaf___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_insertNewLeaf___main___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_insertNewLeaf___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_1, x_5, x_6, x_4); -return x_7; -} -} -lean_object* l_Std_PersistentArray_insertNewLeaf___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_insertNewLeaf(lean_object* x_1) { _start: { @@ -1725,9 +1894,9 @@ lean_dec(x_12); 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 = l_Std_PersistentArray_empty___closed__1; +x_14 = l_Std_PersistentArray_root___default___closed__1; x_15 = lean_array_push(x_14, x_3); -x_16 = l_Std_PersistentArray_mkNewPath___main___rarg(x_6, x_4); +x_16 = l_Std_PersistentArray_mkNewPath___rarg(x_6, x_4); x_17 = lean_array_push(x_15, x_16); x_18 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_18, 0, x_17); @@ -1746,8 +1915,8 @@ x_20 = lean_unsigned_to_nat(1u); x_21 = lean_nat_sub(x_5, x_20); x_22 = lean_usize_of_nat(x_21); lean_dec(x_21); -x_23 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_3, x_22, x_6, x_4); -x_24 = l_Std_PersistentArray_empty___closed__1; +x_23 = l_Std_PersistentArray_insertNewLeaf___rarg(x_3, x_22, x_6, x_4); +x_24 = l_Std_PersistentArray_root___default___closed__1; lean_inc(x_5); lean_ctor_set(x_1, 3, x_5); lean_ctor_set(x_1, 1, x_24); @@ -1776,9 +1945,9 @@ lean_dec(x_33); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_35 = l_Std_PersistentArray_empty___closed__1; +x_35 = l_Std_PersistentArray_root___default___closed__1; x_36 = lean_array_push(x_35, x_25); -x_37 = l_Std_PersistentArray_mkNewPath___main___rarg(x_28, x_26); +x_37 = l_Std_PersistentArray_mkNewPath___rarg(x_28, x_26); x_38 = lean_array_push(x_36, x_37); x_39 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_39, 0, x_38); @@ -1799,8 +1968,8 @@ x_42 = lean_unsigned_to_nat(1u); x_43 = lean_nat_sub(x_27, x_42); x_44 = lean_usize_of_nat(x_43); lean_dec(x_43); -x_45 = l_Std_PersistentArray_insertNewLeaf___main___rarg(x_25, x_44, x_28, x_26); -x_46 = l_Std_PersistentArray_empty___closed__1; +x_45 = l_Std_PersistentArray_insertNewLeaf___rarg(x_25, x_44, x_28, x_26); +x_46 = l_Std_PersistentArray_root___default___closed__1; lean_inc(x_27); x_47 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_47, 0, x_45); @@ -1944,27 +2113,98 @@ x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_push___rarg), 2, 0); return x_2; } } -lean_object* l___private_Std_Data_PersistentArray_1__emptyArray(lean_object* x_1) { +lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_emptyArray(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArray_empty___closed__1; +x_2 = l_Std_PersistentArray_root___default___closed__1; return x_2; } } -static lean_object* _init_l_Std_PersistentArray_popLeaf___main___rarg___closed__1() { +lean_object* l_Std_PersistentArray_popLeaf_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_4, 0); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_apply_2(x_3, x_8, x_7); +return x_9; +} +} +} +lean_object* l_Std_PersistentArray_popLeaf_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_popLeaf_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_popLeaf_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_apply_2(x_2, x_1, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_popLeaf_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_popLeaf_match__2___rarg), 3, 0); +return x_3; +} +} +static lean_object* _init_l_Std_PersistentArray_popLeaf___rarg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Std_PersistentArray_empty___closed__1; +x_2 = l_Std_PersistentArray_root___default___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; } } -lean_object* l_Std_PersistentArray_popLeaf___main___rarg(lean_object* x_1) { +lean_object* l_Std_PersistentArray_popLeaf___rarg(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1985,130 +2225,194 @@ x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_sub(x_4, x_7); lean_dec(x_4); x_9 = lean_array_fget(x_3, x_8); -x_10 = l_Std_PersistentArrayNode_Inhabited___closed__1; +x_10 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; x_11 = lean_array_fset(x_3, x_8, x_10); -x_12 = l_Std_PersistentArray_popLeaf___main___rarg(x_9); +x_12 = l_Std_PersistentArray_popLeaf___rarg(x_9); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); if (lean_obj_tag(x_13) == 0) { -uint8_t x_14; +lean_object* x_14; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_free_object(x_1); -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); -lean_dec(x_15); -x_16 = lean_ctor_get(x_12, 0); -lean_dec(x_16); -x_17 = l_Std_PersistentArray_empty___closed__1; -lean_ctor_set(x_12, 1, x_17); -return x_12; +x_14 = l_Std_PersistentArray_popLeaf___rarg___closed__1; +return x_14; } else { -lean_object* x_18; lean_object* x_19; -lean_dec(x_12); -x_18 = l_Std_PersistentArray_empty___closed__1; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_13); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -else +uint8_t x_15; +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_12); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_array_get_size(x_16); +x_20 = lean_nat_dec_eq(x_19, x_5); +lean_dec(x_19); if (x_20 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_12, 1); -x_22 = lean_ctor_get(x_12, 0); -lean_dec(x_22); -x_23 = lean_array_get_size(x_21); -x_24 = lean_nat_dec_eq(x_23, x_5); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -lean_ctor_set(x_1, 0, x_21); -x_25 = lean_array_fset(x_11, x_8, x_1); +lean_object* x_21; +lean_ctor_set(x_1, 0, x_16); +x_21 = lean_array_fset(x_11, x_8, x_1); lean_dec(x_8); -lean_ctor_set(x_12, 1, x_25); +lean_ctor_set(x_12, 1, x_21); return x_12; } else { -lean_object* x_26; uint8_t x_27; -lean_dec(x_21); +lean_object* x_22; uint8_t x_23; +lean_dec(x_16); lean_dec(x_8); lean_free_object(x_1); -x_26 = lean_array_pop(x_11); -x_27 = l_Array_isEmpty___rarg(x_26); +x_22 = lean_array_pop(x_11); +x_23 = l_Array_isEmpty___rarg(x_22); +if (x_23 == 0) +{ +lean_ctor_set(x_12, 1, x_22); +return x_12; +} +else +{ +lean_object* x_24; +lean_dec(x_22); +x_24 = l_Std_PersistentArray_root___default___closed__1; +lean_ctor_set(x_12, 1, x_24); +return x_12; +} +} +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_13, 0); +lean_inc(x_25); +lean_dec(x_13); +x_26 = lean_array_get_size(x_16); +x_27 = lean_nat_dec_eq(x_26, x_5); +lean_dec(x_26); if (x_27 == 0) { -lean_ctor_set(x_12, 1, x_26); -return x_12; -} -else -{ -lean_object* x_28; -lean_dec(x_26); -x_28 = l_Std_PersistentArray_empty___closed__1; -lean_ctor_set(x_12, 1, x_28); -return x_12; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_12, 1); -lean_inc(x_29); -lean_dec(x_12); -x_30 = lean_array_get_size(x_29); -x_31 = lean_nat_dec_eq(x_30, x_5); -lean_dec(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; -lean_ctor_set(x_1, 0, x_29); -x_32 = lean_array_fset(x_11, x_8, x_1); +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_1, 0, x_16); +x_29 = lean_array_fset(x_11, x_8, x_1); lean_dec(x_8); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_13); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_ctor_set(x_12, 1, x_29); +lean_ctor_set(x_12, 0, x_28); +return x_12; } else { -lean_object* x_34; uint8_t x_35; -lean_dec(x_29); +lean_object* x_30; uint8_t x_31; +lean_dec(x_16); lean_dec(x_8); lean_free_object(x_1); -x_34 = lean_array_pop(x_11); -x_35 = l_Array_isEmpty___rarg(x_34); -if (x_35 == 0) +x_30 = lean_array_pop(x_11); +x_31 = l_Array_isEmpty___rarg(x_30); +if (x_31 == 0) { -lean_object* x_36; -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_13); -lean_ctor_set(x_36, 1, x_34); -return x_36; +lean_object* x_32; +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_25); +lean_ctor_set(x_12, 1, x_30); +lean_ctor_set(x_12, 0, x_32); +return x_12; } else { -lean_object* x_37; lean_object* x_38; -lean_dec(x_34); -x_37 = l_Std_PersistentArray_empty___closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_13); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_object* x_33; lean_object* x_34; +lean_dec(x_30); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_25); +x_34 = l_Std_PersistentArray_root___default___closed__1; +lean_ctor_set(x_12, 1, x_34); +lean_ctor_set(x_12, 0, x_33); +return x_12; +} +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_35 = lean_ctor_get(x_12, 1); +lean_inc(x_35); +lean_dec(x_12); +x_36 = lean_ctor_get(x_13, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + x_37 = x_13; +} else { + lean_dec_ref(x_13); + x_37 = lean_box(0); +} +x_38 = lean_array_get_size(x_35); +x_39 = lean_nat_dec_eq(x_38, x_5); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +if (lean_is_scalar(x_37)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_37; +} +lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_1, 0, x_35); +x_41 = lean_array_fset(x_11, x_8, x_1); +lean_dec(x_8); +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; +} +else +{ +lean_object* x_43; uint8_t x_44; +lean_dec(x_35); +lean_dec(x_8); +lean_free_object(x_1); +x_43 = lean_array_pop(x_11); +x_44 = l_Array_isEmpty___rarg(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +if (lean_is_scalar(x_37)) { + x_45 = lean_alloc_ctor(1, 1, 0); +} else { + x_45 = x_37; +} +lean_ctor_set(x_45, 0, x_36); +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; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_43); +if (lean_is_scalar(x_37)) { + x_47 = lean_alloc_ctor(1, 1, 0); +} else { + x_47 = x_37; +} +lean_ctor_set(x_47, 0, x_36); +x_48 = l_Std_PersistentArray_root___default___closed__1; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -2116,168 +2420,165 @@ return x_38; } else { -lean_object* x_39; +lean_object* x_50; lean_dec(x_4); lean_free_object(x_1); lean_dec(x_3); -x_39 = l_Std_PersistentArray_popLeaf___main___rarg___closed__1; -return x_39; +x_50 = l_Std_PersistentArray_popLeaf___rarg___closed__1; +return x_50; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_1, 0); -lean_inc(x_40); +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_51 = lean_ctor_get(x_1, 0); +lean_inc(x_51); lean_dec(x_1); -x_41 = lean_array_get_size(x_40); -x_42 = lean_unsigned_to_nat(0u); -x_43 = lean_nat_dec_eq(x_41, x_42); -if (x_43 == 0) +x_52 = lean_array_get_size(x_51); +x_53 = lean_unsigned_to_nat(0u); +x_54 = lean_nat_dec_eq(x_52, x_53); +if (x_54 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_sub(x_41, x_44); -lean_dec(x_41); -x_46 = lean_array_fget(x_40, x_45); -x_47 = l_Std_PersistentArrayNode_Inhabited___closed__1; -x_48 = lean_array_fset(x_40, x_45, x_47); -x_49 = l_Std_PersistentArray_popLeaf___main___rarg(x_46); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -if (lean_obj_tag(x_50) == 0) +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_sub(x_52, x_55); +lean_dec(x_52); +x_57 = lean_array_fget(x_51, x_56); +x_58 = l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1; +x_59 = lean_array_fset(x_51, x_56, x_58); +x_60 = l_Std_PersistentArray_popLeaf___rarg(x_57); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_48); -lean_dec(x_45); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_51 = x_49; -} else { - lean_dec_ref(x_49); - x_51 = lean_box(0); -} -x_52 = l_Std_PersistentArray_empty___closed__1; -if (lean_is_scalar(x_51)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_51; -} -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_54 = lean_ctor_get(x_49, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_55 = x_49; -} else { - lean_dec_ref(x_49); - x_55 = lean_box(0); -} -x_56 = lean_array_get_size(x_54); -x_57 = lean_nat_dec_eq(x_56, x_42); +lean_object* x_62; +lean_dec(x_60); +lean_dec(x_59); lean_dec(x_56); -if (x_57 == 0) +x_62 = l_Std_PersistentArray_popLeaf___rarg___closed__1; +return x_62; +} +else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_58, 0, x_54); -x_59 = lean_array_fset(x_48, x_45, x_58); -lean_dec(x_45); -if (lean_is_scalar(x_55)) { - x_60 = lean_alloc_ctor(0, 2, 0); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_64 = x_60; } else { - x_60 = x_55; + lean_dec_ref(x_60); + x_64 = lean_box(0); } -lean_ctor_set(x_60, 0, x_50); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -else -{ -lean_object* x_61; uint8_t x_62; -lean_dec(x_54); -lean_dec(x_45); -x_61 = lean_array_pop(x_48); -x_62 = l_Array_isEmpty___rarg(x_61); -if (x_62 == 0) -{ -lean_object* x_63; -if (lean_is_scalar(x_55)) { - x_63 = lean_alloc_ctor(0, 2, 0); +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + x_66 = x_61; } else { - x_63 = x_55; + lean_dec_ref(x_61); + x_66 = lean_box(0); } -lean_ctor_set(x_63, 0, x_50); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -else +x_67 = lean_array_get_size(x_63); +x_68 = lean_nat_dec_eq(x_67, x_53); +lean_dec(x_67); +if (x_68 == 0) { -lean_object* x_64; lean_object* x_65; -lean_dec(x_61); -x_64 = l_Std_PersistentArray_empty___closed__1; -if (lean_is_scalar(x_55)) { - x_65 = lean_alloc_ctor(0, 2, 0); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +if (lean_is_scalar(x_66)) { + x_69 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_55; + x_69 = x_66; } -lean_ctor_set(x_65, 0, x_50); -lean_ctor_set(x_65, 1, x_64); -return x_65; +lean_ctor_set(x_69, 0, x_65); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_63); +x_71 = lean_array_fset(x_59, x_56, x_70); +lean_dec(x_56); +if (lean_is_scalar(x_64)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_64; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +else +{ +lean_object* x_73; uint8_t x_74; +lean_dec(x_63); +lean_dec(x_56); +x_73 = lean_array_pop(x_59); +x_74 = l_Array_isEmpty___rarg(x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +if (lean_is_scalar(x_66)) { + x_75 = lean_alloc_ctor(1, 1, 0); +} else { + x_75 = x_66; +} +lean_ctor_set(x_75, 0, x_65); +if (lean_is_scalar(x_64)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_64; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_73); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_73); +if (lean_is_scalar(x_66)) { + x_77 = lean_alloc_ctor(1, 1, 0); +} else { + x_77 = x_66; +} +lean_ctor_set(x_77, 0, x_65); +x_78 = l_Std_PersistentArray_root___default___closed__1; +if (lean_is_scalar(x_64)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_64; +} +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } } else { -lean_object* x_66; -lean_dec(x_41); -lean_dec(x_40); -x_66 = l_Std_PersistentArray_popLeaf___main___rarg___closed__1; -return x_66; +lean_object* x_80; +lean_dec(x_52); +lean_dec(x_51); +x_80 = l_Std_PersistentArray_popLeaf___rarg___closed__1; +return x_80; } } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_1, 0); -lean_inc(x_67); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_1, 0); +lean_inc(x_81); lean_dec(x_1); -x_68 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_69 = l_Std_PersistentArray_empty___closed__1; -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +x_82 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_82, 0, x_81); +x_83 = l_Std_PersistentArray_root___default___closed__1; +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } -lean_object* l_Std_PersistentArray_popLeaf___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_popLeaf___main___rarg), 1, 0); -return x_2; -} -} -lean_object* l_Std_PersistentArray_popLeaf___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_PersistentArray_popLeaf___main___rarg(x_1); -return x_2; -} -} lean_object* l_Std_PersistentArray_popLeaf(lean_object* x_1) { _start: { @@ -2286,6 +2587,45 @@ x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_popLeaf___rarg), 1, 0); return x_2; } } +lean_object* l_Std_PersistentArray_pop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_4, 0); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_apply_2(x_3, x_8, x_7); +return x_9; +} +} +} +lean_object* l_Std_PersistentArray_pop_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_pop_match__1___rarg), 3, 0); +return x_3; +} +} lean_object* l_Std_PersistentArray_pop___rarg(lean_object* x_1) { _start: { @@ -2308,7 +2648,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_dec(x_6); lean_dec(x_3); -x_10 = l_Std_PersistentArray_popLeaf___main___rarg(x_2); +x_10 = l_Std_PersistentArray_popLeaf___rarg(x_2); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_11) == 0) @@ -2362,7 +2702,7 @@ return x_1; else { lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_27 = l_Std_PersistentArray_getAux___rarg___closed__1; x_28 = lean_array_get(x_27, x_17, x_8); x_29 = l_Std_PersistentArrayNode_isNode___rarg(x_28); if (x_29 == 0) @@ -2428,7 +2768,7 @@ return x_43; else { lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_44 = l_Std_PersistentArray_getAux___rarg___closed__1; x_45 = lean_array_get(x_44, x_33, x_8); x_46 = l_Std_PersistentArrayNode_isNode___rarg(x_45); if (x_46 == 0) @@ -2513,15 +2853,48 @@ x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_pop___rarg), 1, 0); return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___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* l_Std_PersistentArray_foldlMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_3, x_5, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_4, x_7, x_2); +return x_8; +} +} +} +lean_object* l_Std_PersistentArray_foldlMAux_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux_match__1___rarg), 4, 0); +return x_4; +} +} +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Std_PersistentArray_foldlMAux___main___rarg(x_1, lean_box(0), x_2, x_4, x_5); +x_6 = l_Std_PersistentArray_foldlMAux___rarg(x_1, lean_box(0), x_2, x_4, x_5); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -2529,7 +2902,7 @@ x_5 = lean_apply_2(x_1, x_4, x_3); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2539,7 +2912,7 @@ x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___rarg___lambda__1___boxed), 5, 2); +x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___rarg___lambda__1___boxed), 5, 2); lean_closure_set(x_7, 0, x_1); lean_closure_set(x_7, 1, x_3); x_8 = lean_unsigned_to_nat(0u); @@ -2552,7 +2925,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_4, 0); lean_inc(x_10); lean_dec(x_4); -x_11 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed), 4, 1); +x_11 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed), 4, 1); lean_closure_set(x_11, 0, x_3); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Array_iterateMAux___main___rarg(x_1, lean_box(0), x_10, x_11, x_12, x_5); @@ -2560,40 +2933,6 @@ return x_13; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___rarg), 5, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Std_PersistentArray_foldlMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -return x_6; -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Std_PersistentArray_foldlMAux___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; -x_6 = l_Std_PersistentArray_foldlMAux___main___rarg(x_1, lean_box(0), x_3, x_4, x_5); -return x_6; -} -} lean_object* l_Std_PersistentArray_foldlMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -2602,6 +2941,24 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___rarg), 5, 0); return x_3; } } +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Std_PersistentArray_foldlMAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Std_PersistentArray_foldlMAux___rarg___lambda__2(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} lean_object* l_Std_PersistentArray_foldlM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -2609,7 +2966,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); lean_dec(x_1); -x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___rarg___lambda__2___boxed), 4, 1); +x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___rarg___lambda__2___boxed), 4, 1); lean_closure_set(x_6, 0, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_iterateMAux___main___rarg(x_3, lean_box(0), x_5, x_6, x_7, x_4); @@ -2626,7 +2983,7 @@ x_7 = lean_ctor_get(x_3, 0); lean_inc(x_7); lean_inc(x_4); lean_inc(x_1); -x_8 = l_Std_PersistentArray_foldlMAux___main___rarg(x_1, lean_box(0), x_4, x_7, x_5); +x_8 = l_Std_PersistentArray_foldlMAux___rarg(x_1, lean_box(0), x_4, x_7, x_5); x_9 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlM___rarg___lambda__1), 4, 3); lean_closure_set(x_9, 0, x_3); lean_closure_set(x_9, 1, x_4); @@ -2643,7 +3000,40 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlM___rarg), 5, 0); return x_3; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_findSomeMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_findSomeMAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_findSomeMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2653,7 +3043,7 @@ x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); lean_dec(x_4); lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___main___rarg), 4, 3); +x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___rarg), 4, 3); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, lean_box(0)); lean_closure_set(x_6, 2, x_3); @@ -2673,22 +3063,6 @@ return x_11; } } } -lean_object* l_Std_PersistentArray_findSomeMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___main___rarg), 4, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_findSomeMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_findSomeMAux___main___rarg(x_1, lean_box(0), x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_findSomeMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -2697,6 +3071,37 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___rarg), 4, return x_3; } } +lean_object* l_Std_PersistentArray_findSomeM_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_findSomeM_x3f_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeM_x3f_match__1___rarg), 3, 0); +return x_3; +} +} lean_object* l_Std_PersistentArray_findSomeM_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -2712,17 +3117,39 @@ return x_7; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; +uint8_t x_8; lean_dec(x_3); lean_dec(x_1); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -lean_dec(x_2); -x_9 = lean_ctor_get(x_8, 1); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_2, 0); lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_apply_2(x_9, lean_box(0), x_4); -return x_10; +lean_dec(x_2); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_apply_2(x_10, lean_box(0), x_4); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_4, 0); +lean_inc(x_12); +lean_dec(x_4); +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_12); +x_16 = lean_apply_2(x_14, lean_box(0), x_15); +return x_16; +} } } } @@ -2736,7 +3163,7 @@ x_6 = lean_ctor_get(x_3, 0); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_7 = l_Std_PersistentArray_findSomeMAux___main___rarg(x_1, lean_box(0), x_4, x_6); +x_7 = l_Std_PersistentArray_findSomeMAux___rarg(x_1, lean_box(0), x_4, x_6); x_8 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeM_x3f___rarg___lambda__1), 4, 3); lean_closure_set(x_8, 0, x_3); lean_closure_set(x_8, 1, x_1); @@ -2753,7 +3180,40 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeM_x3f___rarg), 4, return x_3; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_findSomeRevMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_findSomeRevMAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_findSomeRevMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2763,7 +3223,7 @@ x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); lean_dec(x_4); lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___main___rarg), 4, 3); +x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___rarg), 4, 3); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, lean_box(0)); lean_closure_set(x_6, 2, x_3); @@ -2785,22 +3245,6 @@ return x_11; } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___main___rarg), 4, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_findSomeRevMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_findSomeRevMAux___main___rarg(x_1, lean_box(0), x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_findSomeRevMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -2809,6 +3253,37 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___rarg), return x_3; } } +lean_object* l_Std_PersistentArray_findSomeRevM_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_findSomeRevM_x3f_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevM_x3f_match__1___rarg), 3, 0); +return x_3; +} +} lean_object* l_Std_PersistentArray_findSomeRevM_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -2818,22 +3293,44 @@ lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); lean_dec(x_1); -x_6 = l_Std_PersistentArray_findSomeRevMAux___main___rarg(x_2, lean_box(0), x_3, x_5); +x_6 = l_Std_PersistentArray_findSomeRevMAux___rarg(x_2, lean_box(0), x_3, x_5); return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; +uint8_t x_7; lean_dec(x_3); lean_dec(x_1); -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_ctor_get(x_7, 1); +x_7 = !lean_is_exclusive(x_4); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_2, 0); lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_apply_2(x_8, lean_box(0), x_4); -return x_9; +lean_dec(x_2); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_apply_2(x_9, lean_box(0), x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_11); +x_15 = lean_apply_2(x_13, lean_box(0), x_14); +return x_15; +} } } } @@ -2866,7 +3363,56 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevM_x3f___rarg), return x_3; } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_foldlFromMAux_match__1___rarg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_box_usize(x_2); +x_9 = lean_box_usize(x_3); +x_10 = lean_apply_4(x_5, x_7, x_8, x_9, x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_box_usize(x_2); +x_13 = lean_box_usize(x_3); +x_14 = lean_apply_4(x_6, x_11, x_12, x_13, x_4); +return x_14; +} +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux_match__1___rarg___boxed), 6, 0); +return x_4; +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux_match__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: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Std_PersistentArray_foldlFromMAux_match__1___rarg(x_1, x_7, x_8, x_4, x_5, x_6); +return x_9; +} +} +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -2896,10 +3442,10 @@ lean_inc(x_13); x_14 = lean_array_fget(x_5, x_6); lean_inc(x_3); lean_inc(x_1); -x_15 = l_Std_PersistentArray_foldlMAux___main___rarg(x_1, lean_box(0), x_3, x_14, x_7); +x_15 = l_Std_PersistentArray_foldlMAux___rarg(x_1, lean_box(0), x_3, x_14, x_7); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_6, x_16); -x_18 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg___boxed), 7, 6); +x_18 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg___boxed), 7, 6); lean_closure_set(x_18, 0, x_1); lean_closure_set(x_18, 1, lean_box(0)); lean_closure_set(x_18, 2, x_3); @@ -2911,15 +3457,15 @@ return x_19; } } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg___boxed), 7, 0); +x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg___boxed), 7, 0); return x_3; } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -2951,7 +3497,7 @@ lean_inc(x_3); x_15 = lean_apply_2(x_3, x_7, x_14); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_6, x_16); -x_18 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg___boxed), 7, 6); +x_18 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg___boxed), 7, 6); lean_closure_set(x_18, 0, x_1); lean_closure_set(x_18, 1, lean_box(0)); lean_closure_set(x_18, 2, x_3); @@ -2963,27 +3509,27 @@ return x_19; } } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg___boxed), 7, 0); +x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg___boxed), 7, 0); return x_3; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___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* l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_add(x_1, x_6); lean_inc(x_4); -x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg(x_2, lean_box(0), x_3, x_4, x_4, x_7, x_5); +x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg(x_2, lean_box(0), x_3, x_4, x_4, x_7, x_5); lean_dec(x_7); return x_8; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_foldlFromMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2996,7 +3542,7 @@ x_9 = x_5 >> x_6; x_10 = lean_usize_to_nat(x_9); x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); -x_12 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_12 = l_Std_PersistentArray_getAux___rarg___closed__1; x_13 = lean_array_get(x_12, x_8, x_10); x_14 = 1; x_15 = x_14 << x_6; @@ -3006,8 +3552,8 @@ x_18 = 5; x_19 = x_6 - x_18; lean_inc(x_3); lean_inc(x_1); -x_20 = l_Std_PersistentArray_foldlFromMAux___main___rarg(x_1, lean_box(0), x_3, x_13, x_17, x_19, x_7); -x_21 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___rarg___lambda__1___boxed), 5, 4); +x_20 = l_Std_PersistentArray_foldlFromMAux___rarg(x_1, lean_box(0), x_3, x_13, x_17, x_19, x_7); +x_21 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1___boxed), 5, 4); lean_closure_set(x_21, 0, x_10); lean_closure_set(x_21, 1, x_1); lean_closure_set(x_21, 2, x_3); @@ -3023,67 +3569,12 @@ lean_inc(x_23); lean_dec(x_4); x_24 = lean_usize_to_nat(x_5); lean_inc(x_23); -x_25 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg(x_1, lean_box(0), x_3, x_23, x_23, x_24, x_7); +x_25 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg(x_1, lean_box(0), x_3, x_23, x_23, x_24, x_7); lean_dec(x_24); return x_25; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___rarg___boxed), 7, 0); -return x_3; -} -} -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -} -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___main___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -} -lean_object* l_Std_PersistentArray_foldlFromMAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Std_PersistentArray_foldlFromMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Std_PersistentArray_foldlFromMAux___main___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: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_9 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___rarg(x_1, x_2, x_3, x_4, x_8, x_9, x_7); -return x_10; -} -} -lean_object* l_Std_PersistentArray_foldlFromMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Std_PersistentArray_foldlFromMAux___main___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} lean_object* l_Std_PersistentArray_foldlFromMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -3092,6 +3583,33 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___rarg___bo return x_3; } } +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +return x_8; +} +} +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFromMAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +return x_8; +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Std_PersistentArray_foldlFromMAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Std_PersistentArray_foldlFromMAux___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: { @@ -3238,7 +3756,7 @@ x_11 = lean_usize_of_nat(x_6); x_12 = lean_ctor_get_usize(x_3, 4); lean_inc(x_4); lean_inc(x_1); -x_13 = l_Std_PersistentArray_foldlFromMAux___main___rarg(x_1, lean_box(0), x_4, x_10, x_11, x_12, x_5); +x_13 = l_Std_PersistentArray_foldlFromMAux___rarg(x_1, lean_box(0), x_4, x_10, x_11, x_12, x_5); x_14 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromM___rarg___lambda__1), 4, 3); lean_closure_set(x_14, 0, x_3); lean_closure_set(x_14, 1, x_1); @@ -3294,7 +3812,40 @@ lean_dec(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_forMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_forMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_forMAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_forMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3304,7 +3855,7 @@ x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); lean_inc(x_1); -x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux___main___rarg), 3, 2); +x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux___rarg), 3, 2); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, x_2); x_6 = lean_unsigned_to_nat(0u); @@ -3323,22 +3874,6 @@ return x_10; } } } -lean_object* l_Std_PersistentArray_forMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_forMAux___main___rarg), 3, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_forMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_forMAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_Std_PersistentArray_forMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -3360,7 +3895,7 @@ x_6 = lean_ctor_get(x_2, 0); lean_inc(x_6); lean_inc(x_3); lean_inc(x_1); -x_7 = l_Std_PersistentArray_forMAux___main___rarg(x_1, x_3, x_6); +x_7 = l_Std_PersistentArray_forMAux___rarg(x_1, x_3, x_6); x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); lean_dec(x_2); @@ -3396,7 +3931,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -3451,7 +3986,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_3; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3472,11 +4007,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg___boxed), 3, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg___boxed), 3, 0); return x_3; } } @@ -3522,7 +4057,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_5 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_4, x_3); +x_5 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_4, x_3); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldl___spec__5___rarg(x_1, x_2, x_6, x_7, x_5); @@ -3573,11 +4108,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldl___spec__2___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -3628,7 +4163,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -3697,7 +4232,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3718,11 +4253,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg___boxed), 3, 0); return x_2; } } @@ -3782,7 +4317,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_5 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_4, x_3); +x_5 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_4, x_3); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_iterateMAux___main___at_Std_PersistentArray_filter___spec__5___rarg(x_1, x_2, x_6, x_7, x_5); @@ -3801,7 +4336,7 @@ lean_object* l_Std_PersistentArray_filter___rarg(lean_object* x_1, lean_object* _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_empty___closed__3; +x_3 = l_Std_PersistentArray_empty___closed__1; x_4 = l_Std_PersistentArray_foldlM___at_Std_PersistentArray_filter___spec__1___rarg(x_2, x_1, x_3); return x_4; } @@ -3834,11 +4369,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__2___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -3887,7 +4422,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -3940,7 +4475,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3961,11 +4496,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg___boxed), 2, 0); return x_2; } } @@ -4008,7 +4543,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Std_PersistentArray_toArray___spec__5___rarg(x_1, x_5, x_6, x_4); @@ -4060,11 +4595,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toArray___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toArray___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } @@ -4113,7 +4648,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -4166,7 +4701,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4187,11 +4722,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg___boxed), 2, 0); return x_2; } } @@ -4234,7 +4769,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Std_PersistentArray_append___spec__5___rarg(x_1, x_5, x_6, x_4); @@ -4296,11 +4831,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_append___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_append___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } @@ -4333,7 +4868,7 @@ lean_dec(x_2); return x_3; } } -static lean_object* _init_l_Std_PersistentArray_HasAppend___closed__1() { +static lean_object* _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1() { _start: { lean_object* x_1; @@ -4341,11 +4876,11 @@ x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_append___rarg___boxed), 2 return x_1; } } -lean_object* l_Std_PersistentArray_HasAppend(lean_object* x_1) { +lean_object* l_Std_PersistentArray_Std_Data_PersistentArray___instance__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_PersistentArray_HasAppend___closed__1; +x_2 = l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1; return x_2; } } @@ -4369,7 +4904,7 @@ else lean_object* x_7; lean_object* x_8; x_7 = lean_array_fget(x_2, x_3); lean_inc(x_1); -x_8 = l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_7); +x_8 = l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_7); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -4444,7 +4979,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_findSomeMAux___main___at_Std_Persistent return x_3; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4465,11 +5000,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed), 2, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed), 2, 0); return x_3; } } @@ -4526,7 +5061,7 @@ _start: lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_3); +x_4 = l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_3); if (lean_obj_tag(x_4) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; @@ -4537,9 +5072,24 @@ return x_7; } else { +uint8_t x_8; lean_dec(x_1); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ return x_4; } +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} } } lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Std_PersistentArray_findSome_x3f___spec__1(lean_object* x_1, lean_object* x_2) { @@ -4584,11 +5134,11 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_findSomeMAux___main___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_findSomeMAux___at_Std_PersistentArray_findSome_x3f___spec__2___rarg(x_1, x_2); lean_dec(x_2); return x_3; } @@ -4688,7 +5238,7 @@ x_9 = lean_nat_sub(x_3, x_8); lean_dec(x_3); x_10 = lean_array_fget(x_2, x_9); lean_inc(x_1); -x_11 = l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_10); +x_11 = l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_10); lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { @@ -4759,7 +5309,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_findSomeRevMAux___main___at_Std_Persist return x_3; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4780,11 +5330,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed), 2, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed), 2, 0); return x_3; } } @@ -4800,14 +5350,29 @@ if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_2, 0); -x_7 = l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_6); +x_7 = l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_6); return x_7; } else { +uint8_t x_8; lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ return x_5; } +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} } } lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Std_PersistentArray_findSomeRev_x3f___spec__1(lean_object* x_1, lean_object* x_2) { @@ -4861,11 +5426,11 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_findSomeRevMAux___main___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_findSomeRevMAux___at_Std_PersistentArray_findSomeRev_x3f___spec__3___rarg(x_1, x_2); lean_dec(x_2); return x_3; } @@ -4906,7 +5471,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -4961,7 +5526,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_3; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4982,11 +5547,11 @@ return x_9; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed), 3, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed), 3, 0); return x_3; } } @@ -5008,7 +5573,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -5063,7 +5628,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_3; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5072,7 +5637,7 @@ lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x x_6 = lean_ctor_get(x_2, 0); x_7 = x_3 >> x_4; x_8 = lean_usize_to_nat(x_7); -x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_9 = l_Std_PersistentArray_getAux___rarg___closed__1; x_10 = lean_array_get(x_9, x_6, x_8); x_11 = 1; x_12 = x_11 << x_4; @@ -5081,7 +5646,7 @@ x_14 = x_3 & x_13; x_15 = 5; x_16 = x_4 - x_15; lean_inc(x_1); -x_17 = l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_1, x_10, x_14, x_16, x_5); +x_17 = l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_1, x_10, x_14, x_16, x_5); lean_dec(x_10); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_8, x_18); @@ -5099,11 +5664,11 @@ return x_23; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg___boxed), 5, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg___boxed), 5, 0); return x_3; } } @@ -5192,7 +5757,7 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_2, x_7, x_8, x_9, x_3); x_11 = lean_ctor_get(x_1, 1); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Array_iterateMAux___main___at_Std_PersistentArray_foldlFrom___spec__8___rarg(x_1, x_2, x_11, x_12, x_10); @@ -5252,11 +5817,11 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_2, x_3); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_foldlFrom___spec__3___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -5281,7 +5846,7 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___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* l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___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: { size_t x_6; size_t x_7; lean_object* x_8; @@ -5289,7 +5854,7 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_Std_PersistentArray_foldlFromMAux___main___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_foldlFrom___spec__2___rarg(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } @@ -5350,7 +5915,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg(x_7, x_4); +x_8 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg(x_7, x_4); lean_dec(x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); @@ -5405,7 +5970,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentA return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5426,11 +5991,11 @@ return x_8; } } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg___boxed), 2, 0); return x_2; } } @@ -5475,7 +6040,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg(x_3, x_2); +x_4 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_iterateMAux___main___at_Std_PersistentArray_toList___spec__5___rarg(x_1, x_5, x_6, x_4); @@ -5528,11 +6093,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_PersistentArray_foldlMAux___main___at_Std_PersistentArray_toList___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_foldlMAux___at_Std_PersistentArray_toList___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } @@ -5565,7 +6130,40 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Std_PersistentArray_anyMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_anyMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_anyMAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_anyMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5575,7 +6173,7 @@ x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); lean_inc(x_1); -x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___rarg), 3, 2); +x_5 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___rarg), 3, 2); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, x_2); x_6 = lean_array_get_size(x_4); @@ -5596,22 +6194,6 @@ return x_12; } } } -lean_object* l_Std_PersistentArray_anyMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___rarg), 3, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_anyMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_anyMAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_Std_PersistentArray_anyMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -5661,7 +6243,7 @@ x_5 = lean_ctor_get(x_2, 0); lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_6 = l_Std_PersistentArray_anyMAux___main___rarg(x_1, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___rarg(x_1, x_3, x_5); x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyM___rarg___lambda__1___boxed), 4, 3); lean_closure_set(x_7, 0, x_2); lean_closure_set(x_7, 1, x_1); @@ -5753,7 +6335,7 @@ x_15 = lean_array_fget(x_5, x_7); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_16 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2___rarg(x_1, x_2, x_3, x_15); +x_16 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2___rarg(x_1, x_2, x_3, x_15); x_17 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Std_PersistentArray_allM___spec__3___rarg___lambda__1___boxed), 8, 7); lean_closure_set(x_17, 0, x_7); lean_closure_set(x_17, 1, x_1); @@ -5865,7 +6447,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Std_Persistent return x_3; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -5894,11 +6476,11 @@ return x_12; } } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2___rarg), 4, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2___rarg), 4, 0); return x_3; } } @@ -6034,7 +6616,7 @@ lean_inc(x_6); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_7 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_allM___spec__2___rarg(x_1, x_2, x_3, x_6); +x_7 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_allM___spec__2___rarg(x_1, x_2, x_3, x_6); x_8 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyM___at_Std_PersistentArray_allM___spec__1___rarg___lambda__1___boxed), 5, 4); lean_closure_set(x_8, 0, x_4); lean_closure_set(x_8, 1, x_1); @@ -6136,7 +6718,7 @@ else lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); lean_inc(x_1); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -6211,7 +6793,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Std_Persistent return x_2; } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -6236,11 +6818,11 @@ return x_10; } } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg___boxed), 2, 0); return x_2; } } @@ -6297,7 +6879,7 @@ _start: lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -6363,11 +6945,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_any___spec__2___rarg(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; @@ -6423,7 +7005,7 @@ else lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); lean_inc(x_1); -x_9 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_8); +x_9 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -6500,7 +7082,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_anyRangeMAux___main___at_Std_Persistent return x_2; } } -uint8_t l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -6525,11 +7107,11 @@ return x_10; } } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg___boxed), 2, 0); return x_2; } } @@ -6588,7 +7170,7 @@ _start: lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_1); -x_4 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_3); +x_4 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -6665,11 +7247,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___main___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_2); +x_3 = l_Std_PersistentArray_anyMAux___at_Std_PersistentArray_all___spec__2___rarg(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; @@ -6707,7 +7289,40 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__1(lean_object* x_1) { +lean_object* l_Std_PersistentArray_mapMAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Std_PersistentArray_mapMAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; @@ -6716,15 +7331,15 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Std_PersistentArray_mapMAux___main___rarg(x_1, lean_box(0), x_2, x_4); +x_5 = l_Std_PersistentArray_mapMAux___rarg(x_1, lean_box(0), x_2, x_4); return x_5; } } -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__3(lean_object* x_1) { _start: { lean_object* x_2; @@ -6733,7 +7348,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -6741,23 +7356,23 @@ x_4 = lean_apply_1(x_1, x_3); return x_4; } } -static lean_object* _init_l_Std_PersistentArray_mapMAux___main___rarg___closed__1() { +static lean_object* _init_l_Std_PersistentArray_mapMAux___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg___lambda__1), 1, 0); return x_1; } } -static lean_object* _init_l_Std_PersistentArray_mapMAux___main___rarg___closed__2() { +static lean_object* _init_l_Std_PersistentArray_mapMAux___rarg___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg___lambda__3), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg___lambda__3), 1, 0); return x_1; } } -lean_object* l_Std_PersistentArray_mapMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_mapMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6775,14 +7390,14 @@ x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); lean_dec(x_7); lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg___lambda__2___boxed), 4, 2); +x_9 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg___lambda__2___boxed), 4, 2); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_3); x_10 = x_5; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Array_umapMAux___main___rarg(x_1, lean_box(0), x_9, x_11, x_10); x_13 = x_12; -x_14 = l_Std_PersistentArray_mapMAux___main___rarg___closed__1; +x_14 = l_Std_PersistentArray_mapMAux___rarg___closed__1; x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_14, x_13); return x_15; } @@ -6800,52 +7415,18 @@ lean_dec(x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); lean_dec(x_18); -x_20 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg___lambda__4___boxed), 3, 1); +x_20 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg___lambda__4___boxed), 3, 1); lean_closure_set(x_20, 0, x_3); x_21 = x_16; x_22 = lean_unsigned_to_nat(0u); x_23 = l_Array_umapMAux___main___rarg(x_1, lean_box(0), x_20, x_22, x_21); x_24 = x_23; -x_25 = l_Std_PersistentArray_mapMAux___main___rarg___closed__2; +x_25 = l_Std_PersistentArray_mapMAux___rarg___closed__2; x_26 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_25, x_24); return x_26; } } } -lean_object* l_Std_PersistentArray_mapMAux___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg), 4, 0); -return x_3; -} -} -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_mapMAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Std_PersistentArray_mapMAux___main___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_mapMAux___main___rarg___lambda__4(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_Std_PersistentArray_mapMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_mapMAux___main___rarg(x_1, lean_box(0), x_3, x_4); -return x_5; -} -} lean_object* l_Std_PersistentArray_mapMAux(lean_object* x_1, lean_object* x_2) { _start: { @@ -6854,6 +7435,24 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg), 4, 0); return x_3; } } +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Std_PersistentArray_mapMAux___rarg___lambda__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Std_PersistentArray_mapMAux___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Std_PersistentArray_mapMAux___rarg___lambda__4(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} lean_object* l_Std_PersistentArray_mapM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -6885,7 +7484,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_6 = lean_ctor_get(x_1, 1); lean_inc(x_6); -x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___rarg___lambda__4___boxed), 3, 1); +x_7 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___rarg___lambda__4___boxed), 3, 1); lean_closure_set(x_7, 0, x_2); x_8 = x_6; x_9 = lean_unsigned_to_nat(0u); @@ -6910,7 +7509,7 @@ x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_inc(x_3); lean_inc(x_1); -x_7 = l_Std_PersistentArray_mapMAux___main___rarg(x_1, lean_box(0), x_3, x_6); +x_7 = l_Std_PersistentArray_mapMAux___rarg(x_1, lean_box(0), x_3, x_6); lean_inc(x_5); x_8 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapM___rarg___lambda__2), 5, 4); lean_closure_set(x_8, 0, x_4); @@ -6961,7 +7560,7 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_fset(x_3, x_2, x_8); x_10 = x_7; lean_inc(x_1); -x_11 = l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_10); +x_11 = l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_10); x_12 = lean_unsigned_to_nat(1u); x_13 = lean_nat_add(x_2, x_12); x_14 = x_11; @@ -7024,7 +7623,7 @@ x_3 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Std_PersistentArra return x_3; } } -lean_object* l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7089,11 +7688,11 @@ return x_26; } } } -lean_object* l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg), 2, 0); +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg), 2, 0); return x_3; } } @@ -7151,7 +7750,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_obj x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_6 = l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_4); +x_6 = l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_4); x_7 = x_5; x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__5___rarg(x_1, x_8, x_7); @@ -7174,7 +7773,7 @@ lean_inc(x_12); lean_inc(x_11); lean_dec(x_2); lean_inc(x_1); -x_16 = l_Std_PersistentArray_mapMAux___main___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_11); +x_16 = l_Std_PersistentArray_mapMAux___at_Std_PersistentArray_map___spec__2___rarg(x_1, x_11); x_17 = x_12; x_18 = lean_unsigned_to_nat(0u); x_19 = l_Array_umapMAux___main___at_Std_PersistentArray_map___spec__5___rarg(x_1, x_18, x_17); @@ -7213,7 +7812,40 @@ x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_map___rarg), 2, 0); return x_3; } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___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* l_Std_PersistentArray_collectStats_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_3(x_4, x_6, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_3(x_5, x_8, x_2, x_3); +return x_9; +} +} +} +lean_object* l_Std_PersistentArray_collectStats_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentArray_collectStats_match__1___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -7231,7 +7863,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_array_fget(x_3, x_4); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_1, x_9); -x_11 = l_Std_PersistentArray_collectStats___main___rarg(x_8, x_5, x_10); +x_11 = l_Std_PersistentArray_collectStats___rarg(x_8, x_5, x_10); lean_dec(x_10); lean_dec(x_8); x_12 = lean_nat_add(x_4, x_9); @@ -7242,15 +7874,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Std_PersistentArray_collectStats___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentArray_collectStats___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7271,7 +7903,7 @@ lean_dec(x_7); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg(x_3, x_5, x_5, x_11, x_2); +x_12 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg(x_3, x_5, x_5, x_11, x_2); return x_12; } else @@ -7295,7 +7927,7 @@ lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); lean_ctor_set(x_20, 2, x_16); x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg(x_3, x_13, x_13, x_21, x_20); +x_22 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg(x_3, x_13, x_13, x_21, x_20); return x_22; } } @@ -7341,43 +7973,6 @@ return x_35; } } } -lean_object* l_Std_PersistentArray_collectStats___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_collectStats___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___main___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Std_PersistentArray_collectStats___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_collectStats___main___rarg(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Std_PersistentArray_collectStats___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_collectStats___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_Std_PersistentArray_collectStats(lean_object* x_1) { _start: { @@ -7386,6 +7981,17 @@ x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_collectStats___rarg___box return x_2; } } +lean_object* l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Std_PersistentArray_collectStats___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Std_PersistentArray_collectStats___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7408,7 +8014,7 @@ x_6 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_5); lean_ctor_set(x_6, 2, x_4); -x_7 = l_Std_PersistentArray_collectStats___main___rarg(x_2, x_6, x_5); +x_7 = l_Std_PersistentArray_collectStats___rarg(x_2, x_6, x_5); return x_7; } } @@ -7483,7 +8089,7 @@ x_17 = lean_string_append(x_15, x_16); return x_17; } } -static lean_object* _init_l_Std_PersistentArray_HasToString___closed__1() { +static lean_object* _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1() { _start: { lean_object* x_1; @@ -7491,11 +8097,11 @@ x_1 = lean_alloc_closure((void*)(l_Std_PersistentArray_Stats_toString), 1, 0); return x_1; } } -static lean_object* _init_l_Std_PersistentArray_HasToString() { +static lean_object* _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__4() { _start: { lean_object* x_1; -x_1 = l_Std_PersistentArray_HasToString___closed__1; +x_1 = l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1; return x_1; } } @@ -7585,7 +8191,39 @@ x_2 = lean_alloc_closure((void*)(l_Std_mkPArray___rarg), 2, 0); return x_2; } } -lean_object* l_List_toPersistentArrayAux___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_toPersistentArrayAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_2); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_3(x_4, x_6, x_7, x_2); +return x_8; +} +} +} +lean_object* l_List_toPersistentArrayAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_toPersistentArrayAux_match__1___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_toPersistentArrayAux___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7607,22 +8245,6 @@ goto _start; } } } -lean_object* l_List_toPersistentArrayAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_toPersistentArrayAux___main___rarg), 2, 0); -return x_2; -} -} -lean_object* l_List_toPersistentArrayAux___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_toPersistentArrayAux___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_toPersistentArrayAux(lean_object* x_1) { _start: { @@ -7635,8 +8257,8 @@ lean_object* l_List_toPersistentArray___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Std_PersistentArray_empty___closed__3; -x_3 = l_List_toPersistentArrayAux___main___rarg(x_1, x_2); +x_2 = l_Std_PersistentArray_empty___closed__1; +x_3 = l_List_toPersistentArrayAux___rarg(x_1, x_2); return x_3; } } @@ -7753,40 +8375,45 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Std_PersistentArrayNode_Inhabited___closed__1 = _init_l_Std_PersistentArrayNode_Inhabited___closed__1(); -lean_mark_persistent(l_Std_PersistentArrayNode_Inhabited___closed__1); +l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1 = _init_l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1(); +lean_mark_persistent(l_Std_PersistentArrayNode_Std_Data_PersistentArray___instance__1___closed__1); l_Std_PersistentArray_initShift = _init_l_Std_PersistentArray_initShift(); l_Std_PersistentArray_branching = _init_l_Std_PersistentArray_branching(); +l_Std_PersistentArray_root___default___closed__1 = _init_l_Std_PersistentArray_root___default___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_root___default___closed__1); +l_Std_PersistentArray_root___default___closed__2 = _init_l_Std_PersistentArray_root___default___closed__2(); +lean_mark_persistent(l_Std_PersistentArray_root___default___closed__2); +l_Std_PersistentArray_size___default = _init_l_Std_PersistentArray_size___default(); +lean_mark_persistent(l_Std_PersistentArray_size___default); +l_Std_PersistentArray_shift___default = _init_l_Std_PersistentArray_shift___default(); +l_Std_PersistentArray_tailOff___default = _init_l_Std_PersistentArray_tailOff___default(); +lean_mark_persistent(l_Std_PersistentArray_tailOff___default); l_Std_PersistentArray_empty___closed__1 = _init_l_Std_PersistentArray_empty___closed__1(); lean_mark_persistent(l_Std_PersistentArray_empty___closed__1); -l_Std_PersistentArray_empty___closed__2 = _init_l_Std_PersistentArray_empty___closed__2(); -lean_mark_persistent(l_Std_PersistentArray_empty___closed__2); -l_Std_PersistentArray_empty___closed__3 = _init_l_Std_PersistentArray_empty___closed__3(); -lean_mark_persistent(l_Std_PersistentArray_empty___closed__3); -l_Std_PersistentArray_getAux___main___rarg___closed__1 = _init_l_Std_PersistentArray_getAux___main___rarg___closed__1(); -lean_mark_persistent(l_Std_PersistentArray_getAux___main___rarg___closed__1); +l_Std_PersistentArray_getAux___rarg___closed__1 = _init_l_Std_PersistentArray_getAux___rarg___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_getAux___rarg___closed__1); l_Std_PersistentArray_tooBig___closed__1 = _init_l_Std_PersistentArray_tooBig___closed__1(); lean_mark_persistent(l_Std_PersistentArray_tooBig___closed__1); l_Std_PersistentArray_tooBig = _init_l_Std_PersistentArray_tooBig(); lean_mark_persistent(l_Std_PersistentArray_tooBig); -l_Std_PersistentArray_popLeaf___main___rarg___closed__1 = _init_l_Std_PersistentArray_popLeaf___main___rarg___closed__1(); -lean_mark_persistent(l_Std_PersistentArray_popLeaf___main___rarg___closed__1); -l_Std_PersistentArray_HasAppend___closed__1 = _init_l_Std_PersistentArray_HasAppend___closed__1(); -lean_mark_persistent(l_Std_PersistentArray_HasAppend___closed__1); -l_Std_PersistentArray_mapMAux___main___rarg___closed__1 = _init_l_Std_PersistentArray_mapMAux___main___rarg___closed__1(); -lean_mark_persistent(l_Std_PersistentArray_mapMAux___main___rarg___closed__1); -l_Std_PersistentArray_mapMAux___main___rarg___closed__2 = _init_l_Std_PersistentArray_mapMAux___main___rarg___closed__2(); -lean_mark_persistent(l_Std_PersistentArray_mapMAux___main___rarg___closed__2); +l_Std_PersistentArray_popLeaf___rarg___closed__1 = _init_l_Std_PersistentArray_popLeaf___rarg___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_popLeaf___rarg___closed__1); +l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1 = _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_Std_Data_PersistentArray___instance__3___closed__1); +l_Std_PersistentArray_mapMAux___rarg___closed__1 = _init_l_Std_PersistentArray_mapMAux___rarg___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_mapMAux___rarg___closed__1); +l_Std_PersistentArray_mapMAux___rarg___closed__2 = _init_l_Std_PersistentArray_mapMAux___rarg___closed__2(); +lean_mark_persistent(l_Std_PersistentArray_mapMAux___rarg___closed__2); l_Std_PersistentArray_Stats_toString___closed__1 = _init_l_Std_PersistentArray_Stats_toString___closed__1(); lean_mark_persistent(l_Std_PersistentArray_Stats_toString___closed__1); l_Std_PersistentArray_Stats_toString___closed__2 = _init_l_Std_PersistentArray_Stats_toString___closed__2(); lean_mark_persistent(l_Std_PersistentArray_Stats_toString___closed__2); l_Std_PersistentArray_Stats_toString___closed__3 = _init_l_Std_PersistentArray_Stats_toString___closed__3(); lean_mark_persistent(l_Std_PersistentArray_Stats_toString___closed__3); -l_Std_PersistentArray_HasToString___closed__1 = _init_l_Std_PersistentArray_HasToString___closed__1(); -lean_mark_persistent(l_Std_PersistentArray_HasToString___closed__1); -l_Std_PersistentArray_HasToString = _init_l_Std_PersistentArray_HasToString(); -lean_mark_persistent(l_Std_PersistentArray_HasToString); +l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1 = _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1(); +lean_mark_persistent(l_Std_PersistentArray_Std_Data_PersistentArray___instance__4___closed__1); +l_Std_PersistentArray_Std_Data_PersistentArray___instance__4 = _init_l_Std_PersistentArray_Std_Data_PersistentArray___instance__4(); +lean_mark_persistent(l_Std_PersistentArray_Std_Data_PersistentArray___instance__4); l_Std_mkPersistentArray___rarg___closed__1 = _init_l_Std_mkPersistentArray___rarg___closed__1(); lean_mark_persistent(l_Std_mkPersistentArray___rarg___closed__1); return lean_io_result_mk_ok(lean_box(0));