From 3ac752b413d2ac2df4efc5bc3f544c5ae5bb21b1 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sat, 24 Oct 2020 16:47:07 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Coe.lean | 1 - stage0/src/Init/Data/Array/Subarray.lean | 1 - stage0/src/Init/Data/Int/Basic.lean | 1 - stage0/src/Init/Data/List/Basic.lean | 410 +- stage0/src/Init/Data/Nat/Div.lean | 113 +- stage0/src/Init/HasCoe.lean | 181 - stage0/src/Lean/Parser/Tactic.lean | 4 +- stage0/stdlib/CMakeLists.txt | 2 +- stage0/stdlib/Init/Coe.c | 6 +- stage0/stdlib/Init/Data/Array/Subarray.c | 9 - stage0/stdlib/Init/Data/Hashable.c | 18 +- stage0/stdlib/Init/Data/Int/Basic.c | 169 +- stage0/stdlib/Init/Data/List/Basic.c | 5106 +++++++++++------ stage0/stdlib/Init/Data/Nat/Div.c | 56 +- stage0/stdlib/Init/Data/String/Basic.c | 22 +- stage0/stdlib/Init/HasCoe.c | 679 --- stage0/stdlib/Init/LeanInit.c | 10 +- stage0/stdlib/Init/System/FilePath.c | 32 +- stage0/stdlib/Lean/Attributes.c | 64 +- stage0/stdlib/Lean/Compiler/ConstFolding.c | 112 +- stage0/stdlib/Lean/Compiler/ExternAttr.c | 16 +- stage0/stdlib/Lean/Compiler/IR/CompilerM.c | 6 +- .../Lean/Compiler/IR/ElimDeadBranches.c | 134 +- stage0/stdlib/Lean/Compiler/IR/EmitC.c | 44 +- stage0/stdlib/Lean/Compiler/IR/EmitUtil.c | 14 +- .../stdlib/Lean/Compiler/ImplementedByAttr.c | 14 +- stage0/stdlib/Lean/Compiler/InitAttr.c | 14 +- stage0/stdlib/Lean/Compiler/InlineAttrs.c | 54 +- stage0/stdlib/Lean/Compiler/Specialize.c | 54 +- stage0/stdlib/Lean/Compiler/Util.c | 10 +- stage0/stdlib/Lean/CoreM.c | 12 +- stage0/stdlib/Lean/Data/Format.c | 12 +- stage0/stdlib/Lean/Data/Json/Basic.c | 14 +- stage0/stdlib/Lean/Data/KVMap.c | 4 +- stage0/stdlib/Lean/Data/Lsp/Communication.c | 14 +- stage0/stdlib/Lean/Data/Name.c | 122 +- stage0/stdlib/Lean/Data/Occurrences.c | 28 +- stage0/stdlib/Lean/Data/OpenDecl.c | 12 +- stage0/stdlib/Lean/Data/Options.c | 10 +- stage0/stdlib/Lean/Declaration.c | 4 +- stage0/stdlib/Lean/Delaborator.c | 4 +- stage0/stdlib/Lean/Elab/App.c | 54 +- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 12 +- stage0/stdlib/Lean/Elab/Command.c | 44 +- stage0/stdlib/Lean/Elab/DeclModifiers.c | 16 +- stage0/stdlib/Lean/Elab/DeclUtil.c | 22 +- stage0/stdlib/Lean/Elab/Declaration.c | 14 +- stage0/stdlib/Lean/Elab/Do.c | 40 +- stage0/stdlib/Lean/Elab/Import.c | 10 +- stage0/stdlib/Lean/Elab/Inductive.c | 126 +- stage0/stdlib/Lean/Elab/Level.c | 6 +- stage0/stdlib/Lean/Elab/Match.c | 62 +- stage0/stdlib/Lean/Elab/MutualDef.c | 92 +- stage0/stdlib/Lean/Elab/PreDefinition/Basic.c | 16 +- stage0/stdlib/Lean/Elab/PreDefinition/Main.c | 30 +- .../Lean/Elab/PreDefinition/Structural.c | 6 +- stage0/stdlib/Lean/Elab/Print.c | 18 +- stage0/stdlib/Lean/Elab/Quotation.c | 210 +- stage0/stdlib/Lean/Elab/StrategyAttrs.c | 54 +- stage0/stdlib/Lean/Elab/StructInst.c | 170 +- stage0/stdlib/Lean/Elab/Structure.c | 24 +- stage0/stdlib/Lean/Elab/Syntax.c | 24 +- stage0/stdlib/Lean/Elab/SyntheticMVars.c | 26 +- stage0/stdlib/Lean/Elab/Tactic/Basic.c | 80 +- stage0/stdlib/Lean/Elab/Tactic/Induction.c | 38 +- stage0/stdlib/Lean/Elab/Tactic/Injection.c | 20 +- stage0/stdlib/Lean/Elab/Term.c | 14 +- stage0/stdlib/Lean/Elab/Util.c | 52 +- stage0/stdlib/Lean/Environment.c | 4 +- stage0/stdlib/Lean/Expr.c | 86 +- stage0/stdlib/Lean/KeyedDeclsAttribute.c | 4 +- stage0/stdlib/Lean/Message.c | 26 +- stage0/stdlib/Lean/Meta/AppBuilder.c | 4 +- stage0/stdlib/Lean/Meta/Basic.c | 8 +- stage0/stdlib/Lean/Meta/Check.c | 10 +- stage0/stdlib/Lean/Meta/DiscrTree.c | 42 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 16 +- stage0/stdlib/Lean/Meta/GeneralizeTelescope.c | 6 +- stage0/stdlib/Lean/Meta/InferType.c | 10 +- stage0/stdlib/Lean/Meta/Instances.c | 10 +- stage0/stdlib/Lean/Meta/Match/CaseValues.c | 4 +- stage0/stdlib/Lean/Meta/Match/Match.c | 1158 ++-- stage0/stdlib/Lean/Meta/RecursorInfo.c | 56 +- stage0/stdlib/Lean/Meta/SynthInstance.c | 4 +- stage0/stdlib/Lean/Meta/Tactic/Apply.c | 12 +- stage0/stdlib/Lean/Meta/Tactic/Cases.c | 10 +- stage0/stdlib/Lean/Meta/Tactic/Induction.c | 18 +- stage0/stdlib/Lean/Meta/Tactic/Rewrite.c | 12 +- stage0/stdlib/Lean/Meta/Tactic/Subst.c | 10 +- stage0/stdlib/Lean/Meta/WHNF.c | 50 +- stage0/stdlib/Lean/MetavarContext.c | 138 +- stage0/stdlib/Lean/Parser/Basic.c | 28 +- stage0/stdlib/Lean/Parser/Extension.c | 48 +- stage0/stdlib/Lean/Parser/Tactic.c | 389 +- stage0/stdlib/Lean/PrettyPrinter/Formatter.c | 56 +- stage0/stdlib/Lean/ReducibilityAttrs.c | 54 +- stage0/stdlib/Lean/ResolveName.c | 96 +- stage0/stdlib/Lean/Scopes.c | 12 +- stage0/stdlib/Lean/Server.c | 14 +- stage0/stdlib/Lean/Syntax.c | 104 +- stage0/stdlib/Lean/Util/CollectFVars.c | 110 +- stage0/stdlib/Lean/Util/CollectLevelParams.c | 226 +- stage0/stdlib/Lean/Util/CollectMVars.c | 110 +- stage0/stdlib/Lean/Util/Path.c | 8 +- stage0/stdlib/Lean/Util/ReplaceLevel.c | 22 +- stage0/stdlib/Std/Data/BinomialHeap.c | 40 +- stage0/stdlib/Std/Data/HashSet.c | 38 +- stage0/stdlib/Std/Data/RBMap.c | 24 +- stage0/stdlib/Std/Data/RBTree.c | 12 +- stage0/stdlib/Std/ShareCommon.c | 112 +- 110 files changed, 6524 insertions(+), 5549 deletions(-) delete mode 100644 stage0/src/Init/HasCoe.lean delete mode 100644 stage0/stdlib/Init/HasCoe.c diff --git a/stage0/src/Init/Coe.lean b/stage0/src/Init/Coe.lean index e19a38f90f..8b42b8ab54 100644 --- a/stage0/src/Init/Coe.lean +++ b/stage0/src/Init/Coe.lean @@ -5,7 +5,6 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude -import Init.HasCoe -- import legacy HasCoe import Init.Core universes u v w w' diff --git a/stage0/src/Init/Data/Array/Subarray.lean b/stage0/src/Init/Data/Array/Subarray.lean index bedfd226d0..b248820217 100644 --- a/stage0/src/Init/Data/Array/Subarray.lean +++ b/stage0/src/Init/Data/Array/Subarray.lean @@ -61,7 +61,6 @@ def ofSubarray (s : Subarray α) : Array α := do def extract (as : Array α) (start stop : Nat) : Array α := ofSubarray (as.toSubarray start stop) -instance : HasCoe (Subarray α) (Array α) := ⟨ofSubarray⟩ instance : Coe (Subarray α) (Array α) := ⟨ofSubarray⟩ end Array diff --git a/stage0/src/Init/Data/Int/Basic.lean b/stage0/src/Init/Data/Int/Basic.lean index 29c2e0445b..3355267e7e 100644 --- a/stage0/src/Init/Data/Int/Basic.lean +++ b/stage0/src/Init/Data/Int/Basic.lean @@ -22,7 +22,6 @@ inductive Int : Type attribute [extern "lean_nat_to_int"] Int.ofNat attribute [extern "lean_int_neg_succ_of_nat"] Int.negSucc -instance : HasCoe Nat Int := ⟨Int.ofNat⟩ instance : Coe Nat Int := ⟨Int.ofNat⟩ namespace Int diff --git a/stage0/src/Init/Data/List/Basic.lean b/stage0/src/Init/Data/List/Basic.lean index 0d7ddb1645..48041f3c14 100644 --- a/stage0/src/Init/Data/List/Basic.lean +++ b/stage0/src/Init/Data/List/Basic.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -10,369 +11,346 @@ open Decidable List universes u v w -instance (α : Type u) : Inhabited (List α) := -⟨List.nil⟩ +instance (α : Type u) : Inhabited (List α) := ⟨List.nil⟩ variables {α : Type u} {β : Type v} {γ : Type w} namespace List -protected def hasDecEq [DecidableEq α] : ∀ (a b : List α), Decidable (a = b) -| [], [] => isTrue rfl -| a::as, [] => isFalse (fun h => List.noConfusion h) -| [], b::bs => isFalse (fun h => List.noConfusion h) -| a::as, b::bs => - match decEq a b with - | isTrue hab => - match hasDecEq as bs with - | isTrue habs => isTrue (Eq.subst hab (Eq.subst habs rfl)) - | isFalse nabs => isFalse (fun h => List.noConfusion h (fun _ habs => absurd habs nabs)) - | isFalse nab => isFalse (fun h => List.noConfusion h (fun hab _ => absurd hab nab)) +protected def hasDecEq [DecidableEq α] : (a b : List α) → Decidable (a = b) + | [], [] => isTrue rfl + | a::as, [] => isFalse (fun h => List.noConfusion h) + | [], b::bs => isFalse (fun h => List.noConfusion h) + | a::as, b::bs => + match decEq a b with + | isTrue hab => + match List.hasDecEq as bs with + | isTrue habs => isTrue (hab ▸ habs ▸ rfl) + | isFalse nabs => isFalse (fun h => List.noConfusion h (fun _ habs => absurd habs nabs)) + | isFalse nab => isFalse (fun h => List.noConfusion h (fun hab _ => absurd hab nab)) -instance [DecidableEq α] : DecidableEq (List α) := -List.hasDecEq +instance [DecidableEq α] : DecidableEq (List α) := List.hasDecEq def reverseAux : List α → List α → List α -| [], r => r -| a::l, r => reverseAux l (a::r) + | [], r => r + | a::l, r => reverseAux l (a::r) -def reverse : List α → List α := -fun l => reverseAux l [] +def reverse (as : List α) :List α := + reverseAux as [] protected def append (as bs : List α) : List α := -reverseAux as.reverse bs + reverseAux as.reverse bs -instance : HasAppend (List α) := -⟨List.append⟩ +instance : HasAppend (List α) := ⟨List.append⟩ theorem reverseAuxReverseAuxNil : ∀ (as bs : List α), reverseAux (reverseAux as bs) [] = reverseAux bs as -| [], bs => rfl -| a::as, bs => - show reverseAux (reverseAux as (a::bs)) [] = reverseAux bs (a::as) from - reverseAuxReverseAuxNil as (a::bs) + | [], bs => rfl + | a::as, bs => + show reverseAux (reverseAux as (a::bs)) [] = reverseAux bs (a::as) from + reverseAuxReverseAuxNil as (a::bs) -theorem nilAppend (as : List α) : [] ++ as = as := -rfl +theorem nilAppend (as : List α) : [] ++ as = as := rfl theorem appendNil (as : List α) : as ++ [] = as := -show reverseAux (reverseAux as []) [] = as from -reverseAuxReverseAuxNil as [] + show reverseAux (reverseAux as []) [] = as from + reverseAuxReverseAuxNil as [] theorem reverseAuxReverseAux : ∀ (as bs cs : List α), reverseAux (reverseAux as bs) cs = reverseAux bs (reverseAux (reverseAux as []) cs) -| [], bs, cs => rfl -| a::as, bs, cs => - Eq.trans - (reverseAuxReverseAux as (a::bs) cs) - (congrArg (fun b => reverseAux bs b) (reverseAuxReverseAux as [a] cs).symm) + | [], bs, cs => rfl + | a::as, bs, cs => by + rw [reverseAuxReverseAux as (a::bs) cs, reverseAuxReverseAux as [a] cs] + exact rfl theorem consAppend (a : α) (as bs : List α) : (a::as) ++ bs = a::(as ++ bs) := -reverseAuxReverseAux as [a] bs + reverseAuxReverseAux as [a] bs theorem appendAssoc : ∀ (as bs cs : List α), (as ++ bs) ++ cs = as ++ (bs ++ cs) -| [], bs, cs => rfl -| a::as, bs, cs => - show ((a::as) ++ bs) ++ cs = (a::as) ++ (bs ++ cs) from - have h₁ : ((a::as) ++ bs) ++ cs = a::(as++bs) ++ cs from congrArg (fun ds => ds ++ cs) (consAppend a as bs); - have h₂ : a::(as++bs) ++ cs = a::((as++bs) ++ cs) from consAppend a (as++bs) cs; - have h₃ : a::((as++bs) ++ cs) = a::(as ++ (bs ++ cs)) from congrArg (fun as => a::as) (appendAssoc as bs cs); - have h₄ : a::(as ++ (bs ++ cs)) = (a::as ++ (bs ++ cs)) from (consAppend a as (bs++cs)).symm; - Eq.trans (Eq.trans (Eq.trans h₁ h₂) h₃) h₄ + | [], bs, cs => rfl + | a::as, bs, cs => by + show ((a::as) ++ bs) ++ cs = (a::as) ++ (bs ++ cs) + rw [consAppend, consAppend, appendAssoc, consAppend] + exact rfl -instance : HasEmptyc (List α) := -⟨List.nil⟩ +instance : HasEmptyc (List α) := ⟨List.nil⟩ protected def erase {α} [HasBeq α] : List α → α → List α -| [], b => [] -| a::as, b => match a == b with - | true => as - | false => a :: erase as b + | [], b => [] + | a::as, b => match a == b with + | true => as + | false => a :: List.erase as b def eraseIdx : List α → Nat → List α -| [], _ => [] -| a::as, 0 => as -| a::as, n+1 => a :: eraseIdx as n + | [], _ => [] + | a::as, 0 => as + | a::as, n+1 => a :: eraseIdx as n def lengthAux : List α → Nat → Nat -| [], n => n -| a::as, n => lengthAux as (n+1) + | [], n => n + | a::as, n => lengthAux as (n+1) def length (as : List α) : Nat := -lengthAux as 0 + lengthAux as 0 def isEmpty : List α → Bool -| [] => true -| _ :: _ => false + | [] => true + | _ :: _ => false def set : List α → Nat → α → List α -| a::as, 0, b => b::as -| a::as, n+1, b => a::(set as n b) -| [], _, _ => [] + | a::as, 0, b => b::as + | a::as, n+1, b => a::(set as n b) + | [], _, _ => [] @[specialize] def map (f : α → β) : List α → List β -| [] => [] -| a::as => f a :: map as + | [] => [] + | a::as => f a :: map f as @[specialize] def map₂ (f : α → β → γ) : List α → List β → List γ -| [], _ => [] -| _, [] => [] -| a::as, b::bs => f a b :: map₂ as bs + | [], _ => [] + | _, [] => [] + | a::as, b::bs => f a b :: map₂ f as bs def join : List (List α) → List α -| [] => [] -| a :: as => a ++ join as + | [] => [] + | a :: as => a ++ join as @[specialize] def filterMap (f : α → Option β) : List α → List β -| [] => [] -| a::as => - match f a with - | none => filterMap as - | some b => b :: filterMap as + | [] => [] + | a::as => + match f a with + | none => filterMap f as + | some b => b :: filterMap f as @[specialize] def filterAux (p : α → Bool) : List α → List α → List α -| [], rs => rs.reverse -| a::as, rs => match p a with - | true => filterAux as (a::rs) - | false => filterAux as rs + | [], rs => rs.reverse + | a::as, rs => match p a with + | true => filterAux p as (a::rs) + | false => filterAux p as rs @[inline] def filter (p : α → Bool) (as : List α) : List α := -filterAux p as [] + filterAux p as [] @[specialize] def partitionAux (p : α → Bool) : List α → List α × List α → List α × List α -| [], (bs, cs) => (bs.reverse, cs.reverse) -| a::as, (bs, cs) => - match p a with - | true => partitionAux as (a::bs, cs) - | false => partitionAux as (bs, a::cs) + | [], (bs, cs) => (bs.reverse, cs.reverse) + | a::as, (bs, cs) => + match p a with + | true => partitionAux p as (a::bs, cs) + | false => partitionAux p as (bs, a::cs) @[inline] def partition (p : α → Bool) (as : List α) : List α × List α := -partitionAux p as ([], []) + partitionAux p as ([], []) def dropWhile (p : α → Bool) : List α → List α -| [] => [] -| a::l => match p a with - | true => dropWhile l - | false => a::l + | [] => [] + | a::l => match p a with + | true => dropWhile p l + | false => a::l def find? (p : α → Bool) : List α → Option α -| [] => none -| a::as => match p a with - | true => some a - | false => find? as + | [] => none + | a::as => match p a with + | true => some a + | false => find? p as def findSome? (f : α → Option β) : List α → Option β -| [] => none -| a::as => match f a with - | some b => some b - | none => findSome? as + | [] => none + | a::as => match f a with + | some b => some b + | none => findSome? f as def replace [HasBeq α] : List α → α → α → List α -| [], _, _ => [] -| a::as, b, c => match a == b with - | true => c::as - | flase => a :: (replace as b c) + | [], _, _ => [] + | a::as, b, c => match a == b with + | true => c::as + | flase => a :: (replace as b c) def elem [HasBeq α] (a : α) : List α → Bool -| [] => false -| b::bs => match a == b with - | true => true - | false => elem bs + | [] => false + | b::bs => match a == b with + | true => true + | false => elem a bs def notElem [HasBeq α] (a : α) (as : List α) : Bool := -!(as.elem a) + !(as.elem a) abbrev contains [HasBeq α] (as : List α) (a : α) : Bool := -elem a as + elem a as def eraseDupsAux {α} [HasBeq α] : List α → List α → List α -| [], bs => bs.reverse -| a::as, bs => match bs.elem a with - | true => eraseDupsAux as bs - | false => eraseDupsAux as (a::bs) + | [], bs => bs.reverse + | a::as, bs => match bs.elem a with + | true => eraseDupsAux as bs + | false => eraseDupsAux as (a::bs) def eraseDups {α} [HasBeq α] (as : List α) : List α := -eraseDupsAux as [] + eraseDupsAux as [] def eraseRepsAux {α} [HasBeq α] : α → List α → List α → List α -| a, [], rs => (a::rs).reverse -| a, a'::as, rs => match a == a' with - | true => eraseRepsAux a as rs - | false => eraseRepsAux a' as (a::rs) + | a, [], rs => (a::rs).reverse + | a, a'::as, rs => match a == a' with + | true => eraseRepsAux a as rs + | false => eraseRepsAux a' as (a::rs) /-- Erase repeated adjacent elements. -/ def eraseReps {α} [HasBeq α] : List α → List α -| [] => [] -| a::as => eraseRepsAux a as [] + | [] => [] + | a::as => eraseRepsAux a as [] @[specialize] def spanAux (p : α → Bool) : List α → List α → List α × List α -| [], rs => (rs.reverse, []) -| a::as, rs => match p a with - | true => spanAux as (a::rs) - | false => (rs.reverse, a::as) + | [], rs => (rs.reverse, []) + | a::as, rs => match p a with + | true => spanAux p as (a::rs) + | false => (rs.reverse, a::as) @[inline] def span (p : α → Bool) (as : List α) : List α × List α := -spanAux p as [] + spanAux p as [] @[specialize] def groupByAux (eq : α → α → Bool) : List α → List (List α) → List (List α) -| a::as, (ag::g)::gs => match eq a ag with - | true => groupByAux as ((a::ag::g)::gs) - | false => groupByAux as ([a]::(ag::g).reverse::gs) -| _, gs => gs.reverse + | a::as, (ag::g)::gs => match eq a ag with + | true => groupByAux eq as ((a::ag::g)::gs) + | false => groupByAux eq as ([a]::(ag::g).reverse::gs) + | _, gs => gs.reverse @[specialize] def groupBy (p : α → α → Bool) : List α → List (List α) -| [] => [] -| a::as => groupByAux p as [[a]] + | [] => [] + | a::as => groupByAux p as [[a]] def lookup [HasBeq α] : α → List (α × β) → Option β -| _, [] => none -| a, (k,b)::es => match a == k with - | true => some b - | false => lookup a es + | _, [] => none + | a, (k,b)::es => match a == k with + | true => some b + | false => lookup a es def removeAll [HasBeq α] (xs ys : List α) : List α := -xs.filter (fun x => ys.notElem x) + xs.filter (fun x => ys.notElem x) def drop : Nat → List α → List α -| 0, a => a -| n+1, [] => [] -| n+1, a::as => drop n as + | 0, a => a + | n+1, [] => [] + | n+1, a::as => drop n as def take : Nat → List α → List α -| 0, a => [] -| n+1, [] => [] -| n+1, a::as => a :: take n as + | 0, a => [] + | n+1, [] => [] + | n+1, a::as => a :: take n as @[specialize] def foldl (f : α → β → α) : forall (init : α), List β → α -| a, [] => a -| a, b :: l => foldl (f a b) l + | a, [] => a + | a, b :: l => foldl f (f a b) l @[specialize] def foldr (f : α → β → β) (init : β) : List α → β -| [] => init -| a :: l => f a (foldr l) - -@[specialize] def foldr1 (f : α → α → α) : ∀ (xs : List α), xs ≠ [] → α -| [], h => absurd rfl h -| [a], _ => a -| a :: as@(_::_), _ => f a (foldr1 as (fun h => List.noConfusion h)) - -@[specialize] def foldr1Opt (f : α → α → α) : List α → Option α -| [] => none -| a :: as => some $ foldr1 f (a :: as) (fun h => List.noConfusion h) + | [] => init + | a :: l => f a (foldr f init l) @[inline] def any (l : List α) (p : α → Bool) : Bool := -foldr (fun a r => p a || r) false l + foldr (fun a r => p a || r) false l @[inline] def all (l : List α) (p : α → Bool) : Bool := -foldr (fun a r => p a && r) true l + foldr (fun a r => p a && r) true l def or (bs : List Bool) : Bool := bs.any id def and (bs : List Bool) : Bool := bs.all id def zipWith (f : α → β → γ) : List α → List β → List γ -| x::xs, y::ys => f x y :: zipWith xs ys -| _, _ => [] + | x::xs, y::ys => f x y :: zipWith f xs ys + | _, _ => [] def zip : List α → List β → List (Prod α β) := -zipWith Prod.mk + zipWith Prod.mk def unzip : List (α × β) → List α × List β -| [] => ([], []) -| (a, b) :: t => match unzip t with | (al, bl) => (a::al, b::bl) + | [] => ([], []) + | (a, b) :: t => match unzip t with | (al, bl) => (a::al, b::bl) def replicate (n : Nat) (a : α) : List α := -n.repeat (fun xs => a :: xs) [] + n.repeat (fun xs => a :: xs) [] def rangeAux : Nat → List Nat → List Nat -| 0, ns => ns -| n+1, ns => rangeAux n (n::ns) + | 0, ns => ns + | n+1, ns => rangeAux n (n::ns) def range (n : Nat) : List Nat := -rangeAux n [] + rangeAux n [] def iota : Nat → List Nat -| 0 => [] -| m@(n+1) => m :: iota n + | 0 => [] + | m@(n+1) => m :: iota n def enumFrom : Nat → List α → List (Nat × α) -| n, [] => nil -| n, x :: xs => (n, x) :: enumFrom (n + 1) xs + | n, [] => nil + | n, x :: xs => (n, x) :: enumFrom (n + 1) xs def enum : List α → List (Nat × α) := enumFrom 0 def init : List α → List α -| [] => [] -| [a] => [] -| a::l => a::init l + | [] => [] + | [a] => [] + | a::l => a::init l def intersperse (sep : α) : List α → List α -| [] => [] -| [x] => [x] -| x::xs => x::sep::intersperse xs + | [] => [] + | [x] => [x] + | x::xs => x :: sep :: intersperse sep xs def intercalate (sep : List α) (xs : List (List α)) : List α := -join (intersperse sep xs) + join (intersperse sep xs) -@[inline] protected def bind {α : Type u} {β : Type v} (a : List α) (b : α → List β) : List β := -join (map b a) +@[inline] protected def bind {α : Type u} {β : Type v} (a : List α) (b : α → List β) : List β := join (map b a) -@[inline] protected def pure {α : Type u} (a : α) : List α := -[a] +@[inline] protected def pure {α : Type u} (a : α) : List α := [a] inductive Less [HasLess α] : List α → List α → Prop -| nil (b : α) (bs : List α) : Less [] (b::bs) -| head {a : α} (as : List α) {b : α} (bs : List α) : a < b → Less (a::as) (b::bs) -| tail {a : α} {as : List α} {b : α} {bs : List α} : ¬ a < b → ¬ b < a → Less as bs → Less (a::as) (b::bs) + | nil (b : α) (bs : List α) : Less [] (b::bs) + | head {a : α} (as : List α) {b : α} (bs : List α) : a < b → Less (a::as) (b::bs) + | tail {a : α} {as : List α} {b : α} {bs : List α} : ¬ a < b → ¬ b < a → Less as bs → Less (a::as) (b::bs) -instance [HasLess α] : HasLess (List α) := -⟨List.Less⟩ +instance [HasLess α] : HasLess (List α) := ⟨List.Less⟩ -instance hasDecidableLt [HasLess α] [h : DecidableRel HasLess.Less] : ∀ (l₁ l₂ : List α), Decidable (l₁ < l₂) -| [], [] => isFalse (fun h => nomatch h) -| [], b::bs => isTrue (Less.nil _ _) -| a::as, [] => isFalse (fun h => nomatch h) -| a::as, b::bs => - match h a b with - | isTrue h₁ => isTrue (Less.head _ _ h₁) - | isFalse h₁ => - match h b a with - | isTrue h₂ => isFalse (fun h => match h with - | Less.head _ _ h₁' => absurd h₁' h₁ - | Less.tail _ h₂' _ => absurd h₂ h₂') - | isFalse h₂ => - match hasDecidableLt as bs with - | isTrue h₃ => isTrue (Less.tail h₁ h₂ h₃) - | isFalse h₃ => isFalse (fun h => match h with +instance hasDecidableLt [HasLess α] [h : DecidableRel (α:=α) (·<·)] : (l₁ l₂ : List α) → Decidable (l₁ < l₂) + | [], [] => isFalse (fun h => nomatch h) + | [], b::bs => isTrue (Less.nil _ _) + | a::as, [] => isFalse (fun h => nomatch h) + | a::as, b::bs => + match h a b with + | isTrue h₁ => isTrue (Less.head _ _ h₁) + | isFalse h₁ => + match h b a with + | isTrue h₂ => isFalse (fun h => match h with | Less.head _ _ h₁' => absurd h₁' h₁ - | Less.tail _ _ h₃' => absurd h₃' h₃) + | Less.tail _ h₂' _ => absurd h₂ h₂') + | isFalse h₂ => + match hasDecidableLt as bs with + | isTrue h₃ => isTrue (Less.tail h₁ h₂ h₃) + | isFalse h₃ => isFalse (fun h => match h with + | Less.head _ _ h₁' => absurd h₁' h₁ + | Less.tail _ _ h₃' => absurd h₃' h₃) -@[reducible] protected def LessEq [HasLess α] (a b : List α) : Prop := -¬ b < a +@[reducible] protected def LessEq [HasLess α] (a b : List α) : Prop := ¬ b < a -instance [HasLess α] : HasLessEq (List α) := -⟨List.LessEq⟩ +instance [HasLess α] : HasLessEq (List α) := ⟨List.LessEq⟩ -instance hasDecidableLe [HasLess α] [h : DecidableRel (HasLess.Less : α → α → Prop)] : ∀ (l₁ l₂ : List α), Decidable (l₁ ≤ l₂) := -fun a b => Not.Decidable +instance [HasLess α] [h : DecidableRel (HasLess.Less : α → α → Prop)] : (l₁ l₂ : List α) → Decidable (l₁ ≤ l₂) := + fun a b => Not.Decidable /-- `isPrefixOf l₁ l₂` returns `true` Iff `l₁` is a prefix of `l₂`. -/ def isPrefixOf [HasBeq α] : List α → List α → Bool -| [], _ => true -| _, [] => false -| a::as, b::bs => a == b && isPrefixOf as bs + | [], _ => true + | _, [] => false + | a::as, b::bs => a == b && isPrefixOf as bs /-- `isSuffixOf l₁ l₂` returns `true` Iff `l₁` is a suffix of `l₂`. -/ def isSuffixOf [HasBeq α] (l₁ l₂ : List α) : Bool := -isPrefixOf l₁.reverse l₂.reverse + isPrefixOf l₁.reverse l₂.reverse @[specialize] def isEqv : List α → List α → (α → α → Bool) → Bool -| [], [], _ => true -| a::as, b::bs, eqv => eqv a b && isEqv as bs eqv -| _, _, eqv => false + | [], [], _ => true + | a::as, b::bs, eqv => eqv a b && isEqv as bs eqv + | _, _, eqv => false protected def beq [HasBeq α] : List α → List α → Bool -| [], [] => true -| a::as, b::bs => a == b && beq as bs -| _, _ => false + | [], [] => true + | a::as, b::bs => a == b && List.beq as bs + | _, _ => false instance [HasBeq α] : HasBeq (List α) := ⟨List.beq⟩ diff --git a/stage0/src/Init/Data/Nat/Div.lean b/stage0/src/Init/Data/Nat/Div.lean index dd7ce46ade..ec42344bca 100644 --- a/stage0/src/Init/Data/Nat/Div.lean +++ b/stage0/src/Init/Data/Nat/Div.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -9,102 +10,102 @@ import Init.Data.Nat.Basic namespace Nat private def divRecLemma {x y : Nat} : 0 < y ∧ y ≤ x → x - y < x := -fun h => And.rec (fun ypos ylex => subLt (Nat.ltOfLtOfLe ypos ylex) ypos) h + fun ⟨ypos, ylex⟩ => subLt (Nat.ltOfLtOfLe ypos ylex) ypos private def div.F (x : Nat) (f : ∀ x₁, x₁ < x → Nat → Nat) (y : Nat) : Nat := -if h : 0 < y ∧ y ≤ x then f (x - y) (divRecLemma h) y + 1 else zero + if h : 0 < y ∧ y ≤ x then f (x - y) (divRecLemma h) y + 1 else zero @[extern "lean_nat_div"] protected def div (a b : @& Nat) : Nat := -WellFounded.fix ltWf div.F a b + WellFounded.fix ltWf div.F a b -instance : HasDiv Nat := -⟨Nat.div⟩ +instance : HasDiv Nat := ⟨Nat.div⟩ private theorem divDefAux (x y : Nat) : x / y = if h : 0 < y ∧ y ≤ x then (x - y) / y + 1 else 0 := -congrFun (WellFounded.fixEq ltWf div.F x) y + congrFun (WellFounded.fixEq ltWf div.F x) y theorem divDef (x y : Nat) : x / y = if 0 < y ∧ y ≤ x then (x - y) / y + 1 else 0 := -difEqIf (0 < y ∧ y ≤ x) ((x - y) / y + 1) 0 ▸ divDefAux x y + difEqIf (0 < y ∧ y ≤ x) ((x - y) / y + 1) 0 ▸ divDefAux x y private theorem div.induction.F.{u} (C : Nat → Nat → Sort u) (h₁ : ∀ x y, 0 < y ∧ y ≤ x → C (x - y) y → C x y) (h₂ : ∀ x y, ¬(0 < y ∧ y ≤ x) → C x y) (x : Nat) (f : ∀ (x₁ : Nat), x₁ < x → ∀ (y : Nat), C x₁ y) (y : Nat) : C x y := -if h : 0 < y ∧ y ≤ x then h₁ x y h (f (x - y) (divRecLemma h) y) else h₂ x y h + if h : 0 < y ∧ y ≤ x then h₁ x y h (f (x - y) (divRecLemma h) y) else h₂ x y h @[elabAsEliminator] theorem div.inductionOn.{u} - {C : Nat → Nat → Sort u} + {motive : Nat → Nat → Sort u} (x y : Nat) - (h₁ : ∀ x y, 0 < y ∧ y ≤ x → C (x - y) y → C x y) - (h₂ : ∀ x y, ¬(0 < y ∧ y ≤ x) → C x y) - : C x y := -WellFounded.fix Nat.ltWf (div.induction.F C h₁ h₂) x y + (h₁ : ∀ x y, 0 < y ∧ y ≤ x → motive (x - y) y → motive x y) + (h₂ : ∀ x y, ¬(0 < y ∧ y ≤ x) → motive x y) + : motive x y := + WellFounded.fix Nat.ltWf (div.induction.F motive h₁ h₂) x y private def mod.F (x : Nat) (f : ∀ x₁, x₁ < x → Nat → Nat) (y : Nat) : Nat := -if h : 0 < y ∧ y ≤ x then f (x - y) (divRecLemma h) y else x + if h : 0 < y ∧ y ≤ x then f (x - y) (divRecLemma h) y else x @[extern "lean_nat_mod"] protected def mod (a b : @& Nat) : Nat := -WellFounded.fix ltWf mod.F a b + WellFounded.fix ltWf mod.F a b -instance : HasMod Nat := -⟨Nat.mod⟩ +instance : HasMod Nat := ⟨Nat.mod⟩ private theorem modDefAux (x y : Nat) : x % y = if h : 0 < y ∧ y ≤ x then (x - y) % y else x := -congrFun (WellFounded.fixEq ltWf mod.F x) y + congrFun (WellFounded.fixEq ltWf mod.F x) y theorem modDef (x y : Nat) : x % y = if 0 < y ∧ y ≤ x then (x - y) % y else x := -difEqIf (0 < y ∧ y ≤ x) ((x - y) % y) x ▸ modDefAux x y + difEqIf (0 < y ∧ y ≤ x) ((x - y) % y) x ▸ modDefAux x y @[elabAsEliminator] theorem mod.inductionOn.{u} - {C : Nat → Nat → Sort u} + {motive : Nat → Nat → Sort u} (x y : Nat) - (h₁ : ∀ x y, 0 < y ∧ y ≤ x → C (x - y) y → C x y) - (h₂ : ∀ x y, ¬(0 < y ∧ y ≤ x) → C x y) - : C x y := -div.inductionOn x y h₁ h₂ + (h₁ : ∀ x y, 0 < y ∧ y ≤ x → motive (x - y) y → motive x y) + (h₂ : ∀ x y, ¬(0 < y ∧ y ≤ x) → motive x y) + : motive x y := + div.inductionOn x y h₁ h₂ theorem modZero (a : Nat) : a % 0 = a := -suffices (if 0 < 0 ∧ 0 ≤ a then (a - 0) % 0 else a) = a from (modDef a 0).symm ▸ this; -have h : ¬ (0 < 0 ∧ 0 ≤ a) from fun ⟨h₁, _⟩ => absurd h₁ (Nat.ltIrrefl _); -ifNeg h + have (if 0 < 0 ∧ 0 ≤ a then (a - 0) % 0 else a) = a from + have h : ¬ (0 < 0 ∧ 0 ≤ a) from fun ⟨h₁, _⟩ => absurd h₁ (Nat.ltIrrefl _) + ifNeg h + (modDef a 0).symm ▸ this theorem modEqOfLt {a b : Nat} (h : a < b) : a % b = a := -suffices (if 0 < b ∧ b ≤ a then (a - b) % b else a) = a from (modDef a b).symm ▸ this; -have h' : ¬(0 < b ∧ b ≤ a) from fun ⟨_, h₁⟩ => absurd h₁ (Nat.notLeOfGt h); -ifNeg h' + have (if 0 < b ∧ b ≤ a then (a - b) % b else a) = a from + have h' : ¬(0 < b ∧ b ≤ a) from fun ⟨_, h₁⟩ => absurd h₁ (Nat.notLeOfGt h) + ifNeg h' + (modDef a b).symm ▸ this theorem modEqSubMod {a b : Nat} (h : a ≥ b) : a % b = (a - b) % b := -Or.elim (eqZeroOrPos b) - (fun h₁ => h₁.symm ▸ (Nat.subZero a).symm ▸ rfl) - (fun h₁ => (modDef a b).symm ▸ ifPos ⟨h₁, h⟩) + Or.elim (eqZeroOrPos b) + (fun h₁ => h₁.symm ▸ (Nat.subZero a).symm ▸ rfl) + (fun h₁ => (modDef a b).symm ▸ ifPos ⟨h₁, h⟩) -theorem modLt (x : Nat) {y : Nat} : y > 0 → x % y < y := -mod.inductionOn x y - (fun (x y) ⟨_, h₁⟩ (h₂ h₃) => - have ih : (x - y) % y < y from h₂ h₃; - have Heq : x % y = (x - y) % y from modEqSubMod h₁; - Heq.symm ▸ ih) - (fun x y h₁ h₂ => - have h₁ : ¬ 0 < y ∨ ¬ y ≤ x from Iff.mp (Decidable.notAndIffOrNot _ _) h₁; - Or.elim h₁ - (fun h₁ => absurd h₂ h₁) - (fun h₁ => - have hgt : y > x from gtOfNotLe h₁; - have Heq : x % y = x from modEqOfLt hgt; - Heq.symm ▸ hgt)) +theorem modLt (x : Nat) {y : Nat} : y > 0 → x % y < y := by + refine mod.inductionOn (motive := fun x y => y > 0 → x % y < y) x y ?k1 ?k2 + case k1 => + intro x y ⟨_, h₁⟩ h₂ h₃ + rw [modEqSubMod h₁] + exact h₂ h₃ + case k2 => + intro x y h₁ h₂ + have h₁ : ¬ 0 < y ∨ ¬ y ≤ x from Iff.mp (Decidable.notAndIffOrNot _ _) h₁ + match h₁ with + | Or.inl h₁ => exact absurd h₂ h₁ + | Or.inr h₁ => + have hgt : y > x from gtOfNotLe h₁ + have heq : x % y = x from modEqOfLt hgt + rw [← heq] at hgt; -- TODO: remove `;` + exact hgt + +theorem modLe (x y : Nat) : x % y ≤ x := by + match Nat.ltOrGe x y with + | Or.inl h₁ => rw [modEqOfLt h₁]; apply Nat.leRefl + | Or.inr h₁ => match eqZeroOrPos y with + | Or.inl h₂ => rw [h₂, Nat.modZero x]; apply Nat.leRefl + | Or.inr h₂ => exact Nat.leTrans (Nat.leOfLt (Nat.modLt _ h₂)) h₁ -theorem modLe (x y : Nat) : x % y ≤ x := -sorry -/- -Or.elim (Nat.ltOrGe x y) - (fun (h₁ : x < y) => (modEqOfLt h₁).symm ▸ Nat.leRefl _) - (fun (h₁ : x ≥ y) => Or.elim (eqZeroOrPos y) - (fun (h₂ : y = 0) => h₂.symm ▸ (Nat.modZero x).symm ▸ Nat.leRefl _) - (fun (h₂ : y > 0) => Nat.leTrans (Nat.leOfLt (Nat.modLt _ h₂)) h₁)) --/ end Nat diff --git a/stage0/src/Init/HasCoe.lean b/stage0/src/Init/HasCoe.lean deleted file mode 100644 index be54e9a8b7..0000000000 --- a/stage0/src/Init/HasCoe.lean +++ /dev/null @@ -1,181 +0,0 @@ -/- -Copyright (c) 2016 Microsoft Corporation. All rights reserved. -Released under Apache 2.0 license as described in the file LICENSE. -Authors: Leonardo de Moura --/ - -/- -The Elaborator tries to insert coercions automatically. -Only instances of HasCoe type class are considered in the process. - -Lean also provides a "lifting" operator: ↑a. -It uses all instances of HasLift type class. -Every HasCoe instance is also a HasLift instance. - -We recommend users only use HasCoe for coercions that do not produce a lot -of ambiguity. - -All coercions and lifts can be identified with the constant coe. - -We use the HasCoeToFun type class for encoding coercions from -a Type to a Function space. - -We use the HasCoeToSort type class for encoding coercions from -a Type to a sort. --/ -prelude -import Init.Data.List.Basic -universes u v - -class HasLift (a : Sort u) (b : Sort v) := -(lift : a → b) - -/-- Auxiliary class that contains the transitive closure of HasLift. -/ -class HasLiftT (a : Sort u) (b : Sort v) := -(lift : a → b) - -class HasCoe (a : Sort u) (b : Sort v) := -(coe : a → b) - -/-- Auxiliary class that contains the transitive closure of HasCoe. -/ -class HasCoeT (a : Sort u) (b : Sort v) := -(coe : a → b) - -class HasCoeToFun (a : Sort u) : Sort (max u (v+1)) := -(F : a → Sort v) (coe : ∀ x, F x) - -class HasCoeToSort (a : Sort u) : Type (max u (v+1)) := -(S : Sort v) (coe : a → S) - -@[inline] def lift {a : Sort u} {b : Sort v} [HasLift a b] : a → b := -@HasLift.lift a b _ - -@[inline] def liftT {a : Sort u} {b : Sort v} [HasLiftT a b] : a → b := -@HasLiftT.lift a b _ - -@[inline] def oldCoeB {a : Sort u} {b : Sort v} [HasCoe a b] : a → b := -@HasCoe.coe a b _ - -@[inline] def oldCoeT {a : Sort u} {b : Sort v} [HasCoeT a b] : a → b := -@HasCoeT.coe a b _ - -@[inline] def oldCoeFnB {a : Sort u} [HasCoeToFun.{u, v} a] : ∀ (x : a), HasCoeToFun.F.{u, v} x := -HasCoeToFun.coe - -/- User Level coercion operators -/ - -@[reducible, inline] def oldCoe {a : Sort u} {b : Sort v} [HasLiftT a b] : a → b := -liftT - -@[reducible, inline] def oldCoeFn {a : Sort u} [HasCoeToFun.{u, v} a] : ∀ (x : a), HasCoeToFun.F.{u, v} x := -HasCoeToFun.coe - -@[reducible, inline] def oldCoeSort {a : Sort u} [HasCoeToSort.{u, v} a] : a → HasCoeToSort.S.{u, v} a := -HasCoeToSort.coe - -/- Notation -/ - -universes u₁ u₂ u₃ - -/- Transitive closure for HasLift, HasCoe, HasCoeToFun -/ - -namespace Legacy - -instance liftTrans {a : Sort u₁} {b : Sort u₂} {c : Sort u₃} [HasLiftT b c] [HasLift a b] : HasLiftT a c := -⟨fun x => liftT (lift x : b)⟩ - -instance liftRefl {a : Sort u} : HasLiftT a a := -⟨id⟩ - -instance coeoeTrans {a : Sort u₁} {b : Sort u₂} {c : Sort u₃} [HasCoeT b c] [HasCoe a b] : HasCoeT a c := -⟨fun x => oldCoeT (oldCoeB x : b)⟩ - -instance coeBase {a : Sort u} {b : Sort v} [HasCoe a b] : HasCoeT a b := -⟨oldCoeB⟩ - -/- We add this instance directly into HasCoeT to avoid non-termination. - - Suppose coeOption had Type (HasCoe a (Option a)). - Then, we can loop when searching a coercion from α to β (HasCoeT α β) - 1- coeTrans at (HasCoeT α β) - (HasCoe α ?b₁) and (HasCoeT ?b₁ c) - 2- coeOption at (HasCoe α ?b₁) - ?b₁ := Option α - 3- coeTrans at (HasCoeT (Option α) β) - (HasCoe (Option α) ?b₂) and (HasCoeT ?b₂ β) - 4- coeOption at (HasCoe (Option α) ?b₂) - ?b₂ := Option (Option α)) - ... --/ -instance oldCoeOption {a : Type u} : HasCoeT a (Option a) := -⟨fun x => some x⟩ - -/- Auxiliary transitive closure for HasCoe which does not contain - instances such as coeOption. - - They would produce non-termination when combined with coeFnTrans and coeSortTrans. --/ -class HasCoeTAux (a : Sort u) (b : Sort v) := -(coe : a → b) - -instance coeTransAux {a : Sort u₁} {b : Sort u₂} {c : Sort u₃} [HasCoeTAux b c] [HasCoe a b] : HasCoeTAux a c := -⟨fun x => @HasCoeTAux.coe b c _ (oldCoeB x)⟩ - -instance coeBaseAux {a : Sort u} {b : Sort v} [HasCoe a b] : HasCoeTAux a b := -⟨oldCoeB⟩ - -instance coeFnTrans {a : Sort u₁} {b : Sort u₂} [HasCoeToFun.{u₂, u₃} b] [HasCoeTAux a b] : HasCoeToFun.{u₁, u₃} a := -{ F := fun x => @HasCoeToFun.F.{u₂, u₃} b _ (@HasCoeTAux.coe a b _ x), - coe := fun x => oldCoeFn (@HasCoeTAux.coe a b _ x) } - -instance coeSortTrans {a : Sort u₁} {b : Sort u₂} [HasCoeToSort.{u₂, u₃} b] [HasCoeTAux a b] : HasCoeToSort.{u₁, u₃} a := -{ S := HasCoeToSort.S.{u₂, u₃} b, - coe := fun x => oldCoeSort (@HasCoeTAux.coe a b _ x) } - -/- Every coercion is also a lift -/ - -instance coeToLift {a : Sort u} {b : Sort v} [HasCoeT a b] : HasLiftT a b := -⟨oldCoeT⟩ - -/- basic coercions -/ - -@[inline] instance coeBoolToProp : HasCoe Bool Prop := -⟨fun y => y = true⟩ - -@[inline] instance coeDecidableEq (x : Bool) : Decidable (oldCoe x) := -inferInstanceAs (Decidable (x = true)) - -instance coeSubtype {a : Sort u} {p : a → Prop} : HasCoe {x // p x} a := -⟨Subtype.val⟩ - -/- basic lifts -/ - -universes ua ua₁ ua₂ ub ub₁ ub₂ - -/- Remark: we can't use [HasLiftT a₂ a₁] since it will produce non-termination whenever a type class resolution - problem does not have a solution. -/ -instance liftFn {a₁ : Sort ua₁} {a₂ : Sort ua₂} {b₁ : Sort ub₁} {b₂ : Sort ub₂} [HasLiftT b₁ b₂] [HasLift a₂ a₁] : HasLift (a₁ → b₁) (a₂ → b₂) := -⟨fun f x => oldCoe (f (oldCoe x))⟩ - -instance liftFnRange {a : Sort ua} {b₁ : Sort ub₁} {b₂ : Sort ub₂} [HasLiftT b₁ b₂] : HasLift (a → b₁) (a → b₂) := -⟨fun f x => oldCoe (f x)⟩ - -instance liftFnDom {a₁ : Sort ua₁} {a₂ : Sort ua₂} {b : Sort ub} [HasLift a₂ a₁] : HasLift (a₁ → b) (a₂ → b) := -⟨fun f x => f (oldCoe x)⟩ - -instance liftPair {a₁ : Type ua₁} {a₂ : Type ub₂} {b₁ : Type ub₁} {b₂ : Type ub₂} [HasLiftT a₁ a₂] [HasLiftT b₁ b₂] : HasLift (a₁ × b₁) (a₂ × b₂) := -⟨fun p => Prod.casesOn p (fun x y => (oldCoe x, oldCoe y))⟩ - -instance liftPair₁ {a₁ : Type ua₁} {a₂ : Type ua₂} {b : Type ub} [HasLiftT a₁ a₂] : HasLift (a₁ × b) (a₂ × b) := -⟨fun p => Prod.casesOn p (fun x y => (oldCoe x, y))⟩ - -instance liftPair₂ {a : Type ua} {b₁ : Type ub₁} {b₂ : Type ub₂} [HasLiftT b₁ b₂] : HasLift (a × b₁) (a × b₂) := -⟨fun p => Prod.casesOn p (fun x y => (x, oldCoe y))⟩ - -instance liftList {a : Type u} {b : Type v} [HasLiftT a b] : HasLift (List a) (List b) := -⟨fun l => List.map (@oldCoe a b _) l⟩ - -end Legacy - -instance oldCoeToLift {a : Sort u} {b : Sort v} [HasCoeT a b] : HasLiftT a b := -⟨oldCoeT⟩ diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index b38b3ddea8..427c4a5f86 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -48,8 +48,8 @@ def ident' : Parser := ident <|> underscore def locationWildcard := parser! "*" def locationTarget := parser! unicodeSymbol "⊢" "|-" -def locationHyp := parser! many1 ident -def location := parser! "at " >> (locationWildcard <|> locationTarget <|> locationHyp) +def locationHyp := parser! many1 (checkColGt >> ident) +def location := parser! withPosition ("at " >> (locationWildcard <|> locationTarget <|> locationHyp)) @[builtinTacticParser] def change := parser! nonReservedSymbol "change " >> termParser >> optional location @[builtinTacticParser] def changeWith := parser! nonReservedSymbol "change " >> termParser >> " with " >> termParser >> optional location diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index c1a1e17e89..33824c9d91 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/ForIn.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/HasCoe.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/ForIn.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Init/Coe.c b/stage0/stdlib/Init/Coe.c index defb0f12c7..b2d37dbd2b 100644 --- a/stage0/stdlib/Init/Coe.c +++ b/stage0/stdlib/Init/Coe.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Coe -// Imports: Init.HasCoe Init.Core +// Imports: Init.Core #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -565,16 +565,12 @@ x_3 = lean_alloc_closure((void*)(l_hasOfNatOfCoe___rarg), 3, 0); return x_3; } } -lean_object* initialize_Init_HasCoe(lean_object*); lean_object* initialize_Init_Core(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Coe(lean_object* w) { lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; -res = initialize_Init_HasCoe(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Init_Core(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Init/Data/Array/Subarray.c b/stage0/stdlib/Init/Data/Array/Subarray.c index 2918ce5701..7b196221c4 100644 --- a/stage0/stdlib/Init/Data/Array/Subarray.c +++ b/stage0/stdlib/Init/Data/Array/Subarray.c @@ -24,7 +24,6 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at_Array_ofSubarray___spec__1(lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Array_Init_Data_Array_Subarray___instance__2(lean_object*); lean_object* l_Array_Init_Data_Array_Subarray___instance__1___closed__1; lean_object* l_Subarray_forIn___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -422,14 +421,6 @@ x_2 = l_Array_Init_Data_Array_Subarray___instance__1___closed__1; return x_2; } } -lean_object* l_Array_Init_Data_Array_Subarray___instance__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Array_Init_Data_Array_Subarray___instance__1___closed__1; -return x_2; -} -} lean_object* initialize_Init_Data_Array_Basic(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Data_Array_Subarray(lean_object* w) { diff --git a/stage0/stdlib/Init/Data/Hashable.c b/stage0/stdlib/Init/Data/Hashable.c index c65298f1ad..f88ecc6e53 100644 --- a/stage0/stdlib/Init/Data/Hashable.c +++ b/stage0/stdlib/Init/Data/Hashable.c @@ -13,7 +13,7 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1(lean_object*); size_t l_Init_Data_Hashable___instance__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Init_Data_Hashable___instance__2___boxed(lean_object*); size_t l_Option_hash___rarg(lean_object*, lean_object*); @@ -24,9 +24,10 @@ lean_object* l_Init_Data_Hashable___instance__3(lean_object*, lean_object*); size_t l_Init_Data_Hashable___instance__5___rarg(lean_object*, lean_object*); lean_object* l_Init_Data_Hashable___instance__1; lean_object* l_Option_hash___rarg___boxed(lean_object*, lean_object*); -size_t l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg(lean_object*, size_t, lean_object*); +size_t l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg(lean_object*, size_t, lean_object*); lean_object* l_Option_hash_match__1___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Init_Data_Hashable___instance__1___closed__1; lean_object* l_Init_Data_Hashable___instance__3_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Init_Data_Hashable___instance__5(lean_object*); @@ -40,7 +41,6 @@ lean_object* l_Init_Data_Hashable___instance__4___rarg___boxed(lean_object*, lea lean_object* l_Init_Data_Hashable___instance__4_match__1(lean_object*, lean_object*); lean_object* l_Option_hash(lean_object*); lean_object* l_Init_Data_Hashable___instance__3___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1(lean_object*); size_t lean_string_hash(lean_object*); lean_object* l_String_hash___boxed(lean_object*); lean_object* l_mixHash___boxed(lean_object* x_1, lean_object* x_2) { @@ -303,7 +303,7 @@ x_4 = lean_box_usize(x_3); return x_4; } } -size_t l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +size_t l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -330,11 +330,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1(lean_object* x_1) { +lean_object* l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed), 3, 0); return x_2; } } @@ -343,7 +343,7 @@ _start: { size_t x_3; size_t x_4; x_3 = 7; -x_4 = l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg(x_1, x_3, x_2); +x_4 = l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg(x_1, x_3, x_2); return x_4; } } @@ -355,13 +355,13 @@ x_2 = lean_alloc_closure((void*)(l_Init_Data_Hashable___instance__5___rarg___box return x_2; } } -lean_object* l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_List_foldl___main___at_Init_Data_Hashable___instance__5___spec__1___rarg(x_1, x_4, x_3); +x_5 = l_List_foldl___at_Init_Data_Hashable___instance__5___spec__1___rarg(x_1, x_4, x_3); x_6 = lean_box_usize(x_5); return x_6; } diff --git a/stage0/stdlib/Init/Data/Int/Basic.c b/stage0/stdlib/Init/Data/Int/Basic.c index 8dacf2d4ff..e1b241ec91 100644 --- a/stage0/stdlib/Init/Data/Int/Basic.c +++ b/stage0/stdlib/Init/Data/Int/Basic.c @@ -17,7 +17,7 @@ uint8_t l_String_isInt(lean_object*); lean_object* l_Int_Init_Data_Int_Basic___instance__8; lean_object* l_Int_Init_Data_Int_Basic___instance__16; lean_object* l_Int_Init_Data_Int_Basic___instance__5; -lean_object* l_Int_Init_Data_Int_Basic___instance__11; +uint8_t l_Int_Init_Data_Int_Basic___instance__11(lean_object*, lean_object*); lean_object* l_Int_toNat_match__1(lean_object*); lean_object* l_Int_Init_Data_Int_Basic___instance__9; lean_object* l_Int_natMod(lean_object*, lean_object*); @@ -27,17 +27,18 @@ lean_object* l_Int_repr___closed__1; lean_object* l_Substring_toNat_x3f(lean_object*); lean_object* l_String_isInt___boxed(lean_object*); lean_object* l_String_toInt_x21___closed__2; -lean_object* l_Int_Init_Data_Int_Basic___instance__13___closed__1; lean_object* l_Int_Init_Data_Int_Basic___instance__3; lean_object* l_Int_sub___boxed(lean_object*, lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__5___closed__1; lean_object* l_Int_negSucc___boxed(lean_object*); lean_object* l_String_toInt_x3f(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Int_mod_match__1(lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__2; lean_object* l_String_toInt_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__11___boxed(lean_object*, lean_object*); lean_object* l_String_toInt_x21(lean_object*); -lean_object* l_Int_Init_Data_Int_Basic___instance__17___closed__1; lean_object* l_Int_zero; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Int_decLt___boxed(lean_object*, lean_object*); @@ -48,7 +49,6 @@ lean_object* l_Int_repr_match__1___rarg(lean_object*, lean_object*, lean_object* lean_object* lean_int_mod(lean_object*, lean_object*); lean_object* l_Int_mod_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Int_mul___boxed(lean_object*, lean_object*); -lean_object* l_Init_Data_Int_Basic___instance__2(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Int_decLe___boxed(lean_object*, lean_object*); lean_object* l_Int_div___boxed(lean_object*, lean_object*); @@ -59,7 +59,7 @@ lean_object* l_Int_negOfNat_match__1(lean_object*); lean_object* l_Int_zero___closed__1; lean_object* l_Int_Init_Data_Int_Basic___instance__6; uint8_t l_Substring_isNat(lean_object*); -lean_object* l_Int_Init_Data_Int_Basic___instance__14; +lean_object* l_Int_Init_Data_Int_Basic___instance__14(lean_object*); lean_object* l_Int_subNatNat_match__1(lean_object*); lean_object* l_Int_negOfNat_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Int_div_match__1(lean_object*); @@ -84,14 +84,14 @@ lean_object* l_Int_toNat(lean_object*); lean_object* l_Int_toNat_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_int_neg(lean_object*); lean_object* l_Int_one___closed__1; -uint8_t l_Int_Init_Data_Int_Basic___instance__12(lean_object*, lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__12; lean_object* l_Int_Init_Data_Int_Basic___instance__4; uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* lean_int_neg_succ_of_nat(lean_object*); uint8_t lean_int_dec_le(lean_object*, lean_object*); lean_object* l_Int_toNat_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Int_one; -lean_object* l_Int_Init_Data_Int_Basic___instance__9___closed__1; +lean_object* l_Int_Init_Data_Int_Basic___instance__15___closed__1; lean_object* l_Int_negOfNat(lean_object*); lean_object* l_Int_Init_Data_Int_Basic___instance__7; lean_object* l_Int_subNatNat_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -106,13 +106,12 @@ lean_object* lean_int_div(lean_object*, lean_object*); lean_object* l_Int_repr_match__1(lean_object*); lean_object* l_Int_ofNat___boxed(lean_object*); lean_object* l_String_toInt_x21___closed__4; -lean_object* l_Int_Init_Data_Int_Basic___instance__15(lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__15; lean_object* lean_int_sub(lean_object*, lean_object*); lean_object* l_Int_Init_Data_Int_Basic___instance__6___closed__1; -lean_object* l_Int_Init_Data_Int_Basic___instance__17; lean_object* l_Int_Init_Data_Int_Basic___instance__7___closed__1; lean_object* lean_int_add(lean_object*, lean_object*); -lean_object* l_Int_Init_Data_Int_Basic___instance__12___boxed(lean_object*, lean_object*); +lean_object* l_Int_Init_Data_Int_Basic___instance__12___closed__1; lean_object* l_String_toNat_x3f(lean_object*); lean_object* l_Int_natAbs___boxed(lean_object*); lean_object* l_Int_neg___boxed(lean_object*); @@ -146,14 +145,6 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -lean_object* l_Init_Data_Int_Basic___instance__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_nat_to_int(x_1); -return x_2; -} -} static lean_object* _init_l_Int_zero___closed__1() { _start: { @@ -188,7 +179,7 @@ x_1 = l_Int_one___closed__1; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__3() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__2() { _start: { lean_object* x_1; @@ -196,7 +187,7 @@ x_1 = l_Int_zero; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__4() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__3() { _start: { lean_object* x_1; @@ -204,7 +195,7 @@ x_1 = l_Int_one; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__5() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__4() { _start: { lean_object* x_1; @@ -392,7 +383,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__6___closed__1() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__5___closed__1() { _start: { lean_object* x_1; @@ -400,6 +391,22 @@ x_1 = lean_alloc_closure((void*)(l_Int_neg___boxed), 1, 0); return x_1; } } +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__5() { +_start: +{ +lean_object* x_1; +x_1 = l_Int_Init_Data_Int_Basic___instance__5___closed__1; +return x_1; +} +} +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Int_add___boxed), 2, 0); +return x_1; +} +} static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__6() { _start: { @@ -412,7 +419,7 @@ static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__7___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_add___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Int_mul___boxed), 2, 0); return x_1; } } @@ -424,22 +431,6 @@ x_1 = l_Int_Init_Data_Int_Basic___instance__7___closed__1; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__8___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_mul___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__8() { -_start: -{ -lean_object* x_1; -x_1 = l_Int_Init_Data_Int_Basic___instance__8___closed__1; -return x_1; -} -} lean_object* l_Int_sub___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -450,7 +441,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__9___closed__1() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__8___closed__1() { _start: { lean_object* x_1; @@ -458,15 +449,15 @@ x_1 = lean_alloc_closure((void*)(l_Int_sub___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__9() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__8() { _start: { lean_object* x_1; -x_1 = l_Int_Init_Data_Int_Basic___instance__9___closed__1; +x_1 = l_Int_Init_Data_Int_Basic___instance__8___closed__1; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__10() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__9() { _start: { lean_object* x_1; @@ -474,7 +465,7 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__11() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__10() { _start: { lean_object* x_1; @@ -493,7 +484,7 @@ x_4 = lean_box(x_3); return x_4; } } -uint8_t l_Int_Init_Data_Int_Basic___instance__12(lean_object* x_1, lean_object* x_2) { +uint8_t l_Int_Init_Data_Int_Basic___instance__11(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -501,11 +492,11 @@ x_3 = lean_int_dec_eq(x_1, x_2); return x_3; } } -lean_object* l_Int_Init_Data_Int_Basic___instance__12___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Int_Init_Data_Int_Basic___instance__11___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Int_Init_Data_Int_Basic___instance__12(x_1, x_2); +x_3 = l_Int_Init_Data_Int_Basic___instance__11(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -644,7 +635,7 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__13___closed__1() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__12___closed__1() { _start: { lean_object* x_1; @@ -652,23 +643,23 @@ x_1 = lean_alloc_closure((void*)(l_Int_repr___boxed), 1, 0); return x_1; } } +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__12() { +_start: +{ +lean_object* x_1; +x_1 = l_Int_Init_Data_Int_Basic___instance__12___closed__1; +return x_1; +} +} static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__13() { _start: { lean_object* x_1; -x_1 = l_Int_Init_Data_Int_Basic___instance__13___closed__1; +x_1 = l_Int_Init_Data_Int_Basic___instance__12___closed__1; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__14() { -_start: -{ -lean_object* x_1; -x_1 = l_Int_Init_Data_Int_Basic___instance__13___closed__1; -return x_1; -} -} -lean_object* l_Int_Init_Data_Int_Basic___instance__15(lean_object* x_1) { +lean_object* l_Int_Init_Data_Int_Basic___instance__14(lean_object* x_1) { _start: { lean_object* x_2; @@ -860,7 +851,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__16___closed__1() { +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__15___closed__1() { _start: { lean_object* x_1; @@ -868,6 +859,22 @@ x_1 = lean_alloc_closure((void*)(l_Int_div___boxed), 2, 0); return x_1; } } +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__15() { +_start: +{ +lean_object* x_1; +x_1 = l_Int_Init_Data_Int_Basic___instance__15___closed__1; +return x_1; +} +} +static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__16___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Int_mod___boxed), 2, 0); +return x_1; +} +} static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__16() { _start: { @@ -876,22 +883,6 @@ x_1 = l_Int_Init_Data_Int_Basic___instance__16___closed__1; return x_1; } } -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__17___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_mod___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Int_Init_Data_Int_Basic___instance__17() { -_start: -{ -lean_object* x_1; -x_1 = l_Int_Init_Data_Int_Basic___instance__17___closed__1; -return x_1; -} -} lean_object* l_Int_toNat_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1191,7 +1182,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_String_toInt_x21___closed__1; x_2 = l_String_toInt_x21___closed__2; -x_3 = lean_unsigned_to_nat(179u); +x_3 = lean_unsigned_to_nat(178u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_String_toInt_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1206,7 +1197,7 @@ x_2 = l_String_toInt_x3f(x_1); if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Int_Init_Data_Int_Basic___instance__5; +x_3 = l_Int_Init_Data_Int_Basic___instance__4; x_4 = l_String_toInt_x21___closed__4; x_5 = lean_panic_fn(x_3, x_4); return x_5; @@ -1250,10 +1241,14 @@ l_Int_one___closed__1 = _init_l_Int_one___closed__1(); lean_mark_persistent(l_Int_one___closed__1); l_Int_one = _init_l_Int_one(); lean_mark_persistent(l_Int_one); +l_Int_Init_Data_Int_Basic___instance__2 = _init_l_Int_Init_Data_Int_Basic___instance__2(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__2); l_Int_Init_Data_Int_Basic___instance__3 = _init_l_Int_Init_Data_Int_Basic___instance__3(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__3); l_Int_Init_Data_Int_Basic___instance__4 = _init_l_Int_Init_Data_Int_Basic___instance__4(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__4); +l_Int_Init_Data_Int_Basic___instance__5___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__5___closed__1(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__5___closed__1); l_Int_Init_Data_Int_Basic___instance__5 = _init_l_Int_Init_Data_Int_Basic___instance__5(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__5); l_Int_Init_Data_Int_Basic___instance__6___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__6___closed__1(); @@ -1268,30 +1263,26 @@ l_Int_Init_Data_Int_Basic___instance__8___closed__1 = _init_l_Int_Init_Data_Int_ lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__8___closed__1); l_Int_Init_Data_Int_Basic___instance__8 = _init_l_Int_Init_Data_Int_Basic___instance__8(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__8); -l_Int_Init_Data_Int_Basic___instance__9___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__9___closed__1(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__9___closed__1); l_Int_Init_Data_Int_Basic___instance__9 = _init_l_Int_Init_Data_Int_Basic___instance__9(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__9); l_Int_Init_Data_Int_Basic___instance__10 = _init_l_Int_Init_Data_Int_Basic___instance__10(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__10); -l_Int_Init_Data_Int_Basic___instance__11 = _init_l_Int_Init_Data_Int_Basic___instance__11(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__11); l_Int_repr___closed__1 = _init_l_Int_repr___closed__1(); lean_mark_persistent(l_Int_repr___closed__1); -l_Int_Init_Data_Int_Basic___instance__13___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__13___closed__1(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__13___closed__1); +l_Int_Init_Data_Int_Basic___instance__12___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__12___closed__1(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__12___closed__1); +l_Int_Init_Data_Int_Basic___instance__12 = _init_l_Int_Init_Data_Int_Basic___instance__12(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__12); l_Int_Init_Data_Int_Basic___instance__13 = _init_l_Int_Init_Data_Int_Basic___instance__13(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__13); -l_Int_Init_Data_Int_Basic___instance__14 = _init_l_Int_Init_Data_Int_Basic___instance__14(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__14); +l_Int_Init_Data_Int_Basic___instance__15___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__15___closed__1(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__15___closed__1); +l_Int_Init_Data_Int_Basic___instance__15 = _init_l_Int_Init_Data_Int_Basic___instance__15(); +lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__15); l_Int_Init_Data_Int_Basic___instance__16___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__16___closed__1(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__16___closed__1); l_Int_Init_Data_Int_Basic___instance__16 = _init_l_Int_Init_Data_Int_Basic___instance__16(); lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__16); -l_Int_Init_Data_Int_Basic___instance__17___closed__1 = _init_l_Int_Init_Data_Int_Basic___instance__17___closed__1(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__17___closed__1); -l_Int_Init_Data_Int_Basic___instance__17 = _init_l_Int_Init_Data_Int_Basic___instance__17(); -lean_mark_persistent(l_Int_Init_Data_Int_Basic___instance__17); l_String_toInt_x21___closed__1 = _init_l_String_toInt_x21___closed__1(); lean_mark_persistent(l_String_toInt_x21___closed__1); l_String_toInt_x21___closed__2 = _init_l_String_toInt_x21___closed__2(); diff --git a/stage0/stdlib/Init/Data/List/Basic.c b/stage0/stdlib/Init/Data/List/Basic.c index 4ffc4033c2..9b0471a095 100644 --- a/stage0/stdlib/Init/Data/List/Basic.c +++ b/stage0/stdlib/Init/Data/List/Basic.c @@ -13,282 +13,329 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_join_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_List_HasAppend(lean_object*); -lean_object* l_List_erase___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_List_any___spec__1(lean_object*); lean_object* l_List_replace(lean_object*); -lean_object* l_List_foldl___main(lean_object*, lean_object*); -lean_object* l_List_isEqv___main___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_eraseDupsAux___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___rarg___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_List_and___spec__1(uint8_t, lean_object*); -lean_object* l_List_foldr___main___at_List_all___spec__1(lean_object*); +lean_object* l_List_drop_match__1(lean_object*, lean_object*); +lean_object* l_List_map_u2082_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_intercalate___rarg(lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_isEmpty_match__1(lean_object*, lean_object*); lean_object* l_List_isEqv(lean_object*); -uint8_t l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_beq___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_eraseIdx___main___rarg___boxed(lean_object*, lean_object*); -lean_object* l_List_partitionAux___main(lean_object*); +lean_object* l_List_reverseAux_match__1(lean_object*, lean_object*); lean_object* l_List_contains(lean_object*); lean_object* l_List_notElem___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map_u2082(lean_object*, lean_object*, lean_object*); -lean_object* l_List_erase___main(lean_object*); -lean_object* l_List_findSome_x3f___main(lean_object*, lean_object*); +lean_object* l_List_lengthAux_match__1(lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__2___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__5(lean_object*, lean_object*); lean_object* l_List_any___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_zipWith_match__1(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_List_any___spec__1___rarg(lean_object*, uint8_t, lean_object*); lean_object* l_List_all(lean_object*); lean_object* l_List_spanAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_HasLessEq(lean_object*, lean_object*); +lean_object* l_List_unzip_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_lookup___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_HasLess___boxed(lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_List_and___spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_spanAux(lean_object*); +lean_object* l_List_eraseRepsAux_match__2(lean_object*, lean_object*); +lean_object* l_List_rangeAux_match__1(lean_object*); lean_object* l_List_iota(lean_object*); lean_object* l_List_foldr___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterMap___main(lean_object*, lean_object*); +lean_object* l_List_isEqv_match__1(lean_object*, lean_object*); lean_object* l_List_unzip___rarg(lean_object*); uint8_t l_List_notElem___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_take_match__1(lean_object*, lean_object*); lean_object* l_List_foldl___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_isPrefixOf___main(lean_object*); -lean_object* l_List_filterAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_rangeAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverseAux(lean_object*); +lean_object* l_List_eraseDupsAux_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_lengthAux___rarg___boxed(lean_object*, lean_object*); lean_object* l_List_replace___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isSuffixOf___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_List_isPrefixOf___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_unzip_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_isPrefixOf___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_all___rarg___boxed(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); uint8_t l_List_elem___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_join(lean_object*); +lean_object* l_List_hasDecidableLt_match__7___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__8(lean_object*, lean_object*); lean_object* l_List_contains___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_find_x3f(lean_object*); -lean_object* l_List_spanAux___main(lean_object*); lean_object* l_List_isEqv___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_set___main___rarg___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_List_isEqv___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_intersperse___main___rarg(lean_object*, lean_object*); +lean_object* l_List_groupBy_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__8(lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_groupByAux(lean_object*); lean_object* l_List_partition(lean_object*); +lean_object* l_List_foldr___at_List_any___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEqv___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_init___main(lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__5___boxed(lean_object*, lean_object*); +uint8_t l_List_Init_Data_List_Basic___instance__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_range(lean_object*); -lean_object* l_List_map___main___rarg(lean_object*, lean_object*); lean_object* l_List_zipWith___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_filter___rarg(lean_object*, lean_object*); +lean_object* l_List_elem_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_dropWhile(lean_object*); +lean_object* l_List_hasDecidableLt_match__6___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_groupBy___rarg(lean_object*, lean_object*); -lean_object* l_List_reverseAux___main(lean_object*); -uint8_t l_List_hasDecidableLe___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_findSome_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__7___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_iota_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseDupsAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_iota_match__1(lean_object*); +lean_object* l_List_eraseIdx_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_join___rarg(lean_object*); -lean_object* l_List_lengthAux___main(lean_object*); -lean_object* l_List_hasDecEq___main___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__3___closed__1; +lean_object* l_List_elem_match__2(lean_object*, lean_object*); lean_object* l_List_pure___rarg(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_List_set___main(lean_object*); -lean_object* l_List_unzip___main(lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__4(lean_object*); +lean_object* l_List_eraseRepsAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_dropWhile_match__2(lean_object*, lean_object*); lean_object* l_List_lengthAux(lean_object*); -lean_object* l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1(lean_object*); lean_object* l_List_drop(lean_object*); +lean_object* l_List_drop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseDupsAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_or___boxed(lean_object*); lean_object* l_List_replicate___rarg(lean_object*, lean_object*); -lean_object* l_List_foldr1Opt___rarg(lean_object*, lean_object*); lean_object* l_List_isEmpty___rarg___boxed(lean_object*); uint8_t l_Not_Decidable___rarg(uint8_t); -lean_object* l_List_take___main___rarg___boxed(lean_object*, lean_object*); -lean_object* l_List_HasEmptyc(lean_object*); -lean_object* l_List_zipWith___main(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterMap___main___rarg(lean_object*, lean_object*); +lean_object* l_List_spanAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseRepsAux_match__1(lean_object*); +lean_object* l_List_lengthAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_any(lean_object*); lean_object* l_List_bind___rarg(lean_object*, lean_object*); -lean_object* l_List_eraseDupsAux___main(lean_object*); -lean_object* l_List_iota___main___boxed(lean_object*); +lean_object* l_List_take_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repeat_loop___at_List_replicate___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_List_any___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_List_removeAll___spec__1(lean_object*); +lean_object* l_List_hasDecidableLt_match__6___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_reverse(lean_object*); -lean_object* l_List_intersperse___main(lean_object*); +lean_object* l_List_groupByAux_match__1___rarg(uint8_t, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_List_enum(lean_object*); +lean_object* l_List_erase_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__6___boxed(lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__2(lean_object*); lean_object* l_List_notElem(lean_object*); lean_object* l_List_pure(lean_object*); lean_object* l_List_eraseIdx(lean_object*); +lean_object* l_List_replace_match__1(lean_object*); +lean_object* l_List_join_match__1(lean_object*, lean_object*); lean_object* l_List_groupByAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_hasDecidableLt___main(lean_object*); +lean_object* l_List_dropWhile_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_set_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem_match__1(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); uint8_t l_List_all___rarg(lean_object*, lean_object*); -lean_object* l_List_HasLess(lean_object*, lean_object*); lean_object* l_List_filterAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_zip___rarg___lambda__1(lean_object*, lean_object*); -lean_object* l_List_foldr1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_take___main___rarg(lean_object*, lean_object*); -lean_object* l_List_drop___main___rarg___boxed(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_List_and___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_filterMap_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_findSome_x3f_match__2(lean_object*, lean_object*); +lean_object* l_List_lookup_match__2(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_List_or___spec__1(uint8_t, lean_object*); +lean_object* l_List_filterMap_match__2(lean_object*, lean_object*); +lean_object* l_List_enumFrom_match__1(lean_object*, lean_object*); +lean_object* l_List_partitionAux_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_filterMap(lean_object*, lean_object*); -lean_object* l_List_eraseIdx___main(lean_object*); +lean_object* l_List_replace_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_zipWith_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_init___rarg(lean_object*); lean_object* l_List_isSuffixOf(lean_object*); uint8_t l_List_or(lean_object*); -uint8_t l_List_isPrefixOf___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_replace___main(lean_object*); +lean_object* l_List_hasDecEq_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_replicate(lean_object*); -lean_object* l_List_isPrefixOf___main___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg___boxed(lean_object*, lean_object*); lean_object* l_List_append(lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l_List_hasDecidableLe(lean_object*); -lean_object* l_List_foldl___main___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_List_or___spec__1(uint8_t, lean_object*); -lean_object* l_List_DecidableEq___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_erase_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_enum___rarg(lean_object*); -lean_object* l_List_elem___main(lean_object*); lean_object* l_List_set(lean_object*); uint8_t l_List_hasDecEq___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_hasDecidableLt___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_partitionAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___rarg(lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_List_eraseIdx___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_groupByAux_match__1(lean_object*); lean_object* l_List_eraseDups(lean_object*); -lean_object* l_List_hasDecidableLe___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_HasBeq___rarg(lean_object*); +lean_object* l_List_hasDecidableLt_match__5___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_hasDecEq(lean_object*); -uint8_t l_List_foldr___main___at_List_any___spec__1___rarg(lean_object*, uint8_t, lean_object*); +lean_object* l_List_dropWhile_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_lookup_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_drop_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_zipWith(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr1___main(lean_object*); -lean_object* l_List_hasDecEq___main___at_List_DecidableEq___spec__1(lean_object*); +uint8_t l_List_foldr___at_List_all___spec__1___rarg(lean_object*, uint8_t, lean_object*); +lean_object* l_List_enumFrom_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_erase_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lookup(lean_object*, lean_object*); +lean_object* l_List_filterAux_match__1(lean_object*); +lean_object* l_List_beq_match__1(lean_object*, lean_object*); lean_object* l_List_eraseDupsAux(lean_object*); -lean_object* l_List_elem___main___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_unzip_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_hasDecidableLt(lean_object*); +lean_object* l_List_eraseRepsAux_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_set___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_lookup___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_take___main(lean_object*); +lean_object* l_List_isEqv_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_unzip(lean_object*, lean_object*); lean_object* l_List_map(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_List_any___spec__1(lean_object*); lean_object* l_List_eraseReps___rarg(lean_object*, lean_object*); lean_object* l_List_length(lean_object*); lean_object* l_List_removeAll(lean_object*); +lean_object* l_List_eraseReps_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_map_u2082___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_eraseIdx___main___rarg(lean_object*, lean_object*); lean_object* l_List_enumFrom___rarg(lean_object*, lean_object*); -lean_object* l_List_rangeAux___main(lean_object*, lean_object*); -lean_object* l_List_HasLessEq___boxed(lean_object*, lean_object*); -lean_object* l_List_filterAux___main(lean_object*); +lean_object* l_List_foldl_match__1(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_List_and___spec__1(uint8_t, lean_object*); +lean_object* l_List_foldl_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_hasDecidableLt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_join___main___rarg(lean_object*); -lean_object* l_List_find_x3f___main(lean_object*); -lean_object* l_List_HasAppend___closed__1; +lean_object* l_List_dropWhile_match__1(lean_object*); +lean_object* l_List_hasDecidableLt_match__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_partitionAux(lean_object*); -lean_object* l_List_groupByAux___main(lean_object*); lean_object* l_List_isEmpty(lean_object*); +lean_object* l_List_spanAux_match__1(lean_object*); +lean_object* l_List_reverseAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg(lean_object*, lean_object*); lean_object* l_List_take___rarg___boxed(lean_object*, lean_object*); -lean_object* l_List_replace___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_erase_match__1(lean_object*); +lean_object* l_List_findSome_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_span___rarg(lean_object*, lean_object*); -lean_object* l_List_hasDecEq___main(lean_object*); +lean_object* l_List_filterAux___at_List_removeAll___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux_match__2(lean_object*, lean_object*); +lean_object* l_List_replace_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_erase(lean_object*); uint8_t l_List_beq___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg___boxed(lean_object*, lean_object*); -lean_object* l_List_groupByAux___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_dropWhile___main___rarg(lean_object*, lean_object*); -lean_object* l_List_drop___main___rarg(lean_object*, lean_object*); lean_object* l_List_partition___rarg___closed__1; -lean_object* l_List_Inhabited(lean_object*); +lean_object* l_List_foldr___at_List_all___spec__1(lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__7(lean_object*); lean_object* l_List_init(lean_object*); -lean_object* l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main(lean_object*, lean_object*); lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); -uint8_t l_List_hasDecidableLt___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_removeAll___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map_u2082___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr_match__1(lean_object*, lean_object*); lean_object* l_List_isSuffixOf___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_partitionAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__8___rarg(lean_object*); +lean_object* l_List_foldr___at_List_or___spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_partitionAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr1___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_spanAux_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_eraseRepsAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_List_dropWhile___rarg(lean_object*, lean_object*); -lean_object* l_List_reverseAux___main___rarg(lean_object*, lean_object*); -uint8_t l_List_hasDecEq___main___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_eraseRepsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_unzip_match__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_set_match__1(lean_object*, lean_object*); +lean_object* l_List_rangeAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_and(lean_object*); -lean_object* l_List_init___main___rarg(lean_object*); +lean_object* l_List_eraseIdx_match__1(lean_object*, lean_object*); +lean_object* l_List_partitionAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_intersperse___rarg(lean_object*, lean_object*); -lean_object* l_List_enumFrom___main___rarg(lean_object*, lean_object*); -lean_object* l_List_spanAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__6(lean_object*, lean_object*); lean_object* l_List_eraseRepsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filter(lean_object*); lean_object* l_List_span(lean_object*); -lean_object* l_List_enumFrom___main(lean_object*); +lean_object* l_List_elem_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_eraseDupsAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_List_all___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_init_match__1(lean_object*, lean_object*); +lean_object* l_List_map_u2082_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_findSome_x3f_match__1(lean_object*, lean_object*); +lean_object* l_List_groupByAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_lookup_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_intersperse_match__1(lean_object*, lean_object*); lean_object* l_List_bind(lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_zip(lean_object*, lean_object*); +lean_object* l_List_replace_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_elem___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterMap_match__1(lean_object*, lean_object*); lean_object* l_List_findSome_x3f(lean_object*, lean_object*); -lean_object* l_List_join___main(lean_object*); -lean_object* l_List_iota___main(lean_object*); -lean_object* l_List_lookup___main(lean_object*, lean_object*); +lean_object* l_Init_Data_List_Basic___instance__1(lean_object*); +lean_object* l_List_groupBy_match__1(lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__5___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__3(lean_object*, lean_object*); +lean_object* l_List_find_x3f_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseDupsAux_match__2(lean_object*, lean_object*); lean_object* l_List_zip___rarg(lean_object*, lean_object*); lean_object* l_List_and___boxed(lean_object*); lean_object* l_List_erase___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_List_removeAll___spec__1(lean_object*); +lean_object* l_List_hasDecEq_match__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux(lean_object*); -lean_object* l_List_foldr___main___at_List_or___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map_u2082___main(lean_object*, lean_object*, lean_object*); +lean_object* l_List_groupByAux_match__2(lean_object*, lean_object*); +lean_object* l_List_find_x3f_match__1(lean_object*); +lean_object* l_List_filterMap_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_foldr(lean_object*, lean_object*); +lean_object* l_List_map_match__1(lean_object*, lean_object*); +lean_object* l_List_partitionAux_match__2(lean_object*, lean_object*); lean_object* l_List_enumFrom(lean_object*); -lean_object* l_List_foldr___main(lean_object*, lean_object*); -lean_object* l_List_beq___main(lean_object*); -lean_object* l_List_unzip___main___rarg(lean_object*); -lean_object* l_List_set___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_groupByAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecEq_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_List_rangeAux(lean_object*, lean_object*); +lean_object* l_List_foldr___at_List_all___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_take___rarg(lean_object*, lean_object*); -uint8_t l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_take(lean_object*); -lean_object* l_List_drop___main(lean_object*); +lean_object* l_List_isPrefixOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseDupsAux_match__1(lean_object*); lean_object* l_List_eraseReps(lean_object*); -uint8_t l_List_DecidableEq___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_List_all___spec__1___rarg(lean_object*, uint8_t, lean_object*); -lean_object* l_List_DecidableEq(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_List_filterMap___rarg(lean_object*, lean_object*); lean_object* l_List_groupBy(lean_object*); -lean_object* l_List_iota___boxed(lean_object*); lean_object* l_List_reverseAux___rarg(lean_object*, lean_object*); -lean_object* l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_isPrefixOf_match__1(lean_object*, lean_object*); uint8_t l_List_any___rarg(lean_object*, lean_object*); -lean_object* l_List_isEqv___main(lean_object*); +uint8_t l_List_Init_Data_List_Basic___instance__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_init_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_isPrefixOf(lean_object*); -lean_object* l_List_dropWhile___main(lean_object*); lean_object* l_Nat_repeat_loop___at_List_replicate___spec__1(lean_object*); -uint8_t l_List_beq___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_beq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_erase_match__2(lean_object*, lean_object*); lean_object* l_List_intercalate(lean_object*); -lean_object* l_List_beq___main___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_dropWhile_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_List_spanAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_beq(lean_object*); +lean_object* l_List_foldr_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_eraseRepsAux(lean_object*); lean_object* l_List_zip___rarg___closed__1; lean_object* l_List_intersperse(lean_object*); -lean_object* l_List_foldr1(lean_object*); uint8_t l_List_contains___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_HasBeq(lean_object*); +lean_object* l_List_hasDecEq_match__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_take_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_eraseDups___rarg(lean_object*, lean_object*); +lean_object* l_List_lookup_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_isEmpty_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_hasDecidableLt_match__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_Init_Data_List_Basic___instance__3(lean_object*); lean_object* l_List_length___rarg___boxed(lean_object*); -lean_object* l_List_filterAux___main___at_List_removeAll___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_hasDecEq___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_zipWith___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_hasDecidableLt___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); +lean_object* l_List_partitionAux_match__1(lean_object*); +lean_object* l_List_lookup_match__1(lean_object*); lean_object* l_List_set___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_spanAux_match__2(lean_object*, lean_object*); lean_object* l_List_elem(lean_object*); +lean_object* l_List_filterAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseReps_match__1(lean_object*, lean_object*); lean_object* l_List_length___rarg(lean_object*); lean_object* l_List_foldl(lean_object*, lean_object*); +lean_object* l_List_intersperse_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f_match__2(lean_object*, lean_object*); lean_object* l_List_partition___rarg(lean_object*, lean_object*); -lean_object* l_List_foldr1Opt(lean_object*); -lean_object* l_List_eraseRepsAux___main(lean_object*); -lean_object* l_List_Inhabited(lean_object* x_1) { +lean_object* l_List_replace_match__2(lean_object*, lean_object*); +lean_object* l_Init_Data_List_Basic___instance__1(lean_object* x_1) { _start: { lean_object* x_2; @@ -296,7 +343,173 @@ x_2 = lean_box(0); return x_2; } } -uint8_t l_List_hasDecEq___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_hasDecEq_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, lean_box(0)); +return x_4; +} +else +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_2, lean_box(0)); +return x_5; +} +} +} +lean_object* l_List_hasDecEq_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_List_hasDecEq_match__1___rarg___boxed), 3, 0); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_hasDecEq_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_List_hasDecEq_match__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__2___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, lean_box(0)); +return x_4; +} +else +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_2, lean_box(0)); +return x_5; +} +} +} +lean_object* l_List_hasDecEq_match__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_List_hasDecEq_match__2___rarg___boxed), 3, 0); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_hasDecEq_match__2___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__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_List_hasDecEq_match__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_List_hasDecEq_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_6); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_5); +x_7 = lean_box(0); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +lean_dec(x_2); +x_11 = lean_apply_2(x_5, x_9, x_10); +return x_11; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_apply_2(x_4, x_12, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_4); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 1); +lean_inc(x_18); +lean_dec(x_2); +x_19 = lean_apply_4(x_6, x_15, x_16, x_17, x_18); +return x_19; +} +} +} +} +lean_object* l_List_hasDecEq_match__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_hasDecEq_match__3___rarg), 6, 0); +return x_3; +} +} +uint8_t l_List_hasDecEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -362,31 +575,6 @@ goto _start; } } } -lean_object* l_List_hasDecEq___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_hasDecEq___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_hasDecEq___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_hasDecEq___main___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_List_hasDecEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_hasDecEq___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_hasDecEq(lean_object* x_1) { _start: { @@ -404,115 +592,64 @@ x_5 = lean_box(x_4); return x_5; } } -uint8_t l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +uint8_t l_List_Init_Data_List_Basic___instance__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_1); -if (lean_obj_tag(x_3) == 0) -{ uint8_t x_4; -x_4 = 1; +x_4 = l_List_hasDecEq___rarg(x_1, x_2, x_3); return x_4; } -else +} +lean_object* l_List_Init_Data_List_Basic___instance__2(lean_object* x_1) { +_start: { -uint8_t x_5; -lean_dec(x_3); -x_5 = 0; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_Init_Data_List_Basic___instance__2___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_Init_Data_List_Basic___instance__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l_List_Init_Data_List_Basic___instance__2___rarg(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -else +lean_object* l_List_reverseAux_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_3) == 0) +if (lean_obj_tag(x_1) == 0) { -uint8_t x_6; -lean_dec(x_2); -lean_dec(x_1); -x_6 = 0; -return x_6; +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_2); +return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = lean_ctor_get(x_2, 0); +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); -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); -lean_dec(x_2); -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_3, 1); -lean_inc(x_10); -lean_dec(x_3); -lean_inc(x_1); -x_11 = lean_apply_2(x_1, x_7, x_9); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -uint8_t x_13; -lean_dec(x_10); -lean_dec(x_8); lean_dec(x_1); -x_13 = 0; -return x_13; -} -else -{ -x_2 = x_8; -x_3 = x_10; -goto _start; +x_8 = lean_apply_3(x_4, x_6, x_7, x_2); +return x_8; } } } -} -} -lean_object* l_List_hasDecEq___main___at_List_DecidableEq___spec__1(lean_object* x_1) { +lean_object* l_List_reverseAux_match__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg___boxed), 3, 0); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_reverseAux_match__1___rarg), 4, 0); +return x_3; } } -uint8_t l_List_DecidableEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg(x_1, x_2, x_3); -return x_4; -} -} -lean_object* l_List_DecidableEq(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_DecidableEq___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_hasDecEq___main___at_List_DecidableEq___spec__1___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -lean_object* l_List_DecidableEq___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_DecidableEq___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -lean_object* l_List_reverseAux___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_reverseAux___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -554,22 +691,6 @@ goto _start; } } } -lean_object* l_List_reverseAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_reverseAux___main___rarg), 2, 0); -return x_2; -} -} -lean_object* l_List_reverseAux___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_reverseAux___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_reverseAux(lean_object* x_1) { _start: { @@ -583,7 +704,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_box(0); -x_3 = l_List_reverseAux___main___rarg(x_1, x_2); +x_3 = l_List_reverseAux___rarg(x_1, x_2); return x_3; } } @@ -600,7 +721,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = l_List_reverse___rarg(x_1); -x_4 = l_List_reverseAux___main___rarg(x_3, x_2); +x_4 = l_List_reverseAux___rarg(x_3, x_2); return x_4; } } @@ -612,7 +733,7 @@ x_2 = lean_alloc_closure((void*)(l_List_append___rarg), 2, 0); return x_2; } } -static lean_object* _init_l_List_HasAppend___closed__1() { +static lean_object* _init_l_List_Init_Data_List_Basic___instance__3___closed__1() { _start: { lean_object* x_1; @@ -620,15 +741,15 @@ x_1 = lean_alloc_closure((void*)(l_List_append___rarg), 2, 0); return x_1; } } -lean_object* l_List_HasAppend(lean_object* x_1) { +lean_object* l_List_Init_Data_List_Basic___instance__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_List_HasAppend___closed__1; +x_2 = l_List_Init_Data_List_Basic___instance__3___closed__1; return x_2; } } -lean_object* l_List_HasEmptyc(lean_object* x_1) { +lean_object* l_List_Init_Data_List_Basic___instance__4(lean_object* x_1) { _start: { lean_object* x_2; @@ -636,95 +757,152 @@ x_2 = lean_box(0); return x_2; } } -lean_object* l_List_erase___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_erase_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) +if (x_1 == 0) { -lean_dec(x_3); -lean_dec(x_1); -return x_2; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_1); -lean_inc(x_3); -lean_inc(x_5); -x_7 = lean_apply_2(x_1, x_5, x_3); -x_8 = lean_unbox(x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = l_List_erase___main___rarg(x_1, x_6, x_3); -lean_ctor_set(x_2, 1, x_9); -return x_2; -} -else -{ -lean_free_object(x_2); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; -} -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_2, 0); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -lean_inc(x_10); +lean_object* x_4; lean_object* x_5; lean_dec(x_2); -lean_inc(x_1); -lean_inc(x_3); -lean_inc(x_10); -x_12 = lean_apply_2(x_1, x_10, x_3); -x_13 = lean_unbox(x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = l_List_erase___main___rarg(x_1, x_11, x_3); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_14); -return x_15; +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; } else { -lean_dec(x_10); +lean_object* x_6; lean_object* x_7; lean_dec(x_3); -lean_dec(x_1); -return x_11; +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } } -} -} -lean_object* l_List_erase___main(lean_object* x_1) { +lean_object* l_List_erase_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_erase___main___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_erase_match__1___rarg___boxed), 3, 0); return x_2; } } +lean_object* l_List_erase_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_erase_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_erase_match__2___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_erase_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_erase_match__2___rarg), 4, 0); +return x_3; +} +} lean_object* l_List_erase___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { +if (lean_obj_tag(x_2) == 0) +{ lean_object* x_4; -x_4 = l_List_erase___main___rarg(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_4 = lean_box(0); return x_4; } +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_6); +x_8 = lean_apply_2(x_1, x_6, x_3); +x_9 = lean_unbox(x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = l_List_erase___rarg(x_1, x_7, x_3); +lean_ctor_set(x_2, 1, x_10); +return x_2; +} +else +{ +lean_free_object(x_2); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_7; +} +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_11); +x_13 = lean_apply_2(x_1, x_11, x_3); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_List_erase___rarg(x_1, x_12, x_3); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +else +{ +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +} +} } lean_object* l_List_erase(lean_object* x_1) { _start: @@ -734,96 +912,124 @@ x_2 = lean_alloc_closure((void*)(l_List_erase___rarg), 3, 0); return x_2; } } -lean_object* l_List_eraseIdx___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_eraseIdx_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) { -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_nat_dec_eq(x_2, x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_sub(x_2, x_8); -x_10 = l_List_eraseIdx___main___rarg(x_5, x_9); -lean_dec(x_9); -lean_ctor_set(x_1, 1, x_10); -return x_1; -} -else -{ -lean_free_object(x_1); +lean_object* x_6; +lean_dec(x_5); lean_dec(x_4); -return x_5; -} +x_6 = lean_apply_1(x_3, x_2); +return x_6; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_1, 0); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -lean_inc(x_11); +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); lean_dec(x_1); -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_nat_dec_eq(x_2, x_13); -if (x_14 == 0) +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_2, x_9); +if (x_10 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_sub(x_2, x_15); -x_17 = l_List_eraseIdx___main___rarg(x_12, x_16); -lean_dec(x_16); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_2, x_11); +lean_dec(x_2); +x_13 = lean_apply_3(x_5, x_7, x_8, x_12); +return x_13; } else { -lean_dec(x_11); -return x_12; +lean_object* x_14; +lean_dec(x_5); +lean_dec(x_2); +x_14 = lean_apply_2(x_4, x_7, x_8); +return x_14; } } } } -} -lean_object* l_List_eraseIdx___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_eraseIdx___main___rarg___boxed), 2, 0); -return x_2; -} -} -lean_object* l_List_eraseIdx___main___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_eraseIdx_match__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_eraseIdx___main___rarg(x_1, x_2); -lean_dec(x_2); +x_3 = lean_alloc_closure((void*)(l_List_eraseIdx_match__1___rarg), 5, 0); return x_3; } } lean_object* l_List_eraseIdx___rarg(lean_object* x_1, lean_object* x_2) { _start: { +if (lean_obj_tag(x_1) == 0) +{ lean_object* x_3; -x_3 = l_List_eraseIdx___main___rarg(x_1, x_2); +x_3 = lean_box(0); return x_3; } +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_2, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_2, x_9); +x_11 = l_List_eraseIdx___rarg(x_6, x_10); +lean_dec(x_10); +lean_ctor_set(x_1, 1, x_11); +return x_1; +} +else +{ +lean_free_object(x_1); +lean_dec(x_5); +return x_6; +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_1); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_2, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_2, x_16); +x_18 = l_List_eraseIdx___rarg(x_13, x_17); +lean_dec(x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +else +{ +lean_dec(x_12); +return x_13; +} +} +} +} } lean_object* l_List_eraseIdx(lean_object* x_1) { _start: @@ -842,7 +1048,39 @@ lean_dec(x_2); return x_3; } } -lean_object* l_List_lengthAux___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lengthAux_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_lengthAux_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_lengthAux_match__1___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_lengthAux___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -862,31 +1100,6 @@ goto _start; } } } -lean_object* l_List_lengthAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_lengthAux___main___rarg___boxed), 2, 0); -return x_2; -} -} -lean_object* l_List_lengthAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_lengthAux___main___rarg(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_List_lengthAux___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_lengthAux___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_lengthAux(lean_object* x_1) { _start: { @@ -909,7 +1122,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_List_lengthAux___main___rarg(x_1, x_2); +x_3 = l_List_lengthAux___rarg(x_1, x_2); return x_3; } } @@ -930,6 +1143,39 @@ lean_dec(x_1); return x_2; } } +lean_object* l_List_isEmpty_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_isEmpty_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_isEmpty_match__1___rarg), 3, 0); +return x_3; +} +} uint8_t l_List_isEmpty___rarg(lean_object* x_1) { _start: { @@ -965,102 +1211,130 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_set___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_set_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_dec(x_3); -return x_1; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_eq(x_2, x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_sub(x_2, x_9); -x_11 = l_List_set___main___rarg(x_6, x_10, x_3); -lean_dec(x_10); -lean_ctor_set(x_1, 1, x_11); -return x_1; -} -else -{ +lean_object* x_7; lean_dec(x_5); +lean_dec(x_4); +x_7 = lean_apply_2(x_6, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +lean_dec(x_6); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_eq(x_2, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_2, x_12); +lean_dec(x_2); +x_14 = lean_apply_4(x_5, x_8, x_9, x_13, x_3); +return x_14; +} +else +{ +lean_object* x_15; +lean_dec(x_5); +lean_dec(x_2); +x_15 = lean_apply_3(x_4, x_8, x_9, x_3); +return x_15; +} +} +} +} +lean_object* l_List_set_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_set_match__1___rarg), 6, 0); +return x_3; +} +} +lean_object* l_List_set___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_2, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_2, x_10); +x_12 = l_List_set___rarg(x_7, x_11, x_3); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_12); +return x_1; +} +else +{ +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_1, 0); -x_13 = lean_ctor_get(x_1, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_1, 0); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); lean_dec(x_1); -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_eq(x_2, x_14); -if (x_15 == 0) +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_eq(x_2, x_15); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_sub(x_2, x_16); -x_18 = l_List_set___main___rarg(x_13, x_17, x_3); -lean_dec(x_17); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_2, x_17); +x_19 = l_List_set___rarg(x_14, x_18, x_3); +lean_dec(x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_19); +return x_20; } else { -lean_object* x_20; -lean_dec(x_12); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_3); -lean_ctor_set(x_20, 1, x_13); -return x_20; +lean_object* x_21; +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_14); +return x_21; } } } } } -lean_object* l_List_set___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_set___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_set___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_set___main___rarg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_List_set___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_set___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_set(lean_object* x_1) { _start: { @@ -1078,7 +1352,40 @@ lean_dec(x_2); return x_4; } } -lean_object* l_List_map___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_map_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_map_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_map___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1099,7 +1406,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = lean_apply_1(x_1, x_5); -x_8 = l_List_map___main___rarg(x_1, x_6); +x_8 = l_List_map___rarg(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -1114,7 +1421,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = lean_apply_1(x_1, x_9); -x_12 = l_List_map___main___rarg(x_1, x_10); +x_12 = l_List_map___rarg(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1123,22 +1430,6 @@ return x_13; } } } -lean_object* l_List_map___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_map___main___rarg), 2, 0); -return x_3; -} -} -lean_object* l_List_map___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_map___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_map(lean_object* x_1, lean_object* x_2) { _start: { @@ -1147,7 +1438,56 @@ x_3 = lean_alloc_closure((void*)(l_List_map___rarg), 2, 0); return x_3; } } -lean_object* l_List_map_u2082___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map_u2082_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_dec(x_5); +lean_dec(x_4); +x_6 = lean_apply_1(x_3, x_2); +return x_6; +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_5); +x_7 = lean_apply_1(x_4, x_1); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_apply_4(x_5, x_8, x_9, x_10, x_11); +return x_12; +} +} +} +} +lean_object* l_List_map_u2082_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_List_map_u2082_match__1___rarg), 5, 0); +return x_4; +} +} +lean_object* l_List_map_u2082___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1184,7 +1524,7 @@ x_9 = lean_ctor_get(x_3, 0); x_10 = lean_ctor_get(x_3, 1); lean_inc(x_1); x_11 = lean_apply_2(x_1, x_6, x_9); -x_12 = l_List_map_u2082___main___rarg(x_1, x_7, x_10); +x_12 = l_List_map_u2082___rarg(x_1, x_7, x_10); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -1199,7 +1539,7 @@ lean_inc(x_13); lean_dec(x_3); lean_inc(x_1); x_15 = lean_apply_2(x_1, x_6, x_13); -x_16 = l_List_map_u2082___main___rarg(x_1, x_7, x_14); +x_16 = l_List_map_u2082___rarg(x_1, x_7, x_14); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -1209,22 +1549,6 @@ return x_17; } } } -lean_object* l_List_map_u2082___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_List_map_u2082___main___rarg), 3, 0); -return x_4; -} -} -lean_object* l_List_map_u2082___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_map_u2082___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_map_u2082(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1233,7 +1557,40 @@ x_4 = lean_alloc_closure((void*)(l_List_map_u2082___rarg), 3, 0); return x_4; } } -lean_object* l_List_join___main___rarg(lean_object* x_1) { +lean_object* l_List_join_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_join_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_join_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_join___rarg(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1250,28 +1607,12 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); lean_dec(x_1); -x_5 = l_List_join___main___rarg(x_4); +x_5 = l_List_join___rarg(x_4); x_6 = l_List_append___rarg(x_3, x_5); return x_6; } } } -lean_object* l_List_join___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_join___main___rarg), 1, 0); -return x_2; -} -} -lean_object* l_List_join___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_List_join___main___rarg(x_1); -return x_2; -} -} lean_object* l_List_join(lean_object* x_1) { _start: { @@ -1280,7 +1621,71 @@ x_2 = lean_alloc_closure((void*)(l_List_join___rarg), 1, 0); return x_2; } } -lean_object* l_List_filterMap___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterMap_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_List_filterMap_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_filterMap_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_filterMap_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_filterMap_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_filterMap_match__2___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_filterMap___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1313,7 +1718,7 @@ lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); lean_dec(x_7); -x_10 = l_List_filterMap___main___rarg(x_1, x_6); +x_10 = l_List_filterMap___rarg(x_1, x_6); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_9); return x_2; @@ -1340,7 +1745,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); lean_dec(x_13); -x_16 = l_List_filterMap___main___rarg(x_1, x_12); +x_16 = l_List_filterMap___rarg(x_1, x_12); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -1350,22 +1755,6 @@ return x_17; } } } -lean_object* l_List_filterMap___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_filterMap___main___rarg), 2, 0); -return x_3; -} -} -lean_object* l_List_filterMap___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_filterMap___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_filterMap(lean_object* x_1, lean_object* x_2) { _start: { @@ -1374,7 +1763,78 @@ x_3 = lean_alloc_closure((void*)(l_List_filterMap___rarg), 2, 0); return x_3; } } -lean_object* l_List_filterAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_filterAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_filterAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_filterAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_filterAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_filterAux_match__2___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_filterAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_filterAux_match__2___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_filterAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1450,22 +1910,6 @@ goto _start; } } } -lean_object* l_List_filterAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_filterAux___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_filterAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_filterAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_filterAux(lean_object* x_1) { _start: { @@ -1479,7 +1923,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_filterAux___main___rarg(x_1, x_2, x_3); +x_4 = l_List_filterAux___rarg(x_1, x_2, x_3); return x_4; } } @@ -1491,7 +1935,88 @@ x_2 = lean_alloc_closure((void*)(l_List_filter___rarg), 2, 0); return x_2; } } -lean_object* l_List_partitionAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_partitionAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_partitionAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_partitionAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_partitionAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_partitionAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_partitionAux_match__2___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_object* x_7; +lean_dec(x_4); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_apply_2(x_3, x_5, x_6); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_3); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_apply_4(x_4, x_8, x_9, x_10, x_11); +return x_12; +} +} +} +lean_object* l_List_partitionAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_partitionAux_match__2___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_partitionAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1663,22 +2188,6 @@ goto _start; } } } -lean_object* l_List_partitionAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_partitionAux___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_partitionAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_partitionAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_partitionAux(lean_object* x_1) { _start: { @@ -1703,7 +2212,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = l_List_partition___rarg___closed__1; -x_4 = l_List_partitionAux___main___rarg(x_1, x_2, x_3); +x_4 = l_List_partitionAux___rarg(x_1, x_2, x_3); return x_4; } } @@ -1715,55 +2224,146 @@ x_2 = lean_alloc_closure((void*)(l_List_partition___rarg), 2, 0); return x_2; } } -lean_object* l_List_dropWhile___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_dropWhile_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_inc(x_1); -x_5 = lean_apply_1(x_1, x_3); -x_6 = lean_unbox(x_5); -lean_dec(x_5); -if (x_6 == 0) -{ -lean_dec(x_4); -lean_dec(x_1); -return x_2; -} -else +if (x_1 == 0) { +lean_object* x_4; lean_object* x_5; lean_dec(x_2); -x_2 = x_4; -goto _start; +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } } -} -lean_object* l_List_dropWhile___main(lean_object* x_1) { +lean_object* l_List_dropWhile_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_dropWhile___main___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_List_dropWhile_match__1___rarg___boxed), 3, 0); return x_2; } } +lean_object* l_List_dropWhile_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_dropWhile_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_dropWhile_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_dropWhile_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_dropWhile_match__2___rarg), 3, 0); +return x_3; +} +} lean_object* l_List_dropWhile___rarg(lean_object* x_1, lean_object* x_2) { _start: { +if (lean_obj_tag(x_2) == 0) +{ lean_object* x_3; -x_3 = l_List_dropWhile___main___rarg(x_1, x_2); +lean_dec(x_1); +x_3 = lean_box(0); return x_3; } +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +lean_inc(x_5); +x_7 = lean_apply_1(x_1, x_5); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_free_object(x_2); +lean_dec(x_5); +x_2 = x_6; +goto _start; +} +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_2); +lean_inc(x_1); +lean_inc(x_10); +x_12 = lean_apply_1(x_1, x_10); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_1); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_11); +return x_14; +} +else +{ +lean_dec(x_10); +x_2 = x_11; +goto _start; +} +} +} +} } lean_object* l_List_dropWhile(lean_object* x_1) { _start: @@ -1773,7 +2373,79 @@ x_2 = lean_alloc_closure((void*)(l_List_dropWhile___rarg), 2, 0); return x_2; } } -lean_object* l_List_find_x3f___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_find_x3f_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_find_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_find_x3f_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_find_x3f_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_find_x3f_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_find_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_find_x3f_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_find_x3f_match__2___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_find_x3f___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1814,22 +2486,6 @@ return x_9; } } } -lean_object* l_List_find_x3f___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_find_x3f___main___rarg), 2, 0); -return x_2; -} -} -lean_object* l_List_find_x3f___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_find_x3f___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_find_x3f(lean_object* x_1) { _start: { @@ -1838,7 +2494,71 @@ x_2 = lean_alloc_closure((void*)(l_List_find_x3f___rarg), 2, 0); return x_2; } } -lean_object* l_List_findSome_x3f___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_findSome_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_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_findSome_x3f_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_findSome_x3f_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_findSome_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_findSome_x3f_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_findSome_x3f_match__2___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_findSome_x3f___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1865,27 +2585,26 @@ goto _start; } else { +uint8_t x_8; lean_dec(x_5); lean_dec(x_1); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ return x_6; } -} -} -} -lean_object* l_List_findSome_x3f___main(lean_object* x_1, lean_object* x_2) { -_start: +else { -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_findSome_x3f___main___rarg), 2, 0); -return x_3; +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} } } -lean_object* l_List_findSome_x3f___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_findSome_x3f___main___rarg(x_1, x_2); -return x_3; } } lean_object* l_List_findSome_x3f(lean_object* x_1, lean_object* x_2) { @@ -1896,41 +2615,114 @@ x_3 = lean_alloc_closure((void*)(l_List_findSome_x3f___rarg), 2, 0); return x_3; } } -lean_object* l_List_replace___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_replace_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(x_1); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_replace_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_replace_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_replace_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_replace_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_replace_match__2___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_dec(x_5); +x_6 = lean_apply_2(x_4, x_2, x_3); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_4(x_5, x_7, x_8, x_2, x_3); +return x_9; +} +} +} +lean_object* l_List_replace_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_replace_match__2___rarg), 5, 0); +return x_3; +} +} +lean_object* l_List_replace___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) { +lean_object* x_5; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_2; +x_5 = lean_box(0); +return x_5; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_2); +if (x_6 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get(x_2, 1); lean_inc(x_1); lean_inc(x_3); -lean_inc(x_6); -x_8 = lean_apply_2(x_1, x_6, x_3); -x_9 = lean_unbox(x_8); -lean_dec(x_8); -if (x_9 == 0) +lean_inc(x_7); +x_9 = lean_apply_2(x_1, x_7, x_3); +x_10 = lean_unbox(x_9); +lean_dec(x_9); +if (x_10 == 0) { -lean_object* x_10; -x_10 = l_List_replace___main___rarg(x_1, x_7, x_3, x_4); -lean_ctor_set(x_2, 1, x_10); +lean_object* x_11; +x_11 = l_List_replace___rarg(x_1, x_8, x_3, x_4); +lean_ctor_set(x_2, 1, x_11); return x_2; } else { -lean_dec(x_6); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); lean_ctor_set(x_2, 0, x_4); @@ -1939,58 +2731,42 @@ return x_2; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_2, 0); -x_12 = lean_ctor_get(x_2, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); lean_dec(x_2); lean_inc(x_1); lean_inc(x_3); -lean_inc(x_11); -x_13 = lean_apply_2(x_1, x_11, x_3); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) +lean_inc(x_12); +x_14 = lean_apply_2(x_1, x_12, x_3); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = l_List_replace___main___rarg(x_1, x_12, x_3, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_11); -lean_ctor_set(x_16, 1, x_15); -return x_16; +lean_object* x_16; lean_object* x_17; +x_16 = l_List_replace___rarg(x_1, x_13, x_3, x_4); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, x_16); +return x_17; } else { -lean_object* x_17; -lean_dec(x_11); +lean_object* x_18; +lean_dec(x_12); lean_dec(x_3); lean_dec(x_1); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_4); -lean_ctor_set(x_17, 1, x_12); -return x_17; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_4); +lean_ctor_set(x_18, 1, x_13); +return x_18; } } } } } -lean_object* l_List_replace___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_replace___main___rarg), 4, 0); -return x_2; -} -} -lean_object* l_List_replace___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_List_replace___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_List_replace(lean_object* x_1) { _start: { @@ -1999,7 +2775,79 @@ x_2 = lean_alloc_closure((void*)(l_List_replace___rarg), 4, 0); return x_2; } } -uint8_t l_List_elem___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_elem_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_elem_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_elem_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_elem_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_elem_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_elem_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_elem_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_elem_match__2___rarg), 3, 0); +return x_3; +} +} +uint8_t l_List_elem___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2040,31 +2888,6 @@ return x_10; } } } -lean_object* l_List_elem___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_elem___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_elem___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_elem___main___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_List_elem___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_elem___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_elem(lean_object* x_1) { _start: { @@ -2086,7 +2909,7 @@ uint8_t l_List_notElem___rarg(lean_object* x_1, lean_object* x_2, lean_object* x _start: { uint8_t x_4; -x_4 = l_List_elem___main___rarg(x_1, x_2, x_3); +x_4 = l_List_elem___rarg(x_1, x_2, x_3); if (x_4 == 0) { uint8_t x_5; @@ -2122,7 +2945,7 @@ uint8_t l_List_contains___rarg(lean_object* x_1, lean_object* x_2, lean_object* _start: { uint8_t x_4; -x_4 = l_List_elem___main___rarg(x_1, x_3, x_2); +x_4 = l_List_elem___rarg(x_1, x_3, x_2); return x_4; } } @@ -2143,7 +2966,78 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_List_eraseDupsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_eraseDupsAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_eraseDupsAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_eraseDupsAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_eraseDupsAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_eraseDupsAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_eraseDupsAux_match__2___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_eraseDupsAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_eraseDupsAux_match__2___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_eraseDupsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2165,7 +3059,7 @@ x_7 = lean_ctor_get(x_2, 1); lean_inc(x_3); lean_inc(x_6); lean_inc(x_1); -x_8 = l_List_elem___main___rarg(x_1, x_6, x_3); +x_8 = l_List_elem___rarg(x_1, x_6, x_3); if (x_8 == 0) { lean_ctor_set(x_2, 1, x_3); @@ -2196,7 +3090,7 @@ lean_dec(x_2); lean_inc(x_3); lean_inc(x_11); lean_inc(x_1); -x_13 = l_List_elem___main___rarg(x_1, x_11, x_3); +x_13 = l_List_elem___rarg(x_1, x_11, x_3); if (x_13 == 0) { lean_object* x_14; @@ -2217,22 +3111,6 @@ goto _start; } } } -lean_object* l_List_eraseDupsAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_eraseDupsAux___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_eraseDupsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_eraseDupsAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_eraseDupsAux(lean_object* x_1) { _start: { @@ -2246,7 +3124,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_eraseDupsAux___main___rarg(x_1, x_2, x_3); +x_4 = l_List_eraseDupsAux___rarg(x_1, x_2, x_3); return x_4; } } @@ -2258,7 +3136,78 @@ x_2 = lean_alloc_closure((void*)(l_List_eraseDups___rarg), 2, 0); return x_2; } } -lean_object* l_List_eraseRepsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_eraseRepsAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_eraseRepsAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_eraseRepsAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_eraseRepsAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_eraseRepsAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_eraseRepsAux_match__2___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_2) == 0) +{ +lean_object* x_6; +lean_dec(x_5); +x_6 = lean_apply_2(x_4, x_1, x_3); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_2, 1); +lean_inc(x_8); +lean_dec(x_2); +x_9 = lean_apply_4(x_5, x_1, x_7, x_8, x_3); +return x_9; +} +} +} +lean_object* l_List_eraseRepsAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_eraseRepsAux_match__2___rarg), 5, 0); +return x_3; +} +} +lean_object* l_List_eraseRepsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2343,22 +3292,6 @@ goto _start; } } } -lean_object* l_List_eraseRepsAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_eraseRepsAux___main___rarg), 4, 0); -return x_2; -} -} -lean_object* l_List_eraseRepsAux___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_List_eraseRepsAux___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_List_eraseRepsAux(lean_object* x_1) { _start: { @@ -2367,25 +3300,60 @@ x_2 = lean_alloc_closure((void*)(l_List_eraseRepsAux___rarg), 4, 0); return x_2; } } +lean_object* l_List_eraseReps_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_eraseReps_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_eraseReps_match__1___rarg), 3, 0); +return x_3; +} +} lean_object* l_List_eraseReps___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { +lean_object* x_3; lean_dec(x_1); -return x_2; +x_3 = lean_box(0); +return x_3; } else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); lean_dec(x_2); -x_5 = lean_box(0); -x_6 = l_List_eraseRepsAux___main___rarg(x_1, x_3, x_4, x_5); -return x_6; +x_6 = lean_box(0); +x_7 = l_List_eraseRepsAux___rarg(x_1, x_4, x_5, x_6); +return x_7; } } } @@ -2397,94 +3365,167 @@ x_2 = lean_alloc_closure((void*)(l_List_eraseReps___rarg), 2, 0); return x_2; } } -lean_object* l_List_spanAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_spanAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) +if (x_1 == 0) { lean_object* x_4; lean_object* x_5; -lean_dec(x_1); -x_4 = l_List_reverse___rarg(x_3); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_2); +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); return x_5; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_inc(x_1); -lean_inc(x_6); -x_8 = lean_apply_1(x_1, x_6); -x_9 = lean_unbox(x_8); -lean_dec(x_8); -if (x_9 == 0) +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_spanAux_match__1(lean_object* x_1) { +_start: { -lean_object* x_10; lean_object* x_11; -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_spanAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_spanAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); lean_dec(x_1); -x_10 = l_List_reverse___rarg(x_3); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_2); -return x_11; +x_5 = l_List_spanAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_spanAux_match__2___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 { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_2); -if (x_12 == 0) +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_spanAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_spanAux_match__2___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_spanAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_1); +x_4 = l_List_reverse___rarg(x_3); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +lean_inc(x_8); +x_10 = lean_apply_1(x_1, x_8); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = l_List_reverse___rarg(x_3); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +return x_13; +} +else { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_2, 1); -lean_dec(x_13); -x_14 = lean_ctor_get(x_2, 0); -lean_dec(x_14); lean_ctor_set(x_2, 1, x_3); { -lean_object* _tmp_1 = x_7; +lean_object* _tmp_1 = x_9; lean_object* _tmp_2 = x_2; x_2 = _tmp_1; x_3 = _tmp_2; } goto _start; } +} else { -lean_object* x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); +lean_inc(x_15); lean_dec(x_2); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_6); -lean_ctor_set(x_16, 1, x_3); -x_2 = x_7; -x_3 = x_16; +lean_inc(x_1); +lean_inc(x_15); +x_17 = lean_apply_1(x_1, x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_1); +x_19 = l_List_reverse___rarg(x_3); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_16); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +else +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_3); +x_2 = x_16; +x_3 = x_22; goto _start; } } } } } -lean_object* l_List_spanAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_spanAux___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_spanAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_spanAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_spanAux(lean_object* x_1) { _start: { @@ -2498,7 +3539,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_spanAux___main___rarg(x_1, x_2, x_3); +x_4 = l_List_spanAux___rarg(x_1, x_2, x_3); return x_4; } } @@ -2510,7 +3551,109 @@ x_2 = lean_alloc_closure((void*)(l_List_span___rarg), 2, 0); return x_2; } } -lean_object* l_List_groupByAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_groupByAux_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_groupByAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_groupByAux_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_groupByAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_groupByAux_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_groupByAux_match__2___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_3); +x_5 = lean_apply_2(x_4, x_1, x_2); +return x_5; +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_apply_2(x_4, x_1, x_2); +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_3); +x_8 = lean_apply_2(x_4, x_1, x_2); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_4); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_dec(x_7); +x_14 = lean_apply_5(x_3, x_9, x_10, x_12, x_13, x_11); +return x_14; +} +} +} +} +} +lean_object* l_List_groupByAux_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_groupByAux_match__2___rarg), 4, 0); +return x_3; +} +} +lean_object* l_List_groupByAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2553,67 +3696,44 @@ uint8_t x_9; x_9 = !lean_is_exclusive(x_3); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_10 = lean_ctor_get(x_2, 0); x_11 = lean_ctor_get(x_2, 1); x_12 = lean_ctor_get(x_3, 1); x_13 = lean_ctor_get(x_3, 0); lean_dec(x_13); -x_14 = lean_ctor_get(x_6, 0); -lean_inc(x_14); +x_14 = !lean_is_exclusive(x_6); +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_6, 0); +x_16 = lean_ctor_get(x_6, 1); lean_inc(x_1); +lean_inc(x_15); lean_inc(x_10); -x_15 = lean_apply_2(x_1, x_10, x_14); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) +x_17 = lean_apply_2(x_1, x_10, x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_box(0); -lean_ctor_set(x_3, 1, x_17); -lean_ctor_set(x_3, 0, x_10); -lean_inc(x_6); -x_18 = l_List_reverse___rarg(x_6); -x_19 = !lean_is_exclusive(x_6); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_6, 1); -lean_dec(x_20); -x_21 = lean_ctor_get(x_6, 0); -lean_dec(x_21); -lean_ctor_set(x_6, 1, x_12); -lean_ctor_set(x_6, 0, x_18); -lean_ctor_set(x_2, 1, x_6); -lean_ctor_set(x_2, 0, x_3); -{ -lean_object* _tmp_1 = x_11; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; -x_3 = _tmp_2; -} +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_box(0); +lean_ctor_set(x_6, 1, x_19); +lean_ctor_set(x_6, 0, x_10); +lean_ctor_set(x_3, 1, x_16); +lean_ctor_set(x_3, 0, x_15); +x_20 = l_List_reverse___rarg(x_3); +lean_ctor_set(x_2, 1, x_12); +lean_ctor_set(x_2, 0, x_20); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_6); +lean_ctor_set(x_21, 1, x_2); +x_2 = x_11; +x_3 = x_21; goto _start; } else { -lean_object* x_23; -lean_dec(x_6); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_18); -lean_ctor_set(x_23, 1, x_12); -lean_ctor_set(x_2, 1, x_23); -lean_ctor_set(x_2, 0, x_3); -{ -lean_object* _tmp_1 = x_11; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; -x_3 = _tmp_2; -} -goto _start; -} -} -else -{ lean_ctor_set(x_3, 1, x_6); lean_ctor_set(x_3, 0, x_10); lean_ctor_set(x_2, 1, x_12); @@ -2629,63 +3749,124 @@ goto _start; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_26 = lean_ctor_get(x_2, 0); -x_27 = lean_ctor_get(x_2, 1); -x_28 = lean_ctor_get(x_3, 1); -lean_inc(x_28); -lean_dec(x_3); -x_29 = lean_ctor_get(x_6, 0); -lean_inc(x_29); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_6, 0); +x_25 = lean_ctor_get(x_6, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_6); lean_inc(x_1); -lean_inc(x_26); -x_30 = lean_apply_2(x_1, x_26, x_29); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -if (x_31 == 0) +lean_inc(x_24); +lean_inc(x_10); +x_26 = lean_apply_2(x_1, x_10, x_24); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_box(0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_10); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_3, 1, x_25); +lean_ctor_set(x_3, 0, x_24); +x_30 = l_List_reverse___rarg(x_3); +lean_ctor_set(x_2, 1, x_12); +lean_ctor_set(x_2, 0, x_30); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_2); +x_2 = x_11; +x_3 = x_31; +goto _start; +} +else +{ +lean_object* x_33; x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_26); -lean_ctor_set(x_33, 1, x_32); -lean_inc(x_6); -x_34 = l_List_reverse___rarg(x_6); +lean_ctor_set(x_33, 0, x_24); +lean_ctor_set(x_33, 1, x_25); +lean_ctor_set(x_3, 1, x_33); +lean_ctor_set(x_3, 0, x_10); +lean_ctor_set(x_2, 1, x_12); +lean_ctor_set(x_2, 0, x_3); +{ +lean_object* _tmp_1 = x_11; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_35 = lean_ctor_get(x_2, 0); +x_36 = lean_ctor_get(x_2, 1); +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +lean_dec(x_3); +x_38 = lean_ctor_get(x_6, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_6, 1); +lean_inc(x_39); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); - x_35 = x_6; + x_40 = x_6; } else { lean_dec_ref(x_6); - x_35 = lean_box(0); + x_40 = lean_box(0); } -if (lean_is_scalar(x_35)) { - x_36 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_1); +lean_inc(x_38); +lean_inc(x_35); +x_41 = lean_apply_2(x_1, x_35, x_38); +x_42 = lean_unbox(x_41); +lean_dec(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_box(0); +if (lean_is_scalar(x_40)) { + x_44 = lean_alloc_ctor(1, 2, 0); } else { - x_36 = x_35; -} -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_28); -lean_ctor_set(x_2, 1, x_36); -lean_ctor_set(x_2, 0, x_33); -{ -lean_object* _tmp_1 = x_27; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; -x_3 = _tmp_2; + x_44 = x_40; } +lean_ctor_set(x_44, 0, x_35); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_38); +lean_ctor_set(x_45, 1, x_39); +x_46 = l_List_reverse___rarg(x_45); +lean_ctor_set(x_2, 1, x_37); +lean_ctor_set(x_2, 0, x_46); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_2); +x_2 = x_36; +x_3 = x_47; goto _start; } else { -lean_object* x_38; -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_26); -lean_ctor_set(x_38, 1, x_6); -lean_ctor_set(x_2, 1, x_28); -lean_ctor_set(x_2, 0, x_38); +lean_object* x_49; lean_object* x_50; +if (lean_is_scalar(x_40)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_40; +} +lean_ctor_set(x_49, 0, x_38); +lean_ctor_set(x_49, 1, x_39); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_35); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_2, 1, x_37); +lean_ctor_set(x_2, 0, x_50); { -lean_object* _tmp_1 = x_27; +lean_object* _tmp_1 = x_36; lean_object* _tmp_2 = x_2; x_2 = _tmp_1; x_3 = _tmp_2; @@ -2696,79 +3877,91 @@ goto _start; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_40 = lean_ctor_get(x_2, 0); -x_41 = lean_ctor_get(x_2, 1); -lean_inc(x_41); -lean_inc(x_40); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_52 = lean_ctor_get(x_2, 0); +x_53 = lean_ctor_get(x_2, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_2); -x_42 = lean_ctor_get(x_3, 1); -lean_inc(x_42); +x_54 = lean_ctor_get(x_3, 1); +lean_inc(x_54); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); - x_43 = x_3; + x_55 = x_3; } else { lean_dec_ref(x_3); - x_43 = lean_box(0); + x_55 = lean_box(0); } -x_44 = lean_ctor_get(x_6, 0); -lean_inc(x_44); -lean_inc(x_1); -lean_inc(x_40); -x_45 = lean_apply_2(x_1, x_40, x_44); -x_46 = lean_unbox(x_45); -lean_dec(x_45); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_47 = lean_box(0); -if (lean_is_scalar(x_43)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_43; -} -lean_ctor_set(x_48, 0, x_40); -lean_ctor_set(x_48, 1, x_47); -lean_inc(x_6); -x_49 = l_List_reverse___rarg(x_6); +x_56 = lean_ctor_get(x_6, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_6, 1); +lean_inc(x_57); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); - x_50 = x_6; + x_58 = x_6; } else { lean_dec_ref(x_6); - x_50 = lean_box(0); + x_58 = lean_box(0); } -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_1); +lean_inc(x_56); +lean_inc(x_52); +x_59 = lean_apply_2(x_1, x_52, x_56); +x_60 = lean_unbox(x_59); +lean_dec(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_box(0); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(1, 2, 0); } else { - x_51 = x_50; + x_62 = x_58; } -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_42); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_48); -lean_ctor_set(x_52, 1, x_51); -x_2 = x_41; -x_3 = x_52; +lean_ctor_set(x_62, 0, x_52); +lean_ctor_set(x_62, 1, x_61); +if (lean_is_scalar(x_55)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_55; +} +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_57); +x_64 = l_List_reverse___rarg(x_63); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_54); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_62); +lean_ctor_set(x_66, 1, x_65); +x_2 = x_53; +x_3 = x_66; goto _start; } else { -lean_object* x_54; lean_object* x_55; -if (lean_is_scalar(x_43)) { - x_54 = lean_alloc_ctor(1, 2, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +if (lean_is_scalar(x_58)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_43; + x_68 = x_58; } -lean_ctor_set(x_54, 0, x_40); -lean_ctor_set(x_54, 1, x_6); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_42); -x_2 = x_41; -x_3 = x_55; +lean_ctor_set(x_68, 0, x_56); +lean_ctor_set(x_68, 1, x_57); +if (lean_is_scalar(x_55)) { + x_69 = lean_alloc_ctor(1, 2, 0); +} else { + x_69 = x_55; +} +lean_ctor_set(x_69, 0, x_52); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_54); +x_2 = x_53; +x_3 = x_70; goto _start; } } @@ -2777,22 +3970,6 @@ goto _start; } } } -lean_object* l_List_groupByAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_groupByAux___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_groupByAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_groupByAux___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_groupByAux(lean_object* x_1) { _start: { @@ -2801,6 +3978,39 @@ x_2 = lean_alloc_closure((void*)(l_List_groupByAux___rarg), 3, 0); return x_2; } } +lean_object* l_List_groupBy_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_groupBy_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_groupBy_match__1___rarg), 3, 0); +return x_3; +} +} lean_object* l_List_groupBy___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -2824,7 +4034,7 @@ lean_ctor_set(x_2, 1, x_6); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_2); lean_ctor_set(x_7, 1, x_6); -x_8 = l_List_groupByAux___main___rarg(x_1, x_5, x_7); +x_8 = l_List_groupByAux___rarg(x_1, x_5, x_7); return x_8; } else @@ -2842,7 +4052,7 @@ lean_ctor_set(x_12, 1, x_11); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_List_groupByAux___main___rarg(x_1, x_10, x_13); +x_14 = l_List_groupByAux___rarg(x_1, x_10, x_13); return x_14; } } @@ -2856,7 +4066,83 @@ x_2 = lean_alloc_closure((void*)(l_List_groupBy___rarg), 2, 0); return x_2; } } -lean_object* l_List_lookup___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_lookup_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_List_lookup_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_lookup_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_List_lookup_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_lookup_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_lookup_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_apply_4(x_4, x_1, x_8, x_9, x_7); +return x_10; +} +} +} +lean_object* l_List_lookup_match__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_List_lookup_match__2___rarg), 4, 0); +return x_4; +} +} +lean_object* l_List_lookup___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2904,22 +4190,6 @@ return x_12; } } } -lean_object* l_List_lookup___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_lookup___main___rarg), 3, 0); -return x_3; -} -} -lean_object* l_List_lookup___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_lookup___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_lookup(lean_object* x_1, lean_object* x_2) { _start: { @@ -2928,7 +4198,7 @@ x_3 = lean_alloc_closure((void*)(l_List_lookup___rarg), 3, 0); return x_3; } } -lean_object* l_List_filterAux___main___at_List_removeAll___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_filterAux___at_List_removeAll___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3003,11 +4273,11 @@ goto _start; } } } -lean_object* l_List_filterAux___main___at_List_removeAll___spec__1(lean_object* x_1) { +lean_object* l_List_filterAux___at_List_removeAll___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_filterAux___main___at_List_removeAll___spec__1___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_List_filterAux___at_List_removeAll___spec__1___rarg), 4, 0); return x_2; } } @@ -3016,7 +4286,7 @@ _start: { lean_object* x_4; lean_object* x_5; x_4 = lean_box(0); -x_5 = l_List_filterAux___main___at_List_removeAll___spec__1___rarg(x_1, x_3, x_2, x_4); +x_5 = l_List_filterAux___at_List_removeAll___spec__1___rarg(x_1, x_3, x_2, x_4); return x_5; } } @@ -3028,7 +4298,66 @@ x_2 = lean_alloc_closure((void*)(l_List_removeAll___rarg), 3, 0); return x_2; } } -lean_object* l_List_drop___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_drop_match__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; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_1, x_8); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; +lean_dec(x_5); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_apply_3(x_5, x_9, x_11, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; +lean_dec(x_5); +lean_dec(x_4); +x_14 = lean_apply_1(x_3, x_2); +return x_14; +} +} +} +lean_object* l_List_drop_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_drop_match__1___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_List_drop_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: +{ +lean_object* x_6; +x_6 = l_List_drop_match__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_List_drop___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3038,18 +4367,20 @@ if (x_4 == 0) { if (lean_obj_tag(x_2) == 0) { +lean_object* x_5; lean_dec(x_1); -return x_2; +x_5 = lean_box(0); +return x_5; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_sub(x_1, x_6); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_2, 1); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_1, x_7); lean_dec(x_1); -x_1 = x_7; -x_2 = x_5; +x_1 = x_8; +x_2 = x_6; goto _start; } } @@ -3061,31 +4392,6 @@ return x_2; } } } -lean_object* l_List_drop___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_drop___main___rarg___boxed), 2, 0); -return x_2; -} -} -lean_object* l_List_drop___main___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_drop___main___rarg(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_List_drop___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_drop___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_drop(lean_object* x_1) { _start: { @@ -3103,7 +4409,66 @@ lean_dec(x_2); return x_3; } } -lean_object* l_List_take___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_take_match__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; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_1, x_8); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; +lean_dec(x_5); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_apply_3(x_5, x_9, x_11, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; +lean_dec(x_5); +lean_dec(x_4); +x_14 = lean_apply_1(x_3, x_2); +return x_14; +} +} +} +lean_object* l_List_take_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_take_match__1___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_List_take_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: +{ +lean_object* x_6; +x_6 = l_List_take_match__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_List_take___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3113,75 +4478,52 @@ if (x_4 == 0) { if (lean_obj_tag(x_2) == 0) { +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +else +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_2); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_1, x_8); +x_10 = l_List_take___rarg(x_9, x_7); +lean_dec(x_9); +lean_ctor_set(x_2, 1, x_10); return x_2; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_2, 1); -x_7 = lean_unsigned_to_nat(1u); -x_8 = lean_nat_sub(x_1, x_7); -x_9 = l_List_take___main___rarg(x_8, x_6); -lean_dec(x_8); -lean_ctor_set(x_2, 1, x_9); -return x_2; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_10 = lean_ctor_get(x_2, 0); -x_11 = lean_ctor_get(x_2, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); lean_dec(x_2); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_1, x_12); -x_14 = l_List_take___main___rarg(x_13, x_11); -lean_dec(x_13); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -else -{ -lean_object* x_16; -lean_dec(x_2); -x_16 = lean_box(0); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_1, x_13); +x_15 = l_List_take___rarg(x_14, x_12); +lean_dec(x_14); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_15); return x_16; } } } -lean_object* l_List_take___main(lean_object* x_1) { -_start: +else { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_take___main___rarg___boxed), 2, 0); -return x_2; +lean_object* x_17; +lean_dec(x_2); +x_17 = lean_box(0); +return x_17; } } -lean_object* l_List_take___main___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_take___main___rarg(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_List_take___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_take___main___rarg(x_1, x_2); -return x_3; -} } lean_object* l_List_take(lean_object* x_1) { _start: @@ -3200,7 +4542,39 @@ lean_dec(x_1); return x_3; } } -lean_object* l_List_foldl___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl_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_2) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_1); +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_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_apply_3(x_4, x_1, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_foldl_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_List_foldl_match__1___rarg), 4, 0); +return x_4; +} +} +lean_object* l_List_foldl___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3224,22 +4598,6 @@ goto _start; } } } -lean_object* l_List_foldl___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_foldl___main___rarg), 3, 0); -return x_3; -} -} -lean_object* l_List_foldl___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_foldl___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_foldl(lean_object* x_1, lean_object* x_2) { _start: { @@ -3248,7 +4606,40 @@ x_3 = lean_alloc_closure((void*)(l_List_foldl___rarg), 3, 0); return x_3; } } -lean_object* l_List_foldr___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr_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_object* x_8; +lean_dec(x_2); +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_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_List_foldr_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_foldr_match__1___rarg), 3, 0); +return x_3; +} +} +lean_object* l_List_foldr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3266,37 +4657,12 @@ x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); lean_dec(x_3); lean_inc(x_1); -x_6 = l_List_foldr___main___rarg(x_1, x_2, x_5); +x_6 = l_List_foldr___rarg(x_1, x_2, x_5); x_7 = lean_apply_2(x_1, x_4, x_6); return x_7; } } } -lean_object* l_List_foldr___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_foldr___main___rarg___boxed), 3, 0); -return x_3; -} -} -lean_object* l_List_foldr___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_foldr___main___rarg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_List_foldr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_foldr___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_foldr(lean_object* x_1, lean_object* x_2) { _start: { @@ -3314,87 +4680,7 @@ lean_dec(x_2); return x_4; } } -lean_object* l_List_foldr1___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; -lean_dec(x_1); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -lean_dec(x_2); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -lean_dec(x_2); -lean_inc(x_1); -x_7 = l_List_foldr1___main___rarg(x_1, x_4, lean_box(0)); -x_8 = lean_apply_2(x_1, x_6, x_7); -return x_8; -} -} -} -lean_object* l_List_foldr1___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldr1___main___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_foldr1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_foldr1___main___rarg(x_1, x_2, lean_box(0)); -return x_4; -} -} -lean_object* l_List_foldr1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldr1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_foldr1Opt___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -lean_dec(x_1); -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; -x_4 = l_List_foldr1___main___rarg(x_1, x_2, lean_box(0)); -x_5 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_5, 0, x_4); -return x_5; -} -} -} -lean_object* l_List_foldr1Opt(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldr1Opt___rarg), 2, 0); -return x_2; -} -} -uint8_t l_List_foldr___main___at_List_any___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_List_any___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3411,7 +4697,7 @@ x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); lean_dec(x_3); lean_inc(x_1); -x_6 = l_List_foldr___main___at_List_any___spec__1___rarg(x_1, x_2, x_5); +x_6 = l_List_foldr___at_List_any___spec__1___rarg(x_1, x_2, x_5); x_7 = lean_apply_1(x_1, x_4); x_8 = lean_unbox(x_7); lean_dec(x_7); @@ -3428,11 +4714,11 @@ return x_9; } } } -lean_object* l_List_foldr___main___at_List_any___spec__1(lean_object* x_1) { +lean_object* l_List_foldr___at_List_any___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldr___main___at_List_any___spec__1___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldr___at_List_any___spec__1___rarg___boxed), 3, 0); return x_2; } } @@ -3441,7 +4727,7 @@ _start: { uint8_t x_3; uint8_t x_4; x_3 = 0; -x_4 = l_List_foldr___main___at_List_any___spec__1___rarg(x_2, x_3, x_1); +x_4 = l_List_foldr___at_List_any___spec__1___rarg(x_2, x_3, x_1); return x_4; } } @@ -3453,13 +4739,13 @@ x_2 = lean_alloc_closure((void*)(l_List_any___rarg___boxed), 2, 0); return x_2; } } -lean_object* l_List_foldr___main___at_List_any___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_List_any___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_List_any___spec__1___rarg(x_1, x_4, x_3); +x_5 = l_List_foldr___at_List_any___spec__1___rarg(x_1, x_4, x_3); x_6 = lean_box(x_5); return x_6; } @@ -3473,7 +4759,7 @@ x_4 = lean_box(x_3); return x_4; } } -uint8_t l_List_foldr___main___at_List_all___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_List_all___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3490,7 +4776,7 @@ x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); lean_dec(x_3); lean_inc(x_1); -x_6 = l_List_foldr___main___at_List_all___spec__1___rarg(x_1, x_2, x_5); +x_6 = l_List_foldr___at_List_all___spec__1___rarg(x_1, x_2, x_5); x_7 = lean_apply_1(x_1, x_4); x_8 = lean_unbox(x_7); lean_dec(x_7); @@ -3507,11 +4793,11 @@ return x_6; } } } -lean_object* l_List_foldr___main___at_List_all___spec__1(lean_object* x_1) { +lean_object* l_List_foldr___at_List_all___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldr___main___at_List_all___spec__1___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldr___at_List_all___spec__1___rarg___boxed), 3, 0); return x_2; } } @@ -3520,7 +4806,7 @@ _start: { uint8_t x_3; uint8_t x_4; x_3 = 1; -x_4 = l_List_foldr___main___at_List_all___spec__1___rarg(x_2, x_3, x_1); +x_4 = l_List_foldr___at_List_all___spec__1___rarg(x_2, x_3, x_1); return x_4; } } @@ -3532,13 +4818,13 @@ x_2 = lean_alloc_closure((void*)(l_List_all___rarg___boxed), 2, 0); return x_2; } } -lean_object* l_List_foldr___main___at_List_all___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_List_all___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_List_all___spec__1___rarg(x_1, x_4, x_3); +x_5 = l_List_foldr___at_List_all___spec__1___rarg(x_1, x_4, x_3); x_6 = lean_box(x_5); return x_6; } @@ -3552,7 +4838,7 @@ x_4 = lean_box(x_3); return x_4; } } -uint8_t l_List_foldr___main___at_List_or___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_List_or___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3585,17 +4871,17 @@ _start: { uint8_t x_2; uint8_t x_3; x_2 = 0; -x_3 = l_List_foldr___main___at_List_or___spec__1(x_2, x_1); +x_3 = l_List_foldr___at_List_or___spec__1(x_2, x_1); return x_3; } } -lean_object* l_List_foldr___main___at_List_or___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_List_or___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_List_or___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_List_or___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -3611,7 +4897,7 @@ x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at_List_and___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_List_and___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3644,17 +4930,17 @@ _start: { uint8_t x_2; uint8_t x_3; x_2 = 1; -x_3 = l_List_foldr___main___at_List_and___spec__1(x_2, x_1); +x_3 = l_List_foldr___at_List_and___spec__1(x_2, x_1); return x_3; } } -lean_object* l_List_foldr___main___at_List_and___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_List_and___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_List_and___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_List_and___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -3670,7 +4956,54 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_zipWith___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_zipWith_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_3); +x_5 = lean_apply_2(x_4, x_1, x_2); +return x_5; +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_apply_2(x_4, x_1, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +lean_dec(x_2); +x_11 = lean_apply_4(x_3, x_7, x_8, x_9, x_10); +return x_11; +} +} +} +} +lean_object* l_List_zipWith_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_List_zipWith_match__1___rarg), 4, 0); +return x_4; +} +} +lean_object* l_List_zipWith___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3707,7 +5040,7 @@ x_9 = lean_ctor_get(x_3, 0); x_10 = lean_ctor_get(x_3, 1); lean_inc(x_1); x_11 = lean_apply_2(x_1, x_6, x_9); -x_12 = l_List_zipWith___main___rarg(x_1, x_7, x_10); +x_12 = l_List_zipWith___rarg(x_1, x_7, x_10); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -3722,7 +5055,7 @@ lean_inc(x_13); lean_dec(x_3); lean_inc(x_1); x_15 = lean_apply_2(x_1, x_6, x_13); -x_16 = l_List_zipWith___main___rarg(x_1, x_7, x_14); +x_16 = l_List_zipWith___rarg(x_1, x_7, x_14); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -3732,22 +5065,6 @@ return x_17; } } } -lean_object* l_List_zipWith___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_List_zipWith___main___rarg), 3, 0); -return x_4; -} -} -lean_object* l_List_zipWith___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_zipWith___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_zipWith(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3779,7 +5096,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = l_List_zip___rarg___closed__1; -x_4 = l_List_zipWith___main___rarg(x_3, x_1, x_2); +x_4 = l_List_zipWith___rarg(x_3, x_1, x_2); return x_4; } } @@ -3791,7 +5108,66 @@ x_3 = lean_alloc_closure((void*)(l_List_zip___rarg), 2, 0); return x_3; } } -lean_object* l_List_unzip___main___rarg(lean_object* x_1) { +lean_object* l_List_unzip_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_List_unzip_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_List_unzip_match__1___rarg), 2, 0); +return x_4; +} +} +lean_object* l_List_unzip_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_2); +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_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_apply_3(x_3, x_8, x_9, x_7); +return x_10; +} +} +} +lean_object* l_List_unzip_match__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_List_unzip_match__2___rarg), 3, 0); +return x_4; +} +} +lean_object* l_List_unzip___rarg(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3814,7 +5190,7 @@ lean_inc(x_6); x_7 = lean_ctor_get(x_4, 1); lean_inc(x_7); lean_dec(x_4); -x_8 = l_List_unzip___main___rarg(x_5); +x_8 = l_List_unzip___rarg(x_5); x_9 = !lean_is_exclusive(x_8); if (x_9 == 0) { @@ -3862,7 +5238,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = l_List_unzip___main___rarg(x_18); +x_21 = l_List_unzip___rarg(x_18); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -3893,22 +5269,6 @@ return x_27; } } } -lean_object* l_List_unzip___main(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_unzip___main___rarg), 1, 0); -return x_3; -} -} -lean_object* l_List_unzip___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_List_unzip___main___rarg(x_1); -return x_2; -} -} lean_object* l_List_unzip(lean_object* x_1, lean_object* x_2) { _start: { @@ -3970,7 +5330,48 @@ x_2 = lean_alloc_closure((void*)(l_List_replicate___rarg), 2, 0); return x_2; } } -lean_object* l_List_rangeAux___main(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_rangeAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_1, x_7); +x_9 = lean_apply_2(x_4, x_8, x_2); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_1(x_3, x_2); +return x_10; +} +} +} +lean_object* l_List_rangeAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_rangeAux_match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_List_rangeAux_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_List_rangeAux_match__1___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_List_rangeAux(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3997,24 +5398,50 @@ return x_2; } } } -lean_object* l_List_rangeAux(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_rangeAux___main(x_1, x_2); -return x_3; -} -} lean_object* l_List_range(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_box(0); -x_3 = l_List_rangeAux___main(x_1, x_2); +x_3 = l_List_rangeAux(x_1, x_2); return x_3; } } -lean_object* l_List_iota___main(lean_object* x_1) { +lean_object* l_List_iota_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_eq(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_sub(x_1, x_6); +x_8 = lean_apply_2(x_3, x_1, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_2, x_9); +return x_10; +} +} +} +lean_object* l_List_iota_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_iota_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_List_iota(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; @@ -4022,52 +5449,57 @@ x_2 = lean_unsigned_to_nat(0u); x_3 = lean_nat_dec_eq(x_1, x_2); if (x_3 == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_unsigned_to_nat(1u); x_5 = lean_nat_sub(x_1, x_4); -x_6 = lean_nat_add(x_5, x_4); -x_7 = l_List_iota___main(x_5); -lean_dec(x_5); -x_8 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set(x_8, 1, x_7); -return x_8; +x_6 = l_List_iota(x_5); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_6); +return x_7; } else { -lean_object* x_9; -x_9 = lean_box(0); -return x_9; -} -} -} -lean_object* l_List_iota___main___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_List_iota___main(x_1); +lean_object* x_8; lean_dec(x_1); -return x_2; +x_8 = lean_box(0); +return x_8; } } -lean_object* l_List_iota(lean_object* x_1) { +} +lean_object* l_List_enumFrom_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_2; -x_2 = l_List_iota___main(x_1); -return x_2; +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_1); +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_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_apply_3(x_4, x_1, x_6, x_7); +return x_8; } } -lean_object* l_List_iota___boxed(lean_object* x_1) { +} +lean_object* l_List_enumFrom_match__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = l_List_iota(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_enumFrom_match__1___rarg), 4, 0); +return x_3; } } -lean_object* l_List_enumFrom___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_enumFrom___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4093,7 +5525,7 @@ lean_ctor_set(x_7, 1, x_5); x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_add(x_1, x_8); lean_dec(x_1); -x_10 = l_List_enumFrom___main___rarg(x_9, x_6); +x_10 = l_List_enumFrom___rarg(x_9, x_6); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -4113,7 +5545,7 @@ lean_ctor_set(x_13, 1, x_11); x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_1, x_14); lean_dec(x_1); -x_16 = l_List_enumFrom___main___rarg(x_15, x_12); +x_16 = l_List_enumFrom___rarg(x_15, x_12); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_13); lean_ctor_set(x_17, 1, x_16); @@ -4122,22 +5554,6 @@ return x_17; } } } -lean_object* l_List_enumFrom___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_enumFrom___main___rarg), 2, 0); -return x_2; -} -} -lean_object* l_List_enumFrom___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_enumFrom___main___rarg(x_1, x_2); -return x_3; -} -} lean_object* l_List_enumFrom(lean_object* x_1) { _start: { @@ -4151,7 +5567,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_List_enumFrom___main___rarg(x_2, x_1); +x_3 = l_List_enumFrom___rarg(x_2, x_1); return x_3; } } @@ -4163,71 +5579,108 @@ x_2 = lean_alloc_closure((void*)(l_List_enum___rarg), 1, 0); return x_2; } } -lean_object* l_List_init___main___rarg(lean_object* x_1) { +lean_object* l_List_init_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) { -return x_1; +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; } else { -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -lean_inc(x_2); -x_4 = l_List_init___main___rarg(x_2); -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_2, 1); -lean_dec(x_6); -x_7 = lean_ctor_get(x_2, 0); -lean_dec(x_7); -lean_ctor_set(x_2, 1, x_4); -lean_ctor_set(x_2, 0, x_3); -return x_2; -} -else -{ -lean_object* x_8; +lean_object* x_7; lean_dec(x_2); -x_8 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_8, 0, x_3); -lean_ctor_set(x_8, 1, x_4); -return x_8; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +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_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_10, x_7); +return x_11; } } } } -} -lean_object* l_List_init___main(lean_object* x_1) { +lean_object* l_List_init_match__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_init___main___rarg), 1, 0); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_init_match__1___rarg), 4, 0); +return x_3; } } lean_object* l_List_init___rarg(lean_object* x_1) { _start: { +if (lean_obj_tag(x_1) == 0) +{ lean_object* x_2; -x_2 = l_List_init___main___rarg(x_1); +x_2 = lean_box(0); return x_2; } +else +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +lean_dec(x_1); +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +lean_inc(x_3); +x_6 = l_List_init___rarg(x_3); +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_3, 1); +lean_dec(x_8); +x_9 = lean_ctor_get(x_3, 0); +lean_dec(x_9); +lean_ctor_set(x_3, 1, x_6); +lean_ctor_set(x_3, 0, x_5); +return x_3; +} +else +{ +lean_object* x_10; +lean_dec(x_3); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +} +} +} } lean_object* l_List_init(lean_object* x_1) { _start: @@ -4237,107 +5690,164 @@ x_2 = lean_alloc_closure((void*)(l_List_init___rarg), 1, 0); return x_2; } } -lean_object* l_List_intersperse___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_intersperse_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_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_dec(x_1); -return x_2; +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; } else { -lean_object* x_3; -x_3 = lean_ctor_get(x_2, 1); -lean_inc(x_3); -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_2, 1); -lean_dec(x_5); -lean_inc(x_3); -lean_inc(x_1); -x_6 = l_List_intersperse___main___rarg(x_1, x_3); -x_7 = !lean_is_exclusive(x_3); -if (x_7 == 0) +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_3, 1); -lean_dec(x_8); -x_9 = lean_ctor_get(x_3, 0); -lean_dec(x_9); -lean_ctor_set(x_3, 1, x_6); -lean_ctor_set(x_3, 0, x_1); -return x_2; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_1(x_3, x_8); +return x_9; } else { -lean_object* x_10; +lean_object* x_10; lean_object* x_11; lean_dec(x_3); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_6); -lean_ctor_set(x_2, 1, x_10); -return x_2; -} -} -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_2, 0); -lean_inc(x_11); -lean_dec(x_2); -lean_inc(x_3); -lean_inc(x_1); -x_12 = l_List_intersperse___main___rarg(x_1, x_3); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - x_13 = x_3; -} else { - lean_dec_ref(x_3); - x_13 = lean_box(0); -} -if (lean_is_scalar(x_13)) { - x_14 = lean_alloc_ctor(1, 2, 0); -} else { - x_14 = x_13; -} -lean_ctor_set(x_14, 0, x_1); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_11); -lean_ctor_set(x_15, 1, x_14); -return x_15; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_10, x_7); +return x_11; } } } } -} -lean_object* l_List_intersperse___main(lean_object* x_1) { +lean_object* l_List_intersperse_match__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_intersperse___main___rarg), 2, 0); -return x_2; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_intersperse_match__1___rarg), 4, 0); +return x_3; } } lean_object* l_List_intersperse___rarg(lean_object* x_1, lean_object* x_2) { _start: { +if (lean_obj_tag(x_2) == 0) +{ lean_object* x_3; -x_3 = l_List_intersperse___main___rarg(x_1, x_2); +lean_dec(x_1); +x_3 = lean_box(0); return x_3; } +else +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +lean_dec(x_1); +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_2, 1); +lean_dec(x_6); +x_7 = lean_box(0); +lean_ctor_set(x_2, 1, x_7); +return x_2; +} +else +{ +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_2); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_2); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_2, 1); +lean_dec(x_12); +lean_inc(x_4); +lean_inc(x_1); +x_13 = l_List_intersperse___rarg(x_1, x_4); +x_14 = !lean_is_exclusive(x_4); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_4, 0, x_1); +return x_2; +} +else +{ +lean_object* x_17; +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_2, 1, x_17); +return x_2; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_2, 0); +lean_inc(x_18); +lean_dec(x_2); +lean_inc(x_4); +lean_inc(x_1); +x_19 = l_List_intersperse___rarg(x_1, x_4); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + x_20 = x_4; +} else { + lean_dec_ref(x_4); + x_20 = lean_box(0); +} +if (lean_is_scalar(x_20)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_20; +} +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_18); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} } lean_object* l_List_intersperse(lean_object* x_1) { _start: @@ -4351,8 +5861,8 @@ lean_object* l_List_intercalate___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_List_intersperse___main___rarg(x_1, x_2); -x_4 = l_List_join___main___rarg(x_3); +x_3 = l_List_intersperse___rarg(x_1, x_2); +x_4 = l_List_join___rarg(x_3); return x_4; } } @@ -4368,8 +5878,8 @@ lean_object* l_List_bind___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_List_map___main___rarg(x_2, x_1); -x_4 = l_List_join___main___rarg(x_3); +x_3 = l_List_map___rarg(x_2, x_1); +x_4 = l_List_join___rarg(x_3); return x_4; } } @@ -4400,7 +5910,7 @@ x_2 = lean_alloc_closure((void*)(l_List_pure___rarg), 1, 0); return x_2; } } -lean_object* l_List_HasLess(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_Init_Data_List_Basic___instance__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -4408,16 +5918,232 @@ x_3 = lean_box(0); return x_3; } } -lean_object* l_List_HasLess___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_Init_Data_List_Basic___instance__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_HasLess(x_1, x_2); +x_3 = l_List_Init_Data_List_Basic___instance__5(x_1, x_2); lean_dec(x_2); return x_3; } } -uint8_t l_List_hasDecidableLt___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_hasDecidableLt_match__5___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, lean_box(0)); +return x_4; +} +else +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_2, lean_box(0)); +return x_5; +} +} +} +lean_object* l_List_hasDecidableLt_match__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; +x_6 = lean_alloc_closure((void*)(l_List_hasDecidableLt_match__5___rarg___boxed), 3, 0); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_hasDecidableLt_match__5___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_hasDecidableLt_match__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_6; +x_6 = l_List_hasDecidableLt_match__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__6___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, lean_box(0)); +return x_4; +} +else +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_2, lean_box(0)); +return x_5; +} +} +} +lean_object* l_List_hasDecidableLt_match__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_List_hasDecidableLt_match__6___rarg___boxed), 3, 0); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_hasDecidableLt_match__6___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_hasDecidableLt_match__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_List_hasDecidableLt_match__6(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__7___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, lean_box(0)); +return x_4; +} +else +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_2, lean_box(0)); +return x_5; +} +} +} +lean_object* l_List_hasDecidableLt_match__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_List_hasDecidableLt_match__7___rarg___boxed), 3, 0); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_List_hasDecidableLt_match__7___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_List_hasDecidableLt_match__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_List_hasDecidableLt_match__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_List_hasDecidableLt_match__8___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +x_7 = lean_box(0); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +lean_dec(x_2); +x_11 = lean_apply_2(x_4, x_9, x_10); +return x_11; +} +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_apply_2(x_5, x_12, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_5); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 1); +lean_inc(x_18); +lean_dec(x_2); +x_19 = lean_apply_4(x_6, x_15, x_16, x_17, x_18); +return x_19; +} +} +} +} +lean_object* l_List_hasDecidableLt_match__8(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_hasDecidableLt_match__8___rarg), 6, 0); +return x_3; +} +} +uint8_t l_List_hasDecidableLt___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_3) == 0) @@ -4504,32 +6230,6 @@ return x_18; } } } -lean_object* l_List_hasDecidableLt___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_hasDecidableLt___main___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_List_hasDecidableLt___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; -x_5 = l_List_hasDecidableLt___main___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_1); -x_6 = lean_box(x_5); -return x_6; -} -} -uint8_t l_List_hasDecidableLt___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = l_List_hasDecidableLt___main___rarg(x_1, x_2, x_3, x_4); -return x_5; -} -} lean_object* l_List_hasDecidableLt(lean_object* x_1) { _start: { @@ -4548,7 +6248,7 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_List_HasLessEq(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_Init_Data_List_Basic___instance__6(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -4556,148 +6256,92 @@ x_3 = lean_box(0); return x_3; } } -lean_object* l_List_HasLessEq___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_Init_Data_List_Basic___instance__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_HasLessEq(x_1, x_2); +x_3 = l_List_Init_Data_List_Basic___instance__6(x_1, x_2); lean_dec(x_2); return x_3; } } -uint8_t l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_2); -if (lean_obj_tag(x_4) == 0) -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -else -{ -uint8_t x_6; -lean_dec(x_4); -x_6 = 1; -return x_6; -} -} -else -{ -if (lean_obj_tag(x_4) == 0) -{ -uint8_t x_7; -lean_dec(x_3); -lean_dec(x_2); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -lean_dec(x_3); -x_10 = lean_ctor_get(x_4, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_4, 1); -lean_inc(x_11); -lean_dec(x_4); -lean_inc(x_2); -lean_inc(x_10); -lean_inc(x_8); -x_12 = lean_apply_2(x_2, x_8, x_10); -x_13 = lean_unbox(x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -lean_inc(x_2); -x_14 = lean_apply_2(x_2, x_10, x_8); -x_15 = lean_unbox(x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -x_3 = x_9; -x_4 = x_11; -goto _start; -} -else -{ -uint8_t x_17; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_2); -x_17 = 0; -return x_17; -} -} -else -{ -uint8_t x_18; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_2); -x_18 = 1; -return x_18; -} -} -} -} -} -lean_object* l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg___boxed), 4, 0); -return x_2; -} -} -uint8_t l_List_hasDecidableLe___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_List_Init_Data_List_Basic___instance__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; uint8_t x_6; -x_5 = l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg(x_1, x_2, x_4, x_3); +x_5 = l_List_hasDecidableLt___rarg(x_1, x_2, x_4, x_3); x_6 = l_Not_Decidable___rarg(x_5); return x_6; } } -lean_object* l_List_hasDecidableLe(lean_object* x_1) { +lean_object* l_List_Init_Data_List_Basic___instance__7(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_hasDecidableLe___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_List_Init_Data_List_Basic___instance__7___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_Init_Data_List_Basic___instance__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_List_hasDecidableLt___main___at_List_hasDecidableLe___spec__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l_List_Init_Data_List_Basic___instance__7___rarg(x_1, x_2, x_3, x_4); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l_List_hasDecidableLe___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_isPrefixOf_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_5; lean_object* x_6; -x_5 = l_List_hasDecidableLe___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_1); -x_6 = lean_box(x_5); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; +lean_dec(x_5); +lean_dec(x_4); +x_6 = lean_apply_1(x_3, x_2); return x_6; } +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_5); +x_7 = lean_apply_1(x_4, x_1); +return x_7; } -uint8_t l_List_isPrefixOf___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_apply_4(x_5, x_8, x_9, x_10, x_11); +return x_12; +} +} +} +} +lean_object* l_List_isPrefixOf_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_isPrefixOf_match__1___rarg), 5, 0); +return x_3; +} +} +uint8_t l_List_isPrefixOf___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4754,31 +6398,6 @@ goto _start; } } } -lean_object* l_List_isPrefixOf___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_isPrefixOf___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_isPrefixOf___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_isPrefixOf___main___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_List_isPrefixOf___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_isPrefixOf___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_isPrefixOf(lean_object* x_1) { _start: { @@ -4802,7 +6421,7 @@ _start: lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = l_List_reverse___rarg(x_2); x_5 = l_List_reverse___rarg(x_3); -x_6 = l_List_isPrefixOf___main___rarg(x_1, x_4, x_5); +x_6 = l_List_isPrefixOf___rarg(x_1, x_4, x_5); return x_6; } } @@ -4823,7 +6442,66 @@ x_5 = lean_box(x_4); return x_5; } } -uint8_t l_List_isEqv___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_isEqv_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_6); +x_7 = lean_apply_1(x_4, x_3); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_apply_3(x_6, x_1, x_2, x_3); +return x_8; +} +} +else +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_apply_3(x_6, x_1, x_2, x_3); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_apply_5(x_5, x_10, x_11, x_12, x_13, x_3); +return x_14; +} +} +} +} +lean_object* l_List_isEqv_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_isEqv_match__1___rarg), 6, 0); +return x_3; +} +} +uint8_t l_List_isEqv___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4889,31 +6567,6 @@ goto _start; } } } -lean_object* l_List_isEqv___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_isEqv___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_isEqv___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_isEqv___main___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_List_isEqv___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_isEqv___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_isEqv(lean_object* x_1) { _start: { @@ -4931,7 +6584,67 @@ x_5 = lean_box(x_4); return x_5; } } -uint8_t l_List_beq___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_beq_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_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_3); +x_8 = lean_apply_2(x_5, x_1, x_2); +return x_8; +} +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; +lean_dec(x_4); +x_9 = lean_apply_2(x_5, x_1, x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_apply_4(x_4, x_10, x_11, x_12, x_13); +return x_14; +} +} +} +} +lean_object* l_List_beq_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_List_beq_match__1___rarg), 5, 0); +return x_3; +} +} +uint8_t l_List_beq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4997,31 +6710,6 @@ goto _start; } } } -lean_object* l_List_beq___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_beq___main___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_List_beq___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_List_beq___main___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_List_beq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_beq___main___rarg(x_1, x_2, x_3); -return x_4; -} -} lean_object* l_List_beq(lean_object* x_1) { _start: { @@ -5039,7 +6727,7 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_List_HasBeq___rarg(lean_object* x_1) { +lean_object* l_List_Init_Data_List_Basic___instance__8___rarg(lean_object* x_1) { _start: { lean_object* x_2; @@ -5048,11 +6736,11 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_HasBeq(lean_object* x_1) { +lean_object* l_List_Init_Data_List_Basic___instance__8(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_HasBeq___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l_List_Init_Data_List_Basic___instance__8___rarg), 1, 0); return x_2; } } @@ -5069,8 +6757,8 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_List_HasAppend___closed__1 = _init_l_List_HasAppend___closed__1(); -lean_mark_persistent(l_List_HasAppend___closed__1); +l_List_Init_Data_List_Basic___instance__3___closed__1 = _init_l_List_Init_Data_List_Basic___instance__3___closed__1(); +lean_mark_persistent(l_List_Init_Data_List_Basic___instance__3___closed__1); l_List_partition___rarg___closed__1 = _init_l_List_partition___rarg___closed__1(); lean_mark_persistent(l_List_partition___rarg___closed__1); l_List_zip___rarg___closed__1 = _init_l_List_zip___rarg___closed__1(); diff --git a/stage0/stdlib/Init/Data/Nat/Div.c b/stage0/stdlib/Init/Data/Nat/Div.c index a11dcaf10e..fa56cae04a 100644 --- a/stage0/stdlib/Init/Data/Nat/Div.c +++ b/stage0/stdlib/Init/Data/Nat/Div.c @@ -15,21 +15,21 @@ extern "C" { #endif lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Nat_div___boxed(lean_object*, lean_object*); -lean_object* l_Nat_HasMod___closed__1; -lean_object* l___private_Init_Data_Nat_Div_2__div_F(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_Init_Data_Nat_Div___instance__1___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Nat_HasDiv; -lean_object* l___private_Init_Data_Nat_Div_5__mod_F(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Nat_Div_5__mod_F___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Nat_Div_0__Nat_mod_F(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_mod___boxed(lean_object*, lean_object*); -lean_object* l_Nat_HasDiv___closed__1; -lean_object* l___private_Init_Data_Nat_Div_2__div_F___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Nat_Div_0__Nat_div_F___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_Init_Data_Nat_Div___instance__2___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l___private_Init_Data_Nat_Div_0__Nat_div_F(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_Init_Data_Nat_Div___instance__2; +lean_object* l___private_Init_Data_Nat_Div_0__Nat_mod_F___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); -lean_object* l_Nat_HasMod; +lean_object* l_Nat_Init_Data_Nat_Div___instance__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Nat_Div_2__div_F(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Data_Nat_Div_0__Nat_div_F(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -68,11 +68,11 @@ return x_12; } } } -lean_object* l___private_Init_Data_Nat_Div_2__div_F___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Data_Nat_Div_0__Nat_div_F___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Data_Nat_Div_2__div_F(x_1, x_2, x_3); +x_4 = l___private_Init_Data_Nat_Div_0__Nat_div_F(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -87,7 +87,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Nat_HasDiv___closed__1() { +static lean_object* _init_l_Nat_Init_Data_Nat_Div___instance__1___closed__1() { _start: { lean_object* x_1; @@ -95,15 +95,15 @@ x_1 = lean_alloc_closure((void*)(l_Nat_div___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Nat_HasDiv() { +static lean_object* _init_l_Nat_Init_Data_Nat_Div___instance__1() { _start: { lean_object* x_1; -x_1 = l_Nat_HasDiv___closed__1; +x_1 = l_Nat_Init_Data_Nat_Div___instance__1___closed__1; return x_1; } } -lean_object* l___private_Init_Data_Nat_Div_5__mod_F(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Data_Nat_Div_0__Nat_mod_F(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -137,11 +137,11 @@ return x_8; } } } -lean_object* l___private_Init_Data_Nat_Div_5__mod_F___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Data_Nat_Div_0__Nat_mod_F___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Data_Nat_Div_5__mod_F(x_1, x_2, x_3); +x_4 = l___private_Init_Data_Nat_Div_0__Nat_mod_F(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -156,7 +156,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Nat_HasMod___closed__1() { +static lean_object* _init_l_Nat_Init_Data_Nat_Div___instance__2___closed__1() { _start: { lean_object* x_1; @@ -164,11 +164,11 @@ x_1 = lean_alloc_closure((void*)(l_Nat_mod___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Nat_HasMod() { +static lean_object* _init_l_Nat_Init_Data_Nat_Div___instance__2() { _start: { lean_object* x_1; -x_1 = l_Nat_HasMod___closed__1; +x_1 = l_Nat_Init_Data_Nat_Div___instance__2___closed__1; return x_1; } } @@ -185,14 +185,14 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Nat_HasDiv___closed__1 = _init_l_Nat_HasDiv___closed__1(); -lean_mark_persistent(l_Nat_HasDiv___closed__1); -l_Nat_HasDiv = _init_l_Nat_HasDiv(); -lean_mark_persistent(l_Nat_HasDiv); -l_Nat_HasMod___closed__1 = _init_l_Nat_HasMod___closed__1(); -lean_mark_persistent(l_Nat_HasMod___closed__1); -l_Nat_HasMod = _init_l_Nat_HasMod(); -lean_mark_persistent(l_Nat_HasMod); +l_Nat_Init_Data_Nat_Div___instance__1___closed__1 = _init_l_Nat_Init_Data_Nat_Div___instance__1___closed__1(); +lean_mark_persistent(l_Nat_Init_Data_Nat_Div___instance__1___closed__1); +l_Nat_Init_Data_Nat_Div___instance__1 = _init_l_Nat_Init_Data_Nat_Div___instance__1(); +lean_mark_persistent(l_Nat_Init_Data_Nat_Div___instance__1); +l_Nat_Init_Data_Nat_Div___instance__2___closed__1 = _init_l_Nat_Init_Data_Nat_Div___instance__2___closed__1(); +lean_mark_persistent(l_Nat_Init_Data_Nat_Div___instance__2___closed__1); +l_Nat_Init_Data_Nat_Div___instance__2 = _init_l_Nat_Init_Data_Nat_Div___instance__2(); +lean_mark_persistent(l_Nat_Init_Data_Nat_Div___instance__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/String/Basic.c b/stage0/stdlib/Init/Data/String/Basic.c index 9ee7dc3d58..582f888556 100644 --- a/stage0/stdlib/Init/Data/String/Basic.c +++ b/stage0/stdlib/Init/Data/String/Basic.c @@ -43,6 +43,7 @@ lean_object* l_Substring_extract_match__1___rarg(lean_object*, lean_object*, lea lean_object* l_String_Iterator_nextn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_anyAux_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_trimRight___boxed(lean_object*); +lean_object* l_List_map___at_String_intercalate___spec__1(lean_object*); lean_object* l_Substring_atEnd_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Substring_toIterator_match__1(lean_object*); lean_object* l_Substring_dropRight_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -52,6 +53,7 @@ lean_object* l_String_mk___boxed(lean_object*); lean_object* l_String_utf8ByteSize_match__1(lean_object*); lean_object* l_String_Iterator_extract___boxed(lean_object*, lean_object*); lean_object* l_String_Iterator_remainingBytes_match__1___rarg(lean_object*, lean_object*); +lean_object* l_List_foldl___at_String_join___spec__1(lean_object*, lean_object*); lean_object* l_String_push_match__1(lean_object*); lean_object* l_Substring_toNat_x3f(lean_object*); lean_object* l_Substring_foldl_match__1___rarg(lean_object*, lean_object*); @@ -65,7 +67,6 @@ lean_object* l_String_anyAux___boxed(lean_object*, lean_object*, lean_object*, l lean_object* l_String_modify(lean_object*, lean_object*, lean_object*); lean_object* l_Substring_next_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_String_toNat_x3f___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_String_join___spec__1___boxed(lean_object*, lean_object*); lean_object* l_String_str___boxed(lean_object*, lean_object*); uint8_t l_Substring_any(lean_object*, lean_object*); lean_object* l_Substring_splitOn___boxed(lean_object*, lean_object*); @@ -100,7 +101,6 @@ lean_object* l_String_Iterator_remainingToString_match__1___rarg(lean_object*, l uint8_t l_Char_isWhitespace(uint32_t); lean_object* l_Substring_dropRightWhile_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_String_Iterator_toEnd(lean_object*); -lean_object* l_List_map___main___at_String_intercalate___spec__1(lean_object*); uint32_t l___private_Init_Data_String_Basic_0__String_utf8GetAux(lean_object*, lean_object*, lean_object*); lean_object* l_Substring_toString_match__1(lean_object*); lean_object* l_String_split___boxed(lean_object*, lean_object*); @@ -147,6 +147,7 @@ lean_object* l_Substring_all___boxed(lean_object*, lean_object*); lean_object* l_Substring_trim_match__1(lean_object*); lean_object* l_String_takeWhile(lean_object*, lean_object*); lean_object* l_String_push_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_String_join___spec__1___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Substring_prevn_match__1(lean_object*); lean_object* l_Substring_next___boxed(lean_object*, lean_object*); @@ -388,7 +389,6 @@ lean_object* l_String_append_match__1(lean_object*); lean_object* l_String_Iterator_extract_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_String_length_match__1(lean_object*); lean_object* l_Substring_contains___boxed(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_String_join___spec__1(lean_object*, lean_object*); lean_object* l_Substring_prevn_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_mk(lean_object*); lean_object* l_String_Init_Data_String_Basic___instance__5; @@ -1978,7 +1978,7 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at_String_join___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_String_join___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2002,15 +2002,15 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_String_splitAux___closed__1; -x_3 = l_List_foldl___main___at_String_join___spec__1(x_2, x_1); +x_3 = l_List_foldl___at_String_join___spec__1(x_2, x_1); return x_3; } } -lean_object* l_List_foldl___main___at_String_join___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_String_join___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_String_join___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_String_join___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -2043,7 +2043,7 @@ x_3 = l_String_singleton(x_2); return x_3; } } -lean_object* l_List_map___main___at_String_intercalate___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_String_intercalate___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2062,7 +2062,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_string_data(x_4); -x_7 = l_List_map___main___at_String_intercalate___spec__1(x_5); +x_7 = l_List_map___at_String_intercalate___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -2076,7 +2076,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = lean_string_data(x_8); -x_11 = l_List_map___main___at_String_intercalate___spec__1(x_9); +x_11 = l_List_map___at_String_intercalate___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -2090,7 +2090,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_string_data(x_1); -x_4 = l_List_map___main___at_String_intercalate___spec__1(x_2); +x_4 = l_List_map___at_String_intercalate___spec__1(x_2); x_5 = l_List_intercalate___rarg(x_3, x_4); x_6 = lean_string_mk(x_5); return x_6; diff --git a/stage0/stdlib/Init/HasCoe.c b/stage0/stdlib/Init/HasCoe.c deleted file mode 100644 index a7012a95c6..0000000000 --- a/stage0/stdlib/Init/HasCoe.c +++ /dev/null @@ -1,679 +0,0 @@ -// Lean compiler output -// Module: Init.HasCoe -// Imports: Init.Data.List.Basic -#include -#if defined(__clang__) -#pragma clang diagnostic ignored "-Wunused-parameter" -#pragma clang diagnostic ignored "-Wunused-label" -#elif defined(__GNUC__) && !defined(__CLANG__) -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wunused-label" -#pragma GCC diagnostic ignored "-Wunused-but-set-variable" -#endif -#ifdef __cplusplus -extern "C" { -#endif -lean_object* l_Legacy_coeSubtype(lean_object*, lean_object*); -lean_object* l_Legacy_liftPair_u2082(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeoeTrans(lean_object*, lean_object*, lean_object*); -lean_object* l_oldCoeSort___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_liftFnRange___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeSubtype___rarg(lean_object*); -lean_object* l_Legacy_liftTrans___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeToLift(lean_object*, lean_object*); -lean_object* l_oldCoeT___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_liftFnDom(lean_object*, lean_object*, lean_object*); -lean_object* l_lift(lean_object*, lean_object*); -lean_object* l_oldCoeFnB___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_coeBase___rarg(lean_object*); -lean_object* l_Legacy_coeBaseAux___rarg(lean_object*); -uint8_t l_Legacy_coeDecidableEq(uint8_t); -lean_object* l_oldCoeFn(lean_object*); -lean_object* l_Legacy_oldCoeOption___rarg(lean_object*); -lean_object* l_oldCoe(lean_object*, lean_object*); -lean_object* l_oldCoeFn___rarg(lean_object*, lean_object*); -extern lean_object* l_Nat_HasOfNat___closed__1; -lean_object* l_Legacy_liftFn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_oldCoe___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_coeBase(lean_object*, lean_object*); -lean_object* l_oldCoeToLift(lean_object*, lean_object*); -lean_object* l_Legacy_liftRefl(lean_object*); -lean_object* l_Legacy_coeBaseAux(lean_object*, lean_object*); -lean_object* l_Legacy_liftList___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_coeSortTrans(lean_object*, lean_object*); -lean_object* l_liftT(lean_object*, lean_object*); -lean_object* l_Legacy_coeBoolToProp; -lean_object* l_Legacy_liftList(lean_object*, lean_object*); -lean_object* l_oldCoeB___rarg(lean_object*, lean_object*); -lean_object* l_oldCoeSort(lean_object*); -lean_object* l_Legacy_liftPair_u2081(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeFnTrans___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_liftFnDom___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeTransAux(lean_object*, lean_object*, lean_object*); -lean_object* l_oldCoeFnB(lean_object*); -lean_object* l_Legacy_coeoeTrans___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeTransAux___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_liftPair_u2081___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_liftFn(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeSubtype___rarg___boxed(lean_object*); -lean_object* l_Legacy_coeSortTrans___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_liftPair(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_oldCoeOption(lean_object*); -lean_object* l_Legacy_coeToLift___rarg(lean_object*); -lean_object* l_oldCoeToLift___rarg(lean_object*); -lean_object* l_Legacy_coeFnTrans(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Legacy_liftList___spec__1(lean_object*, lean_object*); -lean_object* l_oldCoeT(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Legacy_liftList___spec__1___rarg(lean_object*, lean_object*); -lean_object* l_oldCoeB(lean_object*, lean_object*); -lean_object* l_lift___rarg(lean_object*, lean_object*); -lean_object* l_Legacy_liftTrans(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_liftPair___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_liftFnRange(lean_object*, lean_object*, lean_object*); -lean_object* l_Legacy_coeDecidableEq___boxed(lean_object*); -lean_object* l_Legacy_liftPair_u2082___rarg(lean_object*, lean_object*); -lean_object* l_liftT___rarg(lean_object*, lean_object*); -lean_object* l_lift___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_lift(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_lift___rarg), 2, 0); -return x_3; -} -} -lean_object* l_liftT___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_liftT(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_liftT___rarg), 2, 0); -return x_3; -} -} -lean_object* l_oldCoeB___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoeB(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 0); -return x_3; -} -} -lean_object* l_oldCoeT___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoeT(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 0); -return x_3; -} -} -lean_object* l_oldCoeFnB___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoeFnB(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeFnB___rarg), 2, 0); -return x_2; -} -} -lean_object* l_oldCoe___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoe(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_oldCoe___rarg), 2, 0); -return x_3; -} -} -lean_object* l_oldCoeFn___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoeFn(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeFn___rarg), 2, 0); -return x_2; -} -} -lean_object* l_oldCoeSort___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l_oldCoeSort(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeSort___rarg), 2, 0); -return x_2; -} -} -lean_object* l_Legacy_liftTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_liftTrans(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_liftTrans___rarg), 3, 0); -return x_4; -} -} -lean_object* l_Legacy_liftRefl(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Nat_HasOfNat___closed__1; -return x_2; -} -} -lean_object* l_Legacy_coeoeTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_coeoeTrans(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_coeoeTrans___rarg), 3, 0); -return x_4; -} -} -lean_object* l_Legacy_coeBase___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Legacy_coeBase(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeBase___rarg), 1, 0); -return x_3; -} -} -lean_object* l_Legacy_oldCoeOption___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Legacy_oldCoeOption(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Legacy_oldCoeOption___rarg), 1, 0); -return x_2; -} -} -lean_object* l_Legacy_coeTransAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_coeTransAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_coeTransAux___rarg), 3, 0); -return x_4; -} -} -lean_object* l_Legacy_coeBaseAux___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Legacy_coeBaseAux(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeBaseAux___rarg), 1, 0); -return x_3; -} -} -lean_object* l_Legacy_coeFnTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_coeFnTrans(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeFnTrans___rarg), 3, 0); -return x_3; -} -} -lean_object* l_Legacy_coeSortTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_coeSortTrans(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeSortTrans___rarg), 3, 0); -return x_3; -} -} -lean_object* l_Legacy_coeToLift___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Legacy_coeToLift(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeToLift___rarg), 1, 0); -return x_3; -} -} -static lean_object* _init_l_Legacy_coeBoolToProp() { -_start: -{ -return lean_box(0); -} -} -uint8_t l_Legacy_coeDecidableEq(uint8_t x_1) { -_start: -{ -return x_1; -} -} -lean_object* l_Legacy_coeDecidableEq___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; uint8_t x_3; lean_object* x_4; -x_2 = lean_unbox(x_1); -lean_dec(x_1); -x_3 = l_Legacy_coeDecidableEq(x_2); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Legacy_coeSubtype___rarg(lean_object* x_1) { -_start: -{ -lean_inc(x_1); -return x_1; -} -} -lean_object* l_Legacy_coeSubtype(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_coeSubtype___rarg___boxed), 1, 0); -return x_3; -} -} -lean_object* l_Legacy_coeSubtype___rarg___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Legacy_coeSubtype___rarg(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Legacy_liftFn___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_apply_1(x_2, x_4); -x_6 = lean_apply_1(x_3, x_5); -x_7 = lean_apply_1(x_1, x_6); -return x_7; -} -} -lean_object* l_Legacy_liftFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = lean_alloc_closure((void*)(l_Legacy_liftFn___rarg), 4, 0); -return x_5; -} -} -lean_object* l_Legacy_liftFnRange___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_2, x_3); -x_5 = lean_apply_1(x_1, x_4); -return x_5; -} -} -lean_object* l_Legacy_liftFnRange(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_liftFnRange___rarg), 3, 0); -return x_4; -} -} -lean_object* l_Legacy_liftFnDom___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_apply_1(x_1, x_3); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -} -lean_object* l_Legacy_liftFnDom(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_liftFnDom___rarg), 3, 0); -return x_4; -} -} -lean_object* l_Legacy_liftPair___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 1); -x_7 = lean_apply_1(x_1, x_5); -x_8 = lean_apply_1(x_2, x_6); -lean_ctor_set(x_3, 1, x_8); -lean_ctor_set(x_3, 0, x_7); -return x_3; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_3, 0); -x_10 = lean_ctor_get(x_3, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_3); -x_11 = lean_apply_1(x_1, x_9); -x_12 = lean_apply_1(x_2, x_10); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -} -lean_object* l_Legacy_liftPair(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = lean_alloc_closure((void*)(l_Legacy_liftPair___rarg), 3, 0); -return x_5; -} -} -lean_object* l_Legacy_liftPair_u2081___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_apply_1(x_1, x_4); -lean_ctor_set(x_2, 0, x_5); -return x_2; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_inc(x_6); -lean_dec(x_2); -x_8 = lean_apply_1(x_1, x_6); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -} -} -lean_object* l_Legacy_liftPair_u2081(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_liftPair_u2081___rarg), 2, 0); -return x_4; -} -} -lean_object* l_Legacy_liftPair_u2082___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_2, 1); -x_5 = lean_apply_1(x_1, x_4); -lean_ctor_set(x_2, 1, x_5); -return x_2; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_inc(x_6); -lean_dec(x_2); -x_8 = lean_apply_1(x_1, x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -} -} -lean_object* l_Legacy_liftPair_u2082(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Legacy_liftPair_u2082___rarg), 2, 0); -return x_4; -} -} -lean_object* l_List_map___main___at_Legacy_liftList___spec__1___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -lean_dec(x_1); -x_3 = lean_box(0); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_1); -x_7 = lean_apply_1(x_1, x_5); -x_8 = l_List_map___main___at_Legacy_liftList___spec__1___rarg(x_1, x_6); -lean_ctor_set(x_2, 1, x_8); -lean_ctor_set(x_2, 0, x_7); -return x_2; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_2, 0); -x_10 = lean_ctor_get(x_2, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_2); -lean_inc(x_1); -x_11 = lean_apply_1(x_1, x_9); -x_12 = l_List_map___main___at_Legacy_liftList___spec__1___rarg(x_1, x_10); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -} -} -lean_object* l_List_map___main___at_Legacy_liftList___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_map___main___at_Legacy_liftList___spec__1___rarg), 2, 0); -return x_3; -} -} -lean_object* l_Legacy_liftList___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_List_map___main___at_Legacy_liftList___spec__1___rarg(x_1, x_2); -return x_3; -} -} -lean_object* l_Legacy_liftList(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Legacy_liftList___rarg), 2, 0); -return x_3; -} -} -lean_object* l_oldCoeToLift___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_oldCoeToLift(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_oldCoeToLift___rarg), 1, 0); -return x_3; -} -} -lean_object* initialize_Init_Data_List_Basic(lean_object*); -static bool _G_initialized = false; -lean_object* initialize_Init_HasCoe(lean_object* w) { -lean_object * res; -if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); -_G_initialized = true; -res = initialize_Init_Data_List_Basic(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Legacy_coeBoolToProp = _init_l_Legacy_coeBoolToProp(); -return lean_io_result_mk_ok(lean_box(0)); -} -#ifdef __cplusplus -} -#endif diff --git a/stage0/stdlib/Init/LeanInit.c b/stage0/stdlib/Init/LeanInit.c index 07a1f0da6f..94ad2afaad 100644 --- a/stage0/stdlib/Init/LeanInit.c +++ b/stage0/stdlib/Init/LeanInit.c @@ -465,6 +465,7 @@ lean_object* l_ReaderT_Init_Control_Reader___instance__4___rarg___lambda__6___bo lean_object* l_Lean_Name_Init_LeanInit___instance__5___closed__1; lean_object* l_Lean_mkCAppStx(lean_object*, lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStrChunks_match__2(lean_object*); +lean_object* l_List_foldl___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__9; lean_object* l___private_Init_LeanInit_0__Lean_quoteName___closed__1; lean_object* l_Lean_Macro_Init_LeanInit___instance__12___lambda__2(lean_object*, lean_object*); @@ -530,7 +531,6 @@ lean_object* l_Lean_Init_LeanInit___instance__21___rarg___closed__2; lean_object* l_Array_foldlStepMAux___at_Array_getSepElems___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_nameLitKind___closed__2; uint8_t l_Lean_isSubScriptAlnum(uint32_t); -lean_object* l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_0__Lean_Syntax_decodeInterpStrQuotedChar(lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat_match__1(lean_object*); lean_object* l___private_Init_LeanInit_0__Lean_assembleParts___closed__2; @@ -3611,7 +3611,7 @@ x_1 = l_Lean_Init_LeanInit___instance__10___closed__1; return x_1; } } -lean_object* l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_MacroScopesView_review___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3658,7 +3658,7 @@ x_10 = l_Lean_Name_append(x_8, x_9); lean_dec(x_8); x_11 = l_Lean_Name_hasMacroScopes___closed__1; x_12 = lean_name_mk_string(x_10, x_11); -x_13 = l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(x_12, x_2); +x_13 = l_List_foldl___at_Lean_MacroScopesView_review___spec__1(x_12, x_2); return x_13; } else @@ -4269,7 +4269,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean lean_dec(x_2); x_18 = l_Lean_Name_append(x_14, x_15); lean_dec(x_14); -x_19 = l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(x_18, x_16); +x_19 = l_List_foldl___at_Lean_MacroScopesView_review___spec__1(x_18, x_16); x_20 = lean_box(0); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_3); @@ -4312,7 +4312,7 @@ lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean lean_dec(x_2); x_29 = l_Lean_Name_append(x_25, x_26); lean_dec(x_25); -x_30 = l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(x_29, x_27); +x_30 = l_List_foldl___at_Lean_MacroScopesView_review___spec__1(x_29, x_27); x_31 = lean_box(0); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_3); diff --git a/stage0/stdlib/Init/System/FilePath.c b/stage0/stdlib/Init/System/FilePath.c index 232d694f83..f5574b51eb 100644 --- a/stage0/stdlib/Init/System/FilePath.c +++ b/stage0/stdlib/Init/System/FilePath.c @@ -27,6 +27,7 @@ lean_object* lean_string_utf8_set(lean_object*, lean_object*, uint32_t); lean_object* l_System_FilePath_splitSearchPath(lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_searchPathSeparators___closed__2; +lean_object* l_List_foldr___at_System_FilePath_normalizePath___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_dirName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_pathSeparators; lean_object* lean_string_utf8_next(lean_object*, lean_object*); @@ -37,19 +38,18 @@ lean_object* l_String_splitAux___at_System_FilePath_splitSearchPath___spec__3___ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_System_FilePath_normalizePath___closed__1; lean_object* l_System_FilePath_splitSearchPath___boxed(lean_object*); +lean_object* l_List_elem___at_System_FilePath_splitSearchPath___spec__1___boxed(lean_object*, lean_object*); lean_object* l_System_FilePath_searchPathSeparators___closed__1; -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_System_FilePath_dirName(lean_object*); lean_object* l_System_FilePath_normalizePath(lean_object*); -lean_object* l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1___boxed(lean_object*, lean_object*); uint32_t l_System_FilePath_pathSeparator___closed__1; +uint8_t l_List_elem___at_System_FilePath_splitSearchPath___spec__1(uint32_t, lean_object*); uint32_t l_System_FilePath_pathSeparator; uint32_t lean_string_utf8_get(lean_object*, lean_object*); uint8_t l_System_FilePath_isCaseInsensitive___closed__1; lean_object* l_String_split___at_System_FilePath_splitSearchPath___spec__2(lean_object*); uint32_t l_System_FilePath_searchPathSeparator___closed__1; lean_object* l_System_FilePath_searchPathSeparators; -uint8_t l_List_foldr___main___at_System_FilePath_normalizePath___spec__1(uint32_t, uint8_t, lean_object*); lean_object* l_String_split___at_System_FilePath_splitSearchPath___spec__2___boxed(lean_object*); lean_object* l_String_mapAux___at_System_FilePath_normalizePath___spec__2(lean_object*, lean_object*); uint32_t l_System_FilePath_extSeparator; @@ -62,11 +62,11 @@ lean_object* l_String_splitAux___at_System_FilePath_splitSearchPath___spec__3(le lean_object* l_System_mkFilePath___closed__1; lean_object* l_System_FilePath_searchPathSeparators___closed__3; lean_object* l_System_FilePath_pathSeparators___closed__2; -uint8_t l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1(uint32_t, lean_object*); lean_object* l_System_FilePath_pathSeparators___closed__1; +uint8_t l_List_foldr___at_System_FilePath_normalizePath___spec__1(uint32_t, uint8_t, lean_object*); lean_object* l_System_FilePath_pathSeparators___closed__1___boxed__const__1; lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_List_foldr___main___at_System_FilePath_normalizePath___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); static uint32_t _init_l_System_FilePath_pathSeparator___closed__1() { _start: @@ -260,7 +260,7 @@ x_1 = l_System_FilePath_searchPathSeparators___closed__3; return x_1; } } -uint8_t l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1(uint32_t x_1, lean_object* x_2) { +uint8_t l_List_elem___at_System_FilePath_splitSearchPath___spec__1(uint32_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -305,7 +305,7 @@ if (x_5 == 0) uint32_t x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_string_utf8_get(x_1, x_3); x_7 = l_System_FilePath_searchPathSeparators; -x_8 = l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1(x_6, x_7); +x_8 = l_List_elem___at_System_FilePath_splitSearchPath___spec__1(x_6, x_7); if (x_8 == 0) { lean_object* x_9; @@ -339,7 +339,7 @@ else uint32_t x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_string_utf8_get(x_1, x_3); x_18 = l_System_FilePath_searchPathSeparators; -x_19 = l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1(x_17, x_18); +x_19 = l_List_elem___at_System_FilePath_splitSearchPath___spec__1(x_17, x_18); if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -392,13 +392,13 @@ x_2 = l_String_split___at_System_FilePath_splitSearchPath___spec__2(x_1); return x_2; } } -lean_object* l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_System_FilePath_splitSearchPath___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint32_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox_uint32(x_1); lean_dec(x_1); -x_4 = l_List_elem___main___at_System_FilePath_splitSearchPath___spec__1(x_3, x_2); +x_4 = l_List_elem___at_System_FilePath_splitSearchPath___spec__1(x_3, x_2); x_5 = lean_box(x_4); return x_5; } @@ -465,7 +465,7 @@ x_1 = l_System_FilePath_isCaseInsensitive___closed__1; return x_1; } } -uint8_t l_List_foldr___main___at_System_FilePath_normalizePath___spec__1(uint32_t x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_System_FilePath_normalizePath___spec__1(uint32_t x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -480,7 +480,7 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); lean_dec(x_3); -x_6 = l_List_foldr___main___at_System_FilePath_normalizePath___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_System_FilePath_normalizePath___spec__1(x_1, x_2, x_5); x_7 = lean_unbox_uint32(x_4); lean_dec(x_4); x_8 = x_1 == x_7; @@ -508,7 +508,7 @@ uint32_t x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; x_4 = lean_string_utf8_get(x_2, x_1); x_5 = 0; x_6 = l_System_FilePath_pathSeparators; -x_7 = l_List_foldr___main___at_System_FilePath_normalizePath___spec__1(x_4, x_5, x_6); +x_7 = l_List_foldr___at_System_FilePath_normalizePath___spec__1(x_4, x_5, x_6); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; @@ -544,7 +544,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_System_FilePath_pathSeparators; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_List_lengthAux___main___rarg(x_1, x_2); +x_3 = l_List_lengthAux___rarg(x_1, x_2); return x_3; } } @@ -588,7 +588,7 @@ return x_7; } } } -lean_object* l_List_foldr___main___at_System_FilePath_normalizePath___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_System_FilePath_normalizePath___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint32_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; @@ -596,7 +596,7 @@ x_4 = lean_unbox_uint32(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_foldr___main___at_System_FilePath_normalizePath___spec__1(x_4, x_5, x_3); +x_6 = l_List_foldr___at_System_FilePath_normalizePath___spec__1(x_4, x_5, x_3); x_7 = lean_box(x_6); return x_7; } diff --git a/stage0/stdlib/Lean/Attributes.c b/stage0/stdlib/Lean/Attributes.c index 64deb62da7..9e7782891a 100644 --- a/stage0/stdlib/Lean/Attributes.c +++ b/stage0/stdlib/Lean/Attributes.c @@ -24,6 +24,7 @@ lean_object* l_Lean_registerEnumAttributes___rarg___lambda__1___boxed(lean_objec extern lean_object* l_Std_RBTree_toList___rarg___closed__1; lean_object* l_Lean_ParametricAttributeImpl_afterSet___default(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_EnumAttributes_getValue___spec__2(lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Lean_Attributes___instance__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Lean_Attributes___instance__2___closed__1; @@ -34,6 +35,7 @@ lean_object* l_Lean_registerTagAttribute___lambda__8___boxed(lean_object*, lean_ lean_object* l_Lean_mkAttributeImplOfBuilder___closed__1; uint8_t l_Std_AssocList_contains___at_Lean_registerAttributeImplBuilder___spec__2(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_getBuiltinAttributeNames___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); @@ -55,7 +57,6 @@ lean_object* l_Std_AssocList_foldlM___at_Lean_registerAttributeImplBuilder___spe lean_object* l_Lean_getBuiltinAttributeImpl(lean_object*, lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__9; uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_fvarIdToDecl___default___closed__1; lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_709____closed__1; lean_object* l_Array_qsort_sort___at_Lean_registerEnumAttributes___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,7 +120,6 @@ lean_object* l_Std_RBNode_fold___at_Lean_registerParametricAttribute___spec__1(l lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_273_(lean_object*); lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_709_(lean_object*); lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_129_(lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9(lean_object*); lean_object* l_Lean_mkAttributeImplOfBuilder_match__1(lean_object*); lean_object* l_Lean_registerEnumAttributes___rarg___lambda__3___boxed(lean_object*); lean_object* l_Lean_Environment_addAttributeOld___closed__2; @@ -159,7 +159,6 @@ lean_object* l_Std_RBNode_find___at_Lean_EnumAttributes_getValue___spec__1___rar lean_object* l_Lean_ParametricAttributeImpl_afterImport___default___rarg(lean_object*); uint8_t l_Lean_AttributeApplicationTime_beq(uint8_t, uint8_t); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_mkAttributeImplOfBuilder___spec__1(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAttributeImplOfConstantUnsafe_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Array_binSearchAux___at_Lean_TagDeclarationExtension_isTagged___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_registerBuiltinAttribute___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -206,7 +205,6 @@ lean_object* l_Lean_registerParametricAttribute___rarg___lambda__5___boxed(lean_ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Lean_Attributes_0__Lean_AttributeExtension_addImported(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerEnumAttributes___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_addAttribute___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_709____closed__2; lean_object* l_Lean_Lean_Attributes___instance__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,7 +232,6 @@ lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean lean_object* l_IO_mkRef___at_Lean_initFn____x40_Lean_Attributes___hyg_129____spec__1(lean_object*, lean_object*); extern lean_object* l_Init_Data_Repr___instance__15___closed__1; lean_object* l_Lean_ParametricAttribute_setParam(lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerEnumAttributes___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__8___closed__1; lean_object* l_Lean_attributeExtension___closed__1; @@ -266,13 +263,11 @@ lean_object* l_Array_qpartition_loop___at_Lean_registerParametricAttribute___spe lean_object* l_Std_PersistentHashMap_containsAux___at_Lean_registerBuiltinAttribute___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_setParam___rarg___closed__3; lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__1; lean_object* l_Lean_registerParametricAttribute___rarg___lambda__4___boxed(lean_object*); lean_object* l_Lean_mkAttributeImplOfEntry(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_EnumAttributes_getValue___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerParametricAttribute___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_ParametricAttribute_setParam___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__3(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_EnumAttributes_setValue___spec__1___rarg___boxed(lean_object*, lean_object*); @@ -322,6 +317,8 @@ extern lean_object* l_String_splitAux___closed__1; lean_object* l_Lean_registerEnumAttributes___rarg___lambda__3___closed__3; lean_object* l_Lean_initFn____x40_Lean_Attributes___hyg_709____lambda__2___boxed(lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_registerParametricAttribute___spec__8(lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9(lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_registerBuiltinAttribute___spec__5(lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes_match__1(lean_object*, lean_object*); @@ -348,7 +345,6 @@ lean_object* l_Std_HashMapImp_contains___at_Lean_registerAttributeImplBuilder___ lean_object* l_Lean_AttributeApplicationTime_beq___boxed(lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_ParametricAttribute_getParam___spec__2(lean_object*); lean_object* l_Lean_registerParametricAttribute___rarg___closed__3; -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TagAttribute_hasTag_match__1(lean_object*); uint8_t l_Std_PersistentHashMap_containsAux___at_Lean_registerBuiltinAttribute___spec__6(lean_object*, size_t, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_registerAttributeImplBuilder___spec__4(lean_object*, lean_object*, lean_object*); @@ -363,12 +359,12 @@ lean_object* l_Lean_EnumAttributes_setValue___rarg___closed__2; lean_object* l_Std_AssocList_find_x3f___at_Lean_mkAttributeImplOfBuilder___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerParametricAttribute___rarg___lambda__4___closed__1; lean_object* l_Array_anyRangeMAux___at_Lean_registerEnumAttributes___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerAttributeImplBuilder___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_Lean_CoreM___instance__6___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerParametricAttribute___spec__6(lean_object*); lean_object* l_Lean_EnumAttributes_Lean_Attributes___instance__7(lean_object*); lean_object* l_Lean_EnumAttributes_getValue_match__1(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute___lambda__2___closed__1; @@ -391,7 +387,6 @@ lean_object* l_Array_qsort_sort___at_Lean_registerEnumAttributes___spec__2___rar lean_object* l_Lean_mkAttributeImplOfConstantUnsafe_match__1___rarg___closed__1; lean_object* l_Lean_registerParametricAttribute___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_registerEnumAttributes___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAttributeImplOfEntry___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_registerParametricAttribute___spec__7(lean_object*); lean_object* l_Std_AssocList_contains___at_Lean_registerAttributeImplBuilder___spec__2___boxed(lean_object*, lean_object*); @@ -423,6 +418,7 @@ uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_registerTagAttribute___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerParametricAttribute___rarg___lambda__3(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_getParam_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnumAttributes_getValue_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute___closed__4; @@ -437,6 +433,8 @@ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_getBuiltinAttributeImpl__ lean_object* l_Lean_Lean_Environment___instance__5___lambda__3(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_registerEnumAttributes___spec__7___rarg(lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_expand___at_Lean_registerAttributeImplBuilder___spec__3(lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_attrParamSyntaxToIdentifier_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -458,11 +456,13 @@ lean_object* l_Array_binSearchAux___at_Lean_ParametricAttribute_getParam___spec_ lean_object* l_Std_RBNode_fold___at_Lean_registerEnumAttributes___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_ParametricAttribute_setParam___spec__1(lean_object*); lean_object* l_Lean_registerParametricAttribute___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAttributeNames(lean_object*); lean_object* l_Lean_attributeExtension___elambda__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_EnumAttributes_setValue(lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__4___boxed(lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__4___closed__1; +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAttributeImpl(lean_object*, lean_object*); lean_object* l_Lean_getAttributeImpl_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; @@ -3744,7 +3744,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); x_5 = l_Nat_repr(x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); @@ -9075,7 +9075,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_registerPersistentEnvExtensionUnsafe___a return x_2; } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -9132,7 +9132,7 @@ return x_19; } } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; @@ -9151,7 +9151,7 @@ if (lean_obj_tag(x_15) == 0) lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_16 = lean_box(0); -x_17 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); +x_17 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); return x_17; } else @@ -9198,7 +9198,7 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (x_7 == 0) @@ -9245,12 +9245,12 @@ else { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); +x_23 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); return x_23; } } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -9272,7 +9272,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_9 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_2, x_3, x_8); +x_9 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_2, x_3, x_8); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 0); @@ -9288,7 +9288,7 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed), 11, 4); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_3); @@ -9310,7 +9310,7 @@ lean_inc(x_17); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_2, x_3, x_18); +x_19 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_2, x_3, x_18); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 0); @@ -9326,7 +9326,7 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed), 11, 4); +x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed), 11, 4); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_3); @@ -9342,11 +9342,11 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9(lean_object* x_1) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___boxed), 4, 0); return x_2; } } @@ -9536,7 +9536,7 @@ x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); lean_inc(x_14); -x_16 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(x_4, x_5, x_14, x_3); +x_16 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(x_4, x_5, x_14, x_3); lean_inc(x_16); x_17 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_16, x_15); if (lean_obj_tag(x_17) == 0) @@ -9695,42 +9695,42 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___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_6); return x_11; } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_11; } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_7); lean_dec(x_7); -x_13 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_8, x_9, x_10, x_11); +x_13 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_13; } } -lean_object* l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_registerEnumAttributes___spec__9___rarg(x_1, x_5, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/Compiler/ConstFolding.c b/stage0/stdlib/Lean/Compiler/ConstFolding.c index 79516a7ed0..390fab54b7 100644 --- a/stage0/stdlib/Lean/Compiler/ConstFolding.c +++ b/stage0/stdlib/Lean/Compiler/ConstFolding.c @@ -23,7 +23,7 @@ lean_object* l_Lean_Compiler_numScalarTypes; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__15; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__18; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__23; -lean_object* l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_Compiler_isToNat___spec__1(lean_object*, uint8_t, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Compiler_NumScalarTypeInfo_id___default(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); @@ -42,8 +42,6 @@ lean_object* l_Lean_Compiler_foldCharOfNat___closed__1; lean_object* l_Lean_Compiler_foldUIntSub___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__15; lean_object* l_Lean_Compiler_foldCharOfNat___closed__2; -lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2(lean_object*, lean_object*); -extern lean_object* l_Nat_HasMod___closed__1; lean_object* l_Lean_Compiler_NumScalarTypeInfo_ofNatFn___default(lean_object*); extern lean_object* l_System_Platform_numBits; lean_object* l_Lean_Compiler_foldNatPow___boxed(lean_object*); @@ -57,6 +55,7 @@ lean_object* l_Lean_Compiler_foldNatDiv___rarg(lean_object*, lean_object*); lean_object* l_Lean_Compiler_numScalarTypes___closed__6; lean_object* l_Lean_Compiler_foldStrictAnd(uint8_t); lean_object* l_Lean_Compiler_getBoolLit___closed__2; +extern lean_object* l_Nat_Init_Data_Nat_Div___instance__1___closed__1; lean_object* l_Lean_Compiler_preUIntBinFoldFns; lean_object* l_Lean_Compiler_foldStrictAnd___boxed(lean_object*); extern lean_object* l_Init_Data_Repr___instance__2___closed__2; @@ -71,7 +70,6 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__19; lean_object* l_Nat_decLt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecLe___closed__2; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__9; -uint8_t l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Compiler_foldUIntSub___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_NumScalarTypeInfo_size___default(lean_object*); lean_object* l_Lean_Compiler_foldUIntSub___closed__1; @@ -87,6 +85,7 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__9; lean_object* l_Lean_Compiler_natFoldFns___closed__40; lean_object* l_Lean_Compiler_natFoldFns___closed__4; lean_object* l_Lean_Compiler_numScalarTypes___closed__20; +lean_object* l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; lean_object* l_Lean_Compiler_foldUIntAdd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_numScalarTypes___closed__1; lean_object* l_Lean_Compiler_natFoldFns___closed__31; @@ -103,7 +102,6 @@ lean_object* l_Lean_Compiler_foldNatAdd___boxed(lean_object*); lean_object* l_Lean_Compiler_foldNatDecLe___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDiv(uint8_t); extern lean_object* l_Lean_levelZero; -lean_object* l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__19; lean_object* l_Lean_Compiler_mkUInt32Lit(lean_object*); @@ -119,30 +117,27 @@ lean_object* l_Lean_mkDecIsTrue(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldStrictOr___rarg(lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__7; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__21; -lean_object* l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_numScalarTypes___closed__8; lean_object* l_Lean_Compiler_binFoldFns___closed__1; lean_object* l_Lean_Compiler_mkNatEq___closed__3; lean_object* l_Lean_Compiler_foldUIntDiv___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__21; lean_object* l_Lean_Compiler_natFoldFns___closed__38; -lean_object* l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecEq(uint8_t, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Compiler_foldUIntDiv___closed__1; -lean_object* l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_toDecidableExpr___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_fold_un_op(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_toDecidableExpr___closed__1; lean_object* l_Lean_Compiler_boolFoldFns___closed__6; lean_object* l_Lean_Compiler_unFoldFns___closed__6; -lean_object* l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_getBoolLit_match__1___rarg___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkNatLe___closed__3; lean_object* l_Lean_Compiler_foldUnOp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkNatEq___closed__1; lean_object* l_Lean_Compiler_foldNatMul(uint8_t); +lean_object* l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecLt(uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Compiler_isOfNat(lean_object*); lean_object* l_Lean_Compiler_foldStrictOr___boxed(lean_object*); @@ -162,10 +157,10 @@ lean_object* l_Lean_Compiler_mkNatEq___closed__6; lean_object* l_Lean_Compiler_toDecidableExpr_match__1(lean_object*); uint8_t l_UInt32_decLt(uint32_t, uint32_t); lean_object* l_Lean_Compiler_numScalarTypes___closed__15; +lean_object* l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_numScalarTypes___closed__14; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__12; extern lean_object* l_Nat_HasAdd___closed__1; -lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_boolFoldFns___closed__8; lean_object* l_Lean_Compiler_getBoolLit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldUIntMod___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); @@ -193,6 +188,7 @@ lean_object* l_Lean_Compiler_mkNatLt___closed__10; lean_object* l_Lean_Compiler_numScalarTypes___closed__9; lean_object* l_Lean_Compiler_mkUIntTypeName(lean_object*); lean_object* l_Lean_Compiler_getInfoFromFn_match__1(lean_object*); +lean_object* l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_uintBinFoldFns_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_isCharLit___closed__3; lean_object* l_Lean_Compiler_unFoldFns___closed__2; @@ -209,6 +205,7 @@ lean_object* l_Lean_Compiler_foldNatPow(uint8_t); lean_object* l_Lean_Compiler_numScalarTypes___closed__12; lean_object* l_Lean_Compiler_foldCharOfNat(uint8_t, lean_object*); lean_object* l_Lean_Compiler_foldStrictAnd___rarg(lean_object*, lean_object*); +lean_object* l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatMod___boxed(lean_object*); lean_object* l_Lean_Compiler_mkNatEq___closed__5; lean_object* l_Lean_Compiler_boolFoldFns___closed__9; @@ -224,12 +221,13 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__6; lean_object* l_Lean_Compiler_foldUIntMod(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_toDecidableExpr_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldToNat___boxed(lean_object*); +extern lean_object* l_Nat_Init_Data_Nat_Div___instance__2___closed__1; lean_object* l_Lean_Compiler_boolFoldFns___closed__1; lean_object* l_Lean_Compiler_foldStrictOr_match__1(lean_object*); lean_object* l_Lean_Compiler_foldNatBinPred(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkNatLt___closed__2; +lean_object* l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_unFoldFns___closed__7; -extern lean_object* l_Nat_HasDiv___closed__1; lean_object* l_Lean_Compiler_foldNatDiv___boxed(lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__34; lean_object* l_Lean_Compiler_unFoldFns; @@ -240,6 +238,7 @@ lean_object* l_Lean_Compiler_mkNatLt___closed__3; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__7; lean_object* l_Lean_Compiler_numScalarTypes___closed__23; lean_object* l_Lean_Compiler_mkNatEq___closed__2; +lean_object* l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatBinOp(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__3; lean_object* l_Lean_Compiler_getBoolLit_match__1(lean_object*); @@ -251,7 +250,6 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__29; lean_object* l_Lean_Compiler_natFoldFns___closed__33; lean_object* l_Lean_Compiler_foldUIntDiv(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_isToNat___boxed(lean_object*); -lean_object* l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_decLe___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldUIntAdd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_uintBinFoldFns___closed__1; @@ -261,6 +259,7 @@ lean_object* l_Lean_Compiler_foldUIntAdd___closed__1; lean_object* l_Lean_Compiler_mkNatLt(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkUIntLit(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_usizeSz___closed__1; lean_object* l_Lean_Compiler_foldBinUInt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__24; @@ -289,6 +288,7 @@ lean_object* l_Lean_Compiler_numScalarTypes___closed__24; lean_object* l_Lean_Compiler_getInfoFromFn_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Init_Data_Repr___instance__2___closed__1; lean_object* l_Lean_Compiler_foldNatDecLt___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecLt___closed__2; lean_object* l_Lean_Compiler_foldUIntSub___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Compiler_isToNat(lean_object*); @@ -300,14 +300,16 @@ lean_object* l_Lean_Compiler_getInfoFromVal(lean_object*); lean_object* l_Lean_Compiler_numScalarTypes___closed__16; lean_object* l_Lean_Compiler_foldNatSucc(uint8_t); lean_object* l_Lean_Compiler_toDecidableExpr(uint8_t, lean_object*, uint8_t); +uint8_t l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Compiler_foldNatAdd___rarg(lean_object*, lean_object*); extern lean_object* l_Nat_Init_Data_Nat_Basic___instance__5___closed__1; -lean_object* l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; lean_object* l_Lean_Compiler_mkUInt32Lit___boxed(lean_object*); +lean_object* l_List_foldr___at_Lean_Compiler_isToNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecEq___closed__1; lean_object* l_Lean_Compiler_foldBinUInt(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldUIntAdd(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldBinOp_match__1(lean_object*); +lean_object* l_List_foldr___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkNatLe___closed__7; lean_object* l_Lean_Compiler_natFoldFns___closed__39; lean_object* lean_nat_mod(lean_object*, lean_object*); @@ -339,14 +341,12 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__25; lean_object* l_Lean_Compiler_getBoolLit___boxed(lean_object*); lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__20; lean_object* l_Lean_Compiler_mkNatLt___closed__1; -lean_object* l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__8; lean_object* l_Lean_Compiler_foldUIntAdd___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__13; lean_object* l_Lean_Compiler_foldUIntMul___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_mkNatLt___closed__9; lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecEq___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -738,7 +738,7 @@ x_1 = l_Lean_Compiler_numScalarTypes___closed__26; return x_1; } } -uint8_t l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -750,7 +750,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 2); x_8 = lean_name_eq(x_7, x_1); if (x_8 == 0) @@ -772,17 +772,17 @@ _start: uint8_t x_2; lean_object* x_3; uint8_t x_4; x_2 = 0; x_3 = l_Lean_Compiler_numScalarTypes; -x_4 = l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(x_1, x_2, x_3); +x_4 = l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(x_1, x_2, x_3); return x_4; } } -lean_object* l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -799,7 +799,7 @@ x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_Compiler_isToNat___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -811,7 +811,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_Compiler_isToNat___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 3); x_8 = lean_name_eq(x_7, x_1); if (x_8 == 0) @@ -833,17 +833,17 @@ _start: uint8_t x_2; lean_object* x_3; uint8_t x_4; x_2 = 0; x_3 = l_Lean_Compiler_numScalarTypes; -x_4 = l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1(x_1, x_2, x_3); +x_4 = l_List_foldr___at_Lean_Compiler_isToNat___spec__1(x_1, x_2, x_3); return x_4; } } -lean_object* l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_Compiler_isToNat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_Compiler_isToNat___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_Compiler_isToNat___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -1132,7 +1132,7 @@ lean_inc(x_4); lean_dec(x_2); x_5 = 0; x_6 = l_Lean_Compiler_numScalarTypes; -x_7 = l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1(x_4, x_5, x_6); +x_7 = l_List_foldr___at_Lean_Compiler_isOfNat___spec__1(x_4, x_5, x_6); lean_dec(x_4); if (x_7 == 0) { @@ -1851,7 +1851,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Compiler_uintBinFoldFns_match__1___rarg) return x_2; } } -lean_object* l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1869,7 +1869,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); -x_7 = l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_6); +x_7 = l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_6); x_8 = !lean_is_exclusive(x_5); if (x_8 == 0) { @@ -1907,7 +1907,7 @@ x_18 = lean_ctor_get(x_2, 1); lean_inc(x_18); lean_inc(x_17); lean_dec(x_2); -x_19 = l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_18); +x_19 = l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_18); x_20 = lean_ctor_get(x_17, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 1); @@ -1937,7 +1937,7 @@ return x_26; } } } -lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1950,7 +1950,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); x_5 = l_Lean_Compiler_preUIntBinFoldFns; -x_6 = l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(x_3, x_5); +x_6 = l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(x_3, x_5); x_7 = l_List_append___rarg(x_1, x_6); x_1 = x_7; x_2 = x_4; @@ -1964,7 +1964,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_numScalarTypes; -x_3 = l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2(x_1, x_2); return x_3; } } @@ -1976,20 +1976,20 @@ x_1 = l_Lean_Compiler_uintBinFoldFns___closed__1; return x_1; } } -lean_object* l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_2); +x_3 = l_List_map___at_Lean_Compiler_uintBinFoldFns___spec__1(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Compiler_uintBinFoldFns___spec__2(x_1, x_2); lean_dec(x_2); return x_3; } @@ -2109,7 +2109,7 @@ lean_object* l_Lean_Compiler_foldNatDiv___rarg(lean_object* x_1, lean_object* x_ _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Nat_HasDiv___closed__1; +x_3 = l_Nat_Init_Data_Nat_Div___instance__1___closed__1; x_4 = l_Lean_Compiler_foldNatBinOp(x_3, x_1, x_2); return x_4; } @@ -2136,7 +2136,7 @@ lean_object* l_Lean_Compiler_foldNatMod___rarg(lean_object* x_1, lean_object* x_ _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Nat_HasMod___closed__1; +x_3 = l_Nat_Init_Data_Nat_Div___instance__2___closed__1; x_4 = l_Lean_Compiler_foldNatBinOp(x_3, x_1, x_2); return x_4; } @@ -4677,7 +4677,7 @@ x_3 = l_Lean_Compiler_foldToNat(x_2); return x_3; } } -static lean_object* _init_l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1() { +static lean_object* _init_l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1() { _start: { lean_object* x_1; @@ -4685,7 +4685,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_foldToNat___boxed), 1, 0); return x_1; } } -lean_object* l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4704,7 +4704,7 @@ x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_4, 3); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; +x_7 = l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); @@ -4725,7 +4725,7 @@ lean_dec(x_2); x_12 = lean_ctor_get(x_10, 3); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; +x_13 = l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1; x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -4745,7 +4745,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_numScalarTypes; -x_3 = l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1(x_1, x_2); return x_3; } } @@ -4857,7 +4857,7 @@ x_1 = l_Lean_Compiler_unFoldFns___closed__9; return x_1; } } -lean_object* l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4895,15 +4895,15 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Compiler_binFoldFns; -x_3 = l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1(x_1, x_2); +x_3 = l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1(x_1, x_2); return x_3; } } -lean_object* l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1(x_1, x_2); +x_3 = l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -4918,7 +4918,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4956,15 +4956,15 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Compiler_unFoldFns; -x_3 = l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1(x_1, x_2); +x_3 = l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1(x_1, x_2); return x_3; } } -lean_object* l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1(x_1, x_2); +x_3 = l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -5023,7 +5023,7 @@ x_5 = lean_ctor_get(x_2, 0); lean_inc(x_5); lean_dec(x_2); x_6 = l_Lean_Compiler_binFoldFns; -x_7 = l_List_lookup___main___at_Lean_Compiler_findBinFoldFn___spec__1(x_5, x_6); +x_7 = l_List_lookup___at_Lean_Compiler_findBinFoldFn___spec__1(x_5, x_6); lean_dec(x_5); if (lean_obj_tag(x_7) == 0) { @@ -5109,7 +5109,7 @@ x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = l_Lean_Compiler_unFoldFns; -x_6 = l_List_lookup___main___at_Lean_Compiler_findUnFoldFn___spec__1(x_4, x_5); +x_6 = l_List_lookup___at_Lean_Compiler_findUnFoldFn___spec__1(x_4, x_5); lean_dec(x_4); if (lean_obj_tag(x_6) == 0) { @@ -5476,8 +5476,8 @@ l_Lean_Compiler_foldCharOfNat___closed__1 = _init_l_Lean_Compiler_foldCharOfNat_ lean_mark_persistent(l_Lean_Compiler_foldCharOfNat___closed__1); l_Lean_Compiler_foldCharOfNat___closed__2 = _init_l_Lean_Compiler_foldCharOfNat___closed__2(); lean_mark_persistent(l_Lean_Compiler_foldCharOfNat___closed__2); -l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1 = _init_l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1(); -lean_mark_persistent(l_List_foldl___main___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1); +l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1 = _init_l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1(); +lean_mark_persistent(l_List_foldl___at_Lean_Compiler_uintFoldToNatFns___spec__1___closed__1); l_Lean_Compiler_uintFoldToNatFns___closed__1 = _init_l_Lean_Compiler_uintFoldToNatFns___closed__1(); lean_mark_persistent(l_Lean_Compiler_uintFoldToNatFns___closed__1); l_Lean_Compiler_uintFoldToNatFns = _init_l_Lean_Compiler_uintFoldToNatFns(); diff --git a/stage0/stdlib/Lean/Compiler/ExternAttr.c b/stage0/stdlib/Lean/Compiler/ExternAttr.c index f54c68ef43..358398b150 100644 --- a/stage0/stdlib/Lean/Compiler/ExternAttr.c +++ b/stage0/stdlib/Lean/Compiler/ExternAttr.c @@ -49,7 +49,6 @@ lean_object* l_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____lambda__ lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternEntries___closed__1; lean_object* l_Lean_getExternConstArityExport_match__1(lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData_match__3(lean_object*); -lean_object* l_List_intersperse___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_getExternConstArity___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -96,6 +95,7 @@ lean_object* lean_add_extern(lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_mkSimpleFnCall___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData___boxed(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_ExternAttrData_arity_x3f___default; @@ -122,6 +122,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_getExternConstArity__ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Lean_Compiler_ExternAttr___instance__1___closed__1; +lean_object* l_List_foldl___at_Lean_mkSimpleFnCall___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_ProjFns___hyg_42____closed__3; lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternEntries_match__1(lean_object*); @@ -144,7 +145,6 @@ extern lean_object* l_Lean_ParametricAttribute_Lean_Attributes___instance__6___c lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____spec__3___lambda__1___boxed(lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____spec__6___closed__1; -lean_object* l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternEntries_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_getExternConstArity___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,6 +174,7 @@ lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData uint32_t l_String_Iterator_curr(lean_object*); lean_object* l_Lean_getExternConstArity_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternEntries_match__2(lean_object*); +lean_object* l_List_intersperse___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__3; extern lean_object* l_List_reprAux___rarg___closed__1; lean_object* l_Lean_throwError___at_Lean_getExternConstArity___spec__2(lean_object*); @@ -227,7 +228,6 @@ lean_object* l_Lean_getExternEntryForAux_match__1(lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData___closed__6; lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternEntries___closed__5; -lean_object* l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_TraceState_Lean_Util_Trace___instance__2___closed__1; lean_object* l_Array_anyRangeMAux___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_353____spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_getParam___at_Lean_getExternAttrData___spec__1(lean_object*, lean_object*, lean_object*); @@ -2897,7 +2897,7 @@ lean_dec(x_2); return x_3; } } -lean_object* l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_mkSimpleFnCall___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2923,9 +2923,9 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = l_Init_Data_Repr___instance__11___rarg___closed__1; x_4 = lean_string_append(x_1, x_3); x_5 = l_List_reprAux___rarg___closed__1; -x_6 = l_List_intersperse___main___rarg(x_5, x_2); +x_6 = l_List_intersperse___rarg(x_5, x_2); x_7 = l_String_splitAux___closed__1; -x_8 = l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1(x_7, x_6); +x_8 = l_List_foldl___at_Lean_mkSimpleFnCall___spec__1(x_7, x_6); lean_dec(x_6); x_9 = lean_string_append(x_4, x_8); lean_dec(x_8); @@ -2934,11 +2934,11 @@ x_11 = lean_string_append(x_9, x_10); return x_11; } } -lean_object* l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_mkSimpleFnCall___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_mkSimpleFnCall___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_mkSimpleFnCall___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Compiler/IR/CompilerM.c b/stage0/stdlib/Lean/Compiler/IR/CompilerM.c index 1919c046ce..fdadbffc3d 100644 --- a/stage0/stdlib/Lean/Compiler/IR/CompilerM.c +++ b/stage0/stdlib/Lean/Compiler/IR/CompilerM.c @@ -148,10 +148,10 @@ lean_object* l_Lean_IR_declMapExt___closed__1; lean_object* l_Std_HashMapImp_contains___at_Lean_IR_containsDecl___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_getDecl_x27_match__1(lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(lean_object*, lean_object*); lean_object* l_Lean_IR_initFn____x40_Lean_Compiler_IR_CompilerM___hyg_335____lambda__2___boxed(lean_object*); lean_object* l_Std_HashMapImp_expand___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__4(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_IR_initFn____x40_Lean_Compiler_IR_CompilerM___hyg_335____spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(lean_object*, lean_object*); lean_object* l_Lean_IR_logDecls(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_initFn____x40_Lean_Compiler_IR_CompilerM___hyg_335____lambda__2(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -1187,7 +1187,7 @@ return x_36; } } } -lean_object* l_List_foldl___main___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1272,7 +1272,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___closed__1; -x_3 = l_List_foldl___main___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(x_2, x_1); +x_3 = l_List_foldl___at___private_Lean_Compiler_IR_CompilerM_0__Lean_IR_mkEntryArray___spec__8(x_2, x_1); x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); x_5 = lean_unsigned_to_nat(0u); diff --git a/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c b/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c index 417d241b7a..a6a12478ec 100644 --- a/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c +++ b/stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c @@ -27,17 +27,17 @@ lean_object* l_Lean_IR_UnreachableBranches_updateVarAssignment(lean_object*, lea lean_object* l_Lean_IR_UnreachableBranches_findArgValue(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___closed__5; -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_getD___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDeadAux_match__1(lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_IR_UnreachableBranches_updateJPParamsAssignment___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___closed__1; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_IR_UnreachableBranches_Value_addChoice_match__1(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_updateJPParamsAssignment___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_format___closed__2; -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_fvarIdToDecl___default___closed__1; extern lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2730____closed__4; @@ -67,7 +67,6 @@ extern lean_object* l_Std_PersistentArrayNode_Std_Data_PersistentArray___instanc 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* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__2___boxed(lean_object*); -lean_object* l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_Value_truncate___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_inferMain___boxed(lean_object*); @@ -80,6 +79,8 @@ 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*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_elimDeadAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_elimDeadAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_format_match__1(lean_object*); @@ -114,16 +115,14 @@ lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_interpExpr___spec lean_object* l_Std_HashMapImp_find_x3f___at_Lean_IR_UnreachableBranches_findVarValue___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_IR_UnreachableBranches_findVarValue___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___at_Lean_IR_UnreachableBranches_interpExpr___spec__3(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12___boxed(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_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_Nat_foldAux___at_Lean_IR_UnreachableBranches_Value_merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_interpExpr_match__1(lean_object*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_Value_truncate___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(lean_object*, uint8_t, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; lean_object* l_Lean_IR_UnreachableBranches_interpExpr_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranches___instance__2___closed__1; @@ -135,6 +134,8 @@ uint8_t l_Lean_IR_UnreachableBranches_Value_beq(lean_object*, lean_object*); lean_object* l_Lean_SMap_switch___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__16(lean_object*); lean_object* l_Lean_IR_formatArray___at_Lean_IR_UnreachableBranches_Value_format___spec__1___boxed(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_addChoice___closed__3; +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension(lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_interpFnBody_match__1(lean_object*); @@ -173,23 +174,22 @@ uint8_t l_Array_isEqvAux___at_Lean_IR_UnreachableBranches_Value_beq___spec__1(le lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__1___boxed(lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_IR_UnreachableBranches_updateVarAssignment___spec__5(lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(lean_object*, uint8_t, lean_object*); lean_object* l_Array_isEqvAux___at_Lean_IR_UnreachableBranches_Value_beq___spec__1___boxed(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_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDeadAux_match__2___rarg(lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_findArgValue___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDead___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_elimDeadAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l_Lean_Lean_Data_Format___instance__10___rarg___closed__1; -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_format___closed__5; @@ -216,12 +216,15 @@ lean_object* l_Lean_IR_UnreachableBranches_interpFnBody_match__1___rarg(lean_obj lean_object* l_Lean_IR_UnreachableBranches_Value_truncate_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_modify___at_Lean_IR_UnreachableBranches_updateCurrFnSummary___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(lean_object*, uint8_t, lean_object*); +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; extern lean_object* l_Lean_Format_sbracket___closed__3; lean_object* l_Lean_IR_UnreachableBranches_updateJPParamsAssignment(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_truncate_match__1(lean_object*); extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; lean_object* l_Std_AssocList_contains___at_Lean_IR_UnreachableBranches_updateVarAssignment___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_updateVarAssignment___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__2(lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l_Lean_IR_UnreachableBranches_InterpContext_lctx___default; @@ -241,7 +244,6 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); lean_object* l_Std_HashMapImp_expand___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__8(lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_IR_UnreachableBranches_inferStep___spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -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*); @@ -254,9 +256,9 @@ lean_object* l_Array_forMAux___at___private_Lean_Compiler_IR_ElimDeadBranches_0_ extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_Value_truncate___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___lambda__2___closed__2; extern lean_object* l_Lean_Format_paren___closed__2; -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; lean_object* l_Std_mkHashMap___at_Lean_IR_UnreachableBranches_updateVarAssignment___spec__1(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_projValue_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_IR_ElimDeadBranches_0__Lean_IR_UnreachableBranches_resetNestedJPParams_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -275,6 +277,7 @@ lean_object* l_Lean_IR_UnreachableBranches_elimDead_match__1(lean_object*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_Value_truncate___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_inferMain___rarg(lean_object*, lean_object*); lean_object* l_Lean_IR_elimDeadBranches___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDead(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_interpExpr_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__6(lean_object*, lean_object*); @@ -284,13 +287,11 @@ lean_object* l_Array_umapMAux___at_Lean_IR_elimDeadBranches___spec__2(lean_objec lean_object* l_Lean_IR_UnreachableBranches_inferMain(lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_IR_Lean_Compiler_IR_Basic___instance__14; -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(lean_object*, lean_object*); lean_object* l_Lean_IR_LocalContext_getJPBody(lean_object*, lean_object*); extern lean_object* l_Lean_EnvExtensionInterfaceUnsafe_Lean_Environment___instance__6___closed__2; lean_object* lean_mk_array(lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; lean_object* l_Nat_foldAux___at_Lean_IR_elimDeadBranches___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(lean_object*, uint8_t, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_ppGoal___spec__7___closed__1; lean_object* l_Std_HashMapImp_insert___at_Lean_IR_UnreachableBranches_updateVarAssignment___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_resetVarAssignment___boxed(lean_object*, lean_object*, lean_object*); @@ -298,13 +299,11 @@ 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*); lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_Value_truncate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lean_Data_Format___instance__20___closed__1; -lean_object* l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12___boxed(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__1(lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); extern lean_object* l_Lean_List_format___rarg___closed__3; lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___elambda__1(lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___lambda__1(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDeadAux___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_Value_addChoice___closed__4; lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -332,7 +331,9 @@ lean_object* lean_usize_to_nat(size_t); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_functionSummariesExt___closed__4; lean_object* l_Lean_IR_FnBody_body(lean_object*); +lean_object* l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__12(lean_object*); +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__13___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_interpExpr_match__2(lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_IR_UnreachableBranches_getFunctionSummary_x3f___spec__3(lean_object*, size_t, lean_object*); @@ -349,11 +350,10 @@ lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranch lean_object* l_Lean_IR_UnreachableBranches_findVarValue___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_replace___at_Lean_IR_UnreachableBranches_updateVarAssignment___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_elimDead_match__1___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___closed__2; lean_object* l_Lean_IR_UnreachableBranches_Value_Lean_Compiler_IR_ElimDeadBranches___instance__1; lean_object* l_Array_umapMAux___at_Lean_IR_UnreachableBranches_interpExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(lean_object*, uint8_t, 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_Lean_registerSimplePersistentEnvExtension___at_Lean_IR_UnreachableBranches_mkFunctionSummariesExtension___spec__17(lean_object*, lean_object*); @@ -524,7 +524,7 @@ goto _start; } } } -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -536,7 +536,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_1, x_2, x_5); x_7 = l_Lean_IR_UnreachableBranches_Value_beq(x_1, x_4); if (x_7 == 0) { @@ -551,7 +551,7 @@ return x_8; } } } -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -563,9 +563,9 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_1, x_2, x_5); x_7 = 0; -x_8 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_4, x_7, x_1); +x_8 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_4, x_7, x_1); if (x_8 == 0) { uint8_t x_9; @@ -579,7 +579,7 @@ return x_6; } } } -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -591,7 +591,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_1, x_2, x_5); x_7 = l_Lean_IR_UnreachableBranches_Value_beq(x_4, x_1); if (x_7 == 0) { @@ -606,7 +606,7 @@ return x_8; } } } -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -618,9 +618,9 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_1, x_2, x_5); x_7 = 0; -x_8 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_4, x_7, x_1); +x_8 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_4, x_7, x_1); if (x_8 == 0) { uint8_t x_9; @@ -722,7 +722,7 @@ lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_20 = lean_ctor_get(x_1, 0); x_21 = lean_ctor_get(x_2, 0); x_22 = 1; -x_23 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_21, x_22, x_20); +x_23 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_21, x_22, x_20); if (x_23 == 0) { uint8_t x_24; @@ -732,7 +732,7 @@ return x_24; else { uint8_t x_25; -x_25 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_20, x_22, x_21); +x_25 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_20, x_22, x_21); return x_25; } } @@ -759,52 +759,52 @@ x_8 = lean_box(x_7); return x_8; } } -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__2(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__3(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__4(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_UnreachableBranches_Value_beq___spec__5(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -1246,7 +1246,7 @@ return x_5; } } } -static lean_object* _init_l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1() { +static lean_object* _init_l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1() { _start: { lean_object* x_1; @@ -1254,7 +1254,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_IR_UnreachableBranches_Value_merge), 2, return x_1; } } -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1269,7 +1269,7 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); lean_dec(x_2); -x_5 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; +x_5 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; x_6 = l_Lean_IR_UnreachableBranches_Value_addChoice(x_5, x_1, x_3); x_1 = x_6; x_2 = x_4; @@ -1392,7 +1392,7 @@ if (x_24 == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; x_25 = lean_ctor_get(x_2, 0); -x_26 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; +x_26 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; x_27 = l_Lean_IR_UnreachableBranches_Value_addChoice(x_26, x_25, x_1); lean_ctor_set(x_2, 0, x_27); return x_2; @@ -1403,7 +1403,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_28 = lean_ctor_get(x_2, 0); lean_inc(x_28); lean_dec(x_2); -x_29 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; +x_29 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; x_30 = l_Lean_IR_UnreachableBranches_Value_addChoice(x_29, x_28, x_1); x_31 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_31, 0, x_30); @@ -1434,7 +1434,7 @@ if (x_33 == 0) { lean_object* x_34; lean_object* x_35; lean_object* x_36; x_34 = lean_ctor_get(x_1, 0); -x_35 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; +x_35 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; x_36 = l_Lean_IR_UnreachableBranches_Value_addChoice(x_35, x_34, x_2); lean_ctor_set(x_1, 0, x_36); return x_1; @@ -1445,7 +1445,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_1, 0); lean_inc(x_37); lean_dec(x_1); -x_38 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; +x_38 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1; x_39 = l_Lean_IR_UnreachableBranches_Value_addChoice(x_38, x_37, x_2); x_40 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_40, 0, x_39); @@ -1463,7 +1463,7 @@ if (x_42 == 0) { lean_object* x_43; lean_object* x_44; x_43 = lean_ctor_get(x_2, 0); -x_44 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(x_43, x_41); +x_44 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(x_43, x_41); lean_ctor_set(x_2, 0, x_44); return x_2; } @@ -1473,7 +1473,7 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47; x_45 = lean_ctor_get(x_2, 0); lean_inc(x_45); lean_dec(x_2); -x_46 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(x_45, x_41); +x_46 = l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2(x_45, x_41); x_47 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_47, 0, x_46); return x_47; @@ -2341,7 +2341,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2364,7 +2364,7 @@ x_7 = lean_ctor_get(x_3, 1); lean_inc(x_2); lean_inc(x_1); x_8 = l_Lean_IR_UnreachableBranches_Value_truncate(x_1, x_6, x_2); -x_9 = l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -2380,7 +2380,7 @@ lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); x_12 = l_Lean_IR_UnreachableBranches_Value_truncate(x_1, x_10, x_2); -x_13 = l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -2389,7 +2389,7 @@ return x_14; } } } -uint8_t l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2789,9 +2789,9 @@ if (x_119 == 0) { lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; x_120 = lean_ctor_get(x_2, 0); -x_121 = l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_3, x_120); +x_121 = l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_3, x_120); x_122 = lean_box(1); -x_123 = l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_122, x_121); +x_123 = l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_122, x_121); if (x_123 == 0) { lean_ctor_set(x_2, 0, x_121); @@ -2812,9 +2812,9 @@ lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; x_125 = lean_ctor_get(x_2, 0); lean_inc(x_125); lean_dec(x_2); -x_126 = l_List_map___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_3, x_125); +x_126 = l_List_map___at_Lean_IR_UnreachableBranches_Value_truncate___spec__11(x_1, x_3, x_125); x_127 = lean_box(1); -x_128 = l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_127, x_126); +x_128 = l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_127, x_126); if (x_128 == 0) { lean_object* x_129; @@ -2840,11 +2840,11 @@ return x_2; } } } -lean_object* l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_1, x_2); +x_3 = l_List_elem___at_Lean_IR_UnreachableBranches_Value_truncate___spec__12(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -5581,7 +5581,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_IR_UnreachableBranches_projValue_match__ return x_2; } } -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5618,7 +5618,7 @@ case 3: lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_1, 0); x_7 = lean_box(0); -x_8 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1(x_2, x_7, x_6); +x_8 = l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1(x_2, x_7, x_6); return x_8; } default: @@ -5629,11 +5629,11 @@ return x_1; } } } -lean_object* l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_foldl___main___at_Lean_IR_UnreachableBranches_projValue___spec__1(x_1, x_2, x_3); +x_4 = l_List_foldl___at_Lean_IR_UnreachableBranches_projValue___spec__1(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_1); return x_4; @@ -6195,7 +6195,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_IR_UnreachableBranches_containsCtor_matc return x_2; } } -uint8_t l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -6207,7 +6207,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_1, x_2, x_5); x_7 = l_Lean_IR_UnreachableBranches_containsCtor(x_4, x_1); if (x_7 == 0) { @@ -6250,19 +6250,19 @@ default: lean_object* x_7; uint8_t x_8; uint8_t x_9; x_7 = lean_ctor_get(x_1, 0); x_8 = 0; -x_9 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_2, x_8, x_7); +x_9 = l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_2, x_8, x_7); return x_9; } } } } -lean_object* l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_UnreachableBranches_containsCtor___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -9054,8 +9054,8 @@ l_Lean_IR_UnreachableBranches_Value_addChoice___closed__3 = _init_l_Lean_IR_Unre lean_mark_persistent(l_Lean_IR_UnreachableBranches_Value_addChoice___closed__3); l_Lean_IR_UnreachableBranches_Value_addChoice___closed__4 = _init_l_Lean_IR_UnreachableBranches_Value_addChoice___closed__4(); lean_mark_persistent(l_Lean_IR_UnreachableBranches_Value_addChoice___closed__4); -l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1 = _init_l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1(); -lean_mark_persistent(l_List_foldl___main___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1); +l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1 = _init_l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1(); +lean_mark_persistent(l_List_foldl___at_Lean_IR_UnreachableBranches_Value_merge___spec__2___closed__1); l_Lean_IR_UnreachableBranches_Value_format___closed__1 = _init_l_Lean_IR_UnreachableBranches_Value_format___closed__1(); lean_mark_persistent(l_Lean_IR_UnreachableBranches_Value_format___closed__1); l_Lean_IR_UnreachableBranches_Value_format___closed__2 = _init_l_Lean_IR_UnreachableBranches_Value_format___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/IR/EmitC.c b/stage0/stdlib/Lean/Compiler/IR/EmitC.c index 3c97ee6709..e52ae07b71 100644 --- a/stage0/stdlib/Lean/Compiler/IR/EmitC.c +++ b/stage0/stdlib/Lean/Compiler/IR/EmitC.c @@ -50,6 +50,7 @@ lean_object* l_Lean_IR_EmitC_emitFileHeader___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitDeclAux___lambda__1___closed__1; lean_object* l_Lean_IR_EmitC_emitDel___closed__1; lean_object* l_Lean_IR_EmitC_emit(lean_object*); +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_IR_EmitC_emitInitFn___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__17; lean_object* l_Lean_IR_EmitC_emitDeclAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -62,6 +63,7 @@ lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__4___closed__2; lean_object* l_Lean_IR_EmitC_emitInitFn___closed__10; lean_object* l_Lean_IR_EmitC_declareVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitCase___closed__2; +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__11; lean_object* l_Nat_anyAux___at_Lean_IR_EmitC_overwriteParam___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitFnDeclAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -71,7 +73,6 @@ lean_object* l_Lean_IR_EmitC_emitFnDeclAux(lean_object*, lean_object*, uint8_t, lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitFnDeclAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___closed__2; lean_object* l_Lean_IR_EmitC_emitCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Nat_foldM_loop___at_Lean_IR_EmitC_emitSimpleExternalCall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitAllocCtor___boxed(lean_object*, lean_object*, lean_object*); @@ -122,7 +123,6 @@ lean_object* l_Lean_IR_EmitC_emitFullApp_match__1(lean_object*); extern lean_object* l_Lean_closureMaxArgs; uint8_t l_Lean_IR_IRType_isIrrelevant(lean_object*); lean_object* l_Lean_IR_EmitC_emitMarkPersistent(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_IR_EmitC_toStringArgs___spec__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitApp___closed__3; @@ -245,7 +245,6 @@ lean_object* l_Lean_IR_EmitC_emitTailCall___lambda__2___boxed(lean_object*, lean extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__28; lean_object* l_Lean_IR_EmitC_emitTag___closed__1; lean_object* l_Lean_IR_EmitC_emitTailCall(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitUProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitDeclAux_match__2(lean_object*); @@ -276,6 +275,7 @@ lean_object* l_Lean_IR_EmitC_emitSimpleExternalCall___boxed(lean_object*, lean_o lean_object* l_Lean_IR_EmitC_emitBoxFn___closed__4; lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__3___closed__2; lean_object* l_Lean_IR_EmitC_emitJmp(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_IR_EmitC_toStringArgs___spec__1(lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__1___closed__6; lean_object* l_List_forM___at_Lean_IR_EmitC_emitMainFn___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitDeclAux___lambda__3___closed__1; @@ -297,7 +297,6 @@ extern lean_object* l___private_Init_Util_0__mkPanicMessage___closed__2; lean_object* l_Lean_IR_EmitC_emitPartialApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitBox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_IR_EmitC_emitLns___spec__1(lean_object*); -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_toCName___closed__1; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_IR_EmitC_toCType___closed__8; @@ -381,12 +380,14 @@ lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__7; lean_object* l_Array_forMAux___at_Lean_IR_EmitC_emitInitFn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_toCInitName_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitUProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitCInitName___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_IR_EmitC_emitReuse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_IR_EmitC_emitFnBody(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t, lean_object*); lean_object* l_Lean_IR_ensureHasDefault(lean_object*); lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitUProj___closed__1; @@ -410,8 +411,8 @@ extern lean_object* l_Char_quoteCore___closed__3; lean_object* l_Lean_IR_EmitC_emitUSet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitFnDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_declareParams(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__2; -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitReset___closed__2; lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__1___closed__3; lean_object* l_Lean_IR_EmitC_emitAllocCtor(lean_object*, lean_object*, lean_object*); @@ -647,7 +648,6 @@ lean_object* l_Lean_IR_EmitC_emitSProj___lambda__1___boxed(lean_object*, lean_ob lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitPartialApp___spec__1___closed__1; lean_object* l_Lean_IR_EmitC_emitIsTaggedPtr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitCtorSetArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitDeclAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_getDecl(lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_IR_EmitC_leanMainFn___closed__1() { @@ -2696,7 +2696,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_IR_EmitC_emitFnDecls_match__1___rarg), 3 return x_2; } } -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2717,7 +2717,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2974,9 +2974,9 @@ lean_dec(x_3); x_6 = l_Lean_IR_declMapExt; x_7 = l_Lean_SimplePersistentEnvExtension_getEntries___rarg(x_6, x_4); x_8 = l_Lean_NameSet_empty; -x_9 = l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1(x_8, x_7); +x_9 = l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1(x_8, x_7); lean_inc(x_4); -x_10 = l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__2(x_4, x_8, x_7); +x_10 = l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__2(x_4, x_8, x_7); x_11 = l_Std_RBTree_toList___at_Lean_IR_usesModuleFrom___spec__1(x_10); lean_dec(x_10); x_12 = l_List_forM___at_Lean_IR_EmitC_emitFnDecls___spec__3(x_4, x_9, x_11, x_1, x_5); @@ -2985,11 +2985,11 @@ lean_dec(x_4); return x_12; } } -lean_object* l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_IR_EmitC_emitFnDecls___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_IR_EmitC_emitFnDecls___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -3900,7 +3900,7 @@ lean_dec(x_1); return x_3; } } -uint8_t l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3912,7 +3912,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(x_1, x_4); +x_5 = l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(x_1, x_4); x_6 = l_Lean_IR_Decl_name(x_3); x_7 = l_Lean_isExport___closed__2; x_8 = lean_name_eq(x_6, x_7); @@ -3944,7 +3944,7 @@ x_6 = l_Lean_IR_declMapExt; x_7 = l_Lean_SimplePersistentEnvExtension_getEntries___rarg(x_6, x_5); lean_dec(x_5); x_8 = 0; -x_9 = l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(x_8, x_7); +x_9 = l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(x_8, x_7); lean_dec(x_7); x_10 = lean_box(x_9); lean_ctor_set(x_3, 0, x_10); @@ -3962,7 +3962,7 @@ x_13 = l_Lean_IR_declMapExt; x_14 = l_Lean_SimplePersistentEnvExtension_getEntries___rarg(x_13, x_11); lean_dec(x_11); x_15 = 0; -x_16 = l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(x_15, x_14); +x_16 = l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(x_15, x_14); lean_dec(x_14); x_17 = lean_box(x_16); x_18 = lean_alloc_ctor(0, 2, 0); @@ -3972,13 +3972,13 @@ return x_18; } } } -lean_object* l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_IR_EmitC_hasMainFn___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7545,7 +7545,7 @@ lean_dec(x_2); return x_8; } } -lean_object* l_List_map___main___at_Lean_IR_EmitC_toStringArgs___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_IR_EmitC_toStringArgs___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7564,7 +7564,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_IR_EmitC_argToCString(x_4); -x_7 = l_List_map___main___at_Lean_IR_EmitC_toStringArgs___spec__1(x_5); +x_7 = l_List_map___at_Lean_IR_EmitC_toStringArgs___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -7578,7 +7578,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_IR_EmitC_argToCString(x_8); -x_11 = l_List_map___main___at_Lean_IR_EmitC_toStringArgs___spec__1(x_9); +x_11 = l_List_map___at_Lean_IR_EmitC_toStringArgs___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -7592,7 +7592,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Array_toList___rarg(x_1); -x_3 = l_List_map___main___at_Lean_IR_EmitC_toStringArgs___spec__1(x_2); +x_3 = l_List_map___at_Lean_IR_EmitC_toStringArgs___spec__1(x_2); return x_3; } } diff --git a/stage0/stdlib/Lean/Compiler/IR/EmitUtil.c b/stage0/stdlib/Lean/Compiler/IR/EmitUtil.c index b87a720638..ed37a8b370 100644 --- a/stage0/stdlib/Lean/Compiler/IR/EmitUtil.c +++ b/stage0/stdlib/Lean/Compiler/IR/EmitUtil.c @@ -31,7 +31,6 @@ lean_object* l_Lean_IR_collectUsedDecls(lean_object*, lean_object*, lean_object* lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_IR_CollectUsedDecls_collectInitDecl_match__1(lean_object*); -lean_object* l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); lean_object* l_Lean_IR_CollectUsedDecls_collectFnBody(lean_object*, lean_object*, lean_object*); @@ -39,6 +38,7 @@ lean_object* l_Lean_IR_CollectUsedDecls_collectInitDecl_match__1___rarg(lean_obj lean_object* l_Std_AssocList_foldlM___at_Lean_IR_CollectMaps_collectVar___spec__5(lean_object*, lean_object*); lean_object* l_Lean_IR_mkVarJPMaps___closed__1; uint8_t l_Lean_IR_isTailCallTo(lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_IR_isTailCallTo_match__1(lean_object*); lean_object* l_Lean_IR_CollectMaps_collectFnBody_match__1(lean_object*); lean_object* l_Lean_IR_CollectMaps_collectParams(lean_object*, lean_object*); @@ -60,10 +60,10 @@ lean_object* l_Array_iterateMAux___at_Lean_IR_CollectMaps_collectParams___spec__ lean_object* l_Std_HashMapImp_insert___at_Lean_IR_CollectMaps_collectJP___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_expand___at_Lean_IR_CollectMaps_collectVar___spec__3(lean_object*, lean_object*); lean_object* l_Lean_IR_CollectUsedDecls_collect(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_IR_CollectMaps_collectFnBody___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -uint8_t l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3(lean_object*, uint8_t, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_IR_CollectMaps_collectFnBody___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_revFold___at_Lean_IR_usesModuleFrom___spec__2(lean_object*, lean_object*); uint8_t l_Std_AssocList_contains___at_Lean_IR_CollectMaps_collectVar___spec__2(lean_object*, lean_object*); @@ -294,7 +294,7 @@ x_3 = l_Std_RBNode_revFold___at_Lean_IR_usesModuleFrom___spec__2(x_2, x_1); return x_3; } } -uint8_t l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -306,7 +306,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3(x_1, x_2, x_5); x_7 = l_Lean_Name_isPrefixOf(x_1, x_4); if (x_7 == 0) { @@ -329,7 +329,7 @@ x_3 = l_Lean_Environment_allImportedModuleNames(x_1); x_4 = l_Std_RBTree_toList___at_Lean_IR_usesModuleFrom___spec__1(x_3); lean_dec(x_3); x_5 = 0; -x_6 = l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3(x_2, x_5, x_4); +x_6 = l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3(x_2, x_5, x_4); lean_dec(x_4); return x_6; } @@ -352,13 +352,13 @@ lean_dec(x_1); return x_2; } } -lean_object* l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_IR_usesModuleFrom___spec__3(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_IR_usesModuleFrom___spec__3(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); diff --git a/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c b/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c index a3b574603e..e0e97f070e 100644 --- a/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c +++ b/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c @@ -29,7 +29,6 @@ lean_object* l_Lean_setEnv___rarg(lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__8(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; -lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____lambda__1___closed__5; @@ -42,6 +41,7 @@ lean_object* l_Lean_setImplementedBy_match__1(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_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____lambda__1___closed__7; lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,6 +61,7 @@ lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg lean_object* l_Lean_registerParametricAttribute___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__6___lambda__1___boxed(lean_object*); lean_object* l_Lean_setImplementedBy_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__10(lean_object*, lean_object*); lean_object* l_Lean_setImplementedBy(lean_object*); @@ -78,6 +79,7 @@ lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_attrParamSyntaxToIdentifier(lean_object*); @@ -96,7 +98,6 @@ lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_String_splitAux___closed__1; lean_object* l_Lean_resolveGlobalName___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; @@ -118,7 +119,6 @@ lean_object* l_Lean_registerParametricAttribute___at_Lean_Compiler_initFn____x40 lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____closed__1; lean_object* l_Lean_getConstInfo___at_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_setImplementedBy___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_ImplementedByAttr___hyg_3____closed__2; extern lean_object* l_System_FilePath_dirName___closed__1; @@ -336,7 +336,7 @@ lean_object* l_Lean_resolveGlobalConst___at_Lean_Compiler_initFn____x40_Lean_Com _start: { lean_object* x_7; lean_object* x_8; -x_7 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_7 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); @@ -356,7 +356,7 @@ x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); x_9 = lean_box(0); -x_10 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_7, x_9); +x_10 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_7, x_9); x_11 = l_List_isEmpty___rarg(x_10); if (x_11 == 0) { @@ -421,7 +421,7 @@ x_13 = lean_string_append(x_12, x_11); lean_dec(x_11); x_14 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_15 = lean_string_append(x_13, x_14); -x_16 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_9, x_7); +x_16 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_9, x_7); x_17 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_16); x_18 = lean_string_append(x_15, x_17); lean_dec(x_17); @@ -488,7 +488,7 @@ x_36 = lean_string_append(x_35, x_34); lean_dec(x_34); x_37 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_38 = lean_string_append(x_36, x_37); -x_39 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_32, x_7); +x_39 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_32, x_7); x_40 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_39); x_41 = lean_string_append(x_38, x_40); lean_dec(x_40); diff --git a/stage0/stdlib/Lean/Compiler/InitAttr.c b/stage0/stdlib/Lean/Compiler/InitAttr.c index 4dc6743684..8397f93235 100644 --- a/stage0/stdlib/Lean/Compiler/InitAttr.c +++ b/stage0/stdlib/Lean/Compiler/InitAttr.c @@ -33,7 +33,6 @@ uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* l_Lean_registerInitAttrUnsafe___lambda__1___closed__13; lean_object* l_Array_forInUnsafe_loop___at_Lean_registerInitAttrUnsafe___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; -lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); uint8_t lean_is_io_unit_regular_init_fn(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); @@ -49,6 +48,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_registerInitAttr(lean_object*, uint8_t); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_registerInitAttrUnsafe___lambda__1___closed__6; lean_object* l_Lean_registerInitAttrUnsafe___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isIOUnitInitFnCore_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -71,6 +71,7 @@ lean_object* l_Lean_registerInitAttrUnsafe___lambda__1___closed__12; lean_object* l_Array_forInUnsafe_loop___at_Lean_registerInitAttrUnsafe___spec__8___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* lean_get_init_fn_name_for(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_registerInitAttrUnsafe___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isIOUnitInitFnCore(lean_object*, lean_object*, lean_object*); @@ -102,6 +103,7 @@ lean_object* l_Lean_registerInitAttrUnsafe___closed__1; lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_522____closed__2; lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_hasInitAttr___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_registerInitAttrUnsafe___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_522____closed__1; lean_object* lean_get_regular_init_fn_name_for(lean_object*, lean_object*); @@ -139,7 +141,6 @@ lean_object* l_Std_RBNode_fold___at_Lean_registerInitAttrUnsafe___spec__10(lean_ extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_String_splitAux___closed__1; lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_539____closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; @@ -175,7 +176,6 @@ lean_object* l___private_Lean_Compiler_InitAttr_0__Lean_getIOTypeArg(lean_object lean_object* l_Lean_runInit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_registerInitAttrUnsafe___spec__5(lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_registerInitAttrUnsafe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_registerInitAttrUnsafe___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_run_init(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; @@ -887,7 +887,7 @@ lean_object* l_Lean_resolveGlobalConst___at_Lean_registerInitAttrUnsafe___spec__ _start: { lean_object* x_7; lean_object* x_8; -x_7 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_7 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); @@ -907,7 +907,7 @@ x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); x_9 = lean_box(0); -x_10 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_7, x_9); +x_10 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_7, x_9); x_11 = l_List_isEmpty___rarg(x_10); if (x_11 == 0) { @@ -972,7 +972,7 @@ x_13 = lean_string_append(x_12, x_11); lean_dec(x_11); x_14 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_15 = lean_string_append(x_13, x_14); -x_16 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_9, x_7); +x_16 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_9, x_7); x_17 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_16); x_18 = lean_string_append(x_15, x_17); lean_dec(x_17); @@ -1039,7 +1039,7 @@ x_36 = lean_string_append(x_35, x_34); lean_dec(x_34); x_37 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_38 = lean_string_append(x_36, x_37); -x_39 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_32, x_7); +x_39 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_32, x_7); x_40 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_39); x_41 = lean_string_append(x_38, x_40); lean_dec(x_40); diff --git a/stage0/stdlib/Lean/Compiler/InlineAttrs.c b/stage0/stdlib/Lean/Compiler/InlineAttrs.c index b3b990268b..1c3d38f003 100644 --- a/stage0/stdlib/Lean/Compiler/InlineAttrs.c +++ b/stage0/stdlib/Lean/Compiler/InlineAttrs.c @@ -22,11 +22,12 @@ lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAtt lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__17; lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__1; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__2; uint8_t lean_has_noinline_attribute(lean_object*, lean_object*); lean_object* l_Lean_EnumAttributes_getValue___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux___spec__1(lean_object*, lean_object*, lean_object*); @@ -60,23 +61,22 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); uint8_t lean_is_eager_lambda_lifting_name(lean_object*); lean_object* l_Lean_Compiler_inlineAttrs; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____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*); extern lean_object* l_Lean_registerTagAttribute___lambda__7___closed__2; uint8_t l_Lean_Compiler_InlineAttributeKind_Lean_Compiler_InlineAttrs___instance__1; lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____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_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__14; lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__5___closed__1; lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__22; -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__3(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Compiler_hasInlineAttribute___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Name_isInternal(lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_hasInlineIfReduceAttribute___boxed(lean_object*, lean_object*); @@ -85,13 +85,12 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_InlineAttributeKind_beq_match__1(lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__25; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__1; lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__16; lean_object* l_Lean_EnumAttributes_getValue___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__24; -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__1; lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__10; extern lean_object* l_Lean_registerTagAttribute___lambda__6___closed__2; @@ -103,13 +102,14 @@ uint8_t lean_has_inline_attribute(lean_object*, lean_object*); lean_object* l_Lean_Compiler_InlineAttributeKind_Lean_Compiler_InlineAttrs___instance__2; lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__20; lean_object* l_Lean_Compiler_InlineAttributeKind_Lean_Compiler_InlineAttrs___instance__2___closed__1; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_hasNoInlineAttribute___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Compiler_setInlineAttribute___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__19; uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__2; extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__1; lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____closed__12; @@ -142,8 +142,8 @@ lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54___ lean_object* l_Array_binSearchAux___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_InlineAttributeKind_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__2___closed__2; -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(lean_object*, lean_object*, uint8_t, 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_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___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*); static uint8_t _init_l_Lean_Compiler_InlineAttributeKind_Lean_Compiler_InlineAttrs___instance__1() { _start: { @@ -799,7 +799,7 @@ return x_36; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -856,7 +856,7 @@ return x_21; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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; @@ -875,7 +875,7 @@ if (lean_obj_tag(x_15) == 0) lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_16 = lean_box(0); -x_17 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); +x_17 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); return x_17; } else @@ -921,7 +921,7 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (x_7 == 0) @@ -967,12 +967,12 @@ else { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); +x_23 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); return x_23; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -994,7 +994,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_9 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_2, x_3, x_8); +x_9 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_2, x_3, x_8); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 0); @@ -1010,7 +1010,7 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed), 11, 4); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_3); @@ -1032,7 +1032,7 @@ lean_inc(x_17); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_2, x_3, x_18); +x_19 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_2, x_3, x_18); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 0); @@ -1048,7 +1048,7 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed), 11, 4); +x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed), 11, 4); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_3); @@ -1135,7 +1135,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); lean_inc(x_13); -x_15 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_3, x_4, x_13, x_2); +x_15 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_3, x_4, x_13, x_2); lean_inc(x_15); x_16 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_15, x_14); if (lean_obj_tag(x_16) == 0) @@ -1580,29 +1580,29 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____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* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1610,18 +1610,18 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); +x_14 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_14; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____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 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_54____spec__8(x_1, x_5, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/Compiler/Specialize.c b/stage0/stdlib/Lean/Compiler/Specialize.c index 80a298bd93..ed8d823a4b 100644 --- a/stage0/stdlib/Lean/Compiler/Specialize.c +++ b/stage0/stdlib/Lean/Compiler/Specialize.c @@ -23,7 +23,6 @@ uint8_t l_Array_anyRangeMAux___at_Lean_Compiler_initFn____x40_Lean_Compiler_Spec lean_object* l_Lean_Compiler_hasNospecializeAttribute___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_SpecState_Lean_Compiler_Specialize___instance__3___closed__1; lean_object* l_Array_binSearchAux___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__4(lean_object*, lean_object*); @@ -49,7 +48,6 @@ lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_getSpecializationInfo__ lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____closed__1; lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Compiler_getSpecializationInfo___spec__2(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Compiler_SpecState_addEntry___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Compiler_SpecState_addEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -62,7 +60,9 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Compiler_getSpecializationInfo___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_specializeAttrs; lean_object* l_Lean_Compiler_SpecState_Lean_Compiler_Specialize___instance__3___closed__2; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnumAttributes_getValue___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, 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* l_Std_AssocList_contains___at_Lean_Compiler_SpecState_addEntry___spec__7___boxed(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -113,8 +113,8 @@ lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Compiler_SpecState_addEntry_ lean_object* l_Lean_Compiler_specExtension; lean_object* l_Std_HashMapImp_expand___at_Lean_Compiler_SpecState_addEntry___spec__19(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Compiler_getCachedSpecialization___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -131,7 +131,6 @@ uint8_t l_Lean_Name_isInternal(lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Compiler_SpecState_Lean_Compiler_Specialize___instance__3; lean_object* l_Std_AssocList_replace___at_Lean_Compiler_SpecState_addEntry___spec__22(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Compiler_SpecializeAttributeKind_Lean_Compiler_Specialize___instance__2; @@ -148,7 +147,6 @@ uint8_t l_Std_AssocList_contains___at_Lean_Compiler_SpecState_addEntry___spec__7 size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_Compiler_SpecState_addEntry___spec__12(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__1; -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__1; lean_object* l_Lean_Compiler_SpecState_cache___default___closed__1; lean_object* lean_add_specialization_info(lean_object*, lean_object*, lean_object*); @@ -165,7 +163,6 @@ size_t l_USize_land(size_t, size_t); lean_object* l_Lean_Compiler_SpecializeAttributeKind_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____closed__6; lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____spec__1___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -195,10 +192,12 @@ lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Compiler_getSpecializati extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__1; lean_object* l_Lean_Compiler_SpecializeAttributeKind_beq_match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__2(lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__1___boxed(lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____closed__10; lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux___spec__2___boxed(lean_object*, lean_object*); @@ -206,11 +205,9 @@ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Compiler_getCachedSpecial lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____closed__2; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Compiler_getSpecializationInfo___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Compiler_getSpecializationInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_get_cached_specialization(lean_object*, lean_object*); uint8_t l_Lean_Compiler_SpecializeAttributeKind_beq(uint8_t, uint8_t); -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__1(lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Compiler_SpecState_addEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +222,7 @@ lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Compiler_SpecS lean_object* l_Std_RBNode_fold___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__2(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_getCachedSpecialization___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_SpecState_specInfo___default___closed__2; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____lambda__1___boxed(lean_object*); lean_object* l___private_Lean_Compiler_Specialize_0__Lean_Compiler_hasSpecializeAttrAux_match__1(lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____closed__7; @@ -251,11 +249,13 @@ lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Compiler_init lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____closed__3; lean_object* l_Std_HashMapImp_insert___at_Lean_Compiler_SpecState_addEntry___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____closed__15; +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Compiler_getSpecializationInfo___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__3(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_222____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__1___lambda__2___boxed(lean_object*); lean_object* l_Lean_Compiler_specExtension___elambda__4___rarg(lean_object*); +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_contains___at_Lean_Compiler_SpecState_addEntry___spec__18___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Compiler_getCachedSpecialization___spec__5___boxed(lean_object*, lean_object*); @@ -782,7 +782,7 @@ return x_36; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -839,7 +839,7 @@ return x_21; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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; @@ -858,7 +858,7 @@ if (lean_obj_tag(x_15) == 0) lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_16 = lean_box(0); -x_17 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); +x_17 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); return x_17; } else @@ -904,7 +904,7 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (x_7 == 0) @@ -950,12 +950,12 @@ else { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); +x_23 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); return x_23; } } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -977,7 +977,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_9 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_2, x_3, x_8); +x_9 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_2, x_3, x_8); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 0); @@ -993,7 +993,7 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_3); @@ -1015,7 +1015,7 @@ lean_inc(x_17); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_2, x_3, x_18); +x_19 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_2, x_3, x_18); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 0); @@ -1031,7 +1031,7 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed), 11, 4); +x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_3); @@ -1118,7 +1118,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); lean_inc(x_13); -x_15 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_3, x_4, x_13, x_2); +x_15 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_3, x_4, x_13, x_2); lean_inc(x_15); x_16 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_15, x_14); if (lean_obj_tag(x_16) == 0) @@ -1417,29 +1417,29 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1447,18 +1447,18 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); +x_14 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_14; } } -lean_object* l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Compiler_initFn____x40_Lean_Compiler_Specialize___hyg_48____spec__7(x_1, x_5, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/Compiler/Util.c b/stage0/stdlib/Lean/Compiler/Util.c index 175df070d5..804b950c2a 100644 --- a/stage0/stdlib/Lean/Compiler/Util.c +++ b/stage0/stdlib/Lean/Compiler/Util.c @@ -33,7 +33,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Compiler_neutralExpr___closed__2; lean_object* l_Lean_Compiler_checkIsDefinition___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(lean_object*); lean_object* lean_get_decl_names_for_code_gen(lean_object*); lean_object* l_Lean_Compiler_mkLcProof___closed__1; lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); @@ -62,6 +61,7 @@ lean_object* l_Lean_Compiler_atMostOnce_visitFVar___boxed(lean_object*, lean_obj lean_object* l_Lean_Compiler_atMostOnce_visitFVar___closed__2; lean_object* l___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_checkIsDefinition(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(lean_object*); lean_object* l_Lean_Compiler_voidType___closed__1; lean_object* l_Lean_Compiler_atMostOnce_visitFVar___closed__1; lean_object* l_Lean_Compiler_unreachableExpr; @@ -1341,7 +1341,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Compiler_Util_0__Lean_Compiler return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1368,7 +1368,7 @@ lean_dec(x_7); x_8 = lean_ctor_get(x_4, 0); lean_inc(x_8); lean_dec(x_4); -x_9 = l_List_map___main___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_6); +x_9 = l_List_map___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_6); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -1382,7 +1382,7 @@ lean_dec(x_1); x_11 = lean_ctor_get(x_4, 0); lean_inc(x_11); lean_dec(x_4); -x_12 = l_List_map___main___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_10); +x_12 = l_List_map___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1437,7 +1437,7 @@ lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); lean_dec(x_1); -x_13 = l_List_map___main___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_12); +x_13 = l_List_map___at___private_Lean_Compiler_Util_0__Lean_Compiler_getDeclNamesForCodeGen___spec__1(x_12); return x_13; } default: diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index 21b02ea1d6..5b93939c63 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -49,6 +49,7 @@ lean_object* l_Lean_Core_Lean_CoreM___instance__7___closed__3; lean_object* l_Lean_catchInternalIds___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_catchInternalIds___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__11___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_printTraces___at_Lean_Core_Lean_CoreM___instance__11___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,7 +61,6 @@ lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, le uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_catchInternalIds_match__1___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_catchInternalIds___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__7___lambda__1(lean_object*, lean_object*, lean_object*); @@ -130,7 +130,6 @@ lean_object* l_Lean_catchInternalId___rarg(lean_object*, lean_object*, lean_obje lean_object* l_Array_forMAux___at_Lean_Core_Lean_CoreM___instance__11___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Context_currRecDepth___default; lean_object* l_Lean_Core_liftIOCore(lean_object*); -lean_object* l_List_elem___main___at_Lean_catchInternalIds___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__3___closed__3; lean_object* l_Lean_catchInternalId_match__1(lean_object*); extern lean_object* l_Lean_Unhygienic_run___rarg___closed__1; @@ -145,6 +144,7 @@ lean_object* l_Lean_Core_Lean_CoreM___instance__10___lambda__1(lean_object*, lea lean_object* l_Lean_catchInternalId___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_Lean_CoreM___instance__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_CoreM_toIO_match__1(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_catchInternalIds___spec__1(lean_object*, lean_object*); 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*); extern lean_object* l_Lean_TraceState_Lean_Util_Trace___instance__2___closed__1; @@ -2472,7 +2472,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_catchInternalIds_match__1___rarg), 3, 0) return x_2; } } -uint8_t l_List_elem___main___at_Lean_catchInternalIds___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_catchInternalIds___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2519,7 +2519,7 @@ else lean_object* x_7; uint8_t x_8; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); -x_8 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_7, x_2); +x_8 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_7, x_2); lean_dec(x_7); if (x_8 == 0) { @@ -2563,11 +2563,11 @@ x_4 = lean_alloc_closure((void*)(l_Lean_catchInternalIds___rarg), 4, 0); return x_4; } } -lean_object* l_List_elem___main___at_Lean_catchInternalIds___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_catchInternalIds___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_1, x_2); +x_3 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Data/Format.c b/stage0/stdlib/Lean/Data/Format.c index c8bf9effc4..18bf774e53 100644 --- a/stage0/stdlib/Lean/Data/Format.c +++ b/stage0/stdlib/Lean/Data/Format.c @@ -40,6 +40,7 @@ lean_object* l_Lean_List_format___rarg___closed__1; lean_object* l___private_Lean_Data_Format_0__Lean_Format_be_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__21___closed__1; lean_object* l_Lean_Format_prettyAux___closed__1; +lean_object* l_List_foldl___at_Lean_Format_join___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__11___rarg(lean_object*); extern lean_object* l_Init_Data_Repr___instance__2___closed__2; lean_object* l_Lean_Lean_Data_Format___instance__9(lean_object*); @@ -182,7 +183,6 @@ lean_object* l_Lean_Lean_Data_Format___instance__10___rarg___boxed(lean_object*, lean_object* l_Lean_Format_initFn____x40_Lean_Data_Format___hyg_979____closed__2; lean_object* l_Lean_Format_isNil___boxed(lean_object*); lean_object* l___private_Lean_Data_Format_0__Lean_Format_be___closed__6; -lean_object* l_List_foldl___main___at_Lean_Format_join___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__12_match__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Format_isNil(lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -253,9 +253,9 @@ lean_object* l_Lean_Lean_Data_Format___instance__12(lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__6___rarg(lean_object*); lean_object* lean_uint64_to_nat(uint64_t); +lean_object* l_List_foldl___at_Lean_Format_join___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__22; lean_object* l___private_Lean_Data_Format_0__Lean_Format_spaceUptoLine_x27_match__1(lean_object*); -lean_object* l_List_foldl___main___at_Lean_Format_join___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Format___instance__20___closed__1; lean_object* l_Lean_Option_format_match__1(lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); @@ -474,7 +474,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_List_foldl___main___at_Lean_Format_join___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Format_join___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -511,15 +511,15 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Format_join___closed__1; -x_3 = l_List_foldl___main___at_Lean_Format_join___spec__1(x_2, x_1); +x_3 = l_List_foldl___at_Lean_Format_join___spec__1(x_2, x_1); return x_3; } } -lean_object* l_List_foldl___main___at_Lean_Format_join___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Format_join___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Format_join___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Format_join___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Data/Json/Basic.c b/stage0/stdlib/Lean/Data/Json/Basic.c index 3691b59460..3d6938fba9 100644 --- a/stage0/stdlib/Lean/Data/Json/Basic.c +++ b/stage0/stdlib/Lean/Data/Json/Basic.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_foldr___main___at_Lean_Json_mkObj___spec__3(lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_decEq_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Json_mkObj___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_shiftl(lean_object*, lean_object*); @@ -98,7 +97,6 @@ extern lean_object* l_String_splitAux___closed__1; lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); uint8_t lean_int_dec_le(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_Json_mkObj___spec__3___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Json_getInt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -118,8 +116,10 @@ lean_object* l_Lean_Json_getBool_x3f_match__1___rarg(lean_object*, lean_object*, lean_object* l_Lean_JsonNumber_toString___closed__2; lean_object* l_Lean_JsonNumber_toString_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_get_x3f___rarg(lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_Json_mkObj___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_shiftr_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getArr_x3f(lean_object*); +lean_object* l_List_foldr___at_Lean_Json_mkObj___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Json_Lean_Data_Json_Basic___instance__9(uint8_t); uint8_t l_Lean_JsonNumber_decEq(lean_object*, lean_object*); lean_object* l_Lean_Json_getNum_x3f(lean_object*); @@ -3376,7 +3376,7 @@ return x_7; } } } -lean_object* l_List_foldr___main___at_Lean_Json_mkObj___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_Json_mkObj___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3392,7 +3392,7 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_Json_mkObj___spec__3(x_1, x_4); +x_5 = l_List_foldr___at_Lean_Json_mkObj___spec__3(x_1, x_4); x_6 = lean_ctor_get(x_3, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_3, 1); @@ -3408,17 +3408,17 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_box(0); -x_3 = l_List_foldr___main___at_Lean_Json_mkObj___spec__3(x_2, x_1); +x_3 = l_List_foldr___at_Lean_Json_mkObj___spec__3(x_2, x_1); x_4 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_4, 0, x_3); return x_4; } } -lean_object* l_List_foldr___main___at_Lean_Json_mkObj___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_Json_mkObj___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldr___main___at_Lean_Json_mkObj___spec__3(x_1, x_2); +x_3 = l_List_foldr___at_Lean_Json_mkObj___spec__3(x_1, x_2); lean_dec(x_1); return x_3; } diff --git a/stage0/stdlib/Lean/Data/KVMap.c b/stage0/stdlib/Lean/Data/KVMap.c index 16293c7a83..9527454076 100644 --- a/stage0/stdlib/Lean/Data/KVMap.c +++ b/stage0/stdlib/Lean/Data/KVMap.c @@ -71,7 +71,6 @@ lean_object* l_Lean_DataValue_getBoolEx___boxed(lean_object*); uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_KVMap_Lean_Data_KVMap___instance__15; lean_object* l_Lean_KVMap_eqv___boxed(lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_KVMap_getInt_match__1(lean_object*); lean_object* l_Lean_KVMap_find___boxed(lean_object*, lean_object*); lean_object* l_Lean_KVMap_getName___boxed(lean_object*, lean_object*, lean_object*); @@ -141,6 +140,7 @@ uint8_t l_Lean_KVMap_subsetAux(lean_object*, lean_object*); uint8_t l_Lean_KVMap_eqv(lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_KVMap_Lean_Data_KVMap___instance__12___closed__1; lean_object* l_Lean_KVMap_getBool_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_KVMap___instance__4(uint8_t); @@ -1111,7 +1111,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_List_lengthAux___main___rarg(x_1, x_2); +x_3 = l_List_lengthAux___rarg(x_1, x_2); return x_3; } } diff --git a/stage0/stdlib/Lean/Data/Lsp/Communication.c b/stage0/stdlib/Lean/Data/Lsp/Communication.c index 1a63356bb7..c6459babed 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Communication.c +++ b/stage0/stdlib/Lean/Data/Lsp/Communication.c @@ -14,7 +14,6 @@ extern "C" { #endif lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_Lean_Data_JsonRpc___instance__7___spec__2(lean_object*, lean_object*); -lean_object* l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__2___closed__8; extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__2___closed__44; extern lean_object* l_List_repr___rarg___closed__1; @@ -48,6 +47,7 @@ extern lean_object* l_Init_Data_Repr___instance__7___rarg___closed__2; lean_object* l_Lean_Json_compress(lean_object*); lean_object* l_Lean_Lsp_writeLspNotification___rarg___closed__2; extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__2___closed__32; +lean_object* l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__2___closed__24; lean_object* l_Lean_Lsp_writeLspNotification___rarg___closed__1; extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__7___closed__13; @@ -57,13 +57,13 @@ extern lean_object* l_List_repr___rarg___closed__2; extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__2___closed__28; lean_object* l___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_parseHeaderField_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_readLspRequestAs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_Lean_Data_JsonRpc___instance__7___closed__6; lean_object* l_Lean_Lsp_writeLspNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_dropRight(lean_object*, lean_object*); lean_object* l_Lean_Lsp_writeLspNotification(lean_object*); lean_object* l_Lean_Lsp_readLspNotificationAs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___closed__2; lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_Lean_Data_JsonRpc___instance__7___spec__1(lean_object*, lean_object*); @@ -597,7 +597,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Communication_0__Lean return x_2; } } -lean_object* l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -791,7 +791,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___closed__1; -x_7 = l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_6, x_5); +x_7 = l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_6, x_5); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -848,7 +848,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_3); x_22 = l___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___closed__1; -x_23 = l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_22, x_20); +x_23 = l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_22, x_20); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -925,11 +925,11 @@ return x_42; } } } -lean_object* l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_lookup___main___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_1, x_2); +x_3 = l_List_lookup___at___private_Lean_Data_Lsp_Communication_0__Lean_Lsp_readLspHeader___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; diff --git a/stage0/stdlib/Lean/Data/Name.c b/stage0/stdlib/Lean/Data/Name.c index 5ab6195726..2baf23bcbf 100644 --- a/stage0/stdlib/Lean/Data/Name.c +++ b/stage0/stdlib/Lean/Data/Name.c @@ -30,10 +30,10 @@ uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* l_Lean_Name_isInternal___boxed(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Name_getString_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Name_isPrefixOf_match__1(lean_object*); lean_object* l_Lean_NameSet_Lean_Data_Name___instance__6; lean_object* l_Std_RBNode_ins___at_Lean_NameMap_insert___spec__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_NameHashSet_insert___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_quickLt___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -46,6 +46,7 @@ lean_object* lean_array_get_size(lean_object*); uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); lean_object* l_Lean_NameHashSet_Lean_Data_Name___instance__8; lean_object* l_Std_HashSetImp_moveEntries___at_Lean_NameHashSet_insert___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_String_toName___spec__1(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Name_lt___boxed(lean_object*, lean_object*); lean_object* l_String_splitOn(lean_object*, lean_object*); @@ -55,6 +56,7 @@ lean_object* l_Lean_Name_isStr___boxed(lean_object*); uint8_t l_USize_decLt(size_t, size_t); uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_NameHashSet_insert___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Name_lt_match__1(lean_object*); lean_object* l_Lean_Name_isInternal_match__1(lean_object*); lean_object* l_Lean_Name_lt_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,6 +87,7 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isInternal(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_NameSet_contains___spec__1(lean_object*, lean_object*); lean_object* l_Lean_NameMap_insert(lean_object*); +lean_object* l_List_foldl___at_String_toName___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Name_eqStr___boxed(lean_object*, lean_object*); @@ -92,6 +95,7 @@ lean_object* l_Lean_Name_replacePrefix_match__1___rarg(lean_object*, lean_object lean_object* l_Lean_Name_quickLtAux_match__1(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_NameMap_contains___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_NameHashSet_insert___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_isAnonymous_match__1(lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); lean_object* l_Lean_NameHashSet_empty___closed__1; @@ -104,9 +108,9 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l_Lean_NameMap_find_x3f(lean_object*); lean_object* l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(lean_object*, lean_object*); lean_object* l_Lean_NameSet_empty; -lean_object* l_List_elem___main___at_Lean_NameHashSet_insert___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_NameHashSet_insert___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1(lean_object*); -lean_object* l_List_foldl___main___at_String_toName___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_NameMap_contains___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_quickLtAux___boxed(lean_object*, lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); @@ -133,7 +137,6 @@ lean_object* l_Lean_Name_quickLtAux_match__1___rarg(lean_object*, lean_object*, lean_object* l_Lean_Name_isSuffixOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_replacePrefix___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_Data_Name___instance__1___closed__1; -lean_object* l_List_foldl___main___at_String_toName___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_NameMap_insert___spec__2(lean_object*); lean_object* l_Lean_Name_isSuffixOf___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_NameMap_contains___spec__1___rarg(lean_object*, lean_object*); @@ -147,7 +150,6 @@ lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Name_getString_x21___closed__2; lean_object* l_Lean_Name_isSuffixOf_match__1(lean_object*); lean_object* l_Lean_Name_components_x27_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_NameHashSet_insert___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Name_getString_x21___closed__1; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Name_getString_x21___boxed(lean_object*); @@ -159,7 +161,6 @@ lean_object* l_Lean_Name_isPrefixOf___boxed(lean_object*, lean_object*); lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_NameMap_find_x3f___spec__1(lean_object*); -lean_object* l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_NameSet_insert___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getString_x21_match__1(lean_object*); lean_object* l_Lean_NameMap_Lean_Data_Name___instance__4(lean_object*); @@ -173,7 +174,6 @@ lean_object* l_Lean_Name_getRoot(lean_object*); lean_object* l_Lean_Name_isAtomic_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_Init_Data_String_Basic___instance__3; lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_NameHashSet_insert___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_components(lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_Name_isPrefixOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -10090,7 +10090,7 @@ x_1 = l_Std_HashSet_Std_Data_HashSet___instance__1___closed__1; return x_1; } } -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10119,7 +10119,7 @@ return x_8; } } } -lean_object* l_List_foldl___main___at_Lean_NameHashSet_insert___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_NameHashSet_insert___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10189,7 +10189,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Lean_NameHashSet_insert___spec__5(x_3, x_6); +x_9 = l_List_foldl___at_Lean_NameHashSet_insert___spec__5(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -10218,64 +10218,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_NameHashSet_insert___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_name_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_NameHashSet_insert___spec__6(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_name_eq(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_name_eq(x_9, x_2); -if (x_11 == 0) +x_12 = lean_name_eq(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_NameHashSet_insert___spec__6(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -10295,7 +10297,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Name_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -10327,7 +10329,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(x_9, x_2, x_2); +x_17 = l_List_replace___at_Lean_NameHashSet_insert___spec__6(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -10346,7 +10348,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Name_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -10379,7 +10381,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(x_24, x_2, x_2); +x_33 = l_List_replace___at_Lean_NameHashSet_insert___spec__6(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -10398,22 +10400,22 @@ x_3 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_1, x_2); return x_3; } } -lean_object* l_List_elem___main___at_Lean_NameHashSet_insert___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_NameHashSet_insert___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Lean_NameHashSet_insert___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_NameHashSet_insert___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Lean_NameHashSet_insert___spec__6(x_1, x_2, x_3); +x_4 = l_List_replace___at_Lean_NameHashSet_insert___spec__6(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -10428,7 +10430,7 @@ x_5 = l_Lean_Name_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_2, x_7); +x_8 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } @@ -10463,7 +10465,7 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_foldl___main___at_String_toName___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_String_toName___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10490,16 +10492,16 @@ lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_System_FilePath_dirName___closed__1; x_3 = l_String_splitOn(x_1, x_2); x_4 = lean_box(0); -x_5 = l_List_foldl___main___at_String_toName___spec__1(x_4, x_3); +x_5 = l_List_foldl___at_String_toName___spec__1(x_4, x_3); lean_dec(x_3); return x_5; } } -lean_object* l_List_foldl___main___at_String_toName___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_String_toName___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_String_toName___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_String_toName___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Data/Occurrences.c b/stage0/stdlib/Lean/Data/Occurrences.c index 5f759ffabb..389120945a 100644 --- a/stage0/stdlib/Lean/Data/Occurrences.c +++ b/stage0/stdlib/Lean/Data/Occurrences.c @@ -14,24 +14,24 @@ extern "C" { #endif lean_object* l_Lean_Occurrences_beq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_beq___at_Lean_Occurrences_beq___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Occurrences_isAll_match__1(lean_object*); lean_object* l_Lean_Occurrences_contains___boxed(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_Occurrences_contains___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Occurrences_contains_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Occurrences_beq_match__1(lean_object*); -uint8_t l_List_elem___main___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Occurrences_beq(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t l_Lean_Occurrences_contains(lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_Occurrences_beq___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Occurrences_Lean_Data_Occurrences___instance__2; lean_object* l_Lean_Occurrences_beq___boxed(lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_Occurrences_contains___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); +lean_object* l_List_beq___at_Lean_Occurrences_beq___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Occurrences_Lean_Data_Occurrences___instance__2___closed__1; lean_object* l_Lean_Occurrences_contains_match__1(lean_object*); lean_object* l_Lean_Occurrences_isAll_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Occurrences_isAll___boxed(lean_object*); uint8_t l_Lean_Occurrences_isAll(lean_object*); -lean_object* l_List_beq___main___at_Lean_Occurrences_beq___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Occurrences_Lean_Data_Occurrences___instance__1; static lean_object* _init_l_Lean_Occurrences_Lean_Data_Occurrences___instance__1() { _start: @@ -86,7 +86,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Occurrences_contains_match__1___rarg), 5 return x_2; } } -uint8_t l_List_elem___main___at_Lean_Occurrences_contains___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -129,14 +129,14 @@ case 1: { lean_object* x_4; uint8_t x_5; x_4 = lean_ctor_get(x_1, 0); -x_5 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_2, x_4); +x_5 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_2, x_4); return x_5; } default: { lean_object* x_6; uint8_t x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_2, x_6); +x_7 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_2, x_6); if (x_7 == 0) { uint8_t x_8; @@ -153,11 +153,11 @@ return x_9; } } } -lean_object* l_List_elem___main___at_Lean_Occurrences_contains___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_Occurrences_contains___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_1, x_2); +x_3 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -315,7 +315,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Occurrences_beq_match__1___rarg), 6, 0); return x_2; } } -uint8_t l_List_beq___main___at_Lean_Occurrences_beq___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_beq___at_Lean_Occurrences_beq___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -391,7 +391,7 @@ if (lean_obj_tag(x_2) == 1) lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_2, 0); -x_7 = l_List_beq___main___at_Lean_Occurrences_beq___spec__1(x_5, x_6); +x_7 = l_List_beq___at_Lean_Occurrences_beq___spec__1(x_5, x_6); return x_7; } else @@ -408,7 +408,7 @@ if (lean_obj_tag(x_2) == 2) lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_2, 0); -x_11 = l_List_beq___main___at_Lean_Occurrences_beq___spec__1(x_9, x_10); +x_11 = l_List_beq___at_Lean_Occurrences_beq___spec__1(x_9, x_10); return x_11; } else @@ -421,11 +421,11 @@ return x_12; } } } -lean_object* l_List_beq___main___at_Lean_Occurrences_beq___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_beq___at_Lean_Occurrences_beq___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_beq___main___at_Lean_Occurrences_beq___spec__1(x_1, x_2); +x_3 = l_List_beq___at_Lean_Occurrences_beq___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Data/OpenDecl.c b/stage0/stdlib/Lean/Data/OpenDecl.c index 39bd22842b..a3d9ca0121 100644 --- a/stage0/stdlib/Lean/Data/OpenDecl.c +++ b/stage0/stdlib/Lean/Data/OpenDecl.c @@ -34,12 +34,12 @@ lean_object* l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2_match__1___rarg(le lean_object* l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2_match__1(lean_object*); lean_object* l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2(lean_object*); extern lean_object* l_String_splitAux___closed__1; -lean_object* l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_List_reprAux___rarg___closed__1; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___closed__1; +lean_object* l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); static lean_object* _init_l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__1___closed__1() { _start: { @@ -97,7 +97,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_OpenDecl_Lean_Data_OpenDecl___instance__ return x_2; } } -uint8_t l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -283,7 +283,7 @@ lean_dec(x_1); x_4 = l_System_FilePath_dirName___closed__1; x_5 = l_Lean_Name_toStringWithSep(x_4, x_2); x_6 = lean_box(0); -x_7 = l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_3, x_6); +x_7 = l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_3, x_6); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -323,11 +323,11 @@ return x_21; } } } -lean_object* l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_1, x_2); +x_3 = l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Data/Options.c b/stage0/stdlib/Lean/Data/Options.c index 9345d570ff..718e42c527 100644 --- a/stage0/stdlib/Lean/Data/Options.c +++ b/stage0/stdlib/Lean/Data/Options.c @@ -103,6 +103,7 @@ lean_object* l_Lean_getOptionDecl_match__1(lean_object*); lean_object* l_Lean_setOptionFromString_match__2(lean_object*); lean_object* l_Lean_Lean_Data_Options___instance__4(lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Lean_getOptionDeclsArray___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_setOptionFromString___spec__1(lean_object*); lean_object* l___private_Lean_Data_Options_0__Lean_initOptionDeclsRef(lean_object*); lean_object* l_Lean_setOptionFromString___closed__2; lean_object* l_String_toNat_x3f(lean_object*); @@ -114,7 +115,6 @@ lean_object* l_Lean_setOptionFromString_match__2___rarg(lean_object*, lean_objec lean_object* l_Lean_getOptionDescr(lean_object*, lean_object*); lean_object* l_Lean_setOptionFromString___closed__3; lean_object* l_Lean_getNatOption___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_setOptionFromString___spec__1(lean_object*); static lean_object* _init_l_Lean_Options_empty() { _start: { @@ -926,7 +926,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_setOptionFromString_match__4___rarg), 3, return x_2; } } -lean_object* l_List_map___main___at_Lean_setOptionFromString___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_setOptionFromString___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -946,7 +946,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_String_trim(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_setOptionFromString___spec__1(x_5); +x_7 = l_List_map___at_Lean_setOptionFromString___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -961,7 +961,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_String_trim(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_setOptionFromString___spec__1(x_9); +x_11 = l_List_map___at_Lean_setOptionFromString___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1046,7 +1046,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = l_Lean_setOptionFromString___closed__1; x_5 = l_String_splitOn(x_2, x_4); -x_6 = l_List_map___main___at_Lean_setOptionFromString___spec__1(x_5); +x_6 = l_List_map___at_Lean_setOptionFromString___spec__1(x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; diff --git a/stage0/stdlib/Lean/Declaration.c b/stage0/stdlib/Lean/Declaration.c index 6bbef13290..d2ea719ae2 100644 --- a/stage0/stdlib/Lean/Declaration.c +++ b/stage0/stdlib/Lean/Declaration.c @@ -62,7 +62,6 @@ lean_object* l_Lean_QuotVal_kindEx___boxed(lean_object*); lean_object* l_Lean_ConstructorVal_isUnsafeEx___boxed(lean_object*); lean_object* lean_mk_inductive_val(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t); uint8_t l_UInt32_decLt(uint32_t, uint32_t); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__3(lean_object*); lean_object* l_Lean_ConstantInfo_toConstantVal_match__1(lean_object*); lean_object* l_Lean_ConstantInfo_toConstantVal(lean_object*); @@ -141,6 +140,7 @@ lean_object* l_Lean_ConstantInfo_value_x21(lean_object*); lean_object* l_Lean_mkRecursorValEx___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_Declaration_forExprM(lean_object*); lean_object* l_Lean_ConstantInfo_hints_match__1(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Declaration_isUnsafeInductiveDeclEx_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_axiom_val_is_unsafe(lean_object*); lean_object* lean_mk_axiom_val(lean_object*, lean_object*, lean_object*, uint8_t); @@ -1400,7 +1400,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 4); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); return x_4; } } diff --git a/stage0/stdlib/Lean/Delaborator.c b/stage0/stdlib/Lean/Delaborator.c index ab0455ec35..ede8bd7742 100644 --- a/stage0/stdlib/Lean/Delaborator.c +++ b/stage0/stdlib/Lean/Delaborator.c @@ -148,7 +148,6 @@ lean_object* l_Lean_Delaborator_delabStructureInstance_match__3(lean_object*); lean_object* l_Lean_Delaborator_getExprKind___closed__1; lean_object* l_Lean_Delaborator_getExprKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabseqRight___lambda__1___closed__4; -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabOr___lambda__1___closed__8; lean_object* l_Lean_Delaborator_delabBind___lambda__1___closed__4; lean_object* l_Lean_getPPStructureProjections___closed__1; @@ -773,6 +772,7 @@ lean_object* l_Lean_Delaborator_withAppFnArgs_match__2___rarg(lean_object*, lean lean_object* l___regBuiltin_Lean_Delaborator_delabCons___closed__3; lean_object* l_Array_findIdxAux___at_Lean_Delaborator_annotatePos___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_getPPOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabProjectionApp_match__1(lean_object*); lean_object* l_Lean_Delaborator_delabGT___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_Delaborator_0__Lean_Delaborator_unresolveOpenDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -12473,7 +12473,7 @@ x_16 = lean_name_eq(x_15, x_1); if (x_16 == 0) { uint8_t x_17; -x_17 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_15, x_13); +x_17 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_15, x_13); lean_dec(x_15); if (x_17 == 0) { diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 9b964e57f7..a52218e366 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -76,7 +76,6 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal___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_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object*); lean_object* l_Array_anyRangeMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; @@ -143,7 +142,6 @@ lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess(lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -269,6 +267,7 @@ lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg(uint8_t, lean_obj lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2; +lean_object* l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_App___instance__1___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FindMVar_visit(lean_object*, lean_object*, lean_object*); @@ -301,7 +300,6 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizeP lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object**); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_App___instance__2_match__1(lean_object*); lean_object* l_Lean_Elab_Term_expandApp_match__3___rarg(lean_object*, lean_object*); @@ -460,6 +458,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -473,8 +472,8 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match_ lean_object* l_Lean_Elab_Term_elabApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l_Lean_Elab_Term_expandApp_match__3(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__2(lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2; lean_object* l_Array_umapMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2; lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); @@ -510,7 +509,6 @@ lean_object* l_Array_iterateMAux___at_Lean_Elab_Term_expandApp___spec__1___close lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_Elab_Term_throwInvalidNamedArg___rarg___closed__5; lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -555,7 +553,6 @@ lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2(lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__2___closed__2; @@ -627,6 +624,7 @@ lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l_Init_Control_Reader___instance__10___closed__2; +lean_object* l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___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* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -651,6 +649,7 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -718,6 +717,7 @@ lean_object* l_Lean_Elab_Term_throwInvalidNamedArg(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1; +lean_object* l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1; @@ -7396,7 +7396,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7474,15 +7474,15 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(x_2, x_1, x_3); +x_4 = l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(x_2, x_1, x_3); return x_4; } } -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(x_1, x_2, x_3); +x_4 = l_List_filterAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -10732,7 +10732,7 @@ lean_inc(x_6); x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_10, 0, x_6); lean_inc(x_2); -x_11 = l_List_find_x3f___main___rarg(x_10, x_2); +x_11 = l_List_find_x3f___rarg(x_10, x_2); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; uint8_t x_13; @@ -10839,7 +10839,7 @@ x_30 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_27); x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_31, 0, x_27); -x_32 = l_List_find_x3f___main___rarg(x_31, x_2); +x_32 = l_List_find_x3f___rarg(x_31, x_2); if (lean_obj_tag(x_32) == 0) { uint8_t x_33; uint8_t x_34; @@ -10927,7 +10927,7 @@ lean_inc(x_44); x_48 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_48, 0, x_44); lean_inc(x_2); -x_49 = l_List_find_x3f___main___rarg(x_48, x_2); +x_49 = l_List_find_x3f___rarg(x_48, x_2); if (lean_obj_tag(x_49) == 0) { uint8_t x_50; uint8_t x_51; @@ -13227,7 +13227,7 @@ lean_dec(x_27); x_37 = lean_ctor_get(x_10, 2); lean_inc(x_37); x_38 = lean_unsigned_to_nat(0u); -x_39 = l_List_lengthAux___main___rarg(x_37, x_38); +x_39 = l_List_lengthAux___rarg(x_37, x_38); lean_dec(x_37); x_144 = lean_st_ref_get(x_7, x_34); x_145 = lean_ctor_get(x_144, 0); @@ -13815,7 +13815,7 @@ lean_dec(x_170); x_178 = lean_ctor_get(x_10, 2); lean_inc(x_178); x_179 = lean_unsigned_to_nat(0u); -x_180 = l_List_lengthAux___main___rarg(x_178, x_179); +x_180 = l_List_lengthAux___rarg(x_178, x_179); lean_dec(x_178); x_279 = lean_st_ref_get(x_7, x_175); x_280 = lean_ctor_get(x_279, 0); @@ -14498,7 +14498,7 @@ lean_dec(x_319); x_327 = lean_ctor_get(x_10, 2); lean_inc(x_327); x_328 = lean_unsigned_to_nat(0u); -x_329 = l_List_lengthAux___main___rarg(x_327, x_328); +x_329 = l_List_lengthAux___rarg(x_327, x_328); lean_dec(x_327); x_428 = lean_st_ref_get(x_7, x_324); x_429 = lean_ctor_get(x_428, 0); @@ -17834,7 +17834,7 @@ lean_closure_set(x_19, 0, x_14); x_20 = lean_ctor_get(x_17, 3); lean_inc(x_20); lean_dec(x_17); -x_21 = l_List_find_x3f___main___rarg(x_19, x_20); +x_21 = l_List_find_x3f___rarg(x_19, x_20); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; lean_object* x_23; @@ -25350,7 +25350,7 @@ x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___priva return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -25370,7 +25370,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_5); +x_7 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -25385,7 +25385,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_9); +x_11 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -25428,7 +25428,7 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec(x_18); -x_22 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_21); +x_22 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_21); lean_inc(x_1); x_23 = l_List_append___rarg(x_22, x_1); x_24 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); @@ -25744,7 +25744,7 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec(x_18); -x_22 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_21); +x_22 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_21); lean_inc(x_1); x_23 = l_List_append___rarg(x_22, x_1); x_24 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); @@ -26082,7 +26082,7 @@ x_36 = lean_ctor_get(x_11, 7); lean_inc(x_36); x_37 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); x_38 = lean_unsigned_to_nat(0u); -x_39 = l_List_lengthAux___main___rarg(x_27, x_38); +x_39 = l_List_lengthAux___rarg(x_27, x_38); x_40 = lean_unsigned_to_nat(1u); x_41 = lean_nat_dec_eq(x_39, x_40); if (x_9 == 0) @@ -26346,7 +26346,7 @@ x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___priva return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -26368,7 +26368,7 @@ x_6 = l_System_FilePath_dirName___closed__1; x_7 = l_Lean_Name_toStringWithSep(x_6, x_4); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_7); -x_9 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_5); +x_9 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -26385,7 +26385,7 @@ x_12 = l_System_FilePath_dirName___closed__1; x_13 = l_Lean_Name_toStringWithSep(x_12, x_10); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_11); +x_15 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_11); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -27552,7 +27552,7 @@ x_714 = l_Lean_Syntax_getId(x_532); lean_dec(x_532); x_715 = lean_erase_macro_scopes(x_714); x_716 = l_Lean_Name_components(x_715); -x_717 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_716); +x_717 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_716); x_718 = l_List_append___rarg(x_717, x_2); x_1 = x_530; x_2 = x_718; diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index d19e5f3ee9..4516470336 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -202,7 +202,6 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor_match__2___rarg(lean_object*, le lean_object* l_Lean_Expr_appArg_x21(lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__2; -uint8_t l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_expandModN(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); @@ -566,6 +565,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabDecide___closed__1; lean_object* l_Lean_Elab_Term_expandMul___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeRefl(lean_object*); extern lean_object* l_Lean_nullKind___closed__2; +uint8_t l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnonymousCtor_match__2(lean_object*); lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; @@ -730,7 +730,6 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandEq___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabClosedTerm___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandOrM___closed__2; -lean_object* l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandBOr(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__9; extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__1; @@ -804,6 +803,7 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserM lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandAssert___closed__15; lean_object* l_Lean_Elab_Term_elabSubst___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_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__11; lean_object* l_Lean_Elab_Term_expandCons(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -4315,7 +4315,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinNotation_0__Lean_E return x_2; } } -uint8_t l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4789,7 +4789,7 @@ x_44 = l_Lean_mkAppStx___closed__8; x_45 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); -x_46 = l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_19, x_32); +x_46 = l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_19, x_32); lean_dec(x_19); if (x_46 == 0) { @@ -5170,11 +5170,11 @@ return x_234; } } } -lean_object* l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_1, x_2); +x_3 = l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 9b7cc2d167..31ce037464 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -45,6 +45,7 @@ lean_object* l_Array_foldlStepMAux___at_Lean_Elab_Command_elabOpenRenaming___spe extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___closed__2; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__6___closed__2; +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; @@ -88,7 +89,6 @@ lean_object* l_Lean_Elab_Command_getScope___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -286,7 +286,6 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg(lean_object*, le extern lean_object* l_Lean_Elab_mkDeclName___rarg___closed__2; extern lean_object* l_Lean_Elab_mkDeclName___rarg___lambda__1___closed__3; lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,7 +339,6 @@ lean_object* l_Lean_Elab_Command_expandDeclId___boxed(lean_object*, lean_object* lean_object* l_Lean_Elab_Command_elabOpenRenaming(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM_match__1(lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext___closed__1; lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); @@ -521,10 +519,12 @@ lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object*, lean_obje 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*); extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; +lean_object* l_List_drop___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__8(lean_object*, lean_object*, 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; +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__4; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -533,7 +533,6 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); -lean_object* l_List_drop___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_addUnivLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___closed__2; extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; @@ -645,9 +644,9 @@ lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__13___lambda__3(le lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInCmd___closed__1; extern lean_object* l_Init_Data_Repr___instance__2___closed__1; +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames(lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; -lean_object* l_List_foldl___main___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Context_currMacroScope___default; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__3; @@ -717,6 +716,7 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_nextMacroScope___default; lean_object* l_Std_AssocList_find_x3f___at_Lean_Elab_Command_elabCommand___spec__7___boxed(lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; lean_object* l_Lean_Elab_Command_Lean_Elab_Command___instance__1; @@ -1696,7 +1696,7 @@ lean_ctor_set(x_22, 1, x_20); x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_17); lean_ctor_set(x_23, 1, x_22); -x_24 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(x_14, x_23, x_2); +x_24 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(x_14, x_23, x_2); lean_ctor_set(x_6, 0, x_24); return x_6; } @@ -1764,7 +1764,7 @@ lean_ctor_set(x_42, 1, x_40); x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_37); lean_ctor_set(x_43, 1, x_42); -x_44 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(x_34, x_43, x_2); +x_44 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(x_34, x_43, x_2); x_45 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_26); @@ -10873,7 +10873,7 @@ block_73: { lean_object* x_12; lean_object* x_13; uint8_t x_14; x_12 = lean_unsigned_to_nat(0u); -x_13 = l_List_lengthAux___main___rarg(x_10, x_12); +x_13 = l_List_lengthAux___rarg(x_10, x_12); x_14 = lean_nat_dec_lt(x_9, x_13); lean_dec(x_13); if (x_14 == 0) @@ -10893,10 +10893,10 @@ if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_19 = lean_ctor_get(x_16, 2); -x_20 = l_List_lengthAux___main___rarg(x_19, x_12); +x_20 = l_List_lengthAux___rarg(x_19, x_12); x_21 = lean_nat_sub(x_20, x_5); lean_dec(x_20); -x_22 = l_List_drop___main___rarg(x_21, x_19); +x_22 = l_List_drop___rarg(x_21, x_19); lean_dec(x_19); lean_ctor_set(x_16, 2, x_22); x_23 = lean_st_ref_set(x_3, x_16, x_17); @@ -10942,10 +10942,10 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_16); -x_38 = l_List_lengthAux___main___rarg(x_33, x_12); +x_38 = l_List_lengthAux___rarg(x_33, x_12); x_39 = lean_nat_sub(x_38, x_5); lean_dec(x_38); -x_40 = l_List_drop___main___rarg(x_39, x_33); +x_40 = l_List_drop___rarg(x_39, x_33); lean_dec(x_33); x_41 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_41, 0, x_31); @@ -10997,7 +10997,7 @@ if (x_53 == 0) { lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; x_54 = lean_ctor_get(x_51, 2); -x_55 = l_List_drop___main___rarg(x_9, x_54); +x_55 = l_List_drop___rarg(x_9, x_54); lean_dec(x_54); lean_ctor_set(x_51, 2, x_55); x_56 = lean_st_ref_set(x_3, x_51, x_52); @@ -11028,7 +11028,7 @@ lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); lean_dec(x_51); -x_67 = l_List_drop___main___rarg(x_9, x_62); +x_67 = l_List_drop___rarg(x_9, x_62); lean_dec(x_62); x_68 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_68, 0, x_60); @@ -11149,7 +11149,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint x_17 = lean_ctor_get(x_14, 2); x_18 = l_Lean_Name_getNumParts(x_1); lean_dec(x_1); -x_19 = l_List_drop___main___rarg(x_18, x_17); +x_19 = l_List_drop___rarg(x_18, x_17); lean_dec(x_17); lean_ctor_set(x_14, 2, x_19); x_20 = lean_st_ref_set(x_4, x_14, x_15); @@ -11195,7 +11195,7 @@ lean_inc(x_25); lean_dec(x_14); x_32 = l_Lean_Name_getNumParts(x_1); lean_dec(x_1); -x_33 = l_List_drop___main___rarg(x_32, x_27); +x_33 = l_List_drop___rarg(x_32, x_27); lean_dec(x_27); x_34 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_34, 0, x_25); @@ -12100,7 +12100,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_5, x_13); +x_15 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_5, x_13); lean_dec(x_13); if (x_15 == 0) { @@ -12146,7 +12146,7 @@ lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); -x_28 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_5, x_26); +x_28 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_5, x_26); lean_dec(x_26); if (x_28 == 0) { @@ -13383,7 +13383,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Lean_Elab_Command_elabExport___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -13447,7 +13447,7 @@ if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_24 = lean_ctor_get(x_21, 0); -x_25 = l_List_foldl___main___at_Lean_Elab_Command_elabExport___spec__3(x_24, x_18); +x_25 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__3(x_24, x_18); lean_ctor_set(x_21, 0, x_25); x_26 = lean_st_ref_set(x_6, x_21, x_22); x_27 = !lean_is_exclusive(x_26); @@ -13491,7 +13491,7 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_21); -x_40 = l_List_foldl___main___at_Lean_Elab_Command_elabExport___spec__3(x_33, x_18); +x_40 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__3(x_33, x_18); x_41 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_34); @@ -21357,7 +21357,7 @@ x_12 = lean_unsigned_to_nat(1u); x_13 = lean_nat_add(x_3, x_12); lean_dec(x_3); x_14 = l_Lean_Syntax_getId(x_11); -x_15 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_14, x_4); +x_15 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_14, x_4); if (x_15 == 0) { lean_object* x_16; diff --git a/stage0/stdlib/Lean/Elab/DeclModifiers.c b/stage0/stdlib/Lean/Elab/DeclModifiers.c index 4ab1a56241..78d69216cf 100644 --- a/stage0/stdlib/Lean/Elab/DeclModifiers.c +++ b/stage0/stdlib/Lean/Elab/DeclModifiers.c @@ -30,7 +30,6 @@ uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l_Lean_Elab_mkDeclName(lean_object*); lean_object* l_Lean_withRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers_match__1(lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Elab_expandDeclId___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -111,6 +110,7 @@ lean_object* l_Lean_Elab_mkDeclName_match__2___rarg(uint8_t, lean_object*, lean_ lean_object* l_Lean_Elab_Lean_Elab_DeclModifiers___instance__3; lean_object* l_Lean_Elab_Modifiers_docString___default; lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__6; +lean_object* l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Array_foldlStepMAux___at_Lean_Syntax_getSepArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers_match__4___rarg(lean_object*, lean_object*, lean_object*); @@ -124,6 +124,7 @@ lean_object* l_Lean_Elab_elabModifiers(lean_object*); lean_object* l_Lean_Elab_mkDeclName___rarg___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Lean_fmt___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__1(lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Lean_Elab_DeclModifiers___instance__1_match__1(lean_object*); lean_object* l_Lean_Elab_Modifiers_isProtected_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; @@ -192,7 +193,6 @@ lean_object* l_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___closed__4; lean_object* l_Lean_Elab_Lean_Elab_DeclModifiers___instance__1___boxed(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared(lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(lean_object*); lean_object* l_Lean_Elab_expandDeclId(lean_object*); uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -1074,7 +1074,7 @@ return x_33; } } } -lean_object* l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1093,7 +1093,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_fmt___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__1(x_4); -x_7 = l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_5); +x_7 = l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1107,7 +1107,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_fmt___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__1(x_8); -x_11 = l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_9); +x_11 = l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1335,7 +1335,7 @@ x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); x_7 = lean_ctor_get(x_1, 1); x_8 = l_Array_toList___rarg(x_7); -x_9 = l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_8); +x_9 = l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_8); if (lean_obj_tag(x_2) == 0) { lean_object* x_78; @@ -1557,7 +1557,7 @@ x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); x_7 = lean_ctor_get(x_1, 1); x_8 = l_Array_toList___rarg(x_7); -x_9 = l_List_map___main___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_8); +x_9 = l_List_map___at_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___spec__2(x_8); if (lean_obj_tag(x_2) == 0) { lean_object* x_78; @@ -3168,7 +3168,7 @@ x_15 = lean_ctor_get(x_1, 1); lean_inc(x_15); x_16 = lean_array_fget(x_7, x_8); x_17 = l_Lean_Syntax_getId(x_16); -x_18 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_17, x_9); +x_18 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_17, x_9); x_19 = lean_unsigned_to_nat(1u); x_20 = lean_nat_add(x_8, x_19); lean_inc(x_6); diff --git a/stage0/stdlib/Lean/Elab/DeclUtil.c b/stage0/stdlib/Lean/Elab/DeclUtil.c index 14bbfc16d2..49aa660fef 100644 --- a/stage0/stdlib/Lean/Elab/DeclUtil.c +++ b/stage0/stdlib/Lean/Elab/DeclUtil.c @@ -26,8 +26,8 @@ lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__2; lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2; +lean_object* l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__3; @@ -37,7 +37,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -45,7 +44,6 @@ lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_lt___boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_isFreshInstanceName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkFreshInstanceName(lean_object*, lean_object*); @@ -68,6 +66,7 @@ lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Init_Data_Repr___instance__15___closed__1; uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_sortDeclLevelParams_match__1(lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__1; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; @@ -79,10 +78,11 @@ lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4(lean_ob lean_object* l_Lean_Elab_expandOptDeclSig___boxed(lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_sortDeclLevelParams___lambda__1(lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); uint8_t l_Lean_Name_lt(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Elab_sortDeclLevelParams___spec__3(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); uint8_t l_String_isPrefixOf(lean_object*, lean_object*); @@ -1159,7 +1159,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_sortDeclLevelParams_match__1___rarg return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1239,7 +1239,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_2, x_3); -x_9 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_8, x_1); +x_9 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_8, x_1); lean_dec(x_8); if (x_9 == 0) { @@ -1437,7 +1437,7 @@ x_4 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_1, x_3) if (x_4 == 0) { uint8_t x_5; -x_5 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_3, x_2); +x_5 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_3, x_2); if (x_5 == 0) { uint8_t x_6; @@ -1476,13 +1476,13 @@ x_4 = lean_alloc_closure((void*)(l_Lean_Elab_sortDeclLevelParams___lambda__1___b lean_closure_set(x_4, 0, x_3); lean_closure_set(x_4, 1, x_1); lean_inc(x_2); -x_5 = l_List_find_x3f___main___rarg(x_4, x_2); +x_5 = l_List_find_x3f___rarg(x_4, x_2); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_6 = lean_box(0); lean_inc(x_2); -x_7 = l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(x_3, x_6, x_2); +x_7 = l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1(x_3, x_6, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_filterAux___at_Lean_Elab_sortDeclLevelParams___spec__2(x_2, x_3, x_8, x_8); lean_dec(x_2); @@ -1520,11 +1520,11 @@ return x_24; } } } -lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(x_1, x_2, x_3); +x_4 = l_List_foldl___at_Lean_Elab_sortDeclLevelParams___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index b4d5132a86..c0ab140e30 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -55,7 +55,6 @@ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2___rarg(lean_ob lean_object* l_Array_umapMAux___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2(lean_object*); -lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__29; lean_object* l_Array_anyRangeMAux___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,6 +87,7 @@ lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__22; +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__6; uint8_t l_Array_anyRangeMAux___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -132,6 +132,7 @@ extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____clos lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2(lean_object*); @@ -176,6 +177,7 @@ lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_522____closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__11; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__9; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__39; @@ -238,7 +240,6 @@ lean_object* l_Array_umapMAux___at___private_Lean_Elab_Declaration_0__Lean_Elab_ extern lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__27; @@ -324,7 +325,6 @@ lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spe lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3; lean_object* l_Array_iterateMAux___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -6088,7 +6088,7 @@ lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2 _start: { lean_object* x_10; lean_object* x_11; -x_10 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_10 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -6108,7 +6108,7 @@ x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); x_12 = lean_box(0); -x_13 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_10, x_12); +x_13 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_10, x_12); x_14 = l_List_isEmpty___rarg(x_13); if (x_14 == 0) { @@ -6172,7 +6172,7 @@ x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_18 = lean_string_append(x_16, x_17); -x_19 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_10); +x_19 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_10); x_20 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_19); x_21 = lean_string_append(x_18, x_20); lean_dec(x_20); @@ -6238,7 +6238,7 @@ x_39 = lean_string_append(x_38, x_37); lean_dec(x_37); x_40 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_41 = lean_string_append(x_39, x_40); -x_42 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_35, x_10); +x_42 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_35, x_10); x_43 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_42); x_44 = lean_string_append(x_41, x_43); lean_dec(x_43); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index c497a324d2..e195ad7a04 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -167,14 +167,12 @@ extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__9; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTermCore___closed__8; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_mkJmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTermCore___closed__17; lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -extern lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoPatDeclVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__1___closed__7; @@ -316,6 +314,8 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(lean_object*, lean_o lean_object* l_Std_RBNode_fold___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod___closed__1; +lean_object* l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__1; @@ -338,6 +338,7 @@ lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__1; lean_object* l_Lean_Elab_Term_Do_getLetDeclVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___closed__5; +lean_object* l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__22; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__21; lean_object* l_Array_iterateMAux___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___closed__10; @@ -521,6 +522,7 @@ extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11; lean_object* l_Array_anyRangeMAux___at___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode___spec__1(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___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -906,6 +908,7 @@ extern lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__3; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getLetDeclVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_declToTermCore_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Elab_Term_Do_hasExitPoint___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop(lean_object*, lean_object*); @@ -1004,7 +1007,6 @@ extern lean_object* l_IO_Prim_fopenFlags___closed__1; uint8_t l_Lean_Elab_Term_Do_ToTerm_mkNestedKind(uint8_t, uint8_t, uint8_t); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__23; -lean_object* l_List_map___main___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__16; @@ -1050,7 +1052,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlo lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore___closed__16; lean_object* l_Lean_Elab_Term_Do_mkTerminalAction(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(lean_object*); extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__9; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__2; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__6; @@ -1079,7 +1080,6 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_getTryCatchUpdatedVars___boxed(lean lean_object* l_Array_iterateMAux___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___closed__6; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTermCore___closed__6; -lean_object* l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__5; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_tryCatchPred(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPoints_match__1(lean_object*); @@ -1117,7 +1117,7 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object*, lean_object*, lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; uint8_t l_Array_anyRangeMAux___at_Lean_Elab_Term_Do_mkReassignCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1138,7 +1138,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Lean_Syntax_getArg(x_4, x_6); lean_dec(x_4); -x_8 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_5); +x_8 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -1154,7 +1154,7 @@ lean_dec(x_1); x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Syntax_getArg(x_9, x_11); lean_dec(x_9); -x_13 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_10); +x_13 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -1230,7 +1230,7 @@ x_10 = l_Lean_Syntax_getArgs(x_9); lean_dec(x_9); x_11 = l_Array_toList___rarg(x_10); lean_dec(x_10); -x_12 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_11); +x_12 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_11); return x_12; } } @@ -1245,7 +1245,7 @@ x_15 = l_Lean_Syntax_getArgs(x_14); lean_dec(x_14); x_16 = l_Array_toList___rarg(x_15); lean_dec(x_15); -x_17 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_16); +x_17 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___spec__1(x_16); return x_17; } } @@ -2180,7 +2180,7 @@ x_3 = l_Std_RBNode_fold___at_Lean_registerTagAttribute___spec__1(x_2, x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2201,7 +2201,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_simp_macro_scopes(x_4); x_7 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_5); +x_8 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -2217,7 +2217,7 @@ lean_dec(x_1); x_11 = lean_simp_macro_scopes(x_9); x_12 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_10); +x_13 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -2231,7 +2231,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Array_toList___rarg(x_1); -x_3 = l_List_map___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_2); +x_3 = l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(x_2); x_4 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__4; x_5 = l_Lean_MessageData_joinSep(x_3, x_4); lean_dec(x_3); @@ -2565,7 +2565,7 @@ static lean_object* _init_l_Array_iterateMAux___at_Lean_Elab_Term_Do_CodeBlocl_t _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; +x_1 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -2623,7 +2623,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2643,7 +2643,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_5); +x_7 = l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -2658,7 +2658,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_9); +x_11 = l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -3141,7 +3141,7 @@ lean_ctor_set(x_115, 0, x_113); lean_ctor_set(x_115, 1, x_114); x_116 = l_Array_toList___rarg(x_109); lean_dec(x_109); -x_117 = l_List_map___main___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_116); +x_117 = l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(x_116); x_118 = l_Lean_MessageData_ofList(x_117); lean_dec(x_117); x_119 = lean_alloc_ctor(10, 2, 0); @@ -3175,7 +3175,7 @@ lean_inc(x_2); x_3 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_nameSetToArray(x_2); x_4 = l_Array_toList___rarg(x_3); lean_dec(x_3); -x_5 = l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_4); +x_5 = l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_4); x_6 = l_Lean_MessageData_ofList(x_5); lean_dec(x_5); x_7 = lean_ctor_get(x_1, 0); diff --git a/stage0/stdlib/Lean/Elab/Import.c b/stage0/stdlib/Lean/Elab/Import.c index f3dbf5fb7a..0a5c0a7305 100644 --- a/stage0/stdlib/Lean/Elab/Import.c +++ b/stage0/stdlib/Lean/Elab/Import.c @@ -16,7 +16,6 @@ extern "C" { lean_object* l_List_forIn_loop___at_Lean_Elab_printDeps___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_headerToImports___spec__1(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_headerToImports___closed__2; lean_object* l_Lean_Elab_headerToImports(lean_object*); @@ -44,6 +43,7 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* lean_parse_imports(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_List_map___at_Lean_Elab_headerToImports___spec__1(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_parseImports(lean_object*, lean_object*, lean_object*); lean_object* l_IO_println___at_Lean_Environment_displayStats___spec__3(lean_object*, lean_object*); @@ -52,7 +52,7 @@ lean_object* l_Lean_Elab_parseImportsExport_match__1___rarg(lean_object*, lean_o extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_109____closed__6; lean_object* l_Lean_Elab_parseImportsExport_match__1(lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_printDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_headerToImports___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_headerToImports___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -79,7 +79,7 @@ x_10 = l_Lean_Syntax_getArg(x_4, x_9); lean_dec(x_4); x_11 = l_Lean_Syntax_getId(x_10); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_5); +x_12 = l_List_map___at_Lean_Elab_headerToImports___spec__1(x_5); if (x_8 == 0) { uint8_t x_13; lean_object* x_14; @@ -120,7 +120,7 @@ x_23 = l_Lean_Syntax_getArg(x_17, x_22); lean_dec(x_17); x_24 = l_Lean_Syntax_getId(x_23); lean_dec(x_23); -x_25 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_18); +x_25 = l_List_map___at_Lean_Elab_headerToImports___spec__1(x_18); if (x_21 == 0) { uint8_t x_26; lean_object* x_27; lean_object* x_28; @@ -197,7 +197,7 @@ x_7 = l_Lean_Syntax_getArgs(x_6); lean_dec(x_6); x_8 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_9 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_8); +x_9 = l_List_map___at_Lean_Elab_headerToImports___spec__1(x_8); if (x_4 == 0) { lean_object* x_10; lean_object* x_11; diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 7c35ec121d..dc4b71b329 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -66,25 +66,24 @@ lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit(lean_object*, siz lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___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_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__1(lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(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* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_println___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeFormerType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,12 +101,13 @@ lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1(lean_ob lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3(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* l_Lean_Level_getOffsetAux(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__2; @@ -152,9 +152,9 @@ lean_object* l_Array_anyRangeMAux___at_Lean_Elab_Command_accLevelAtCtor___spec__ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_IO_getStdout___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -172,8 +172,10 @@ lean_object* lean_mk_below(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg(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_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls(lean_object*); extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___rarg___closed__2; +lean_object* l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -187,7 +189,6 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes_ lean_object* l_Lean_Elab_Command_tmpIndParam___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__3; extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Lean_LocalContext___instance__2___closed__1; lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,6 +210,7 @@ lean_object* l_Lean_Elab_Command_tmpIndParam___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_brec_on(lean_object*, lean_object*); @@ -233,7 +235,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -247,6 +248,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders__ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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_CollectLevelParams_main(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__19___rarg___closed__2; lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -287,7 +289,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__7; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -312,7 +313,6 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rar lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__3; -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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*); @@ -321,7 +321,9 @@ lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, l lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3; 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_shouldInferResultUniverse___closed__1; +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__1; +lean_object* l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___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_IO_print___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,6 +343,7 @@ lean_object* l_Lean_Elab_Command_Lean_Elab_Inductive___instance__2___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(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_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___lambda__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11; @@ -399,7 +402,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SynthI lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__1___closed__2; extern lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___closed__1; lean_object* l_Lean_Level_getLevelOffset(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_rec_on(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___lambda__2(lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -428,7 +431,6 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___at_Lean_Meta_isLevelD lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11___closed__1; lean_object* l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -451,7 +453,6 @@ extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___instance__1___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Nat_foldM_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -463,6 +464,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultin uint8_t l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___spec__1(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1(lean_object*); +uint8_t l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_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*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; @@ -475,7 +477,6 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam; lean_object* l_Lean_Elab_Command_elabInductiveViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at_Lean_ClassState_addEntry___spec__6(lean_object*, lean_object*, uint8_t); -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop(lean_object*); @@ -490,7 +491,6 @@ lean_object* l_Lean_Elab_Command_Lean_Elab_Inductive___instance__1___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__2(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2; -uint8_t l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeImp___at_Lean_Meta_isType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2123,7 +2123,7 @@ lean_dec(x_5); x_15 = lean_array_uget(x_2, x_4); x_16 = lean_ctor_get(x_15, 4); lean_inc(x_16); -x_17 = l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_16, x_1); +x_17 = l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_16, x_1); lean_dec(x_16); if (x_17 == 0) { @@ -9143,7 +9143,7 @@ lean_dec(x_3); return x_12; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -9174,7 +9174,7 @@ x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); lean_ctor_set(x_6, 1, x_12); -x_13 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_8); +x_13 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_8); lean_ctor_set(x_3, 1, x_13); return x_3; } @@ -9196,7 +9196,7 @@ lean_dec(x_18); x_20 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_20, 0, x_15); lean_ctor_set(x_20, 1, x_19); -x_21 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_14); +x_21 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_14); lean_ctor_set(x_3, 1, x_21); lean_ctor_set(x_3, 0, x_20); return x_3; @@ -9235,7 +9235,7 @@ if (lean_is_scalar(x_26)) { } lean_ctor_set(x_30, 0, x_24); lean_ctor_set(x_30, 1, x_29); -x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_23); +x_31 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_2, x_23); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -9244,7 +9244,7 @@ return x_32; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -9266,7 +9266,7 @@ return x_6; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9292,7 +9292,7 @@ x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_5, 1); x_9 = lean_ctor_get(x_5, 2); lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_10 = lean_alloc_closure((void*)(l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_10, 0, x_1); x_11 = 8192; x_12 = l_Lean_Expr_ReplaceLevelImpl_initCache; @@ -9301,10 +9301,10 @@ x_13 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit(x_10, x_11, x_8, x_12); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_10, x_11, x_9); +x_15 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_10, x_11, x_9); lean_ctor_set(x_5, 2, x_15); lean_ctor_set(x_5, 1, x_14); -x_16 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_7); +x_16 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_7); lean_ctor_set(x_2, 1, x_16); return x_2; } @@ -9320,7 +9320,7 @@ lean_inc(x_19); lean_inc(x_18); lean_dec(x_5); lean_inc(x_1); -x_21 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_21 = lean_alloc_closure((void*)(l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_21, 0, x_1); x_22 = 8192; x_23 = l_Lean_Expr_ReplaceLevelImpl_initCache; @@ -9329,12 +9329,12 @@ x_24 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit(x_21, x_22, x_19, x_23) x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); lean_dec(x_24); -x_26 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_21, x_22, x_20); +x_26 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_21, x_22, x_20); x_27 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_27, 0, x_18); lean_ctor_set(x_27, 1, x_25); lean_ctor_set(x_27, 2, x_26); -x_28 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_17); +x_28 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_17); lean_ctor_set(x_2, 1, x_28); lean_ctor_set(x_2, 0, x_27); return x_2; @@ -9364,7 +9364,7 @@ if (lean_is_exclusive(x_29)) { x_34 = lean_box(0); } lean_inc(x_1); -x_35 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); +x_35 = lean_alloc_closure((void*)(l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed), 2, 1); lean_closure_set(x_35, 0, x_1); x_36 = 8192; x_37 = l_Lean_Expr_ReplaceLevelImpl_initCache; @@ -9373,7 +9373,7 @@ x_38 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit(x_35, x_36, x_32, x_37) x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); lean_dec(x_38); -x_40 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_35, x_36, x_33); +x_40 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_35, x_36, x_33); if (lean_is_scalar(x_34)) { x_41 = lean_alloc_ctor(0, 3, 0); } else { @@ -9382,7 +9382,7 @@ if (lean_is_scalar(x_34)) { lean_ctor_set(x_41, 0, x_31); lean_ctor_set(x_41, 1, x_39); lean_ctor_set(x_41, 2, x_40); -x_42 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_30); +x_42 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_1, x_30); x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); @@ -9408,7 +9408,7 @@ x_15 = lean_ctor_get(x_13, 0); x_16 = l_Array_toList___rarg(x_15); lean_dec(x_15); x_17 = l_Lean_Level_mkNaryMax(x_16); -x_18 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_17, x_4); +x_18 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_17, x_4); lean_ctor_set(x_13, 0, x_18); return x_13; } @@ -9423,7 +9423,7 @@ lean_dec(x_13); x_21 = l_Array_toList___rarg(x_19); lean_dec(x_19); x_22 = l_Lean_Level_mkNaryMax(x_21); -x_23 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_22, x_4); +x_23 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2(x_22, x_4); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_20); @@ -9571,21 +9571,21 @@ return x_28; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_4, x_3); +x_5 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1(x_1, x_4, x_3); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(x_1, x_2); +x_3 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -11373,7 +11373,7 @@ lean_dec(x_3); return x_10; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11398,7 +11398,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11419,7 +11419,7 @@ x_6 = l_Lean_CollectLevelParams_main(x_5, x_1); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); lean_dec(x_3); -x_8 = l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(x_6, x_7); +x_8 = l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__1(x_6, x_7); x_1 = x_8; x_2 = x_4; goto _start; @@ -11431,7 +11431,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___instance__1___closed__1; -x_3 = l_List_foldl___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(x_2, x_1); +x_3 = l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(x_2, x_1); x_4 = lean_ctor_get(x_3, 2); lean_inc(x_4); lean_dec(x_3); @@ -11480,7 +11480,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Cons _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_3); +x_4 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_3); x_5 = lean_array_get_size(x_1); x_6 = l_Std_HashMap_inhabited___closed__1; lean_inc(x_5); @@ -12596,7 +12596,7 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1() { +static lean_object* _init_l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -12609,7 +12609,7 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12633,13 +12633,13 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_6, 0); x_10 = lean_ctor_get(x_6, 1); -x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_8); +x_11 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_8); x_12 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_9); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; x_13 = l_Bool_Inhabited; -x_14 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; +x_14 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_15 = lean_box(x_13); x_16 = lean_panic_fn(x_15, x_14); x_17 = lean_unbox(x_16); @@ -12700,13 +12700,13 @@ x_30 = lean_ctor_get(x_6, 1); lean_inc(x_30); lean_inc(x_29); lean_dec(x_6); -x_31 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_28); +x_31 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_28); x_32 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_29); if (lean_obj_tag(x_32) == 0) { uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_33 = l_Bool_Inhabited; -x_34 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; +x_34 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_35 = lean_box(x_33); x_36 = lean_panic_fn(x_35, x_34); x_37 = lean_unbox(x_36); @@ -12791,13 +12791,13 @@ if (lean_is_exclusive(x_52)) { lean_dec_ref(x_52); x_56 = lean_box(0); } -x_57 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_53); +x_57 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_53); x_58 = l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(x_2, x_54); if (lean_obj_tag(x_58) == 0) { uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; x_59 = l_Bool_Inhabited; -x_60 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; +x_60 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1; x_61 = lean_box(x_59); x_62 = lean_panic_fn(x_61, x_60); x_63 = lean_unbox(x_62); @@ -12884,7 +12884,7 @@ return x_81; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12907,9 +12907,9 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_6, 2); -x_10 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_9); +x_10 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_9); lean_ctor_set(x_6, 2, x_10); -x_11 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_8); +x_11 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_8); lean_ctor_set(x_3, 1, x_11); return x_3; } @@ -12924,12 +12924,12 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_6); -x_16 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_15); +x_16 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_15); x_17 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_17, 0, x_13); lean_ctor_set(x_17, 1, x_14); lean_ctor_set(x_17, 2, x_16); -x_18 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_12); +x_18 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_12); lean_ctor_set(x_3, 1, x_18); lean_ctor_set(x_3, 0, x_17); return x_3; @@ -12958,7 +12958,7 @@ if (lean_is_exclusive(x_19)) { lean_dec_ref(x_19); x_24 = lean_box(0); } -x_25 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_23); +x_25 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_23); if (lean_is_scalar(x_24)) { x_26 = lean_alloc_ctor(0, 3, 0); } else { @@ -12967,7 +12967,7 @@ if (lean_is_scalar(x_24)) { lean_ctor_set(x_26, 0, x_21); lean_ctor_set(x_26, 1, x_22); lean_ctor_set(x_26, 2, x_25); -x_27 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_20); +x_27 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_20); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -12981,26 +12981,26 @@ _start: { lean_object* x_4; lean_object* x_5; x_4 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod(x_1); -x_5 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_2, x_4, x_3); +x_5 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_2, x_4, x_3); lean_dec(x_4); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_3); +x_4 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_3); +x_4 = l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; @@ -15392,8 +15392,8 @@ l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___c lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2); l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1 = _init_l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1(); lean_mark_persistent(l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_traceIndTypes___spec__4___closed__1); -l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1); +l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1 = _init_l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1); l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__1); l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Level.c b/stage0/stdlib/Lean/Elab/Level.c index bb259d51fd..0660940968 100644 --- a/stage0/stdlib/Lean/Elab/Level.c +++ b/stage0/stdlib/Lean/Elab/Level.c @@ -26,7 +26,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Level_elabLevel___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_Lean_Elab_Level___instance__1___lambda__1___boxed(lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_elabLevel___closed__9; @@ -75,6 +74,7 @@ lean_object* l_Lean_Elab_Level_elabLevel___closed__4; lean_object* l_Lean_Elab_Level_Lean_Elab_Level___instance__3___closed__1; lean_object* l_Lean_Elab_Level_elabLevel___closed__1; extern lean_object* l_Lean_identKind; +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_Lean_Elab_Level___instance__3___closed__2; lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_elabLevel___closed__5; @@ -1037,7 +1037,7 @@ lean_object* x_50; uint8_t x_51; lean_dec(x_4); x_50 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); -x_51 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_50, x_9); +x_51 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_50, x_9); lean_dec(x_9); if (x_51 == 0) { @@ -1489,7 +1489,7 @@ lean_object* x_162; uint8_t x_163; lean_dec(x_4); x_162 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); -x_163 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_162, x_128); +x_163 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_162, x_128); lean_dec(x_128); if (x_163 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 54e1bc6ab9..ea4b8470ff 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -24,6 +24,7 @@ lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNoMatch___closed__1; lean_object* l_Lean_mkAppStx(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_getNumExplicitCtorParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__2(lean_object*); @@ -53,7 +54,6 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); extern lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__3; lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__18; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; @@ -115,7 +115,6 @@ lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__14(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_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* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmbiguous(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -137,7 +136,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_na lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3___closed__3; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__17; @@ -158,6 +156,7 @@ lean_object* l_Array_umapMAux___at_Lean_Elab_Term_withDepElimPatterns___spec__2_ lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop_match__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_markAsVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___closed__1; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processId_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -190,6 +189,7 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__3; +lean_object* l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(lean_object*); lean_object* l_Array_anyRangeMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processId_match__1(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -263,6 +263,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDi extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__11; lean_object* l_Array_anyRangeMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__21; +lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -282,6 +283,7 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_match__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMVarSyntaxMVarId(lean_object*); lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__22; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_getNextParam(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__5; @@ -432,6 +434,7 @@ lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_0__Lean_E lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkMVarSyntax___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); @@ -439,7 +442,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_alre lean_object* l_Lean_Elab_Term_elabMatch_match__3(lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_Term_CollectPatternVars_main___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___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandApp(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_getPatternsVars___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object*); @@ -461,6 +463,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_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* l_List_map___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_pushNewArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__18___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; @@ -497,7 +500,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___box lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorAppAux___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs___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_Match_0__Lean_Elab_Term_ToDepElimPattern_alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -759,7 +761,6 @@ lean_object* l_Array_findIdxAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElaboratedLHS___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_getNumExplicitCtorParams___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -854,7 +855,6 @@ extern lean_object* l_Lean_matchPatternAttr; lean_object* l_Lean_Elab_Term_getPatternVars_match__1___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___spec__1___lambda__2(lean_object*, size_t, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(lean_object*); lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch(lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object* x_1, lean_object* x_2) { @@ -4953,7 +4953,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_th _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_10 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_1); +x_10 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_1); x_11 = l_Lean_MessageData_ofList(x_10); lean_dec(x_10); x_12 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmbiguous___rarg___closed__2; @@ -5116,7 +5116,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_resolveId_x return x_2; } } -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5189,7 +5189,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5207,7 +5207,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_5); +x_6 = l_List_map___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_5); x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); lean_dec(x_4); @@ -5223,7 +5223,7 @@ x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); -x_10 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_9); +x_10 = l_List_map___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_9); x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); lean_dec(x_8); @@ -5240,8 +5240,8 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_box(0); -x_11 = l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(x_1, x_10); -x_12 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_11); +x_11 = l_List_filterAux___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; @@ -6136,7 +6136,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6156,7 +6156,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -6171,7 +6171,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -6230,7 +6230,7 @@ x_17 = l_Array_umapMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_Collect x_18 = x_17; x_19 = l_Array_toList___rarg(x_18); lean_dec(x_18); -x_20 = l_List_map___main___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_19); +x_20 = l_List_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__2(x_19); x_21 = l_Lean_MessageData_ofList(x_20); lean_dec(x_20); x_22 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___closed__2; @@ -22226,7 +22226,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22247,7 +22247,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_fmt___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_5); +x_8 = l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -22263,7 +22263,7 @@ lean_dec(x_1); x_11 = l_Lean_fmt___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_10); +x_13 = l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -22682,7 +22682,7 @@ else { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_24 = l_Array_toList___rarg(x_17); -x_25 = l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_24); +x_25 = l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_24); x_26 = l_Lean_MessageData_ofList(x_25); lean_dec(x_25); x_27 = l_Lean_Elab_Term_elabMatchAltView___closed__2; @@ -22832,7 +22832,7 @@ else { lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; x_69 = l_Array_toList___rarg(x_62); -x_70 = l_List_map___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_69); +x_70 = l_List_map___at_Lean_Elab_Term_elabMatchAltView___spec__2(x_69); x_71 = l_Lean_MessageData_ofList(x_70); lean_dec(x_70); x_72 = l_Lean_Elab_Term_elabMatchAltView___closed__2; @@ -22932,7 +22932,7 @@ lean_dec(x_5); return x_12; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22959,7 +22959,7 @@ x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = l_String_splitAux___closed__1; x_12 = lean_string_append(x_10, x_11); -x_13 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_5); +x_13 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_5); lean_ctor_set(x_1, 1, x_13); lean_ctor_set(x_1, 0, x_12); return x_1; @@ -22981,7 +22981,7 @@ x_20 = lean_string_append(x_19, x_18); lean_dec(x_18); x_21 = l_String_splitAux___closed__1; x_22 = lean_string_append(x_20, x_21); -x_23 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_15); +x_23 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_15); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -22990,7 +22990,7 @@ return x_24; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -23010,7 +23010,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_stringToMessageData(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_5); +x_7 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -23025,7 +23025,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_stringToMessageData(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_9); +x_11 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -23062,8 +23062,8 @@ x_11 = l_List_isEmpty___rarg(x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_12 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_10); -x_13 = l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_12); +x_12 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_10); +x_13 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_12); x_14 = l_Lean_MessageData_ofList(x_13); lean_dec(x_13); x_15 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2; diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index bacd3cc364..bfc8a2cec0 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -55,6 +55,7 @@ uint8_t l_Lean_Elab_Term_MutualClosure_getKindForLetRecs(lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2; lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default; @@ -65,7 +66,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMutualDef___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default; -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); @@ -146,7 +146,6 @@ lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___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_umapMAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1; -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -178,7 +177,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___clos lean_object* l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply___lambda__1(lean_object*, lean_object*); @@ -240,7 +238,6 @@ lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs___boxed(lean_object*, le lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___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_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -251,7 +248,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -278,6 +274,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___l lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; +lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Lean_Elab_PreDefinition_Basic___instance__1___closed__1; @@ -287,6 +284,7 @@ lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5; +lean_object* l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__1; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -294,6 +292,7 @@ extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; lean_object* l_Nat_foldAux___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3; +lean_object* l_List_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,6 +309,7 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1(lean_object*); +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check_match__1(lean_object*); uint8_t l_Array_anyRangeMAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -353,12 +353,12 @@ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, lean_object*); -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Array_foldlStepMAux___at_Lean_Syntax_getSepArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Lean_Elab_MutualDef___instance__1___closed__1; lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -369,13 +369,13 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___ lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addPreDefinitions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_FindImpl_initCache; +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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*); extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -405,6 +405,7 @@ lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_E lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_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* l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___boxed(lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -445,6 +446,7 @@ lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_0__Le uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__2; +lean_object* l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1; lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); @@ -454,7 +456,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToI lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default; lean_object* l_Lean_Elab_Term_elabType(lean_object*, 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_List_map___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___boxed(lean_object*); lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -466,7 +467,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__2(lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -505,6 +505,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkC extern lean_object* l_Lean_Expr_Lean_Expr___instance__11___closed__1; lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(lean_object*, lean_object*, lean_object*); @@ -540,6 +541,7 @@ extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_66 lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_CollectMVars_Lean_Util_CollectMVars___instance__1___closed__1; lean_object* l_Array_iterateMAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -557,10 +559,8 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___clo lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*); -lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__1(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run(lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___boxed(lean_object*); lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; @@ -1278,7 +1278,7 @@ x_16 = lean_array_fget(x_1, x_12); x_17 = lean_ctor_get(x_2, 4); x_18 = lean_ctor_get(x_16, 4); lean_inc(x_18); -x_19 = l_List_beq___main___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_17, x_18); +x_19 = l_List_beq___at_Lean_OpenDecl_Lean_Data_OpenDecl___instance__2___spec__1(x_17, x_18); lean_dec(x_18); if (x_19 == 0) { @@ -3077,7 +3077,7 @@ x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_3, x_16); lean_dec(x_3); x_18 = l_Lean_Syntax_getId(x_15); -x_19 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_18, x_4); +x_19 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_18, x_4); if (x_19 == 0) { lean_object* x_20; @@ -5792,7 +5792,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Te return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5804,7 +5804,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 1); x_8 = lean_name_eq(x_7, x_1); if (x_8 == 0) @@ -5832,7 +5832,7 @@ if (x_5 == 0) { uint8_t x_6; uint8_t x_7; x_6 = 0; -x_7 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_4, x_6, x_2); +x_7 = l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_4, x_6, x_2); return x_7; } else @@ -5922,13 +5922,13 @@ return x_17; } } } -lean_object* l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -6095,7 +6095,7 @@ x_14 = lean_ctor_get(x_10, 0); lean_dec(x_14); x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed), 2, 1); lean_closure_set(x_15, 0, x_1); -x_16 = l_List_findSome_x3f___main___rarg(x_15, x_2); +x_16 = l_List_findSome_x3f___rarg(x_15, x_2); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; @@ -6125,7 +6125,7 @@ lean_inc(x_20); lean_dec(x_10); x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed), 2, 1); lean_closure_set(x_21, 0, x_1); -x_22 = l_List_findSome_x3f___main___rarg(x_21, x_2); +x_22 = l_List_findSome_x3f___rarg(x_21, x_2); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; @@ -6565,7 +6565,7 @@ x_9 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_El lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_8); lean_inc(x_2); -x_10 = l_List_findSome_x3f___main___rarg(x_9, x_2); +x_10 = l_List_findSome_x3f___rarg(x_9, x_2); if (lean_obj_tag(x_10) == 0) { size_t x_11; size_t x_12; @@ -7491,7 +7491,7 @@ lean_dec(x_6); return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7512,7 +7512,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -7528,7 +7528,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -7698,7 +7698,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj lean_inc(x_5); x_6 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(x_1, x_2, x_3, x_5); lean_inc(x_5); -x_7 = l_List_map___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); x_8 = l_Lean_Elab_Term_MutualClosure_FixPoint_run(x_7, x_6); x_9 = lean_box(0); x_10 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_4, x_8, x_5, x_9); @@ -9354,7 +9354,7 @@ x_174 = l_Array_umapMAux___at_Lean_LocalContext_getFVars___spec__1(x_173, x_172) x_175 = x_174; x_176 = l_Array_toList___rarg(x_175); lean_dec(x_175); -x_177 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_176); +x_177 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_176); x_178 = l_Lean_MessageData_ofList(x_177); lean_dec(x_177); x_179 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4; @@ -10655,7 +10655,7 @@ lean_dec(x_2); return x_5; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10689,7 +10689,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs(lean_obj _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_1, x_2); return x_3; } } @@ -11051,7 +11051,7 @@ lean_dec(x_3); return x_12; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -11117,17 +11117,17 @@ lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs(lean_object* x_1, lean_o _start: { lean_object* x_5; -x_5 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_3, x_4, x_1, x_2); +x_5 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_3, x_4, x_1, x_2); return x_5; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_1); lean_dec(x_1); -x_6 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_5, x_2, x_3, x_4); +x_6 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_5, x_2, x_3, x_4); lean_dec(x_2); return x_6; } @@ -12332,7 +12332,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12409,7 +12409,7 @@ lean_inc(x_1); x_32 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_22); lean_ctor_set(x_5, 8, x_32); lean_ctor_set(x_5, 7, x_20); -x_33 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +x_33 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); lean_ctor_set(x_2, 1, x_33); return x_2; } @@ -12433,7 +12433,7 @@ lean_ctor_set(x_36, 7, x_20); lean_ctor_set(x_36, 8, x_35); lean_ctor_set(x_36, 9, x_18); lean_ctor_set(x_4, 2, x_36); -x_37 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +x_37 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); lean_ctor_set(x_2, 1, x_37); return x_2; } @@ -12505,7 +12505,7 @@ x_54 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_54, 0, x_38); lean_ctor_set(x_54, 1, x_39); lean_ctor_set(x_54, 2, x_53); -x_55 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +x_55 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); lean_ctor_set(x_2, 1, x_55); lean_ctor_set(x_2, 0, x_54); return x_2; @@ -12593,7 +12593,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_74, 0, x_57); lean_ctor_set(x_74, 1, x_58); lean_ctor_set(x_74, 2, x_73); -x_75 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_56); +x_75 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_56); x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_74); lean_ctor_set(x_76, 1, x_75); @@ -12738,7 +12738,7 @@ x_56 = lean_box(0); x_57 = l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns(x_56, x_1, x_51, x_3); lean_dec(x_3); lean_inc(x_54); -x_58 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_57, x_54); +x_58 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_57, x_54); x_59 = x_45; lean_inc(x_58); x_60 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__7(x_58, x_14, x_59); @@ -12747,11 +12747,11 @@ x_62 = x_51; lean_inc(x_58); x_63 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__8(x_58, x_14, x_62); x_64 = x_63; -x_65 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_58, x_54); +x_65 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_58, x_54); x_66 = l_Lean_Elab_Term_MutualClosure_getKindForLetRecs(x_64); x_67 = l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(x_64); x_68 = l_Array_empty___closed__1; -x_69 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_66, x_67, x_68, x_65); +x_69 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_66, x_67, x_68, x_65); lean_dec(x_67); x_70 = l_Lean_Elab_Term_MutualClosure_pushMain(x_69, x_1, x_64, x_61, x_6, x_7, x_8, x_9, x_10, x_11, x_55); lean_dec(x_11); @@ -13082,7 +13082,7 @@ x_128 = lean_box(0); x_129 = l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns(x_128, x_1, x_123, x_3); lean_dec(x_3); lean_inc(x_126); -x_130 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_129, x_126); +x_130 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_129, x_126); x_131 = x_117; lean_inc(x_130); x_132 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__7(x_130, x_14, x_131); @@ -13091,11 +13091,11 @@ x_134 = x_123; lean_inc(x_130); x_135 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__8(x_130, x_14, x_134); x_136 = x_135; -x_137 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_130, x_126); +x_137 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_130, x_126); x_138 = l_Lean_Elab_Term_MutualClosure_getKindForLetRecs(x_136); x_139 = l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(x_136); x_140 = l_Array_empty___closed__1; -x_141 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_138, x_139, x_140, x_137); +x_141 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_138, x_139, x_140, x_137); lean_dec(x_139); x_142 = l_Lean_Elab_Term_MutualClosure_pushMain(x_141, x_1, x_136, x_133, x_6, x_7, x_8, x_9, x_10, x_11, x_127); lean_dec(x_11); @@ -13458,7 +13458,7 @@ x_204 = lean_box(0); x_205 = l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns(x_204, x_1, x_199, x_3); lean_dec(x_3); lean_inc(x_202); -x_206 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_205, x_202); +x_206 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(x_205, x_202); x_207 = x_193; lean_inc(x_206); x_208 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__7(x_206, x_14, x_207); @@ -13467,11 +13467,11 @@ x_210 = x_199; lean_inc(x_206); x_211 = l_Array_umapMAux___at_Lean_Elab_Term_MutualClosure_main___spec__8(x_206, x_14, x_210); x_212 = x_211; -x_213 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_206, x_202); +x_213 = l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_206, x_202); x_214 = l_Lean_Elab_Term_MutualClosure_getKindForLetRecs(x_212); x_215 = l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(x_212); x_216 = l_Array_empty___closed__1; -x_217 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_214, x_215, x_216, x_213); +x_217 = l_List_foldl___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(x_214, x_215, x_216, x_213); lean_dec(x_215); x_218 = l_Lean_Elab_Term_MutualClosure_pushMain(x_217, x_1, x_212, x_209, x_6, x_7, x_183, x_9, x_10, x_11, x_203); lean_dec(x_11); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c index 66b85ac024..1ad5475304 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c @@ -48,7 +48,6 @@ extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___clos lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Elab_fixLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Elab_addNonRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at___private_Lean_Meta_Closure_0__Lean_Meta_mkAuxDefinitionImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,6 +85,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_levelMVarToParamExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_fixLevelParams_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_shareCommon___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Lean_Elab_PreDefinition_Basic___instance__1; @@ -98,7 +98,6 @@ lean_object* l_Array_umapMAux___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__ lean_object* l_Lean_Elab_fixLevelParams_match__1(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_addAndCompileUnsafeRec___spec__2___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_addAndCompileUnsafeRec___spec__2___lambda__1(lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_Elab_fixLevelParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -116,6 +115,7 @@ extern lean_object* l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___ins lean_object* l_Lean_Elab_fixLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addAndCompileNonRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_fixLevelParams___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_levelMVarToParamPreDeclsAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -1304,7 +1304,7 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); -x_15 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_14); +x_15 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_14); lean_inc(x_11); x_16 = x_11; x_17 = lean_unsigned_to_nat(0u); @@ -1322,7 +1322,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_12); lean_inc(x_20); -x_22 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_20); +x_22 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_20); lean_inc(x_11); x_23 = x_11; x_24 = lean_unsigned_to_nat(0u); @@ -2356,7 +2356,7 @@ lean_dec(x_3); return x_9; } } -lean_object* l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2394,7 +2394,7 @@ lean_ctor_set(x_13, 0, x_10); lean_ctor_set(x_13, 1, x_9); lean_ctor_set(x_13, 2, x_11); lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_12); -x_14 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_5); +x_14 = l_List_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_5); lean_ctor_set(x_1, 1, x_14); lean_ctor_set(x_1, 0, x_13); return x_1; @@ -2427,7 +2427,7 @@ lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_20); lean_ctor_set(x_24, 2, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_23); -x_25 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_16); +x_25 = l_List_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_16); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); @@ -2441,7 +2441,7 @@ _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = l_Array_toList___rarg(x_1); -x_10 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_9); +x_10 = l_List_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_9); x_11 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_inc(x_6); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index 9d17ee0864..8ae7937ac3 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -42,7 +42,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1; lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1(lean_object*, lean_object*); @@ -62,7 +61,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursiv lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__21(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(lean_object*); lean_object* l_Lean_Expr_FoldConstsImpl_fold_visit___rarg(lean_object*, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef_match__1(lean_object*); uint8_t l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__11(lean_object*, lean_object*); @@ -94,6 +92,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); extern lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___rarg___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__24(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(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_Lean_Meta_collectMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,6 +101,7 @@ size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__4(lean_object*, size_t, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___rarg___closed__3; lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*); lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__12(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -129,7 +129,6 @@ extern lean_object* l_Lean_Elab_Lean_Elab_PreDefinition_Basic___instance__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__1; lean_object* l_Array_findMAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___boxed(lean_object*, lean_object*); @@ -140,6 +139,7 @@ lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_updateLowLinkOf___rarg___lamb lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_collectMVarsAtPreDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_Elab_addPreDefinitions___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); extern lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__4; @@ -856,7 +856,7 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -877,7 +877,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 2); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -893,7 +893,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 2); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -2665,7 +2665,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_2 = l_Array_toList___rarg(x_1); -x_3 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_2); +x_3 = l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(x_2); lean_inc(x_1); x_4 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__4(x_1, x_3); x_5 = l_List_redLength___rarg(x_4); @@ -3365,7 +3365,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__5(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3390,7 +3390,7 @@ x_7 = lean_box(0); x_8 = l_Lean_mkConst(x_6, x_7); x_9 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_9, 0, x_8); -x_10 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(x_5); +x_10 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__5(x_5); lean_ctor_set(x_1, 1, x_10); lean_ctor_set(x_1, 0, x_9); return x_1; @@ -3410,7 +3410,7 @@ x_14 = lean_box(0); x_15 = l_Lean_mkConst(x_13, x_14); x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); -x_17 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(x_12); +x_17 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__5(x_12); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -3454,7 +3454,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3474,7 +3474,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(x_5); +x_7 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -3489,7 +3489,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(x_9); +x_11 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -3537,7 +3537,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_3 = l_Array_toList___rarg(x_1); -x_4 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(x_3); +x_4 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__5(x_3); x_5 = l_Lean_MessageData_ofList___closed__3; x_6 = l_Lean_MessageData_joinSep(x_4, x_5); lean_dec(x_4); @@ -4186,7 +4186,7 @@ x_91 = l_Array_umapMAux___at_Lean_Elab_addPreDefinitions___spec__6(x_90, x_89); x_92 = x_91; x_93 = l_Array_toList___rarg(x_92); lean_dec(x_92); -x_94 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(x_93); +x_94 = l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(x_93); x_95 = l_Lean_MessageData_ofList(x_94); lean_dec(x_94); x_96 = l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index a2922d6e90..fe9498dbb5 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -210,6 +210,7 @@ lean_object* l_Lean_Elab_structuralRecursion(lean_object*, lean_object*, lean_ob 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_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstanceImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___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_replaceRecApps_loop_match__2(lean_object*); @@ -235,7 +236,6 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l_Array_filterAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1___boxed(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_umapMAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__9___lambda__2___closed__5; -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(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___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__7___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*); @@ -10272,7 +10272,7 @@ x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); x_41 = l_Array_toList___rarg(x_6); -x_42 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_41); +x_42 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_41); x_43 = l_Lean_MessageData_ofList(x_42); lean_dec(x_42); x_44 = lean_alloc_ctor(10, 2, 0); @@ -12978,7 +12978,7 @@ x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); x_26 = l_Array_toList___rarg(x_2); -x_27 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_26); +x_27 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_26); x_28 = l_Lean_MessageData_ofList(x_27); lean_dec(x_27); x_29 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index d9beb52ae2..6763479c75 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -48,9 +48,9 @@ lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Print_0__Lean_El lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Meta_assumption___closed__1; -lean_object* l_List_map___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__3; lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_CollectAxioms_collect_match__2(lean_object*); lean_object* l_Lean_Elab_Command_elabPrint___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__2___rarg(lean_object*, lean_object*); @@ -95,6 +95,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabPrint_match__1(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__4; +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; lean_object* l_Lean_Elab_Command_CollectAxioms_State_axioms___default; uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -119,7 +120,6 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed_ lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -161,8 +161,8 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg__ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___boxed(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object*); extern lean_object* l_Lean_Elab_Lean_Elab_DeclModifiers___instance__2___closed__4; -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Expr_getUsedConstants(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); @@ -1999,7 +1999,7 @@ lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Print_0__Lean_El _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_6 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -2018,7 +2018,7 @@ x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); x_8 = lean_box(0); -x_9 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_6, x_8); +x_9 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_6, x_8); x_10 = l_List_isEmpty___rarg(x_9); if (x_10 == 0) { @@ -3066,7 +3066,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Print_0__Lean_Elab_Comman return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3086,7 +3086,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -3101,7 +3101,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -3194,7 +3194,7 @@ lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); x_19 = l_Array_toList___rarg(x_12); lean_dec(x_12); -x_20 = l_List_map___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_19); +x_20 = l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_19); x_21 = l_Lean_MessageData_ofList(x_20); lean_dec(x_20); x_22 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 70f10fb75b..722b211e76 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -22,6 +22,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBind extern lean_object* l_Lean_Expr_eq_x3f___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__8___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__1___closed__10; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explodeHeadPat___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__2___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__4; @@ -62,7 +63,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__8; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explodeHeadPat_match__2(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__13; -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__31; @@ -90,6 +90,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPrete lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__24; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___lambda__1___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; extern lean_object* l_Lean_Syntax_isAntiquot_match__1___rarg___closed__1; @@ -103,7 +104,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explode lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___closed__3; extern lean_object* l_Init_Data_Repr___instance__2___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabDoElemQuot___closed__3; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__9; @@ -112,6 +112,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabStxQuot___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__21; lean_object* l_Lean_Parser_mkParserState(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__12; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; @@ -136,11 +137,11 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__23; extern lean_object* l_Lean_Init_LeanInit___instance__19___rarg___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__19; lean_object* l_List_range(lean_object*); +lean_object* l_List_zipWith___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices(lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_HeadInfo_rhsFn___default___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__17; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__18; @@ -167,6 +168,7 @@ lean_object* l_Lean_Elab_Term_Quotation_oldRunTermElabM___boxed(lean_object*, le lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l_List_join___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__2___closed__3; @@ -184,6 +186,7 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____c lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60; extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__4; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__2; extern lean_object* l_Lean_Parser_mkAntiquot___closed__3; @@ -211,9 +214,7 @@ lean_object* l_Lean_Elab_Term_Quotation_getPatternVars(lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; extern lean_object* l_Lean_Meta_reduceNat_x3f___closed__12; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52; -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_0__Lean_quoteList___rarg___closed__5; -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabLevelQuot___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___closed__4; @@ -233,6 +234,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPrete lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__19; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_findMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices___spec__2(lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabfunBinderQuot(lean_object*); extern lean_object* l_Lean_setOptionFromString___closed__4; extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -267,9 +269,9 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__22; lean_object* l_Lean_Elab_Term_Quotation_isAntiquotSplice___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__7; -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__17; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__10; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -282,9 +284,9 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_oldExpandStxQuot___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__21; -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__6; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuotSeq___closed__1; @@ -318,7 +320,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__13; extern lean_object* l_Lean_choiceKind; lean_object* l_Lean_Elab_Term_Quotation_HeadInfo_argPats___default; -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__28; lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -330,14 +331,13 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__1; lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2; -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_oldParseExpr_match__1(lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_oldExpandStxQuot___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f_match__1(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__12; -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Level_elabLevel___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__4; @@ -363,6 +363,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPrete lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__4(lean_object*); lean_object* l_Lean_Parser_getTokenTable(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -370,7 +371,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPrete extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss(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_Quotation_oldExpandMatchSyntax___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1___closed__1; @@ -396,12 +396,12 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explode lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___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*); uint8_t l_Lean_Syntax_isAtom(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_141____closed__4; +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___closed__2; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Term_Quotation_elabTermQuot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__6; -lean_object* l_List_join___main___rarg(lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1___closed__2; lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -410,6 +410,7 @@ extern lean_object* l_Lean_mkAppStx___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabDoElemQuot(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__29; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabfunBinderQuot___closed__4; +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_setName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__25; lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -454,16 +455,17 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____c lean_object* l_Lean_Elab_Term_Quotation_oldRunTermElabM(lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2___boxed(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabfunBinderQuot___closed__1; -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explodeHeadPat___closed__4; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__2___closed__3; extern lean_object* l_Lean_Parser_categoryParserFnImpl___closed__3; lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__2___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explodeHeadPat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___closed__2; +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkPure___rarg___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; @@ -503,8 +505,8 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPrete lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__20; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss_match__2(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__3___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Quotation_isAntiquotSplice(lean_object*); @@ -539,6 +541,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile lean_object* l_Lean_Elab_Term_Quotation_elabDoElemQuot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabDoElemQuot___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58; +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabDoElemQuot___closed__2; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; lean_object* l_Array_umapMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__4(lean_object*, lean_object*, lean_object*); @@ -548,8 +551,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabStxQuot(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__10; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__32; lean_object* l___private_Init_LeanInit_0__Lean_quoteName(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__7; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabLevelQuot(lean_object*); @@ -568,8 +569,10 @@ extern lean_object* l_Lean_Unhygienic_run___rarg___closed__1; lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); lean_object* l_Array_iterateMAux___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__18; +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_oldParseExpr_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__8___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -579,22 +582,20 @@ extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabfunBinderQuot___closed__3; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__16; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___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_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__16; -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__12; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__4___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices_match__2(lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__17___closed__4; -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__8___closed__7; lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__4___closed__1; extern lean_object* l_Lean_mkAppStx___closed__2; @@ -612,6 +613,7 @@ lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Quotation_match__syntax_expand lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__2___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explodeHeadPat_match__1(lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_getAntiquotTerm___boxed(lean_object*); lean_object* l_Array_umapMAux___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTermQuot(lean_object*); @@ -624,7 +626,6 @@ uint8_t l_Lean_Elab_Term_Quotation_HeadInfo_generalizes(lean_object*, lean_objec lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__1; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_zipWith___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__1___closed__4; @@ -635,14 +636,13 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__3___closed__5; uint8_t l_Array_anyRangeMAux___at_Lean_Elab_Term_Quotation_isAntiquotSplicePat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__4; +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__5(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43; lean_object* l_Lean_Elab_Term_Quotation_unescapeAntiquot(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__5; lean_object* l_Lean_Elab_Term_Quotation_HeadInfo_generalizes___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__1___closed__1; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__19; @@ -6963,7 +6963,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Te return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6983,7 +6983,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -6998,7 +6998,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -7051,7 +7051,7 @@ return x_5; } } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7081,7 +7081,7 @@ goto _start; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7182,7 +7182,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean x_13 = lean_ctor_get(x_2, 0); x_14 = lean_ctor_get(x_2, 1); x_15 = lean_unsigned_to_nat(0u); -x_16 = l_List_lengthAux___main___rarg(x_1, x_15); +x_16 = l_List_lengthAux___rarg(x_1, x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -7293,7 +7293,7 @@ lean_inc(x_35); lean_inc(x_34); lean_dec(x_2); x_36 = lean_unsigned_to_nat(0u); -x_37 = l_List_lengthAux___main___rarg(x_1, x_36); +x_37 = l_List_lengthAux___rarg(x_1, x_36); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -7398,7 +7398,7 @@ return x_54; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7471,7 +7471,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7492,7 +7492,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -7508,7 +7508,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -8363,7 +8363,7 @@ _start: lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_box(0); lean_inc(x_2); -x_14 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(x_1, x_2, x_13); +x_14 = l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(x_1, x_2, x_13); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -8578,8 +8578,8 @@ lean_dec(x_38); x_103 = lean_ctor_get(x_39, 0); lean_inc(x_103); lean_dec(x_39); -x_104 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_13); -x_105 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_104); +x_104 = l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_13); +x_105 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_104); lean_inc(x_4); x_106 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_106, 0, x_4); @@ -9355,8 +9355,8 @@ lean_dec(x_368); x_407 = lean_ctor_get(x_369, 0); lean_inc(x_407); lean_dec(x_369); -x_408 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_13); -x_409 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_408); +x_408 = l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_13); +x_409 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_408); lean_inc(x_4); x_410 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_410, 0, x_4); @@ -9869,12 +9869,12 @@ x_23 = lean_ctor_get(x_1, 1); lean_inc(x_23); lean_dec(x_1); lean_inc(x_2); -x_24 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_2); +x_24 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_2); x_25 = l_List_zip___rarg___closed__1; -x_26 = l_List_zipWith___main___rarg(x_25, x_24, x_2); +x_26 = l_List_zipWith___rarg(x_25, x_24, x_2); x_27 = l_List_head_x21___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_26); x_28 = l_List_tail_x21___rarg(x_26); -x_29 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(x_27, x_28); +x_29 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(x_27, x_28); lean_dec(x_28); lean_dec(x_27); x_30 = lean_ctor_get(x_29, 0); @@ -9920,21 +9920,21 @@ lean_dec(x_1); return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(x_1, x_2); +x_3 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -9948,11 +9948,11 @@ lean_dec(x_1); return x_10; } } -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -10016,7 +10016,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Te return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10036,7 +10036,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -10051,7 +10051,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -10072,8 +10072,8 @@ if (x_3 == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = l_Array_toList___rarg(x_2); -x_5 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_4); -x_6 = l_List_join___main___rarg(x_5); +x_5 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_4); +x_6 = l_List_join___rarg(x_5); return x_6; } else @@ -10106,8 +10106,8 @@ else { lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = l_Array_toList___rarg(x_2); -x_14 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_13); -x_15 = l_List_join___main___rarg(x_14); +x_14 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getPatternVarsAux___spec__1(x_13); +x_15 = l_List_join___rarg(x_14); return x_15; } } @@ -10229,7 +10229,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Te return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10248,7 +10248,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Elab_Term_Quotation_getPatternVars(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -10262,7 +10262,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Elab_Term_Quotation_getPatternVars(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -10432,8 +10432,8 @@ x_16 = lean_ctor_get(x_2, 1); x_17 = lean_ctor_get(x_14, 0); x_18 = lean_ctor_get(x_14, 1); lean_inc(x_17); -x_19 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_17); -x_20 = l_List_join___main___rarg(x_19); +x_19 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_17); +x_20 = l_List_join___rarg(x_19); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; @@ -11474,8 +11474,8 @@ lean_inc(x_429); lean_inc(x_428); lean_dec(x_14); lean_inc(x_428); -x_430 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_428); -x_431 = l_List_join___main___rarg(x_430); +x_430 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_428); +x_431 = l_List_join___rarg(x_430); if (lean_obj_tag(x_431) == 0) { lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; uint8_t x_472; lean_object* x_473; lean_object* x_474; @@ -11960,8 +11960,8 @@ if (lean_is_exclusive(x_601)) { x_605 = lean_box(0); } lean_inc(x_603); -x_606 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_603); -x_607 = l_List_join___main___rarg(x_606); +x_606 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_603); +x_607 = l_List_join___rarg(x_606); if (lean_obj_tag(x_607) == 0) { lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; uint8_t x_648; uint8_t x_649; lean_object* x_650; lean_object* x_651; @@ -14978,7 +14978,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Te return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -14998,7 +14998,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_box(0); x_7 = lean_name_mk_string(x_6, x_4); -x_8 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_5); +x_8 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -15013,7 +15013,7 @@ lean_inc(x_9); lean_dec(x_1); x_11 = lean_box(0); x_12 = lean_name_mk_string(x_11, x_9); -x_13 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_10); +x_13 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -15022,7 +15022,7 @@ return x_14; } } } -static lean_object* _init_l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1() { +static lean_object* _init_l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1() { _start: { lean_object* x_1; @@ -15030,17 +15030,17 @@ x_1 = lean_mk_string("fieldNotation"); return x_1; } } -static lean_object* _init_l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2() { +static lean_object* _init_l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1; +x_2 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15056,7 +15056,7 @@ x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); lean_dec(x_2); x_5 = lean_box(0); -x_6 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2; +x_6 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2; x_7 = l_Lean_KVMap_setName(x_5, x_6, x_3); x_8 = l_Lean_mkMData(x_7, x_1); x_1 = x_8; @@ -16085,7 +16085,7 @@ lean_inc(x_60); x_61 = lean_ctor_get(x_57, 1); lean_inc(x_61); lean_dec(x_57); -x_62 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_61); +x_62 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_61); if (lean_obj_tag(x_60) == 4) { lean_object* x_63; lean_object* x_64; lean_object* x_65; @@ -16093,14 +16093,14 @@ x_63 = lean_ctor_get(x_60, 0); lean_inc(x_63); lean_dec(x_60); x_64 = l_Lean_mkConst(x_63, x_49); -x_65 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_64, x_62); +x_65 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_64, x_62); lean_ctor_set(x_50, 0, x_65); return x_50; } else { lean_object* x_66; -x_66 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_60, x_62); +x_66 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_60, x_62); lean_ctor_set(x_50, 0, x_66); return x_50; } @@ -16116,7 +16116,7 @@ lean_inc(x_68); x_69 = lean_ctor_get(x_57, 1); lean_inc(x_69); lean_dec(x_57); -x_70 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_69); +x_70 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_69); if (lean_obj_tag(x_68) == 4) { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; @@ -16124,7 +16124,7 @@ x_71 = lean_ctor_get(x_68, 0); lean_inc(x_71); lean_dec(x_68); x_72 = l_Lean_mkConst(x_71, x_49); -x_73 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_72, x_70); +x_73 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_72, x_70); x_74 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_67); @@ -16133,7 +16133,7 @@ return x_74; else { lean_object* x_75; lean_object* x_76; -x_75 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_68, x_70); +x_75 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_68, x_70); x_76 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_67); @@ -20319,7 +20319,7 @@ lean_inc(x_1194); x_1195 = lean_ctor_get(x_1191, 1); lean_inc(x_1195); lean_dec(x_1191); -x_1196 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_1195); +x_1196 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__1(x_1195); if (lean_obj_tag(x_1194) == 4) { lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; @@ -20327,7 +20327,7 @@ x_1197 = lean_ctor_get(x_1194, 0); lean_inc(x_1197); lean_dec(x_1194); x_1198 = l_Lean_mkConst(x_1197, x_1183); -x_1199 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_1198, x_1196); +x_1199 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_1198, x_1196); if (lean_is_scalar(x_1193)) { x_1200 = lean_alloc_ctor(0, 2, 0); } else { @@ -20340,7 +20340,7 @@ return x_1200; else { lean_object* x_1201; lean_object* x_1202; -x_1201 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_1194, x_1196); +x_1201 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2(x_1194, x_1196); if (lean_is_scalar(x_1193)) { x_1202 = lean_alloc_ctor(0, 2, 0); } else { @@ -21523,7 +21523,7 @@ x_3 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Te return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -21548,7 +21548,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -21571,7 +21571,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -21588,7 +21588,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -21635,12 +21635,12 @@ x_5 = lean_ctor_get(x_1, 2); lean_inc(x_5); lean_dec(x_1); x_6 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___rarg___closed__1; -x_7 = l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(x_6, x_4); +x_7 = l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__1(x_6, x_4); lean_inc(x_3); x_8 = lean_get_namespace(x_3); x_9 = lean_box(0); x_10 = lean_box(0); -x_11 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_10, x_5); +x_11 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___spec__2(x_10, x_5); x_12 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___rarg___closed__3; x_13 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___rarg___closed__2; x_14 = l_Lean_firstFrontendMacroScope; @@ -21861,7 +21861,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -21881,7 +21881,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Syntax_getId(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_5); +x_7 = l_List_map___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -21896,7 +21896,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Syntax_getId(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_9); +x_11 = l_List_map___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -21909,16 +21909,16 @@ lean_object* lean_get_antiquot_vars(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_2); -x_4 = l_List_join___main___rarg(x_3); -x_5 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_4); +x_3 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(x_2); +x_4 = l_List_join___rarg(x_3); +x_5 = l_List_map___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(x_4); x_6 = lean_alloc_closure((void*)(l_Std_PersistentArray_forIn___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__1___lambda__1___boxed), 8, 1); lean_closure_set(x_6, 0, x_5); x_7 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_oldRunTermElabMUnsafe___rarg(x_1, x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -21937,7 +21937,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices(x_4); -x_7 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_5); +x_7 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -21951,7 +21951,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices(x_8); -x_11 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_9); +x_11 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -21960,7 +21960,7 @@ return x_12; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -21982,7 +21982,7 @@ x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); -x_9 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_8); +x_9 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_8); x_10 = lean_ctor_get(x_6, 1); lean_inc(x_10); lean_dec(x_6); @@ -21995,7 +21995,7 @@ lean_ctor_set(x_12, 1, x_11); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_9); lean_ctor_set(x_13, 1, x_12); -x_14 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_1, x_2, x_7); +x_14 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_14); lean_ctor_set(x_3, 0, x_13); return x_3; @@ -22010,7 +22010,7 @@ lean_inc(x_15); lean_dec(x_3); x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); -x_18 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_17); +x_18 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__1(x_17); x_19 = lean_ctor_get(x_15, 1); lean_inc(x_19); lean_dec(x_15); @@ -22023,7 +22023,7 @@ lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_21); -x_23 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_1, x_2, x_16); +x_23 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_1, x_2, x_16); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -22105,7 +22105,7 @@ x_7 = l_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___closed__1; x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); -x_9 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_7, x_5, x_3); +x_9 = l_List_map___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spec__2(x_7, x_5, x_3); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_4); @@ -22625,10 +22625,10 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_exprPlaceholder = _i lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_exprPlaceholder); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__5___rarg___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__5___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm_match__5___rarg___closed__1); -l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1 = _init_l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1(); -lean_mark_persistent(l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1); -l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2 = _init_l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2(); -lean_mark_persistent(l_List_foldl___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2); +l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1 = _init_l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1(); +lean_mark_persistent(l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__1); +l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2 = _init_l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2(); +lean_mark_persistent(l_List_foldl___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___spec__2___closed__2); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__1); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/StrategyAttrs.c b/stage0/stdlib/Lean/Elab/StrategyAttrs.c index 4edefcb8eb..e5bd804092 100644 --- a/stage0/stdlib/Lean/Elab/StrategyAttrs.c +++ b/stage0/stdlib/Lean/Elab/StrategyAttrs.c @@ -16,11 +16,10 @@ extern "C" { lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10; extern lean_object* l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20; -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2___boxed(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_registerEnumAttributes___spec__10(lean_object*, lean_object*); @@ -28,9 +27,11 @@ lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs__ extern lean_object* l_Lean_registerInternalExceptionId___closed__2; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12; extern lean_object* l_Array_empty___closed__1; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, 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_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -38,9 +39,11 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2(lean_object*); lean_object* l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5; lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18; lean_object* l_Lean_elaboratorStrategyAttrs; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15; @@ -49,16 +52,13 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); extern lean_object* l_Lean_registerTagAttribute___lambda__7___closed__2; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17; -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9; lean_object* lean_nat_sub(lean_object*, lean_object*); uint8_t l_Lean_Lean_Elab_StrategyAttrs___instance__1; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4; lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(lean_object*, lean_object*, lean_object*); @@ -75,6 +75,7 @@ lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_Str extern lean_object* l_Lean_Init_LeanInit___instance__1; lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2; lean_object* l_Array_anyRangeMAux___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1; lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1; @@ -86,6 +87,7 @@ lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1_ extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2___boxed(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19; extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__2; @@ -96,18 +98,16 @@ lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_obje lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__5(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7; lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16; extern lean_object* l_Lean_EnumAttributes_Lean_Attributes___instance__7___closed__1; -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10_(lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21; lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -500,7 +500,7 @@ return x_36; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -557,7 +557,7 @@ return x_21; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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; @@ -576,7 +576,7 @@ if (lean_obj_tag(x_15) == 0) lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_16 = lean_box(0); -x_17 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); +x_17 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); return x_17; } else @@ -622,7 +622,7 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (x_7 == 0) @@ -668,12 +668,12 @@ else { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); +x_23 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); return x_23; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -695,7 +695,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_9 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_8); +x_9 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_8); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 0); @@ -711,7 +711,7 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_3); @@ -733,7 +733,7 @@ lean_inc(x_17); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_18); +x_19 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_18); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 0); @@ -749,7 +749,7 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); +x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_3); @@ -836,7 +836,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); lean_inc(x_13); -x_15 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_3, x_4, x_13, x_2); +x_15 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_3, x_4, x_13, x_2); lean_inc(x_15); x_16 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_15, x_14); if (lean_obj_tag(x_16) == 0) @@ -1198,29 +1198,29 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1228,18 +1228,18 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); +x_14 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_14; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_5, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 1da19428f4..c747edf298 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -17,9 +17,11 @@ lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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_Term_StructInst_Struct_modifyFields(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__10___closed__3; lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(lean_object*); lean_object* l_Array_foldlStepMAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__6; +uint8_t l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -121,6 +123,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_group lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__16; lean_object* l_List_append___rarg(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__5(lean_object*); lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); @@ -144,7 +147,6 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__6(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_object*, lean_object*, lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__4; lean_object* l_Lean_Elab_Term_StructInst_Struct_setFields(lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -152,8 +154,6 @@ lean_object* l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___sp lean_object* l_Std_HashMap_toList___rarg(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__18; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__1(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object*, lean_object*); -lean_object* l_List_map___main___rarg(lean_object*, lean_object*); lean_object* l_Nat_max(lean_object*, lean_object*); extern lean_object* l_Lean_formatKVMap___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; @@ -177,7 +177,6 @@ lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__8___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__15; @@ -201,6 +200,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCto lean_object* l_Array_findIdxAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__18; lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Environment_getProjectionStructureName_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames_match__1(lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -212,6 +212,7 @@ lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple___rarg___boxed(lean_obje lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11___boxed(lean_object**); +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13; lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1___rarg(lean_object*, lean_object*); @@ -241,6 +242,7 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__22; lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__9; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__5; +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__2___closed__1; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -259,16 +261,15 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabM extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__28; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__8; -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__4___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__7(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap_match__1(lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__4(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux_match__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f_match__1(lean_object*); @@ -277,6 +278,7 @@ lean_object* l_Lean_Elab_Term_StructInst_elabStructInst_match__2___rarg(lean_obj lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple(lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields___boxed(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -287,7 +289,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFie lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__17; lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1(lean_object*); @@ -299,7 +300,6 @@ lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__4___cl lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__2; extern lean_object* l_Lean_formatEntry___closed__2; -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___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_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___closed__1; @@ -332,15 +332,17 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___boxed(lean lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; size_t l_Lean_Name_hash(lean_object*); +lean_object* l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__5(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___rarg(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; -uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___closed__2; lean_object* l_Lean_Meta_synthInstance_x3f___at_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__4; +lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f(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_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -365,7 +367,6 @@ lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___closed__2; lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__2(lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -389,7 +390,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expan lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2(lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1___rarg(uint8_t, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object*, lean_object*); @@ -406,6 +406,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFo lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__8; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___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*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; @@ -423,6 +424,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isMod lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; uint8_t l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(lean_object*); lean_object* l_List_forM___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__3(lean_object*); @@ -439,7 +441,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f_mat lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_structName___boxed(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -448,7 +449,6 @@ lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField_match__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__12; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3(lean_object*); @@ -497,11 +497,13 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; lean_object* l_Init_Control_Reader___instance__1___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -518,6 +520,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabS uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSubstructSource_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); @@ -559,7 +562,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabM lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_StructInst_Struct_modifyFields___spec__1(lean_object*, lean_object*); extern lean_object* l_List_head_x21___rarg___closed__3; lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__7___closed__1; -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__3(lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -653,7 +655,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_lo lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__2; lean_object* l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__1; extern lean_object* l_System_FilePath_dirName___closed__1; @@ -663,6 +664,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getSt lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f___boxed(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_StructInst_DefaultFields_State_progress___default; @@ -675,7 +677,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFie uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__10; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_299____closed__8; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__1___rarg(lean_object*, lean_object*); @@ -696,7 +697,6 @@ lean_object* l_Lean_Elab_Term_StructInst_Source_isNone_match__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__4; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___closed__3; @@ -723,13 +723,13 @@ extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_ref_match__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__3(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__8(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_Context_maxDistance___default; lean_object* l_Array_iterateMAux___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2; +lean_object* l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___boxed(lean_object*); @@ -4958,7 +4958,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_Struct_allDefault_m return x_2; } } -uint8_t l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4970,7 +4970,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_1, x_4); +x_5 = l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 2); switch (lean_obj_tag(x_6)) { case 0: @@ -5009,17 +5009,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_Lean_Elab_Term_StructInst_Struct_allDefault___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -5543,7 +5543,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct_match_ return x_2; } } -static lean_object* _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1() { +static lean_object* _init_l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1() { _start: { lean_object* x_1; @@ -5551,7 +5551,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatStruct), 1, 0 return x_1; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5569,9 +5569,9 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +x_6 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_7 = l_Lean_Elab_Term_StructInst_formatField(x_6, x_4); -x_8 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_5); +x_8 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -5584,9 +5584,9 @@ x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); lean_inc(x_9); lean_dec(x_1); -x_11 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +x_11 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_12 = l_Lean_Elab_Term_StructInst_formatField(x_11, x_9); -x_13 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_10); +x_13 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -5652,7 +5652,7 @@ lean_inc(x_2); x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); lean_dec(x_1); -x_4 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_2); +x_4 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(x_2); x_5 = l_Lean_formatKVMap___closed__1; x_6 = l_Lean_Format_joinSep___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1(x_4, x_5); lean_dec(x_4); @@ -5718,7 +5718,7 @@ static lean_object* _init_l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___ins _start: { lean_object* x_1; -x_1 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +x_1 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; return x_1; } } @@ -5727,7 +5727,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Lean_Data_Format___instance__20___closed__1; -x_2 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +x_2 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_3 = lean_alloc_closure((void*)(l_Function_comp___rarg), 3, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -5746,7 +5746,7 @@ static lean_object* _init_l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___ins _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; +x_1 = l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1; x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_formatField), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -7189,7 +7189,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_T return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7212,7 +7212,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_1); lean_ctor_set(x_7, 1, x_5); -x_8 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7229,7 +7229,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_9); -x_12 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -7238,7 +7238,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7261,7 +7261,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_1); lean_ctor_set(x_7, 1, x_5); -x_8 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7278,7 +7278,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_9); -x_12 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -7287,7 +7287,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7305,7 +7305,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_5); +x_6 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_5); x_7 = lean_ctor_get(x_4, 1); lean_inc(x_7); if (lean_obj_tag(x_7) == 0) @@ -7378,7 +7378,7 @@ x_20 = lean_ctor_get(x_8, 0); lean_inc(x_20); lean_dec(x_8); x_21 = l_Lean_Name_components(x_9); -x_22 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_20, x_21); +x_22 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_20, x_21); x_23 = l_List_append___rarg(x_22, x_18); lean_ctor_set(x_4, 1, x_23); lean_ctor_set(x_7, 1, x_6); @@ -7395,7 +7395,7 @@ x_25 = lean_ctor_get(x_8, 0); lean_inc(x_25); lean_dec(x_8); x_26 = l_Lean_Name_components(x_9); -x_27 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_25, x_26); +x_27 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_25, x_26); x_28 = l_List_append___rarg(x_27, x_24); lean_ctor_set(x_4, 1, x_28); x_29 = lean_alloc_ctor(1, 2, 0); @@ -7428,7 +7428,7 @@ x_35 = lean_ctor_get(x_8, 0); lean_inc(x_35); lean_dec(x_8); x_36 = l_Lean_Name_components(x_9); -x_37 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_35, x_36); +x_37 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_35, x_36); x_38 = l_List_append___rarg(x_37, x_33); x_39 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_39, 0, x_30); @@ -7466,7 +7466,7 @@ x_46 = lean_ctor_get(x_8, 0); lean_inc(x_46); lean_dec(x_8); x_47 = l_Lean_Name_components(x_9); -x_48 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_46, x_47); +x_48 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_46, x_47); x_49 = l_List_append___rarg(x_48, x_44); lean_ctor_set(x_4, 1, x_49); lean_ctor_set(x_7, 1, x_6); @@ -7483,7 +7483,7 @@ x_51 = lean_ctor_get(x_8, 0); lean_inc(x_51); lean_dec(x_8); x_52 = l_Lean_Name_components(x_9); -x_53 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_51, x_52); +x_53 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_51, x_52); x_54 = l_List_append___rarg(x_53, x_50); lean_ctor_set(x_4, 1, x_54); x_55 = lean_alloc_ctor(1, 2, 0); @@ -7516,7 +7516,7 @@ x_61 = lean_ctor_get(x_8, 0); lean_inc(x_61); lean_dec(x_8); x_62 = l_Lean_Name_components(x_9); -x_63 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_61, x_62); +x_63 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_61, x_62); x_64 = l_List_append___rarg(x_63, x_59); x_65 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_65, 0, x_56); @@ -7599,7 +7599,7 @@ x_76 = lean_ctor_get(x_1, 1); lean_inc(x_76); lean_inc(x_75); lean_dec(x_1); -x_77 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_76); +x_77 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(x_76); x_78 = lean_ctor_get(x_75, 1); lean_inc(x_78); if (lean_obj_tag(x_78) == 0) @@ -7682,7 +7682,7 @@ x_91 = lean_ctor_get(x_80, 0); lean_inc(x_91); lean_dec(x_80); x_92 = l_Lean_Name_components(x_81); -x_93 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_91, x_92); +x_93 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__1(x_91, x_92); x_94 = l_List_append___rarg(x_93, x_89); if (lean_is_scalar(x_88)) { x_95 = lean_alloc_ctor(0, 4, 0); @@ -7736,7 +7736,7 @@ x_103 = lean_ctor_get(x_80, 0); lean_inc(x_103); lean_dec(x_80); x_104 = l_Lean_Name_components(x_81); -x_105 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_103, x_104); +x_105 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__2(x_103, x_104); x_106 = l_List_append___rarg(x_105, x_101); if (lean_is_scalar(x_100)) { x_107 = lean_alloc_ctor(0, 4, 0); @@ -7811,7 +7811,7 @@ static lean_object* _init_l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_Str _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3), 1, 0); +x_1 = lean_alloc_closure((void*)(l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3), 1, 0); return x_1; } } @@ -8961,7 +8961,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_0__Lean_Elab_T return x_2; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1() { +static lean_object* _init_l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1() { _start: { lean_object* x_1; @@ -8969,12 +8969,12 @@ x_1 = lean_mk_string("_private.Lean.Elab.StructInst.0.Lean.Elab.Term.StructInst. return x_1; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2() { +static lean_object* _init_l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; -x_2 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1; x_3 = lean_unsigned_to_nat(347u); x_4 = lean_unsigned_to_nat(34u); x_5 = l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -8982,7 +8982,7 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9002,7 +9002,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_7 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_6); +x_7 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_6); if (lean_obj_tag(x_5) == 1) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -9024,7 +9024,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_5); lean_dec(x_1); x_12 = l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__2; -x_13 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; +x_13 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; x_14 = lean_panic_fn(x_12, x_13); lean_ctor_set(x_2, 1, x_7); lean_ctor_set(x_2, 0, x_14); @@ -9040,7 +9040,7 @@ lean_inc(x_16); lean_inc(x_15); lean_dec(x_2); lean_inc(x_1); -x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_16); +x_17 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_1, x_16); if (lean_obj_tag(x_15) == 1) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -9063,7 +9063,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_15); lean_dec(x_1); x_23 = l_Lean_Elab_Term_StructInst_Lean_Elab_StructInst___instance__2; -x_24 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; +x_24 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; x_25 = lean_panic_fn(x_23, x_24); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); @@ -9310,7 +9310,7 @@ lean_dec(x_37); x_71 = lean_ctor_get(x_60, 0); lean_inc(x_71); lean_dec(x_60); -x_72 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_71); +x_72 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_71); x_73 = l_List_append___rarg(x_72, x_31); lean_ctor_set(x_13, 1, x_73); x_16 = x_13; @@ -9375,7 +9375,7 @@ lean_dec(x_37); x_85 = lean_ctor_get(x_74, 0); lean_inc(x_85); lean_dec(x_74); -x_86 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_85); +x_86 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1(x_36, x_85); x_87 = l_List_append___rarg(x_86, x_31); x_88 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_88, 0, x_33); @@ -11651,7 +11651,7 @@ if (lean_obj_tag(x_17) == 0) lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_18 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__3___closed__1; lean_inc(x_16); -x_19 = l_List_map___main___rarg(x_18, x_16); +x_19 = l_List_map___rarg(x_18, x_16); x_20 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_8); lean_inc(x_15); @@ -12403,7 +12403,7 @@ _start: lean_object* x_3; lean_object* x_4; x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1___boxed), 2, 1); lean_closure_set(x_3, 0, x_2); -x_4 = l_List_find_x3f___main___rarg(x_3, x_1); +x_4 = l_List_find_x3f___rarg(x_3, x_1); return x_4; } } @@ -13023,7 +13023,7 @@ lean_dec(x_1); return x_18; } } -lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -13049,7 +13049,7 @@ x_7 = lean_ctor_get(x_4, 1); x_8 = l_List_tail_x21___rarg(x_7); lean_dec(x_7); lean_ctor_set(x_4, 1, x_8); -x_9 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_6); +x_9 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_6); lean_ctor_set(x_1, 1, x_9); return x_1; } @@ -13073,7 +13073,7 @@ lean_ctor_set(x_16, 0, x_11); lean_ctor_set(x_16, 1, x_15); lean_ctor_set(x_16, 2, x_13); lean_ctor_set(x_16, 3, x_14); -x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_10); +x_17 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_10); lean_ctor_set(x_1, 1, x_17); lean_ctor_set(x_1, 0, x_16); return x_1; @@ -13116,7 +13116,7 @@ lean_ctor_set(x_26, 0, x_20); lean_ctor_set(x_26, 1, x_25); lean_ctor_set(x_26, 2, x_22); lean_ctor_set(x_26, 3, x_23); -x_27 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_19); +x_27 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_19); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -13303,7 +13303,7 @@ if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_inc(x_20); -x_22 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_20); +x_22 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_20); x_23 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_7); lean_inc(x_19); @@ -13824,7 +13824,7 @@ if (lean_obj_tag(x_143) == 0) { lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_inc(x_142); -x_144 = l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_142); +x_144 = l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__2(x_142); x_145 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_7); lean_inc(x_141); @@ -20663,7 +20663,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_colle return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -20702,16 +20702,16 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); x_4 = lean_array_push(x_2, x_3); x_5 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_6 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_4, x_5); +x_6 = l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_4, x_5); lean_dec(x_5); return x_6; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -20755,7 +20755,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_getHi return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -20799,16 +20799,16 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_3, x_2); +x_4 = l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_3, x_2); lean_dec(x_2); return x_4; } } -lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_1, x_2); +x_3 = l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -21090,7 +21090,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1), 2, 1); lean_closure_set(x_3, 0, x_1); x_4 = l_Lean_Elab_Term_StructInst_Struct_fields(x_2); -x_5 = l_List_findSome_x3f___main___rarg(x_3, x_4); +x_5 = l_List_findSome_x3f___rarg(x_3, x_4); return x_5; } } @@ -21359,7 +21359,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1___boxed), 2, 1); lean_closure_set(x_3, 0, x_2); x_4 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_5 = l_List_findSome_x3f___main___rarg(x_3, x_4); +x_5 = l_List_findSome_x3f___rarg(x_3, x_4); return x_5; } } @@ -26586,8 +26586,8 @@ l_Lean_Elab_Term_StructInst_formatField___closed__3 = _init_l_Lean_Elab_Term_Str lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__3); l_Lean_Elab_Term_StructInst_formatField___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatField___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__4); -l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1 = _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1); +l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1 = _init_l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at_Lean_Elab_Term_StructInst_formatStruct___spec__1___closed__1); l_Lean_Elab_Term_StructInst_formatStruct___closed__1 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___closed__1); l_Lean_Elab_Term_StructInst_formatStruct___closed__2 = _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__2(); @@ -26642,10 +26642,10 @@ l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_exp lean_mark_persistent(l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__6); l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7 = _init_l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7(); lean_mark_persistent(l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__1___closed__7); -l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1); -l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2 = _init_l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2); +l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1 = _init_l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__1); +l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2 = _init_l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2(); +lean_mark_persistent(l_List_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2); l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1 = _init_l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1(); lean_mark_persistent(l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__1); l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2 = _init_l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index f7569442e4..19d740f099 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -161,6 +161,7 @@ lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Structure_0__Lean_Elab lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType___boxed(lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent___boxed(lean_object*); lean_object* l_Array_filterMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -217,7 +218,6 @@ lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Command_elabStructure___closed__8; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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*, lean_object*, lean_object*); @@ -259,7 +259,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_ lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -285,7 +284,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__1; lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__5; -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1(lean_object*); @@ -354,6 +352,7 @@ lean_object* l_Lean_Syntax_getNumArgs(lean_object*); extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11; lean_object* l_Array_umapMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -435,6 +434,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; +lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -10473,7 +10473,7 @@ x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_1, 4); lean_inc(x_13); -x_14 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_2); +x_14 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_2); x_15 = l_Lean_mkConst(x_13, x_14); x_16 = lean_unsigned_to_nat(0u); x_17 = l_Array_iterateMAux___at_Lean_mkAppN___spec__1(x_3, x_3, x_16, x_15); @@ -11799,7 +11799,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11824,7 +11824,7 @@ lean_dec(x_4); x_8 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_8, 0, x_6); lean_ctor_set_uint8(x_8, sizeof(void*)*1, x_7); -x_9 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_5); +x_9 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -11844,7 +11844,7 @@ lean_dec(x_10); x_14 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_14, 0, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_11); +x_15 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_11); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -12002,7 +12002,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12023,7 +12023,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -12039,7 +12039,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -12606,7 +12606,7 @@ lean_inc(x_3); x_48 = l_Array_filterAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_3, x_24, x_24); x_49 = l_Array_toList___rarg(x_48); lean_dec(x_48); -x_50 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_49); +x_50 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_49); x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); lean_inc(x_6); lean_inc(x_35); @@ -12639,7 +12639,7 @@ lean_inc(x_58); lean_dec(x_56); x_59 = l_Array_toList___rarg(x_57); lean_dec(x_57); -x_60 = l_List_map___main___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_59); +x_60 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_59); x_61 = lean_ctor_get(x_41, 1); lean_inc(x_61); lean_dec(x_41); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index ecc850b932..5abe61b858 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -66,7 +66,6 @@ lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__58; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__3; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__26; lean_object* l_Lean_Elab_Command_expandMixfix___closed__14; @@ -198,6 +197,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacro lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__10; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__174; +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_301____closed__4; @@ -243,6 +243,7 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__29; lean_object* l_Lean_Elab_Command_expandElab___closed__17; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__126; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3; +lean_object* l_List_filterAux___at_Lean_Elab_Term_toParserDescrAux___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; extern lean_object* l_Lean_mkAppStx___closed__8; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; @@ -419,6 +420,7 @@ lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___ra lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__20; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__15; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__18; +lean_object* l_List_map___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object*); extern lean_object* l_Lean_Parser_categoryParserFnImpl___closed__4; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -471,6 +473,7 @@ lean_object* l_Lean_Elab_Term_checkLeftRec___closed__2; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__30; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__11; lean_object* l_Lean_Elab_Command_withExpectedType___closed__2; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__99; @@ -509,7 +512,6 @@ lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Elab_Command_expandElab___closed__23; lean_object* l_Lean_Elab_Command_expandMixfix___closed__19; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10; lean_object* l_Lean_Elab_Command_expandMixfix___closed__11; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__25; @@ -581,7 +583,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDesc lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__171; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__5; lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__2; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__1; lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1(lean_object*); @@ -770,7 +771,6 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object*, lean_object*, l lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__19; -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__19; lean_object* l_Lean_Elab_Command_expandElab___closed__44; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3261,7 +3261,7 @@ lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___sp _start: { lean_object* x_12; lean_object* x_13; -x_12 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_12 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); @@ -3281,7 +3281,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); x_14 = lean_box(0); -x_15 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_12, x_14); +x_15 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_12, x_14); x_16 = l_List_isEmpty___rarg(x_15); if (x_16 == 0) { @@ -3319,7 +3319,7 @@ return x_23; } } } -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Elab_Term_toParserDescrAux___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3812,7 +3812,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3832,7 +3832,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_5); +x_7 = l_List_map___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -3847,7 +3847,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_9); +x_11 = l_List_map___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -9800,7 +9800,7 @@ x_1260 = lean_ctor_get(x_1258, 1); lean_inc(x_1260); lean_dec(x_1258); x_1261 = lean_box(0); -x_1262 = l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(x_1207, x_1259, x_1261); +x_1262 = l_List_filterAux___at_Lean_Elab_Term_toParserDescrAux___spec__6(x_1207, x_1259, x_1261); if (lean_obj_tag(x_1262) == 0) { lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; @@ -9904,7 +9904,7 @@ lean_dec(x_1203); x_1285 = lean_unsigned_to_nat(3u); x_1286 = l_Lean_Syntax_getArg(x_1, x_1285); lean_dec(x_1); -x_1287 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_1262); +x_1287 = l_List_map___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_1262); x_1288 = l_Lean_MessageData_ofList(x_1287); lean_dec(x_1287); x_1289 = l_Lean_Elab_Term_toParserDescrAux___closed__173; diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index fae6d041e3..993dff9ad2 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -47,7 +47,6 @@ lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object*, lean_object*, lean_obje lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__7; lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__1___closed__2; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__1___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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*); @@ -88,7 +87,6 @@ uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__3; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__6; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__6; lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -132,6 +130,7 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSy lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_postponeExceptionId; lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__7; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,6 +170,7 @@ lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop___lambda__1(lean_obj lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_runTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_List_filterAuxM___at_Lean_Elab_Term_synthesizeUsingDefault___spec__1___lambda__2___closed__1; lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_liftTacticElabM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___at_Lean_Elab_Term_synthesizeUsingDefault___spec__1___lambda__2___closed__3; @@ -3444,7 +3444,7 @@ x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); x_15 = lean_unsigned_to_nat(0u); -x_16 = l_List_lengthAux___main___rarg(x_14, x_15); +x_16 = l_List_lengthAux___rarg(x_14, x_15); x_17 = lean_st_ref_take(x_4, x_13); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); @@ -3497,7 +3497,7 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; uint8_t x_40; x_38 = lean_ctor_get(x_36, 0); lean_dec(x_38); -x_39 = l_List_lengthAux___main___rarg(x_28, x_15); +x_39 = l_List_lengthAux___rarg(x_28, x_15); lean_dec(x_28); x_40 = lean_nat_dec_eq(x_16, x_39); lean_dec(x_39); @@ -3525,7 +3525,7 @@ lean_object* x_45; lean_object* x_46; uint8_t x_47; x_45 = lean_ctor_get(x_36, 1); lean_inc(x_45); lean_dec(x_36); -x_46 = l_List_lengthAux___main___rarg(x_28, x_15); +x_46 = l_List_lengthAux___rarg(x_28, x_15); lean_dec(x_28); x_47 = lean_nat_dec_eq(x_16, x_46); lean_dec(x_46); @@ -3583,7 +3583,7 @@ if (lean_is_exclusive(x_60)) { lean_dec_ref(x_60); x_62 = lean_box(0); } -x_63 = l_List_lengthAux___main___rarg(x_28, x_15); +x_63 = l_List_lengthAux___rarg(x_28, x_15); lean_dec(x_28); x_64 = lean_nat_dec_eq(x_16, x_63); lean_dec(x_63); @@ -3721,7 +3721,7 @@ if (lean_is_exclusive(x_96)) { lean_dec_ref(x_96); x_98 = lean_box(0); } -x_99 = l_List_lengthAux___main___rarg(x_84, x_15); +x_99 = l_List_lengthAux___rarg(x_84, x_15); lean_dec(x_84); x_100 = lean_nat_dec_eq(x_16, x_99); lean_dec(x_99); @@ -4376,7 +4376,7 @@ x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_unsigned_to_nat(0u); -x_13 = l_List_lengthAux___main___rarg(x_11, x_12); +x_13 = l_List_lengthAux___rarg(x_11, x_12); x_14 = lean_box(0); lean_inc(x_2); x_15 = l_List_filterAuxM___at_Lean_Elab_Term_synthesizeUsingDefault___spec__1(x_11, x_14, x_1, x_2, x_3, x_4, x_5, x_6, x_10); @@ -4411,7 +4411,7 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_24, 0); lean_dec(x_26); -x_27 = l_List_lengthAux___main___rarg(x_18, x_12); +x_27 = l_List_lengthAux___rarg(x_18, x_12); lean_dec(x_18); x_28 = lean_nat_dec_eq(x_27, x_13); lean_dec(x_13); @@ -4439,7 +4439,7 @@ lean_object* x_33; lean_object* x_34; uint8_t x_35; x_33 = lean_ctor_get(x_24, 1); lean_inc(x_33); lean_dec(x_24); -x_34 = l_List_lengthAux___main___rarg(x_18, x_12); +x_34 = l_List_lengthAux___rarg(x_18, x_12); lean_dec(x_18); x_35 = lean_nat_dec_eq(x_34, x_13); lean_dec(x_13); @@ -4494,7 +4494,7 @@ if (lean_is_exclusive(x_46)) { lean_dec_ref(x_46); x_48 = lean_box(0); } -x_49 = l_List_lengthAux___main___rarg(x_18, x_12); +x_49 = l_List_lengthAux___rarg(x_18, x_12); lean_dec(x_18); x_50 = lean_nat_dec_eq(x_49, x_13); lean_dec(x_13); @@ -5154,7 +5154,7 @@ x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); lean_dec(x_9); x_11 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___closed__1; -x_12 = l_List_find_x3f___main___rarg(x_11, x_10); +x_12 = l_List_find_x3f___rarg(x_11, x_10); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; @@ -5187,7 +5187,7 @@ x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); lean_dec(x_16); x_19 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___closed__1; -x_20 = l_List_find_x3f___main___rarg(x_19, x_18); +x_20 = l_List_find_x3f___rarg(x_19, x_18); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 4d952ad528..a12f710ff3 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -43,7 +43,6 @@ lean_object* l_Lean_Elab_Tactic_evalRevert_match__1___rarg(lean_object*, lean_ob lean_object* l_Lean_Elab_Tactic_withMainMVarContext(lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Tactic_Lean_Elab_Tactic_Basic___instance__2; -lean_object* l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute(lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,6 +87,7 @@ lean_object* l_Lean_Elab_Tactic_evalIntros_match__2(lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___closed__1; lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(lean_object*); lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___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_Array_empty___closed__1; @@ -272,7 +272,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro___closed__1; size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal___closed__1; extern lean_object* l_Lean_Core_Lean_CoreM___instance__1___closed__2; -lean_object* l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__1; lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals_match__1___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; @@ -299,7 +298,6 @@ lean_object* l_Lean_Elab_Tactic_evalTacticSeq___boxed(lean_object*, lean_object* lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed(lean_object*); lean_object* l_Lean_Elab_Tactic_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -332,6 +330,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse___closed__1; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_substCore___lambda__13___closed__1; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___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_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaM(lean_object*); lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -522,6 +521,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse(lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__3; +lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__3; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3(lean_object*); @@ -582,7 +582,7 @@ lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed(lean_object*, lea uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip___rarg(lean_object*); -lean_object* l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -602,7 +602,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(x_5); +x_7 = l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -617,7 +617,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(x_9); +x_11 = l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -641,7 +641,7 @@ lean_object* l_Lean_Elab_goalsToMessageData(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(x_1); +x_2 = l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(x_1); x_3 = l_Lean_Elab_goalsToMessageData___closed__1; x_4 = l_Lean_MessageData_joinSep(x_2, x_3); lean_dec(x_2); @@ -13332,59 +13332,61 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCase_match__1___rarg), 3 return x_2; } } -lean_object* l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) { -return x_1; +lean_object* x_3; +x_3 = lean_box(0); +return x_3; } else { -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) { -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_name_eq(x_4, x_2); -if (x_6 == 0) +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_name_eq(x_5, x_2); +if (x_7 == 0) { -lean_object* x_7; -x_7 = l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(x_5, x_2); -lean_ctor_set(x_1, 1, x_7); +lean_object* x_8; +x_8 = l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(x_6, x_2); +lean_ctor_set(x_1, 1, x_8); return x_1; } else { lean_free_object(x_1); -lean_dec(x_4); -return x_5; +lean_dec(x_5); +return x_6; } } else { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); lean_dec(x_1); -x_10 = lean_name_eq(x_8, x_2); -if (x_10 == 0) +x_11 = lean_name_eq(x_9, x_2); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(x_9, x_2); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -return x_12; +lean_object* x_12; lean_object* x_13; +x_12 = l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(x_10, x_2); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +return x_13; } else { -lean_dec(x_8); -return x_9; +lean_dec(x_9); +return x_10; } } } @@ -13557,7 +13559,7 @@ lean_dec(x_30); x_36 = lean_ctor_get(x_31, 0); lean_inc(x_36); lean_dec(x_31); -x_37 = l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(x_28, x_36); +x_37 = l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(x_28, x_36); x_38 = lean_box(0); lean_inc(x_36); x_39 = lean_alloc_ctor(1, 2, 0); @@ -13766,11 +13768,11 @@ return x_73; } } } -lean_object* l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__1(x_1, x_2); +x_3 = l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 600ca1af09..c64e38a472 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -48,7 +48,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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_Elab_Tactic_evalCases___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_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAlts___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -79,6 +78,7 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getRecFromUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Array_findIdxAux___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1; @@ -99,6 +99,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFr lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeMajor_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__2(lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_getRecFromUsing___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_List_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRHS___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__6(lean_object*); @@ -109,6 +110,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecIn lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Init_Data_Repr___instance__7___rarg___closed__2; @@ -123,6 +125,7 @@ lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_getRecFromUsing__ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor___lambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__1; +uint8_t l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAlts(lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___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*); @@ -163,6 +166,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRH lean_object* l_Lean_Elab_Tactic_getRecFromUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop___closed__5; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_Array_findIdxAux___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___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*); @@ -190,7 +194,6 @@ lean_object* l_Lean_mkFVar(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop___closed__3; -lean_object* l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__3___closed__3; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_getRecFromUsing___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,11 +213,9 @@ lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_o lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, 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_inferType___at_Lean_Elab_Tactic_elabAsFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeMajor_match__1(lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); @@ -281,7 +282,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processR lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; extern lean_object* l_Lean_Meta_Lean_Meta_Tactic_Induction___instance__1; lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__3___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor_match__2(lean_object*); @@ -294,11 +294,11 @@ lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Elab_Tactic_getMainTag___spec__1( lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases(lean_object*); lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Array_filterAux___at_Lean_Elab_Tactic_evalCases___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); @@ -1505,7 +1505,7 @@ lean_dec(x_1); return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1517,7 +1517,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_1, x_2, x_5); x_7 = l_Lean_Name_isSuffixOf(x_1, x_4); if (x_7 == 0) { @@ -1859,7 +1859,7 @@ if (x_28 == 0) { uint8_t x_29; uint8_t x_30; x_29 = 0; -x_30 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_25, x_29, x_1); +x_30 = l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_25, x_29, x_1); if (x_30 == 0) { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; @@ -2019,13 +2019,13 @@ return x_24; } } } -lean_object* l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -3369,7 +3369,7 @@ lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_getRecFromUsing___s _start: { lean_object* x_12; lean_object* x_13; -x_12 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_1); +x_12 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); @@ -3389,7 +3389,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); x_14 = lean_box(0); -x_15 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_12, x_14); +x_15 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_12, x_14); x_16 = l_List_isEmpty___rarg(x_15); if (x_16 == 0) { @@ -3454,7 +3454,7 @@ x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); x_19 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_20 = lean_string_append(x_18, x_19); -x_21 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_14, x_12); +x_21 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_14, x_12); x_22 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_21); x_23 = lean_string_append(x_20, x_22); lean_dec(x_22); @@ -3521,7 +3521,7 @@ x_41 = lean_string_append(x_40, x_39); lean_dec(x_39); x_42 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_43 = lean_string_append(x_41, x_42); -x_44 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_37, x_12); +x_44 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_37, x_12); x_45 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_44); x_46 = lean_string_append(x_43, x_45); lean_dec(x_45); @@ -8629,7 +8629,7 @@ return x_63; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8650,7 +8650,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -8666,7 +8666,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -8869,7 +8869,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; x_34 = l_Array_toList___rarg(x_2); -x_35 = l_List_map___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_34); +x_35 = l_List_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(x_34); x_36 = l_Lean_Elab_Tactic_setGoals(x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Injection.c b/stage0/stdlib/Lean/Elab/Tactic/Injection.c index f0356f7f02..d18e131b20 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Injection.c @@ -24,7 +24,9 @@ lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_obj lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__1; lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInjection_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -47,12 +49,10 @@ lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1(lean_object*, lean_obj lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object*); lean_object* l_Lean_Meta_injection(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object*); extern lean_object* l_Lean_Meta_injectionCore___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -72,7 +72,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Syntax_getId(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -87,7 +87,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Syntax_getId(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -110,7 +110,7 @@ x_5 = l_Lean_Syntax_getArgs(x_4); lean_dec(x_4); x_6 = l_Array_toList___rarg(x_5); lean_dec(x_5); -x_7 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_6); +x_7 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(x_6); return x_7; } else @@ -130,7 +130,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -150,7 +150,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -165,7 +165,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -199,7 +199,7 @@ x_8 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_9 = l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_2); +x_9 = l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_2); x_10 = l_Lean_MessageData_ofList(x_9); lean_dec(x_9); x_11 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__2; diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 7f33b23ff9..0d43b9f055 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -64,6 +64,7 @@ lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureTypeOf_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_IO_println___at_Lean_Init_System_IO___instance__9___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -130,7 +131,6 @@ lean_object* l_Lean_Elab_Term_elabNumLit___lambda__1(lean_object*, lean_object*, lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__3; lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_Term___instance__10_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarsAtDeclImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; @@ -364,7 +364,6 @@ lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Elab_Term_0__Lean_Elab lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNumLit___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_st_ref_take(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2; extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Term_elabTermWithoutImplicitLambdas(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -439,7 +438,6 @@ lean_object* l_Lean_Elab_Term_elabCharLit_match__1___rarg(lean_object*, lean_obj lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_Lean_Elab_Term___instance__7___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Lean_Meta_Basic___instance__5___closed__1; lean_object* l_Lean_Elab_Term_blockImplicitLambda___boxed(lean_object*); @@ -656,6 +654,7 @@ lean_object* l_Lean_Elab_Term_traceAtCmdPos___boxed(lean_object*, lean_object*, lean_object* l_Array_iterateMAux___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; lean_object* l_Lean_Elab_Term_synthesizeInst_match__1(lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Elab_Term_0__Lean_Elab_Term_expandCDot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_savingMCtx(lean_object*); lean_object* l_Lean_Elab_Term_elabHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -972,6 +971,7 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_Term___instance__8___closed__3; uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkFreshLevelMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); @@ -2541,7 +2541,7 @@ lean_ctor_set(x_23, 1, x_21); x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_18); lean_ctor_set(x_24, 1, x_23); -x_25 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(x_15, x_24, x_2); +x_25 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(x_15, x_24, x_2); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_9); @@ -7579,7 +7579,7 @@ _start: { lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_1, 4); -x_4 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_2, x_3); +x_4 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_3); return x_4; } } @@ -31552,9 +31552,9 @@ lean_dec(x_10); x_13 = l_Lean_ConstantInfo_lparams(x_11); lean_dec(x_11); x_14 = lean_unsigned_to_nat(0u); -x_15 = l_List_lengthAux___main___rarg(x_13, x_14); +x_15 = l_List_lengthAux___rarg(x_13, x_14); lean_dec(x_13); -x_16 = l_List_lengthAux___main___rarg(x_2, x_14); +x_16 = l_List_lengthAux___rarg(x_2, x_14); x_17 = lean_nat_dec_lt(x_15, x_16); if (x_17 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Util.c b/stage0/stdlib/Lean/Elab/Util.c index 534ba0db47..9e804a3fef 100644 --- a/stage0/stdlib/Lean/Elab/Util.c +++ b/stage0/stdlib/Lean/Elab/Util.c @@ -21,6 +21,7 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMacroAttribute(lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_getMacros___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__7; @@ -49,20 +50,17 @@ extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____clo lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg___closed__1; lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam_match__1(lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_136____closed__2; size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_getMacroStackOption___closed__2; -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_136____closed__1; lean_object* l_Lean_Elab_addMacroStack___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_namespaces(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_OldFrontend_checkSyntaxNodeKindAtNamespacesAux_match__1(lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1; extern lean_object* l_Lean_mkAttributeImplOfConstant___closed__1; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_getMacros___spec__3(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(lean_object*, lean_object*, lean_object*); @@ -73,7 +71,6 @@ lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces(lean_object*, lean_obje lean_object* l_Lean_Elab_evalSyntaxConstant___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_getBetterRef___lambda__1(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_829____closed__1; -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_getMacros_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; @@ -83,7 +80,7 @@ lean_object* l_Lean_Elab_liftMacroM___rarg(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Elab_Lean_Elab_Util___instance__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3; +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3; lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_prettyPrint_match__1(lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespacesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -95,7 +92,6 @@ lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_895_(lean_object*); lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2; lean_object* l_Lean_Elab_liftMacroM___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_Lean_Elab_adaptMacro___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*); lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -129,13 +125,17 @@ lean_object* l_Lean_Syntax_unsetTrailing(lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__1; lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1; lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_136____closed__3; +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getMacros___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f_match__1(lean_object*); lean_object* l_Lean_Elab_macroAttribute; +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2; lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind___closed__1; +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttribute(lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacroFns_match__2(lean_object*); lean_object* l_Lean_throwError___at_Lean_KeyedDeclsAttribute_Def_evalKey___default___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -157,6 +157,7 @@ lean_object* l_Lean_Elab_getBetterRef___closed__1; lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef___boxed(lean_object*, lean_object*); lean_object* l_ReaderT_Init_Control_Reader___instance__4___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespacesAux_match__1(lean_object*); lean_object* l_Lean_Elab_getBetterRef_match__1(lean_object*); @@ -166,7 +167,6 @@ lean_object* l_Lean_Elab_getMacroStackOption___boxed(lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_getMacroStackOption___closed__1; lean_object* l_Lean_Elab_checkSyntaxNodeKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_getMacros_match__1(lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind___closed__3; @@ -289,7 +289,7 @@ x_9 = l_Lean_Name_append(x_7, x_8); lean_dec(x_7); x_10 = l_Lean_Name_append(x_9, x_5); lean_dec(x_9); -x_11 = l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(x_10, x_3); +x_11 = l_List_foldl___at_Lean_MacroScopesView_review___spec__1(x_10, x_3); x_12 = l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(x_11); return x_12; } @@ -304,7 +304,7 @@ lean_inc(x_14); lean_dec(x_1); x_15 = l_Lean_Name_append(x_13, x_14); lean_dec(x_13); -x_16 = l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(x_15, x_3); +x_16 = l_List_foldl___at_Lean_MacroScopesView_review___spec__1(x_15, x_3); x_17 = l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(x_16); return x_17; } @@ -430,7 +430,7 @@ if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; x_4 = l_Lean_Elab_getBetterRef___closed__1; -x_5 = l_List_find_x3f___main___rarg(x_4, x_2); +x_5 = l_List_find_x3f___rarg(x_4, x_2); if (lean_obj_tag(x_5) == 0) { lean_inc(x_1); @@ -615,7 +615,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_addMacroStack_match__1___rarg), 3, return x_2; } } -static lean_object* _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1() { +static lean_object* _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1() { _start: { lean_object* x_1; @@ -623,27 +623,27 @@ x_1 = lean_mk_string("while expanding"); return x_1; } } -static lean_object* _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2() { +static lean_object* _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1; +x_1 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3() { +static lean_object* _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2; +x_1 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -660,7 +660,7 @@ lean_inc(x_1); x_6 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_6, 0, x_2); lean_ctor_set(x_6, 1, x_1); -x_7 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3; +x_7 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3; x_8 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); @@ -776,7 +776,7 @@ lean_dec(x_1); x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); -x_25 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(x_13, x_22, x_3); +x_25 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(x_13, x_22, x_3); x_26 = lean_apply_2(x_24, lean_box(0), x_25); return x_26; } @@ -805,11 +805,11 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_addMacroStack___rarg), 4, 0); return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1(x_1, x_2, x_3); +x_4 = l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(x_1, x_2, x_3); lean_dec(x_3); return x_4; } @@ -2778,12 +2778,12 @@ lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_136____close res = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_136_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1 = _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1(); -lean_mark_persistent(l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1); -l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2 = _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2(); -lean_mark_persistent(l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2); -l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3 = _init_l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3(); -lean_mark_persistent(l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3); +l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1 = _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1(); +lean_mark_persistent(l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__1); +l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2 = _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2(); +lean_mark_persistent(l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2); +l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3 = _init_l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3(); +lean_mark_persistent(l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3); l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__1); l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index 71e45b08e9..115ef9ceff 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -253,7 +253,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_importModules___spec__9___boxed( lean_object* l_Std_AssocList_replace___at_Lean_Environment_addAux___spec__11(lean_object*, 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_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_importModules_match__2___rarg(lean_object*, lean_object*); @@ -569,6 +568,7 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvironmentHeader_imports___default; lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_envExtensionsRef; uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_importModulesAux_match__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Environment_addAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_importModules_match__5(lean_object*); @@ -5552,7 +5552,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); x_5 = l_Nat_repr(x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index 8904eedabd..564e4fcdda 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -22,7 +22,6 @@ uint8_t l_Lean_Expr_bindingInfo_x21(lean_object*); lean_object* l_Lean_BinderInfo_beq_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateSort___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkDecIsFalse___closed__2; lean_object* l_Lean_Expr_bvarIdx_x21___closed__3; @@ -92,9 +91,9 @@ lean_object* l_Lean_Expr_updateMData_x21___closed__2; lean_object* l_Lean_Expr_instantiateLevelParamsArray___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isOptParam___boxed(lean_object*); lean_object* l_Lean_Expr_updateMData_x21___closed__1; -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForallEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); @@ -109,7 +108,6 @@ lean_object* l_Lean_mkDecIsTrue___closed__5; lean_object* l_Lean_Expr_updateProj_match__1(lean_object*); lean_object* l_Lean_annotation_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux(lean_object*, lean_object*); lean_object* l_Lean_Expr_hash___boxed(lean_object*); lean_object* l_Lean_Expr_isAppOfArity_match__1(lean_object*); @@ -157,6 +155,7 @@ lean_object* l_Lean_Expr_bindingBody_x21___closed__1; lean_object* l_Lean_Expr_isAppOfArity_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__4; +uint8_t l_List_foldr___at_Lean_mkConst___spec__2(uint8_t, lean_object*); uint8_t l_Lean_Expr_isBVar(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Literal_type___closed__3; @@ -169,15 +168,14 @@ lean_object* l_Lean_ExprStructEq_Lean_Expr___instance__18; uint8_t lean_expr_has_level_mvar(lean_object*); lean_object* l_Lean_Expr_updateProj_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateForall_x21___closed__1; -lean_object* l_List_map___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21___closed__3; lean_object* l_Lean_Expr_natLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isNatLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); lean_object* l_Nat_max(lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_mkConst___spec__2(uint8_t, lean_object*); lean_object* l_Lean_Expr_getRevArgD(lean_object*, lean_object*, lean_object*); +size_t l_List_foldl___at_Lean_mkConst___spec__1(size_t, lean_object*); lean_object* l_Lean_Expr_bindingName_x21_match__1(lean_object*); lean_object* l_Lean_Expr_getAppArgs___closed__1; uint8_t l_Lean_Level_hasParam(lean_object*); @@ -201,6 +199,7 @@ lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); lean_object* l_Lean_Expr_updateForall_x21___closed__3; lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_Lean_Expr___instance__14___closed__1; +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*); lean_object* l_Lean_Expr_isNatLit_match__1(lean_object*); lean_object* l_Lean_Expr_mkDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -224,7 +223,6 @@ lean_object* l_Lean_Expr_getAppFn___boxed(lean_object*); lean_object* l_Lean_Expr_isBinding_match__1(lean_object*); lean_object* l_Lean_Expr_updateForallE_x21_match__1(lean_object*); lean_object* l_Lean_Expr_inferImplicit_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Expr_natLit_x3f___boxed(lean_object*); @@ -298,7 +296,6 @@ lean_object* l_Lean_Expr_isConstOf_match__1___rarg(lean_object*, lean_object*, l lean_object* l_Lean_Expr_isLambda_match__1(lean_object*); uint8_t lean_expr_has_mvar(lean_object*); uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Literal_beq(lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_toUInt64_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__5; @@ -329,13 +326,11 @@ lean_object* l_Lean_Expr_abstractRange___boxed(lean_object*, lean_object*, lean_ uint32_t l_UInt64_toUInt32(uint64_t); lean_object* l_Lean_Expr_isLit_match__1(lean_object*); lean_object* l_Lean_mkFreshId___rarg(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_mkConst___spec__2___boxed(lean_object*, lean_object*); uint64_t l_Lean_Expr_data(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Expr_updateApp_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_withAppRevAux(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubstArray___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); uint8_t l_Lean_Expr_isBinding(lean_object*); lean_object* l_Lean_Expr_isAppOf_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -357,6 +352,7 @@ lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object*); lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubst_match__1(lean_object*); +lean_object* l_List_map___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_hasFVar(uint64_t); lean_object* l_Lean_Expr_getAppNumArgsAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasMVarEx___boxed(lean_object*); @@ -408,7 +404,6 @@ lean_object* l_Lean_Expr_updateProj_x21___closed__3; lean_object* l_Lean_Expr_hasAnyFVar_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_type___closed__2; lean_object* l_Lean_Expr_mkDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t l_List_foldl___main___at_Lean_mkConst___spec__1(size_t, lean_object*); lean_object* l_Lean_Expr_instantiate___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunk___closed__1; lean_object* l_Lean_Expr_appFn_x21___closed__1; @@ -419,13 +414,11 @@ lean_object* l_Lean_Expr_Lean_Expr___instance__14; lean_object* l_Lean_BinderInfo_hash_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLevelMVar(lean_object*); extern lean_object* l_Lean_Init_LeanInit___instance__1; -uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t, lean_object*); lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21___closed__3; lean_object* l_Lean_Expr_instantiateRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasFVar___boxed(lean_object*); -lean_object* l_List_foldl___main___at_Lean_mkConst___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lean_Expr___instance__3; lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t); @@ -603,6 +596,7 @@ lean_object* l_Lean_Expr_inferImplicit___boxed(lean_object*, lean_object*, lean_ lean_object* l_Lean_mkSimpleThunkType___closed__2; lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___closed__2; lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object*); +lean_object* l_List_foldl___at_Lean_mkConst___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_lt_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -651,6 +645,7 @@ lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__12; lean_object* l_Lean_mkApp2(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_mkConst___spec__3(uint8_t, lean_object*); lean_object* l_Lean_Expr_updateProj_x21_match__1(lean_object*); lean_object* l_Lean_Expr_appFn_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__6; @@ -670,6 +665,7 @@ lean_object* l_Lean_Expr_mkData___boxed(lean_object*, lean_object*, lean_object* lean_object* l_Lean_BinderInfo_isExplicit___boxed(lean_object*); lean_object* l_Lean_Lean_Expr___instance__2; uint64_t l_Lean_Expr_mkData___closed__1; +lean_object* l_List_foldr___at_Lean_mkConst___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_hashEx___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_withAppRevAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkDecIsFalse___closed__3; @@ -696,6 +692,7 @@ extern lean_object* l_Nat_Inhabited; lean_object* l_Lean_ExprStructEq_Lean_Expr___instance__20(lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___closed__1; lean_object* l_Lean_Expr_bvarIdx_x21_match__1(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); uint64_t l_UInt64_shiftRight(uint64_t, uint64_t); lean_object* l_Lean_Expr_hasLooseBVars___boxed(lean_object*); lean_object* lean_lit_type(lean_object*); @@ -706,6 +703,7 @@ lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instant size_t l_Lean_BinderInfo_hash(uint8_t); lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParamsArray___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_letName_x21_match__1(lean_object*); +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_beq_match__1(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -733,6 +731,7 @@ lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Lean_Expr_updateForallE_x21___closed__2; lean_object* lean_expr_instantiate_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux(lean_object*); lean_object* l_Lean_Expr_lowerLooseBVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateProj_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -751,6 +750,7 @@ lean_object* l_Lean_ExprStructEq_Lean_Expr___instance__19___closed__1; lean_object* l_Lean_Expr_isNatLit___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__3; lean_object* l_Lean_mkLocal___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_mkConst___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isSort(lean_object*); uint8_t l_Lean_Expr_isLet(lean_object*); @@ -4428,7 +4428,7 @@ x_3 = l_Lean_mkLit(x_2); return x_3; } } -size_t l_List_foldl___main___at_Lean_mkConst___spec__1(size_t x_1, lean_object* x_2) { +size_t l_List_foldl___at_Lean_mkConst___spec__1(size_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4448,7 +4448,7 @@ goto _start; } } } -uint8_t l_List_foldr___main___at_Lean_mkConst___spec__2(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_Lean_mkConst___spec__2(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4460,7 +4460,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_mkConst___spec__2(x_1, x_4); +x_5 = l_List_foldr___at_Lean_mkConst___spec__2(x_1, x_4); x_6 = l_Lean_Level_hasMVar(x_3); if (x_6 == 0) { @@ -4475,7 +4475,7 @@ return x_7; } } } -uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_Lean_mkConst___spec__3(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4487,7 +4487,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_1, x_4); +x_5 = l_List_foldr___at_Lean_mkConst___spec__3(x_1, x_4); x_6 = l_Lean_Level_hasParam(x_3); if (x_6 == 0) { @@ -4509,12 +4509,12 @@ size_t x_3; size_t x_4; size_t x_5; size_t x_6; size_t x_7; size_t x_8; uint8_t x_3 = 5; x_4 = l_Lean_Name_hash(x_1); x_5 = 7; -x_6 = l_List_foldl___main___at_Lean_mkConst___spec__1(x_5, x_2); +x_6 = l_List_foldl___at_Lean_mkConst___spec__1(x_5, x_2); x_7 = lean_usize_mix_hash(x_4, x_6); x_8 = lean_usize_mix_hash(x_3, x_7); x_9 = 0; -x_10 = l_List_foldr___main___at_Lean_mkConst___spec__2(x_9, x_2); -x_11 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_9, x_2); +x_10 = l_List_foldr___at_Lean_mkConst___spec__2(x_9, x_2); +x_11 = l_List_foldr___at_Lean_mkConst___spec__3(x_9, x_2); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Lean_Expr_mkData(x_8, x_12, x_9, x_9, x_10, x_11); x_14 = lean_alloc_ctor(4, 2, 8); @@ -4524,37 +4524,37 @@ lean_ctor_set_uint64(x_14, sizeof(void*)*2, x_13); return x_14; } } -lean_object* l_List_foldl___main___at_Lean_mkConst___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_mkConst___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { size_t x_3; size_t x_4; lean_object* x_5; x_3 = lean_unbox_usize(x_1); lean_dec(x_1); -x_4 = l_List_foldl___main___at_Lean_mkConst___spec__1(x_3, x_2); +x_4 = l_List_foldl___at_Lean_mkConst___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box_usize(x_4); return x_5; } } -lean_object* l_List_foldr___main___at_Lean_mkConst___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_mkConst___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_mkConst___spec__2(x_3, x_2); +x_4 = l_List_foldr___at_Lean_mkConst___spec__2(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_mkConst___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_3, x_2); +x_4 = l_List_foldr___at_Lean_mkConst___spec__3(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -13929,7 +13929,7 @@ x_14 = lean_ctor_get(x_2, 1); x_15 = lean_alloc_closure((void*)(l_Lean_Level_instantiateParams), 2, 1); lean_closure_set(x_15, 0, x_1); lean_inc(x_14); -x_16 = l_List_map___main___rarg(x_15, x_14); +x_16 = l_List_map___rarg(x_15, x_14); x_17 = lean_expr_update_const(x_2, x_16); return x_17; } @@ -13945,7 +13945,7 @@ lean_dec(x_2); x_21 = lean_alloc_closure((void*)(l_Lean_Level_instantiateParams), 2, 1); lean_closure_set(x_21, 0, x_1); lean_inc(x_19); -x_22 = l_List_map___main___rarg(x_21, x_19); +x_22 = l_List_map___rarg(x_21, x_19); x_23 = lean_alloc_ctor(4, 2, 8); lean_ctor_set(x_23, 0, x_18); lean_ctor_set(x_23, 1, x_19); @@ -14674,7 +14674,7 @@ return x_3; } } } -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -14693,7 +14693,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -14707,7 +14707,7 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); x_12 = l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -14766,7 +14766,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_3, 1); lean_inc(x_15); -x_16 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_15); +x_16 = l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_15); x_17 = lean_expr_update_const(x_3, x_16); return x_17; } @@ -14780,7 +14780,7 @@ lean_inc(x_19); lean_inc(x_18); lean_dec(x_3); lean_inc(x_19); -x_21 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_19); +x_21 = l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_19); x_22 = lean_alloc_ctor(4, 2, 8); lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_19); @@ -15072,11 +15072,11 @@ lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_3); +x_4 = l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; @@ -15516,7 +15516,7 @@ return x_3; } } } -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -15535,7 +15535,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -15549,7 +15549,7 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); x_12 = l_Lean_Level_instantiateParams___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -15608,7 +15608,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_3, 1); lean_inc(x_15); -x_16 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_15); +x_16 = l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_15); x_17 = lean_expr_update_const(x_3, x_16); return x_17; } @@ -15622,7 +15622,7 @@ lean_inc(x_19); lean_inc(x_18); lean_dec(x_3); lean_inc(x_19); -x_21 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_19); +x_21 = l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_19); x_22 = lean_alloc_ctor(4, 2, 8); lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_19); @@ -15914,11 +15914,11 @@ lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_3); +x_4 = l_List_map___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; @@ -15998,7 +15998,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); x_5 = lean_unsigned_to_nat(0u); -x_6 = l_List_lengthAux___main___rarg(x_3, x_5); +x_6 = l_List_lengthAux___rarg(x_3, x_5); x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_dec_eq(x_6, x_7); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/KeyedDeclsAttribute.c b/stage0/stdlib/Lean/KeyedDeclsAttribute.c index 764de50e82..2fbea058d4 100644 --- a/stage0/stdlib/Lean/KeyedDeclsAttribute.c +++ b/stage0/stdlib/Lean/KeyedDeclsAttribute.c @@ -127,7 +127,6 @@ lean_object* l_Lean_KeyedDeclsAttribute_Lean_KeyedDeclsAttribute___instance__2__ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_KeyedDeclsAttribute_Table_insert___spec__23___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_Lean_KeyedDeclsAttribute___instance__1___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__5; @@ -273,6 +272,7 @@ lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_KeyedDeclsAttribute_Table_insert___spec__11___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_KeyedDeclsAttribute_Table_insert___spec__28(lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getValues___spec__8___rarg___boxed(lean_object*, lean_object*); @@ -4338,7 +4338,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); x_5 = l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___spec__1(x_4); x_6 = l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2; x_7 = lean_alloc_ctor(4, 2, 0); diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index e3c77db216..4e0c1bc02e 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -66,7 +66,6 @@ lean_object* l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___ lean_object* l_Lean_Message_getMessageStringEx_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_isNil_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_stringToMessageData___spec__4(lean_object*); lean_object* l_Lean_mkMVar(lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; @@ -89,7 +88,6 @@ lean_object* l_Lean_KernelException_toMessageData___closed__43; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__16; lean_object* l_Lean_MessageData_ofList(lean_object*); -lean_object* l_List_map___main___rarg(lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_formatAux___closed__1; lean_object* l_Lean_Lean_Message___instance__26(lean_object*); @@ -191,6 +189,7 @@ lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1868_(lean_object*, lean_o lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__18; lean_object* l_Lean_Lean_Message___instance__17(lean_object*); +lean_object* l_List_map___rarg(lean_object*, lean_object*); lean_object* l_Lean_Message_toString___closed__4; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; lean_object* l_Lean_KernelException_toMessageData___closed__5; @@ -211,6 +210,7 @@ lean_object* l_Lean_Message_toString___closed__2; lean_object* l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1___boxed(lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); lean_object* l_Lean_MessageData_Lean_Message___instance__10___closed__2; +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_Lean_Message___instance__27___rarg___closed__2; lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_1835____closed__10; @@ -243,7 +243,6 @@ 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*); lean_object* l_Lean_KernelException_toMessageData___closed__9; -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_mkPPContext(lean_object*, lean_object*); lean_object* l_Lean_MessageLog_toList___boxed(lean_object*); @@ -311,6 +310,7 @@ lean_object* l_Lean_mkMessageEx___boxed(lean_object*, lean_object*, lean_object* lean_object* l_Lean_MessageData_bracket(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_Message___instance__23(lean_object*); lean_object* l_Lean_Lean_Message___instance__18(lean_object*); +lean_object* l_List_map___at_Lean_stringToMessageData___spec__4(lean_object*); lean_object* l_Array_iterateMAux___at_Lean_MessageLog_getInfoMessages___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Message_endPos___default; extern lean_object* l_Lean_Name_hasMacroScopes___closed__1; @@ -3215,7 +3215,7 @@ x_1 = l_Lean_MessageData_Lean_Message___instance__11___closed__1; return x_1; } } -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3235,7 +3235,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_5); +x_7 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -3250,7 +3250,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_9); +x_11 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -3263,7 +3263,7 @@ lean_object* l_Lean_MessageData_Lean_Message___instance__12(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_1); +x_2 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_1); x_3 = l_Lean_MessageData_ofList(x_2); lean_dec(x_2); return x_3; @@ -6957,7 +6957,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_map___main___at_Lean_stringToMessageData___spec__4(lean_object* x_1) { +lean_object* l_List_map___at_Lean_stringToMessageData___spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6979,7 +6979,7 @@ x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at_Lean_stringToMessageData___spec__4(x_5); +x_8 = l_List_map___at_Lean_stringToMessageData___spec__4(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -6996,7 +6996,7 @@ x_11 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_11, 0, x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at_Lean_stringToMessageData___spec__4(x_10); +x_13 = l_List_map___at_Lean_stringToMessageData___spec__4(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -7010,7 +7010,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_String_split___at_Lean_stringToMessageData___spec__1(x_1); -x_3 = l_List_map___main___at_Lean_stringToMessageData___spec__4(x_2); +x_3 = l_List_map___at_Lean_stringToMessageData___spec__4(x_2); x_4 = l_Lean_MessageData_ofList___closed__3; x_5 = l_Lean_MessageData_joinSep(x_3, x_4); lean_dec(x_3); @@ -7138,7 +7138,7 @@ lean_object* l_Lean_Lean_Message___instance__25___rarg(lean_object* x_1, lean_ob _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_List_map___main___rarg(x_1, x_2); +x_3 = l_List_map___rarg(x_1, x_2); x_4 = l_Lean_MessageData_ofList(x_3); lean_dec(x_3); return x_4; @@ -7157,7 +7157,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Array_toList___rarg(x_2); -x_4 = l_List_map___main___rarg(x_1, x_3); +x_4 = l_List_map___rarg(x_1, x_3); x_5 = l_Lean_MessageData_ofList(x_4); lean_dec(x_4); return x_5; diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index ade25c7edd..28c5bd77c2 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -253,6 +253,7 @@ lean_object* l_Lean_Meta_mkDecideProof___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkDecideProof(lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_Lean_Message___instance__10___closed__2; +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkRecFor___closed__1; lean_object* l_Lean_Meta_mkAppOptM___rarg(lean_object*, lean_object*, lean_object*); @@ -284,7 +285,6 @@ lean_object* l_Lean_Meta_mkPure(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkCongrFunImp___closed__3; lean_object* l_Lean_Meta_mkAppM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_arrayExpr_toMessageData(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_Meta_mkHEqRefl___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqOfHEqImp___lambda__1___closed__1; lean_object* l_Lean_Meta_mkAppOptM___at_Lean_Meta_mkDecideProof___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6175,7 +6175,7 @@ x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); x_26 = l_Array_toList___rarg(x_2); -x_27 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_26); +x_27 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_26); x_28 = l_Lean_MessageData_ofList(x_27); lean_dec(x_27); x_29 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 9b839c6000..788449d026 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -842,7 +842,6 @@ uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l_Lean_Meta_findLocalDecl_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuickConst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*); lean_object* l_Lean_Meta_getConst_x3f_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeImp___spec__14___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1293,6 +1292,7 @@ lean_object* l_Lean_Meta_isReadOnlyOrSyntheticOpaqueExprMVar___rarg(lean_object* lean_object* l_Lean_Meta_whnf___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_Lean_Meta_Basic___instance__3_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___at___private_Lean_Meta_Basic_0__Lean_Meta_forallBoundedTelescopeImp___spec__24___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f_match__3(lean_object*); lean_object* l_Lean_Meta_Lean_Meta_Basic___instance__12(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -111369,7 +111369,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Basic_0__Lean_Meta_withEx return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -111495,7 +111495,7 @@ x_10 = lean_ctor_get(x_3, 1); x_11 = lean_ctor_get(x_3, 2); x_12 = lean_array_get_size(x_11); lean_inc(x_1); -x_13 = l_List_foldl___main___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(x_10, x_1); +x_13 = l_List_foldl___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(x_10, x_1); lean_inc(x_11); lean_inc(x_13); lean_inc(x_9); @@ -111658,7 +111658,7 @@ lean_inc(x_43); lean_dec(x_3); x_46 = lean_array_get_size(x_45); lean_inc(x_1); -x_47 = l_List_foldl___main___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(x_44, x_1); +x_47 = l_List_foldl___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__1(x_44, x_1); lean_inc(x_45); lean_inc(x_47); lean_inc(x_43); diff --git a/stage0/stdlib/Lean/Meta/Check.c b/stage0/stdlib/Lean/Meta/Check.c index 6a8e4a2a45..1d5b91bda1 100644 --- a/stage0/stdlib/Lean/Meta/Check.c +++ b/stage0/stdlib/Lean/Meta/Check.c @@ -73,7 +73,6 @@ lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkLambdaLet___lambda__1 lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkLambdaLet___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkApp_match__1(lean_object*); lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassExpensive_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,6 +149,7 @@ lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(lean_object* lean_object* l_Lean_Meta_throwAppTypeMismatch___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___closed__1; lean_object* l_Lean_Meta_throwIncorrectNumberOfLevels___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1198,10 +1198,10 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_8, 0); x_11 = lean_ctor_get(x_8, 1); x_12 = lean_unsigned_to_nat(0u); -x_13 = l_List_lengthAux___main___rarg(x_2, x_12); +x_13 = l_List_lengthAux___rarg(x_2, x_12); x_14 = l_Lean_ConstantInfo_lparams(x_10); lean_dec(x_10); -x_15 = l_List_lengthAux___main___rarg(x_14, x_12); +x_15 = l_List_lengthAux___rarg(x_14, x_12); lean_dec(x_14); x_16 = lean_nat_dec_eq(x_13, x_15); lean_dec(x_15); @@ -1232,10 +1232,10 @@ lean_inc(x_20); lean_inc(x_19); lean_dec(x_8); x_21 = lean_unsigned_to_nat(0u); -x_22 = l_List_lengthAux___main___rarg(x_2, x_21); +x_22 = l_List_lengthAux___rarg(x_2, x_21); x_23 = l_Lean_ConstantInfo_lparams(x_19); lean_dec(x_19); -x_24 = l_List_lengthAux___main___rarg(x_23, x_21); +x_24 = l_List_lengthAux___rarg(x_23, x_21); lean_dec(x_23); x_25 = lean_nat_dec_eq(x_22, x_24); lean_dec(x_24); diff --git a/stage0/stdlib/Lean/Meta/DiscrTree.c b/stage0/stdlib/Lean/Meta/DiscrTree.c index eff8a61c06..b1c2f5480e 100644 --- a/stage0/stdlib/Lean/Meta/DiscrTree.c +++ b/stage0/stdlib/Lean/Meta/DiscrTree.c @@ -18,7 +18,6 @@ lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_DiscrTree_insertCo lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatch___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_Meta_DiscrTree_format___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__16(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2(lean_object*); lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux_match__2___rarg(lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); @@ -52,6 +51,7 @@ lean_object* l_Lean_Meta_DiscrTree_Key_arity_match__1___rarg(lean_object*, lean_ lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binInsertM___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; lean_object* l_Array_iterateMAux___at_Lean_Meta_DiscrTree_getUnify___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_getUnify_match__2(lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar___closed__6; @@ -76,7 +76,6 @@ lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_Meta_DiscrTree_getUnify lean_object* l_Lean_Meta_DiscrTree_Key_ctorIdx_match__1(lean_object*); lean_object* l_Lean_Meta_DiscrTree_Key_format___closed__2; lean_object* l_Lean_Meta_DiscrTree_Lean_Meta_DiscrTree___instance__6___rarg(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getUnify___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_format_match__1(lean_object*); @@ -131,6 +130,7 @@ lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux_ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_DiscrTree_getUnify___spec__8___rarg(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__10___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Meta_DiscrTree_Trie_format___spec__4(lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify___spec__14___rarg___boxed(lean_object*, lean_object*); @@ -202,7 +202,6 @@ lean_object* l_Array_back___at_Lean_Meta_DiscrTree_mkPathAux___spec__1(lean_obje lean_object* l_Lean_Meta_DiscrTree_Trie_format_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_DiscrTree_format___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyAux___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux_match__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_DiscrTree_insertCore___spec__6(lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes(lean_object*); @@ -223,6 +222,7 @@ lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux( lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_DiscrTree_getMatch___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__1___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__2; +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lean_Data_Format___instance__10___rarg___closed__1; lean_object* l_Lean_Meta_DiscrTree_getMatch_match__1(lean_object*, lean_object*); @@ -331,7 +331,6 @@ lean_object* l_Lean_Meta_DiscrTree_Lean_Meta_DiscrTree___instance__6(lean_object lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getUnifyAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__4; lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getMatch___spec__7___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_Meta_DiscrTree_getUnify___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfEta_match__2(lean_object*); lean_object* l_Lean_Meta_DiscrTree_format___rarg___boxed(lean_object*, lean_object*); @@ -365,6 +364,7 @@ lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_DiscrTree_getUnify_ lean_object* lean_array_pop(lean_object*); lean_object* l_Lean_Meta_DiscrTree_Lean_Meta_DiscrTree___instance__2___boxed(lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; lean_object* l_Array_binSearchAux___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isReadOnlyOrSyntheticOpaqueExprMVar___at___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5491,7 +5491,7 @@ x_2 = l_Lean_Meta_DiscrTree_Key_format(x_1); return x_2; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1() { +static lean_object* _init_l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1() { _start: { lean_object* x_1; @@ -5499,17 +5499,17 @@ x_1 = lean_mk_string(" => "); return x_1; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2() { +static lean_object* _init_l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; +x_1 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5529,14 +5529,14 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); -x_7 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_6); +x_7 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_6); x_8 = lean_ctor_get(x_5, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_5, 1); lean_inc(x_9); lean_dec(x_5); x_10 = l_Lean_Meta_DiscrTree_Key_format(x_8); -x_11 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; +x_11 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; x_12 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -5578,14 +5578,14 @@ lean_inc(x_26); lean_inc(x_25); lean_dec(x_2); lean_inc(x_1); -x_27 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_26); +x_27 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_26); x_28 = lean_ctor_get(x_25, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_25, 1); lean_inc(x_29); lean_dec(x_25); x_30 = l_Lean_Meta_DiscrTree_Key_format(x_28); -x_31 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; +x_31 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; x_32 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -5622,11 +5622,11 @@ return x_45; } } } -lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg), 2, 0); return x_2; } } @@ -5706,7 +5706,7 @@ x_4 = lean_ctor_get(x_2, 1); x_5 = l_Array_isEmpty___rarg(x_3); x_6 = l_Array_toList___rarg(x_4); lean_inc(x_1); -x_7 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_6); +x_7 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg(x_1, x_6); x_8 = l_Lean_Format_join(x_7); lean_dec(x_7); if (x_5 == 0) @@ -5891,7 +5891,7 @@ x_14 = lean_ctor_get(x_5, 0); lean_inc(x_14); lean_dec(x_5); x_15 = l_Lean_Meta_DiscrTree_Key_format(x_11); -x_16 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; +x_16 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; x_17 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -6033,7 +6033,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_2, 0); x_7 = l_Lean_Meta_DiscrTree_Key_format(x_3); -x_8 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; +x_8 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; x_9 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); @@ -18050,10 +18050,10 @@ l_Lean_Meta_DiscrTree_insertCore___rarg___closed__4 = _init_l_Lean_Meta_DiscrTre lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___rarg___closed__4); l_Lean_Meta_DiscrTree_insertCore___rarg___closed__5 = _init_l_Lean_Meta_DiscrTree_insertCore___rarg___closed__5(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___rarg___closed__5); -l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1 = _init_l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1); -l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2 = _init_l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2); +l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1 = _init_l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1(); +lean_mark_persistent(l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__1); +l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2 = _init_l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2(); +lean_mark_persistent(l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2); l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1 = _init_l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1); l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__2 = _init_l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index d5cf95a74f..7a9a180e95 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -216,7 +216,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfold(lean_object*); extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImp___rarg___closed__4; lean_object* l_Lean_Meta_isDefEqBindingDomain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; -uint8_t l_List_elem___main___at_Lean_catchInternalIds___spec__1(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_829____closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Meta_CheckAssignment_check___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,6 +328,7 @@ extern lean_object* l_Lean_MessageData_Lean_Message___instance__10___closed__2; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs_processOtherArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignmentQuick_check_visit_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -386,7 +386,6 @@ uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__2(lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__7; lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignmentQuick_check_visit_match__3(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -615,6 +614,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAss uint8_t l_Lean_LocalContext_isSubPrefixOf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProofQuick(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_catchInternalIds___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__8; uint8_t l_Lean_ReducibilityHints_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__4; @@ -29513,7 +29513,7 @@ lean_dec(x_36); x_37 = lean_ctor_get(x_29, 0); lean_inc(x_37); x_38 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_39 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_37, x_38); +x_39 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_37, x_38); lean_dec(x_37); if (x_39 == 0) { @@ -29559,7 +29559,7 @@ lean_dec(x_20); x_47 = lean_ctor_get(x_29, 0); lean_inc(x_47); x_48 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_49 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_47, x_48); +x_49 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_47, x_48); lean_dec(x_47); if (x_49 == 0) { @@ -30807,7 +30807,7 @@ lean_dec(x_35); x_36 = lean_ctor_get(x_28, 0); lean_inc(x_36); x_37 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_38 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_36, x_37); +x_38 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_36, x_37); lean_dec(x_36); if (x_38 == 0) { @@ -30853,7 +30853,7 @@ lean_dec(x_19); x_46 = lean_ctor_get(x_28, 0); lean_inc(x_46); x_47 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_48 = l_List_elem___main___at_Lean_catchInternalIds___spec__1(x_46, x_47); +x_48 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_46, x_47); lean_dec(x_46); if (x_48 == 0) { @@ -32054,7 +32054,7 @@ x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); x_64 = l_Array_toList___rarg(x_2); -x_65 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_64); +x_65 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_64); x_66 = l_Lean_MessageData_ofList(x_65); lean_dec(x_65); x_67 = lean_alloc_ctor(10, 2, 0); @@ -33911,7 +33911,7 @@ x_106 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_106, 0, x_104); lean_ctor_set(x_106, 1, x_105); x_107 = l_Array_toList___rarg(x_4); -x_108 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_107); +x_108 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_107); x_109 = l_Lean_MessageData_ofList(x_108); lean_dec(x_108); x_110 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Meta/GeneralizeTelescope.c b/stage0/stdlib/Lean/Meta/GeneralizeTelescope.c index 96d1978dc7..00986246ee 100644 --- a/stage0/stdlib/Lean/Meta/GeneralizeTelescope.c +++ b/stage0/stdlib/Lean/Meta/GeneralizeTelescope.c @@ -40,8 +40,8 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_Expr_toHeadIndex(lean_object*); -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_Meta_GeneralizeTelescope_updateTypes_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_GeneralizeTelescope_updateTypes_match__2(lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; @@ -1188,7 +1188,7 @@ x_43 = l_Array_umapMAux___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAu x_44 = x_43; x_45 = l_Array_toList___rarg(x_44); lean_dec(x_44); -x_46 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_45); +x_46 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_45); x_47 = l_Lean_MessageData_ofList(x_46); lean_dec(x_46); x_48 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2; @@ -1284,7 +1284,7 @@ x_71 = l_Array_umapMAux___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAu x_72 = x_71; x_73 = l_Array_toList___rarg(x_72); lean_dec(x_72); -x_74 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_73); +x_74 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_73); x_75 = l_Lean_MessageData_ofList(x_74); lean_dec(x_74); x_76 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2; diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index f6c3996d46..c66eb51d57 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -118,7 +118,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeImp(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_878____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); @@ -239,6 +238,7 @@ lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isPropImp_match__1___r lean_object* l_Lean_Meta_throwTypeExcepted___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferTypeAux___closed__2; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeQuickApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1044,9 +1044,9 @@ x_10 = lean_ctor_get(x_8, 0); x_11 = lean_ctor_get(x_8, 1); x_12 = l_Lean_ConstantInfo_lparams(x_10); x_13 = lean_unsigned_to_nat(0u); -x_14 = l_List_lengthAux___main___rarg(x_12, x_13); +x_14 = l_List_lengthAux___rarg(x_12, x_13); lean_dec(x_12); -x_15 = l_List_lengthAux___main___rarg(x_2, x_13); +x_15 = l_List_lengthAux___rarg(x_2, x_13); x_16 = lean_nat_dec_eq(x_14, x_15); lean_dec(x_15); lean_dec(x_14); @@ -1079,9 +1079,9 @@ lean_inc(x_19); lean_dec(x_8); x_21 = l_Lean_ConstantInfo_lparams(x_19); x_22 = lean_unsigned_to_nat(0u); -x_23 = l_List_lengthAux___main___rarg(x_21, x_22); +x_23 = l_List_lengthAux___rarg(x_21, x_22); lean_dec(x_21); -x_24 = l_List_lengthAux___main___rarg(x_2, x_22); +x_24 = l_List_lengthAux___rarg(x_2, x_22); x_25 = lean_nat_dec_eq(x_23, x_24); lean_dec(x_24); lean_dec(x_23); diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index c952951747..e7bb2bb4e9 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -98,7 +98,6 @@ lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes_ lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_19____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_19____closed__2; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(lean_object*, size_t, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_instanceExtension___closed__4; lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_224____lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -154,6 +153,7 @@ extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed_ 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*); +lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); 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*); @@ -2295,7 +2295,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_addGlobalInstanceImp_match__2___rar return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2314,7 +2314,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_mkLevelParam(x_4); -x_7 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_5); +x_7 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -2328,7 +2328,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_mkLevelParam(x_8); -x_11 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_9); +x_11 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -2407,7 +2407,7 @@ lean_inc(x_7); lean_dec(x_4); x_8 = l_Lean_ConstantInfo_lparams(x_7); lean_dec(x_7); -x_9 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_8); +x_9 = l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_8); x_10 = l_Lean_mkConst(x_2, x_9); x_11 = l_Lean_Unhygienic_run___rarg___closed__1; x_12 = l_Lean_NameGenerator_Init_LeanInit___instance__6___closed__1; diff --git a/stage0/stdlib/Lean/Meta/Match/CaseValues.c b/stage0/stdlib/Lean/Meta/Match/CaseValues.c index 98a38448af..469ca9cd3c 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseValues.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseValues.c @@ -86,13 +86,13 @@ lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1( lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValues_loop___closed__6; lean_object* l_Array_iterateMAux___at_Lean_Meta_caseValues_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_substCore___spec__8(lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValues_loop___closed__1; lean_object* l_Lean_Meta_caseValues_loop_match__3(lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__2; lean_object* l_Lean_Meta_caseValue___closed__3; lean_object* l_Lean_Meta_caseValues_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_substCore___spec__8(lean_object*); lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_Lean_Meta_Match_CaseValues___instance__1___closed__1; @@ -496,7 +496,7 @@ else { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; x_60 = l_Lean_Meta_FVarSubst_domain(x_1); -x_61 = l_List_map___main___at_Lean_Meta_substCore___spec__8(x_60); +x_61 = l_List_map___at_Lean_Meta_substCore___spec__8(x_60); x_62 = l_Lean_MessageData_ofList(x_61); lean_dec(x_61); x_63 = l_Lean_Meta_caseValueAux___lambda__1___closed__6; diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index f59ef60672..6dc744e380 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -25,20 +25,18 @@ lean_object* l_Lean_Meta_Match_Example_applyFVarSubst(lean_object*, lean_object* lean_object* l_Lean_Meta_MatcherApp_addArg_match__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern_match__1(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___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_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isMatcher___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___closed__1; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__4(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__3; lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2___boxed(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__2(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__7; @@ -46,18 +44,23 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__15; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_toMessageData___spec__2(lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___boxed(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__3; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Meta_Match_Unify_occurs_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__1(lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___closed__2; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone___boxed(lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_Match_Unify_assign___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_addParenHeuristic___closed__2; @@ -69,37 +72,39 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts_match__1_ lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected(lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3___closed__2; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___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_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(uint8_t, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; +lean_object* l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern_match__1(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop(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_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___boxed(lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__1; +extern lean_object* l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_fvarIdToDecl___default___closed__1; extern lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2730____closed__4; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition_match__1(lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8___closed__1; +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1(lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9___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_Match_Pattern_toExpr_match__1(lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623____closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -108,15 +113,14 @@ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_Extension_getM lean_object* l_Lean_Meta_Match_Unify_isAltVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f_match__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____lambda__1(lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__5(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__7; lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__1(lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; @@ -125,30 +129,28 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoC lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___boxed(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* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___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_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition_match__1(lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__4; extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__7; -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(uint8_t, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_Match_Extension_State_addEntry___spec__6(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___closed__3; uint8_t l_Lean_Meta_Match_Unify_occurs(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3; lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521_(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_constructorApp_x3f(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData_match__1(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(lean_object*, lean_object*); lean_object* l_Std_AssocList_replace___at_Lean_Meta_Match_Extension_State_addEntry___spec__11(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(lean_object*); extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_517____closed__3; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_SynthInstance_main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -156,37 +158,34 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__5; lean_object* l_Lean_Meta_Match_Pattern_toExpr_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___boxed(lean_object*); lean_object* l_Lean_Meta_Match_Example_toMessageData(lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___elambda__3___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__3; -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1(lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__2(lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues(lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___closed__2; lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__8; lean_object* l_Lean_addTrace___at_Lean_Meta_Match_Unify_assign___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___spec__1(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_applyFVarSubst_match__1(lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1___closed__2; +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar___boxed(lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__2; @@ -197,6 +196,7 @@ uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls(lean_o lean_object* l_Std_mkHashSetImp___rarg(lean_object*); extern lean_object* l_List_repr___rarg___closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -204,26 +204,29 @@ size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Meta_Match_mkMatcher_match__1(lean_object*); lean_object* l_Lean_Meta_Match_Example_replaceFVarId___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(uint8_t, uint8_t, lean_object*); extern lean_object* l_Init_Data_Repr___instance__11___rarg___closed__1; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(lean_object*); lean_object* l_Lean_SMap_switch___at_Lean_Meta_Match_Extension_State_switch___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___closed__1; +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(lean_object*, lean_object*); lean_object* l_Nat_foldAux___at_Lean_Meta_Match_mkMatcher___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__14; lean_object* l_Lean_Meta_Match_mkMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1; lean_object* l_Lean_Meta_matchMatcherApp_x3f_match__2(lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_Meta_Match_Extension_State_addEntry___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___rarg___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___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_Lean_Meta_instantiateMVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern_match__1(lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t, uint8_t, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux(lean_object*); lean_object* l_Lean_Meta_Match_Unify_State_fvarSubst___default; @@ -239,23 +242,19 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValue lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_Match_Unify_unify___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues_match__1(lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___rarg___lambda__2___boxed(lean_object**); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(lean_object*, uint8_t, lean_object*); -uint8_t l_List_elem___main___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___closed__3; lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__2; -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7827_(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__8; lean_object* l_Lean_Meta_Match_generateMatcherCode___boxed(lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern(lean_object*); lean_object* l_Lean_Meta_instantiateLambda___at___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable_match__1(lean_object*); @@ -266,24 +265,21 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__2(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(uint8_t, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_Meta_Match_State_used___default___spec__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2; lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withExistingLocalDecls___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(uint8_t, uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__3(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts(lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__1; -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__3; lean_object* l_Lean_Meta_mkAuxDefinition___at_Lean_Meta_mkAuxDefinitionFor___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes_match__1(lean_object*); extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isFirstPatternVar_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -295,6 +291,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstru extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; extern lean_object* l_Init_Data_Repr___instance__7___rarg___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern_match__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___rarg___closed__2; lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__5; @@ -304,17 +301,14 @@ lean_object* l_Lean_Meta_Match_Example_varsToUnderscore(lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify_match__1(lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue_match__3(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_applyFVarSubst_match__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__13; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_Lean_Meta_Match_Match___instance__1; @@ -334,7 +328,7 @@ lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__2(lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_check___spec__2(lean_object*, lean_object*); @@ -342,25 +336,29 @@ lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___h lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__4; lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Match_Extension_State_addEntry___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_State_addEntry(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___closed__1; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___closed__1; lean_object* l_Lean_Meta_Match_Example_replaceFVarId_match__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; extern lean_object* l_Lean_Meta_evalNat_match__2___rarg___closed__1; -lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____closed__2; +lean_object* l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(lean_object*); extern lean_object* l_Lean_Meta_caseValue___closed__2; lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623____closed__5; lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__4; +lean_object* l_List_foldl___at_Lean_Meta_Match_Example_toMessageData___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -370,14 +368,10 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTran lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern(lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___closed__1; -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__2; lean_object* l_Lean_Meta_Match_Extension_extension___closed__2; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(lean_object*); lean_object* l_Lean_Meta_getInductiveUniverseAndParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -386,36 +380,35 @@ lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hy lean_object* l_Array_iterateMAux___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Match_Extension_State_addEntry___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__4; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg_match__1(lean_object*); lean_object* l_List_mapM___at_Lean_Meta_Match_Problem_toMessageData___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_State_map___default___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType_match__1(lean_object*); size_t l_Lean_Name_hash(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_isLevelDefEq___spec__3___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__8; -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(uint8_t, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_State_switch(lean_object*); lean_object* l_Array_umapMAux___at_Lean_Meta_Match_mkMatcher___spec__2(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t, lean_object*); lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___closed__3; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__4; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__5(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; extern lean_object* l_Lean_MessageData_nil___closed__1; lean_object* l_Lean_Meta_Match_Extension_extension; -extern lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; lean_object* l_Array_umapMAux___at_Lean_Meta_Closure_mkBinding___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_Match_Extension_State_addEntry___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_occurs_match__1(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -428,6 +421,7 @@ lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__1; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Meta_Match_Extension_State_map___default___spec__1(lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -436,14 +430,15 @@ extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment extern lean_object* l_Lean_Lean_ToExpr___instance__6___lambda__1___closed__3; lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__2___closed__3; extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_517____closed__2; +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__6; lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____closed__4; lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623____closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(lean_object*); lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___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_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkArrow___at_Lean_Meta_MatcherApp_addArg___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -456,11 +451,13 @@ uint8_t l_Lean_Meta_Match_Unify_occurs___lambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; lean_object* l_Lean_Meta_matchMatcherApp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_toMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__2; lean_object* l_Lean_Meta_Match_addMatcherInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_setInlineAttribute___at_Lean_Meta_Match_mkMatcher___spec__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__3___rarg(lean_object*, lean_object*, lean_object*); @@ -469,9 +466,7 @@ extern lean_object* l_Lean_Literal_type___closed__2; size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lean_Data_Format___instance__10___rarg___closed__1; -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___boxed(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -481,11 +476,11 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLi lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_commitWhenSome_x3f___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__1___closed__1; lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___closed__4; +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_Meta_Basic___instance__10___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -497,6 +492,7 @@ extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_517____close lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_Match_Unify_unify___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify___closed__1; extern lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__1; +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Meta_Match_Extension_addMatcherInfo(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -507,21 +503,22 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lamb lean_object* l_Lean_Meta_isLevelDefEqAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__5; lean_object* l_Lean_Meta_Match_Unify_assign___closed__1; -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(uint8_t, uint8_t, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_Match_Unify_expandIfVar_match__1(lean_object*); +uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_mkMatcher___spec__1(lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__2; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunkType(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isFirstPatternVar_match__1(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible_match__2(lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___closed__4; +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Match_Unify_assign___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_Match_mkMatcher___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__7; @@ -546,8 +543,6 @@ lean_object* l_Nat_foldRevM_loop___at_Lean_Meta_MatcherApp_addArg___spec__1(lean lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___closed__3; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_Meta_Basic___instance__10___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId_match__1(lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf_match__1(lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; @@ -556,28 +551,32 @@ lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Match_Extension_getMatcher lean_object* l_Lean_Meta_Match_Unify_assign___closed__2; extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__4; lean_object* l_Lean_Meta_Match_Extension_extension___elambda__4(lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1; lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; lean_object* l_Lean_Meta_Match_addMatcherInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___at_Lean_Meta_Match_mkMatcher___spec__9___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Match_Extension_State_addEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Lean_Meta_Match_Match___instance__3___closed__1; lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__12; -lean_object* l_List_map___main___at_Lean_Meta_Match_examplesToMessageData___spec__1(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMatcherInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop_match__1(lean_object*); lean_object* l_Lean_Meta_Match_Example_applyFVarSubst___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__2; lean_object* l_Lean_Meta_Match_Unify_assign___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); @@ -585,15 +584,14 @@ lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__2; lean_object* l_Lean_Meta_matchMatcherApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__6; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1; -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_toMessageData___spec__2(lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_Match_assignGoalOf___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLambda___at___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(uint8_t, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___rarg___closed__3; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___boxed(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); @@ -603,13 +601,15 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux_ma lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__1; lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__4(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_479____closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__1; @@ -618,12 +618,13 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoC uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_mkMatcher___spec__1(lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__3; lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__7; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__3___rarg(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__4; lean_object* l_Lean_Meta_Match_Extension_extension___elambda__3(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -646,12 +647,12 @@ uint8_t l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__1(lean_object*, le extern lean_object* l_Std_HashSet_Std_Data_HashSet___instance__1___closed__1; lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_commitWhenSome_x3f___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__3___closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Match_Unify_assign___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__9; extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setInlineAttribute___at_Lean_Meta_Match_mkMatcher___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_expandIfVar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__5(lean_object*, lean_object*); @@ -673,13 +674,14 @@ extern lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__1___closed__6; lean_object* l_Lean_Meta_Match_Extension_extension___elambda__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallBoundedTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkArrayLit___at___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_toExpr(lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(uint8_t, uint8_t, lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Meta_Match_Example_applyFVarSubst_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive_match__1(lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_reprAux___rarg___closed__1; lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__11; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue_match__3___rarg(lean_object*, lean_object*, lean_object*); @@ -690,14 +692,19 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipIna lean_object* lean_register_option(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchMatcherApp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__4; lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Match_Extension_State_addEntry___spec__8(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___elambda__4___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_Match_Extension_State_addEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__8; lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2; lean_object* l_Nat_foldAux___at_Lean_Meta_Match_mkMatcher___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_Match_mkMatcher___spec__10(lean_object*); @@ -707,32 +714,33 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_varsToUnderscore_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__1(lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___boxed(lean_object*); lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___closed__1; lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_Match_mkMatcher___spec__3___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___lambda__1___closed__1; +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___closed__5; lean_object* l_Lean_Meta_Match_withGoalOf(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition_match__1(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__2; -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__5; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(uint8_t, lean_object*); extern lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__6; @@ -741,7 +749,6 @@ lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLocalDeclMVars___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f_match__1(lean_object*, lean_object*); -lean_object* l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -749,9 +756,12 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransit lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3___closed__1; lean_object* l_Lean_Meta_Match_withGoalOf___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__1; +lean_object* l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__1___closed__2; +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -764,6 +774,7 @@ extern lean_object* l_Lean_EnvExtensionInterfaceUnsafe_Lean_Environment___instan lean_object* lean_mk_array(lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623____closed__2; +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f_match__1___rarg(lean_object*, lean_object*); @@ -776,8 +787,6 @@ lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_genera lean_object* l_Lean_Meta_matchMatcherApp_x3f_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition_match__1(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Match_Extension_State_addEntry___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -785,8 +794,8 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__5; lean_object* l_List_toString___at_Lean_Meta_Match_mkMatcher___spec__8(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___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_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__6(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3___closed__3; @@ -806,6 +815,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateLambdaAux(lean_ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__3(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11___closed__1; lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -816,48 +826,46 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariabl lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(uint8_t, lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Meta_Match_Extension_initFn____x40_Lean_Meta_Match_Match___hyg_6521____closed__5; lean_object* l_Array_iterateMAux___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Meta_withExistingLocalDecls___at_Lean_Meta_Match_Alt_toMessageData___spec__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar_match__1(lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*); lean_object* l_Lean_Lean_Environment___instance__5___lambda__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_GeneralizeTelescope_updateTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Meta_Match_mkMatcher___spec__6(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(lean_object*, uint8_t, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623____closed__6; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___boxed(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__1; lean_object* l_Lean_Meta_getMatcherInfo_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__7; -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1; lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__16; lean_object* l_Lean_Meta_Match_Extension_extension___closed__3; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___closed__1; lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux_match__1___rarg(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__3(lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___closed__6; +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_Lean_Meta_Match_Match___instance__4; uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -877,13 +885,11 @@ lean_object* l_Lean_Meta_Match_Extension_extension___elambda__2___boxed(lean_obj lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern_match__1(lean_object*); lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Match_Extension_State_addEntry___spec__10(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_toMessageData___closed__3; -lean_object* l_List_foldl___main___at_Lean_Meta_Match_Example_toMessageData___spec__1(lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___spec__1___closed__1; lean_object* l_Lean_Level_format(lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__1___closed__4; -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__2; lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object*); @@ -898,22 +904,19 @@ lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__5; lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__1(lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___closed__5; -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6623_(lean_object*); extern lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__3; -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(lean_object*, lean_object*); +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t, uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___elambda__2(lean_object*); lean_object* l_Lean_Meta_Match_Unify_isAltVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__4; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern_match__1(lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_expandIfVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_applyFVarSubst(lean_object*, lean_object*); @@ -923,8 +926,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariabl lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition_match__1(lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_Match_Extension_getMatcherInfo_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -935,7 +936,6 @@ lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_o lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__2___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Example_replaceFVarId_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkArrow___at_Lean_Meta_MatcherApp_addArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_Match_Extension_State_addEntry___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1100,7 +1100,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Pattern_toMessageData_match__ return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1129,7 +1129,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1148,7 +1148,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Meta_Match_Pattern_toMessageData(x_4); -x_7 = l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_5); +x_7 = l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1162,7 +1162,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Meta_Match_Pattern_toMessageData(x_8); -x_11 = l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_9); +x_11 = l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1306,7 +1306,7 @@ x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); x_20 = l_Lean_MessageData_nil___closed__1; -x_21 = l_List_foldl___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(x_20, x_11); +x_21 = l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(x_20, x_11); x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_19); lean_ctor_set(x_22, 1, x_21); @@ -1333,7 +1333,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean x_27 = lean_ctor_get(x_1, 1); lean_inc(x_27); lean_dec(x_1); -x_28 = l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_27); +x_28 = l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_27); x_29 = l_Lean_MessageData_arrayExpr_toMessageData___closed__2; x_30 = l_Lean_MessageData_joinSep(x_28, x_29); lean_dec(x_28); @@ -2069,7 +2069,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Pattern_applyFVarSubst_match_ return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2090,7 +2090,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -2105,7 +2105,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2114,7 +2114,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2135,7 +2135,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -2150,7 +2150,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2159,7 +2159,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2180,7 +2180,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -2195,7 +2195,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2296,8 +2296,8 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_2, 2); x_20 = lean_ctor_get(x_2, 3); lean_inc(x_1); -x_21 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_19); -x_22 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_20); +x_21 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_19); +x_22 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_20); lean_ctor_set(x_2, 3, x_22); lean_ctor_set(x_2, 2, x_21); return x_2; @@ -2315,8 +2315,8 @@ lean_inc(x_24); lean_inc(x_23); lean_dec(x_2); lean_inc(x_1); -x_27 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_25); -x_28 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_26); +x_27 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__1(x_1, x_25); +x_28 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__2(x_1, x_26); x_29 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_29, 0, x_23); lean_ctor_set(x_29, 1, x_24); @@ -2360,7 +2360,7 @@ x_37 = lean_ctor_get(x_2, 0); x_38 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_39 = l_Lean_Meta_FVarSubst_apply(x_1, x_37); -x_40 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_38); +x_40 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_38); lean_ctor_set(x_2, 1, x_40); lean_ctor_set(x_2, 0, x_39); return x_2; @@ -2375,7 +2375,7 @@ lean_inc(x_41); lean_dec(x_2); lean_inc(x_1); x_43 = l_Lean_Meta_FVarSubst_apply(x_1, x_41); -x_44 = l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_42); +x_44 = l_List_map___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(x_1, x_42); x_45 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); @@ -2473,7 +2473,7 @@ x_1 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2___closed__1; return x_1; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1() { +static lean_object* _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1() { _start: { lean_object* x_1; @@ -2481,27 +2481,27 @@ x_1 = lean_mk_string(":("); return x_1; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2() { +static lean_object* _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1; +x_1 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3() { +static lean_object* _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2; +x_1 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4() { +static lean_object* _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -2511,7 +2511,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2532,7 +2532,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_LocalDecl_toExpr(x_4); x_7 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; +x_8 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); @@ -2543,11 +2543,11 @@ lean_ctor_set(x_11, 0, x_10); x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_9); lean_ctor_set(x_12, 1, x_11); -x_13 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; +x_13 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_5); +x_15 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_5); lean_ctor_set(x_1, 1, x_15); lean_ctor_set(x_1, 0, x_14); return x_1; @@ -2563,7 +2563,7 @@ lean_dec(x_1); x_18 = l_Lean_LocalDecl_toExpr(x_16); x_19 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_19, 0, x_18); -x_20 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; +x_20 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -2574,11 +2574,11 @@ lean_ctor_set(x_23, 0, x_22); x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_23); -x_25 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; +x_25 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_17); +x_27 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_17); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -2678,7 +2678,7 @@ static lean_object* _init_l_Lean_Meta_Match_Alt_toMessageData___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; +x_1 = l_List_map___at_Lean_Meta_DiscrTree_Trie_format___spec__2___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -2691,7 +2691,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_ob x_7 = lean_ctor_get(x_1, 3); lean_inc(x_7); lean_inc(x_7); -x_8 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_7); +x_8 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1(x_7); x_9 = l_Lean_MessageData_ofList(x_8); lean_dec(x_8); x_10 = l_Lean_Meta_Match_Alt_toMessageData___closed__3; @@ -2700,7 +2700,7 @@ lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); x_12 = lean_ctor_get(x_1, 4); lean_inc(x_12); -x_13 = l_List_map___main___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_12); +x_13 = l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(x_12); x_14 = l_Lean_MessageData_ofList(x_13); lean_dec(x_13); x_15 = lean_alloc_ctor(10, 2, 0); @@ -2724,7 +2724,7 @@ x_22 = l_Lean_Meta_withExistingLocalDecls___at_Lean_Meta_Match_Alt_toMessageData return x_22; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2745,7 +2745,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_LocalDecl_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -2760,7 +2760,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_LocalDecl_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2769,7 +2769,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2790,7 +2790,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -2805,7 +2805,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2828,8 +2828,8 @@ x_6 = lean_ctor_get(x_2, 4); lean_inc(x_1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_4); lean_inc(x_1); -x_8 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_5); -x_9 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_5); +x_9 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_6); lean_ctor_set(x_2, 4, x_9); lean_ctor_set(x_2, 3, x_8); lean_ctor_set(x_2, 2, x_7); @@ -2852,8 +2852,8 @@ lean_dec(x_2); lean_inc(x_1); x_15 = l_Lean_Meta_FVarSubst_apply(x_1, x_12); lean_inc(x_1); -x_16 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_13); -x_17 = l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_14); +x_16 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1(x_1, x_13); +x_17 = l_List_map___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(x_1, x_14); x_18 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_18, 0, x_10); lean_ctor_set(x_18, 1, x_11); @@ -2864,7 +2864,7 @@ return x_18; } } } -lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2935,7 +2935,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2956,7 +2956,7 @@ x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); lean_inc(x_1); x_8 = l_Lean_replaceFVarIdAtLocalDecl(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -2971,7 +2971,7 @@ lean_inc(x_10); lean_dec(x_3); lean_inc(x_1); x_12 = l_Lean_replaceFVarIdAtLocalDecl(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -2980,7 +2980,7 @@ return x_14; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3003,7 +3003,7 @@ x_7 = lean_ctor_get(x_3, 1); lean_inc(x_2); lean_inc(x_1); x_8 = l_Lean_Meta_Match_Pattern_replaceFVarId(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -3019,7 +3019,7 @@ lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); x_12 = l_Lean_Meta_Match_Pattern_replaceFVarId(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -3043,10 +3043,10 @@ lean_inc(x_1); x_8 = l_Lean_Expr_replaceFVarId(x_5, x_1, x_2); lean_dec(x_5); x_9 = lean_box(0); -x_10 = l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_6, x_9); +x_10 = l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_6, x_9); lean_inc(x_1); -x_11 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_10); -x_12 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_7); +x_11 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 4, x_12); lean_ctor_set(x_3, 3, x_11); lean_ctor_set(x_3, 2, x_8); @@ -3070,10 +3070,10 @@ lean_inc(x_1); x_18 = l_Lean_Expr_replaceFVarId(x_15, x_1, x_2); lean_dec(x_15); x_19 = lean_box(0); -x_20 = l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_16, x_19); +x_20 = l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_16, x_19); lean_inc(x_1); -x_21 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_20); -x_22 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_17); +x_21 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_20); +x_22 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__3(x_1, x_2, x_17); x_23 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_23, 0, x_13); lean_ctor_set(x_23, 1, x_14); @@ -3084,20 +3084,20 @@ return x_23; } } } -lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_2, x_3); +x_4 = l_List_filterAux___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_3); +x_4 = l_List_map___at_Lean_Meta_Match_Alt_replaceFVarId___spec__2(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -3332,7 +3332,7 @@ lean_closure_set(x_9, 0, x_1); x_10 = lean_ctor_get(x_3, 3); lean_inc(x_10); lean_inc(x_10); -x_11 = l_List_find_x3f___main___rarg(x_9, x_10); +x_11 = l_List_find_x3f___rarg(x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -3661,7 +3661,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Example_replaceFVarId_match__ return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3680,7 +3680,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Meta_Match_Example_replaceFVarId(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -3694,7 +3694,7 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); x_12 = l_Lean_Meta_Match_Example_replaceFVarId(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -3703,7 +3703,7 @@ return x_14; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3722,7 +3722,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Meta_Match_Example_replaceFVarId(x_1, x_2, x_6); -x_9 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_7); +x_9 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_9); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -3736,7 +3736,7 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); x_12 = l_Lean_Meta_Match_Example_replaceFVarId(x_1, x_2, x_10); -x_13 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_11); +x_13 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -3800,7 +3800,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 1); -x_12 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_11); +x_12 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_11); lean_ctor_set(x_3, 1, x_12); return x_3; } @@ -3812,7 +3812,7 @@ x_14 = lean_ctor_get(x_3, 1); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_15 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_14); +x_15 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_14); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); @@ -3827,7 +3827,7 @@ if (x_17 == 0) { lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_3, 0); -x_19 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_18); +x_19 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_18); lean_ctor_set(x_3, 0, x_19); return x_3; } @@ -3837,7 +3837,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_ctor_get(x_3, 0); lean_inc(x_20); lean_dec(x_3); -x_21 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_20); +x_21 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_20); x_22 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; @@ -3850,21 +3850,21 @@ return x_3; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_3); +x_4 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_3); +x_4 = l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; @@ -3974,7 +3974,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Example_applyFVarSubst_match_ return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3993,7 +3993,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_Match_Example_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -4007,7 +4007,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_Match_Example_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -4016,7 +4016,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4035,7 +4035,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_Match_Example_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_6); +x_8 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -4049,7 +4049,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_Match_Example_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_10); +x_12 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -4123,7 +4123,7 @@ if (x_13 == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_2, 1); -x_15 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_14); +x_15 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_14); lean_ctor_set(x_2, 1, x_15); return x_2; } @@ -4135,7 +4135,7 @@ x_17 = lean_ctor_get(x_2, 1); lean_inc(x_17); lean_inc(x_16); lean_dec(x_2); -x_18 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_17); +x_18 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_17); x_19 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_19, 0, x_16); lean_ctor_set(x_19, 1, x_18); @@ -4150,7 +4150,7 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_ctor_get(x_2, 0); -x_22 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_21); +x_22 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_21); lean_ctor_set(x_2, 0, x_22); return x_2; } @@ -4160,7 +4160,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_2, 0); lean_inc(x_23); lean_dec(x_2); -x_24 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_23); +x_24 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_23); x_25 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_25, 0, x_24); return x_25; @@ -4173,20 +4173,20 @@ return x_2; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_2); +x_3 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_2); +x_3 = l_List_map___at_Lean_Meta_Match_Example_applyFVarSubst___spec__2(x_1, x_2); lean_dec(x_1); return x_3; } @@ -4262,7 +4262,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Example_varsToUnderscore_matc return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4281,7 +4281,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Meta_Match_Example_varsToUnderscore(x_4); -x_7 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_5); +x_7 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -4295,7 +4295,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Meta_Match_Example_varsToUnderscore(x_8); -x_11 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_9); +x_11 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -4323,7 +4323,7 @@ if (x_3 == 0) { lean_object* x_4; lean_object* x_5; x_4 = lean_ctor_get(x_1, 1); -x_5 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_4); +x_5 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_4); lean_ctor_set(x_1, 1, x_5); return x_1; } @@ -4335,7 +4335,7 @@ x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_inc(x_6); lean_dec(x_1); -x_8 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_7); +x_8 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_7); x_9 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_9, 0, x_6); lean_ctor_set(x_9, 1, x_8); @@ -4350,7 +4350,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_1, 0); -x_12 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_11); +x_12 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_11); lean_ctor_set(x_1, 0, x_12); return x_1; } @@ -4360,7 +4360,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_1, 0); lean_inc(x_13); lean_dec(x_1); -x_14 = l_List_map___main___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_13); +x_14 = l_List_map___at_Lean_Meta_Match_Example_varsToUnderscore___spec__1(x_13); x_15 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_15, 0, x_14); return x_15; @@ -4472,7 +4472,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_Example_toMessageData_match__ return x_2; } } -lean_object* l_List_foldl___main___at_Lean_Meta_Match_Example_toMessageData___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_Meta_Match_Example_toMessageData___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4501,7 +4501,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_Example_toMessageData___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_Example_toMessageData___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4520,7 +4520,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Meta_Match_Example_toMessageData(x_4); -x_7 = l_List_map___main___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_5); +x_7 = l_List_map___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -4534,7 +4534,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Meta_Match_Example_toMessageData(x_8); -x_11 = l_List_map___main___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_9); +x_11 = l_List_map___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -4636,11 +4636,11 @@ x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); x_17 = l_Lean_MessageData_nil___closed__1; -x_18 = l_List_foldl___main___at_Lean_Meta_Match_Example_toMessageData___spec__1(x_17, x_6); +x_18 = l_List_foldl___at_Lean_Meta_Match_Example_toMessageData___spec__1(x_17, x_6); x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_16); lean_ctor_set(x_19, 1, x_18); -x_20 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; +x_20 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -4663,7 +4663,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean x_24 = lean_ctor_get(x_1, 0); lean_inc(x_24); lean_dec(x_1); -x_25 = l_List_map___main___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_24); +x_25 = l_List_map___at_Lean_Meta_Match_Example_toMessageData___spec__2(x_24); x_26 = l_Lean_MessageData_ofList(x_25); lean_dec(x_25); x_27 = l_Lean_Meta_Match_Example_toMessageData___closed__4; @@ -4675,7 +4675,7 @@ return x_28; } } } -lean_object* l_List_map___main___at_Lean_Meta_Match_examplesToMessageData___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4695,7 +4695,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Meta_Match_Example_varsToUnderscore(x_4); x_7 = l_Lean_Meta_Match_Example_toMessageData(x_6); -x_8 = l_List_map___main___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_5); +x_8 = l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -4710,7 +4710,7 @@ lean_inc(x_9); lean_dec(x_1); x_11 = l_Lean_Meta_Match_Example_varsToUnderscore(x_9); x_12 = l_Lean_Meta_Match_Example_toMessageData(x_11); -x_13 = l_List_map___main___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_10); +x_13 = l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -4723,7 +4723,7 @@ lean_object* l_Lean_Meta_Match_examplesToMessageData(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_List_map___main___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_1); +x_2 = l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(x_1); x_3 = l_Lean_MessageData_arrayExpr_toMessageData___closed__2; x_4 = l_Lean_MessageData_joinSep(x_2, x_3); lean_dec(x_2); @@ -5042,7 +5042,7 @@ lean_inc(x_14); lean_dec(x_12); x_15 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_15, 0, x_10); -x_16 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; +x_16 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -5051,7 +5051,7 @@ lean_ctor_set(x_18, 0, x_13); x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; +x_20 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -5164,7 +5164,7 @@ lean_inc(x_40); lean_dec(x_38); x_41 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_41, 0, x_36); -x_42 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; +x_42 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); @@ -5173,7 +5173,7 @@ lean_ctor_set(x_44, 0, x_39); x_45 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; +x_46 = l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_45); lean_ctor_set(x_47, 1, x_46); @@ -5544,7 +5544,7 @@ x_2 = l_Lean_Meta_Match_examplesToMessageData(x_1); return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5563,7 +5563,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Meta_Match_examplesToMessageData(x_4); -x_7 = l_List_map___main___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_5); +x_7 = l_List_map___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -5577,7 +5577,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Meta_Match_examplesToMessageData(x_8); -x_11 = l_List_map___main___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_9); +x_11 = l_List_map___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -5590,14 +5590,14 @@ lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_List_map___main___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_1); +x_2 = l_List_map___at_Lean_Meta_Match_counterExamplesToMessageData___spec__1(x_1); x_3 = l_Lean_MessageData_ofList___closed__3; x_4 = l_Lean_MessageData_joinSep(x_2, x_3); lean_dec(x_2); return x_4; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5609,10 +5609,10 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 2); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_List_lengthAux___main___rarg(x_7, x_8); +x_9 = l_List_lengthAux___rarg(x_7, x_8); x_10 = lean_nat_dec_eq(x_9, x_1); lean_dec(x_9); if (x_10 == 0) @@ -5662,7 +5662,7 @@ _start: lean_object* x_8; uint8_t x_9; uint8_t x_10; x_8 = lean_array_get_size(x_1); x_9 = 0; -x_10 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_8, x_9, x_2); +x_10 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_8, x_9, x_2); lean_dec(x_8); if (x_10 == 0) { @@ -5682,13 +5682,13 @@ return x_14; } } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -6788,7 +6788,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); -x_38 = l_List_lengthAux___main___rarg(x_3, x_22); +x_38 = l_List_lengthAux___rarg(x_3, x_22); x_39 = lean_unsigned_to_nat(1u); x_40 = lean_nat_add(x_38, x_39); x_41 = l_Lean_Meta_caseValue___closed__2; @@ -7291,7 +7291,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7303,7 +7303,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7333,17 +7333,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7412,7 +7412,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7424,7 +7424,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7454,17 +7454,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7527,7 +7527,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7539,7 +7539,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7569,17 +7569,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7642,7 +7642,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7654,7 +7654,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7694,17 +7694,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7767,7 +7767,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7779,7 +7779,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7809,17 +7809,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -7884,7 +7884,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7896,7 +7896,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 4); if (lean_obj_tag(x_6) == 0) { @@ -7926,17 +7926,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -8018,7 +8018,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8041,7 +8041,7 @@ else lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_4, 0); -x_8 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_1, x_6); +x_8 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_1, x_6); switch (lean_obj_tag(x_7)) { case 0: { @@ -8068,17 +8068,17 @@ _start: lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -8185,7 +8185,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8208,7 +8208,7 @@ else lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_3, 1); x_8 = lean_ctor_get(x_5, 0); -x_9 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_1, x_2, x_7); +x_9 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_1, x_2, x_7); switch (lean_obj_tag(x_8)) { case 3: { @@ -8246,7 +8246,7 @@ return x_9; } } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8269,7 +8269,7 @@ else lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_4, 0); -x_8 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_1, x_6); +x_8 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_1, x_6); switch (lean_obj_tag(x_7)) { case 3: { @@ -8318,7 +8318,7 @@ else { uint8_t x_6; uint8_t x_7; x_6 = 1; -x_7 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_4, x_6, x_3); +x_7 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_4, x_6, x_3); return x_7; } } @@ -8327,12 +8327,12 @@ else lean_object* x_8; uint8_t x_9; uint8_t x_10; x_8 = lean_ctor_get(x_1, 2); x_9 = 1; -x_10 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_9, x_8); +x_10 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_9, x_8); return x_10; } } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; @@ -8340,19 +8340,19 @@ x_4 = lean_unbox(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_4, x_5, x_3); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(x_4, x_5, x_3); lean_dec(x_3); x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_3, x_2); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__2(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -8434,7 +8434,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8457,7 +8457,7 @@ else lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_3, 1); x_8 = lean_ctor_get(x_5, 0); -x_9 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_1, x_2, x_7); +x_9 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_1, x_2, x_7); switch (lean_obj_tag(x_8)) { case 1: { @@ -8522,13 +8522,13 @@ else lean_object* x_6; uint8_t x_7; uint8_t x_8; x_6 = lean_ctor_get(x_1, 2); x_7 = 1; -x_8 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_4, x_7, x_6); +x_8 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_4, x_7, x_6); return x_8; } } } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; @@ -8536,7 +8536,7 @@ x_4 = lean_unbox(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_4, x_5, x_3); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___spec__1(x_4, x_5, x_3); lean_dec(x_3); x_7 = lean_box(x_6); return x_7; @@ -8620,7 +8620,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8643,7 +8643,7 @@ else lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_3, 1); x_8 = lean_ctor_get(x_5, 0); -x_9 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_1, x_2, x_7); +x_9 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_1, x_2, x_7); switch (lean_obj_tag(x_8)) { case 1: { @@ -8708,13 +8708,13 @@ else lean_object* x_6; uint8_t x_7; uint8_t x_8; x_6 = lean_ctor_get(x_1, 2); x_7 = 1; -x_8 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_4, x_7, x_6); +x_8 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_4, x_7, x_6); return x_8; } } } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; @@ -8722,7 +8722,7 @@ x_4 = lean_unbox(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_4, x_5, x_3); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(x_4, x_5, x_3); lean_dec(x_3); x_7 = lean_box(x_6); return x_7; @@ -8810,7 +8810,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8822,7 +8822,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 4); if (lean_obj_tag(x_7) == 0) { @@ -8896,13 +8896,13 @@ else lean_object* x_5; uint8_t x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 2); x_6 = 0; -x_7 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_6, x_6, x_5); +x_7 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_6, x_6, x_5); return x_7; } } } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; @@ -8910,7 +8910,7 @@ x_4 = lean_unbox(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_4, x_5, x_3); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___spec__1(x_4, x_5, x_3); lean_dec(x_3); x_7 = lean_box(x_6); return x_7; @@ -9006,7 +9006,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1() { _start: { lean_object* x_1; @@ -9014,7 +9014,7 @@ x_1 = lean_mk_string("Lean.Meta.Match.Match"); return x_1; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2() { _start: { lean_object* x_1; @@ -9022,12 +9022,12 @@ x_1 = lean_mk_string("_private.Lean.Meta.Match.Match.0.Lean.Meta.Match.processSk return x_1; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; -x_2 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; x_3 = lean_unsigned_to_nat(357u); x_4 = lean_unsigned_to_nat(19u); x_5 = l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -9035,7 +9035,7 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9062,7 +9062,7 @@ x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_4, 2); x_10 = lean_ctor_get(x_4, 3); x_11 = lean_ctor_get(x_4, 4); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_6); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_6); if (lean_obj_tag(x_11) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -9072,7 +9072,7 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); x_13 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_14 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_14 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_15 = lean_panic_fn(x_13, x_14); lean_ctor_set(x_1, 1, x_12); lean_ctor_set(x_1, 0, x_15); @@ -9131,7 +9131,7 @@ lean_dec(x_23); x_24 = lean_ctor_get(x_11, 0); lean_dec(x_24); x_25 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_26 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_26 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_27 = lean_panic_fn(x_25, x_26); lean_ctor_set(x_11, 1, x_12); lean_ctor_set(x_11, 0, x_27); @@ -9142,7 +9142,7 @@ else lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_dec(x_11); x_28 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_29 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_29 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_30 = lean_panic_fn(x_28, x_29); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); @@ -9167,7 +9167,7 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_4); -x_38 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_32); +x_38 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_32); if (lean_obj_tag(x_37) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -9176,7 +9176,7 @@ lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); x_39 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_40 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_40 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_41 = lean_panic_fn(x_39, x_40); lean_ctor_set(x_1, 1, x_38); lean_ctor_set(x_1, 0, x_41); @@ -9234,7 +9234,7 @@ if (lean_is_exclusive(x_37)) { x_47 = lean_box(0); } x_48 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_49 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_49 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_50 = lean_panic_fn(x_48, x_49); if (lean_is_scalar(x_47)) { x_51 = lean_alloc_ctor(1, 2, 0); @@ -9277,7 +9277,7 @@ if (lean_is_exclusive(x_52)) { lean_dec_ref(x_52); x_59 = lean_box(0); } -x_60 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_53); +x_60 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_53); if (lean_obj_tag(x_58) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; @@ -9287,7 +9287,7 @@ lean_dec(x_56); lean_dec(x_55); lean_dec(x_54); x_61 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_62 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_62 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_63 = lean_panic_fn(x_61, x_62); x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); @@ -9350,7 +9350,7 @@ if (lean_is_exclusive(x_58)) { x_70 = lean_box(0); } x_71 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_72 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; +x_72 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3; x_73 = lean_panic_fn(x_71, x_72); if (lean_is_scalar(x_70)) { x_74 = lean_alloc_ctor(1, 2, 0); @@ -9370,8 +9370,8 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; -x_2 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2; x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(15u); x_5 = l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -9407,7 +9407,7 @@ lean_dec(x_8); x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_dec(x_2); -x_10 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_7); +x_10 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_7); lean_ctor_set(x_1, 2, x_10); lean_ctor_set(x_1, 1, x_9); return x_1; @@ -9425,7 +9425,7 @@ lean_dec(x_1); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_12); +x_15 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(x_12); x_16 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_16, 0, x_11); lean_ctor_set(x_16, 1, x_14); @@ -9469,7 +9469,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9539,7 +9539,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(x_3, x_6); +x_9 = l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -9568,64 +9568,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_nat_dec_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_nat_dec_eq(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_nat_dec_eq(x_9, x_2); -if (x_11 == 0) +x_12 = lean_nat_dec_eq(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -9645,7 +9647,7 @@ x_6 = lean_array_get_size(x_5); x_7 = lean_usize_of_nat(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_2, x_9); +x_10 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -9677,7 +9679,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_9, x_2, x_2); +x_17 = l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -9696,7 +9698,7 @@ x_21 = lean_array_get_size(x_20); x_22 = lean_usize_of_nat(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_2, x_24); +x_25 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -9729,7 +9731,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_24, x_2, x_2); +x_33 = l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -9982,11 +9984,11 @@ return x_72; } } } -lean_object* l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_1, x_2, x_3); +x_4 = l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__5(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -10512,7 +10514,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___closed__1; x_3 = lean_unsigned_to_nat(372u); x_4 = lean_unsigned_to_nat(15u); @@ -10670,7 +10672,7 @@ static lean_object* _init_l_List_mapM___at___private_Lean_Meta_Match_Match_0__Le _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___spec__1___closed__1; x_3 = lean_unsigned_to_nat(386u); x_4 = lean_unsigned_to_nat(40u); @@ -11156,7 +11158,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___spec__1___closed__1; x_3 = lean_unsigned_to_nat(381u); x_4 = lean_unsigned_to_nat(15u); @@ -11285,7 +11287,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -11297,7 +11299,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_2, x_5); x_7 = l_Lean_LocalDecl_fvarId(x_4); x_8 = lean_name_eq(x_7, x_1); lean_dec(x_7); @@ -11319,17 +11321,17 @@ _start: { uint8_t x_3; uint8_t x_4; x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_2, x_3, x_1); +x_4 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_2, x_3, x_1); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); @@ -11360,7 +11362,7 @@ _start: { uint8_t x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; x_9 = 0; -x_10 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_9, x_2); +x_10 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_1, x_9, x_2); x_11 = lean_box(x_10); x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); @@ -29330,7 +29332,7 @@ return x_28; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -29401,7 +29403,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -29422,7 +29424,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_LocalDecl_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -29437,7 +29439,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_LocalDecl_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -29446,7 +29448,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -29467,7 +29469,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -29482,7 +29484,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Pattern_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -29491,7 +29493,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -29512,14 +29514,14 @@ x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); x_9 = l_Lean_Meta_FVarSubst_get(x_1, x_8); -x_10 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_7); +x_10 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_7); if (lean_obj_tag(x_9) == 1) { lean_object* x_11; uint8_t x_12; uint8_t x_13; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); x_12 = 0; -x_13 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_11, x_12, x_2); +x_13 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_11, x_12, x_2); if (x_13 == 0) { lean_object* x_14; @@ -29562,14 +29564,14 @@ lean_dec(x_3); x_19 = l_Lean_Expr_fvarId_x21(x_17); lean_dec(x_17); x_20 = l_Lean_Meta_FVarSubst_get(x_1, x_19); -x_21 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_18); +x_21 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_18); if (lean_obj_tag(x_20) == 1) { lean_object* x_22; uint8_t x_23; uint8_t x_24; x_22 = lean_ctor_get(x_20, 0); lean_inc(x_22); x_23 = 0; -x_24 = l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_22, x_23, x_2); +x_24 = l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1(x_22, x_23, x_2); if (x_24 == 0) { lean_object* x_25; lean_object* x_26; @@ -29749,13 +29751,13 @@ 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; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_box(0); -x_37 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_35, x_23, x_36); +x_37 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_35, x_23, x_36); lean_inc(x_35); -x_38 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_35, x_37); +x_38 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_35, x_37); x_39 = lean_ctor_get(x_14, 4); lean_inc(x_39); lean_inc(x_35); -x_40 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_35, x_39); +x_40 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_35, x_39); x_41 = lean_ctor_get(x_14, 2); lean_inc(x_41); lean_dec(x_14); @@ -29763,7 +29765,7 @@ lean_inc(x_35); x_42 = l_Lean_Meta_FVarSubst_apply(x_35, x_41); x_43 = l_Array_toList___rarg(x_5); lean_dec(x_5); -x_44 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_35, x_38, x_43); +x_44 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_35, x_38, x_43); lean_dec(x_35); x_45 = lean_ctor_get(x_3, 0); lean_inc(x_45); @@ -29787,13 +29789,13 @@ x_49 = lean_ctor_get(x_25, 0); lean_inc(x_49); lean_dec(x_25); x_50 = lean_box(0); -x_51 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_49, x_23, x_50); +x_51 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_49, x_23, x_50); lean_inc(x_49); -x_52 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_49, x_51); +x_52 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_49, x_51); x_53 = lean_ctor_get(x_14, 4); lean_inc(x_53); lean_inc(x_49); -x_54 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_49, x_53); +x_54 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_49, x_53); x_55 = lean_ctor_get(x_14, 2); lean_inc(x_55); lean_dec(x_14); @@ -29801,7 +29803,7 @@ lean_inc(x_49); x_56 = l_Lean_Meta_FVarSubst_apply(x_49, x_55); x_57 = l_Array_toList___rarg(x_5); lean_dec(x_5); -x_58 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_49, x_52, x_57); +x_58 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_49, x_52, x_57); lean_dec(x_49); x_59 = lean_ctor_get(x_3, 0); lean_inc(x_59); @@ -29837,13 +29839,13 @@ if (lean_is_exclusive(x_25)) { x_66 = lean_box(0); } x_67 = lean_box(0); -x_68 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_65, x_23, x_67); +x_68 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_65, x_23, x_67); lean_inc(x_65); -x_69 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_65, x_68); +x_69 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(x_65, x_68); x_70 = lean_ctor_get(x_14, 4); lean_inc(x_70); lean_inc(x_65); -x_71 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_65, x_70); +x_71 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4(x_65, x_70); x_72 = lean_ctor_get(x_14, 2); lean_inc(x_72); lean_dec(x_14); @@ -29851,7 +29853,7 @@ lean_inc(x_65); x_73 = l_Lean_Meta_FVarSubst_apply(x_65, x_72); x_74 = l_Array_toList___rarg(x_5); lean_dec(x_5); -x_75 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_65, x_69, x_74); +x_75 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_65, x_69, x_74); lean_dec(x_65); x_76 = lean_ctor_get(x_3, 0); lean_inc(x_76); @@ -30206,20 +30208,20 @@ lean_dec(x_4); return x_8; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__2(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_3); +x_4 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; @@ -30821,7 +30823,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_processInaccessibleAsCtor_mat return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -30841,7 +30843,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_5); +x_7 = l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -30856,7 +30858,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_9); +x_11 = l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -30993,7 +30995,7 @@ x_36 = lean_array_get_size(x_30); x_37 = l_Array_extract___rarg(x_30, x_35, x_36); x_38 = l_Array_toList___rarg(x_37); lean_dec(x_37); -x_39 = l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_38); +x_39 = l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_38); x_40 = l_List_append___rarg(x_39, x_6); x_41 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_41, 0, x_4); @@ -31048,7 +31050,7 @@ x_50 = lean_array_get_size(x_44); x_51 = l_Array_extract___rarg(x_44, x_49, x_50); x_52 = l_Array_toList___rarg(x_51); lean_dec(x_51); -x_53 = l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_52); +x_53 = l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_52); x_54 = l_List_append___rarg(x_53, x_6); x_55 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_55, 0, x_4); @@ -31153,7 +31155,7 @@ x_77 = lean_array_get_size(x_70); x_78 = l_Array_extract___rarg(x_70, x_76, x_77); x_79 = l_Array_toList___rarg(x_78); lean_dec(x_78); -x_80 = l_List_map___main___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_79); +x_80 = l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__1(x_79); x_81 = l_List_append___rarg(x_80, x_6); x_82 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_82, 0, x_4); @@ -31222,7 +31224,7 @@ static lean_object* _init_l_Lean_Meta_Match_processInaccessibleAsCtor___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_Lean_Meta_Match_processInaccessibleAsCtor___closed__1; x_3 = lean_unsigned_to_nat(526u); x_4 = lean_unsigned_to_nat(9u); @@ -31992,7 +31994,7 @@ return x_45; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32013,7 +32015,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -32028,7 +32030,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -32037,7 +32039,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -32055,7 +32057,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_5); +x_6 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_5); if (lean_obj_tag(x_4) == 1) { lean_object* x_7; lean_object* x_8; @@ -32086,7 +32088,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_11); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_11); if (lean_obj_tag(x_10) == 1) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -32114,7 +32116,7 @@ return x_17; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -32137,7 +32139,7 @@ x_9 = lean_ctor_get(x_2, 0); x_10 = lean_ctor_get(x_9, 1); x_11 = l_Array_toList___rarg(x_10); x_12 = lean_ctor_get(x_2, 1); -x_13 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_11); +x_13 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_11); lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -32145,7 +32147,7 @@ lean_ctor_set(x_14, 1, x_13); x_15 = l_Lean_Meta_Match_Example_replaceFVarId(x_8, x_14, x_6); lean_dec(x_14); lean_dec(x_8); -x_16 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_7); +x_16 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_16); lean_ctor_set(x_3, 0, x_15); return x_3; @@ -32163,7 +32165,7 @@ x_20 = lean_ctor_get(x_2, 0); x_21 = lean_ctor_get(x_20, 1); x_22 = l_Array_toList___rarg(x_21); x_23 = lean_ctor_get(x_2, 1); -x_24 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_22); +x_24 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__3(x_22); lean_inc(x_23); x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_23); @@ -32171,7 +32173,7 @@ lean_ctor_set(x_25, 1, x_24); x_26 = l_Lean_Meta_Match_Example_replaceFVarId(x_19, x_25, x_17); lean_dec(x_25); lean_dec(x_19); -x_27 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_18); +x_27 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_18); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -32180,7 +32182,7 @@ return x_28; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32201,7 +32203,7 @@ x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_1, 0); x_8 = lean_ctor_get(x_7, 2); x_9 = l_Lean_Meta_Match_Example_applyFVarSubst(x_8, x_5); -x_10 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_6); +x_10 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_6); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_9); return x_2; @@ -32217,7 +32219,7 @@ lean_dec(x_2); x_13 = lean_ctor_get(x_1, 0); x_14 = lean_ctor_get(x_13, 2); x_15 = l_Lean_Meta_Match_Example_applyFVarSubst(x_14, x_11); -x_16 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_12); +x_16 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_12); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -32226,7 +32228,7 @@ return x_17; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32410,7 +32412,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -32431,7 +32433,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -32446,7 +32448,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -32467,7 +32469,7 @@ static lean_object* _init_l_List_filterMapM_loop___at___private_Lean_Meta_Match_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__1; x_3 = lean_unsigned_to_nat(571u); x_4 = lean_unsigned_to_nat(48u); @@ -33021,19 +33023,19 @@ lean_dec(x_21); lean_inc(x_3); x_24 = l_List_append___rarg(x_23, x_3); lean_inc(x_22); -x_25 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_22, x_24); +x_25 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__2(x_22, x_24); x_26 = lean_ctor_get(x_18, 1); lean_inc(x_26); x_27 = lean_ctor_get(x_1, 3); lean_inc(x_27); -x_28 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_2, x_18, x_27); -x_29 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_18, x_28); +x_28 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_2, x_18, x_27); +x_29 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_18, x_28); lean_dec(x_18); x_30 = lean_ctor_get(x_1, 2); lean_inc(x_30); x_31 = lean_box(0); -x_32 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(x_26, x_30, x_31); -x_33 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_22, x_32); +x_32 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(x_26, x_30, x_31); +x_33 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(x_22, x_32); x_34 = l_List_reverse___rarg(x_33); lean_inc(x_20); x_35 = lean_alloc_closure((void*)(l_Array_umapMAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9___lambda__1), 11, 6); @@ -33103,7 +33105,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__1; x_3 = lean_unsigned_to_nat(532u); x_4 = lean_unsigned_to_nat(15u); @@ -33376,30 +33378,30 @@ return x_54; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_3); +x_4 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_2); +x_3 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -33570,7 +33572,7 @@ static lean_object* _init_l_List_filterMapM_loop___at___private_Lean_Meta_Match_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__1; x_3 = lean_unsigned_to_nat(590u); x_4 = lean_unsigned_to_nat(21u); @@ -34140,7 +34142,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__1; x_3 = lean_unsigned_to_nat(576u); x_4 = lean_unsigned_to_nat(15u); @@ -34237,7 +34239,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -34314,7 +34316,7 @@ x_2 = lean_ctor_get(x_1, 2); lean_inc(x_2); lean_dec(x_1); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(x_3, x_2); +x_4 = l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectValues___spec__1(x_3, x_2); return x_4; } } @@ -34570,7 +34572,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -34637,7 +34639,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(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) @@ -34666,7 +34668,7 @@ lean_ctor_set(x_13, 0, x_12); x_14 = l_Lean_Meta_Match_Example_replaceFVarId(x_11, x_13, x_8); lean_dec(x_13); lean_dec(x_11); -x_15 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); +x_15 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); lean_ctor_set(x_5, 1, x_15); lean_ctor_set(x_5, 0, x_14); return x_5; @@ -34689,7 +34691,7 @@ lean_ctor_set(x_21, 0, x_20); x_22 = l_Lean_Meta_Match_Example_replaceFVarId(x_19, x_21, x_16); lean_dec(x_21); lean_dec(x_19); -x_23 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); +x_23 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -34698,7 +34700,7 @@ return x_24; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -34718,7 +34720,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_1, 2); x_8 = l_Lean_Meta_Match_Example_applyFVarSubst(x_7, x_5); -x_9 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_6); +x_9 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_9); lean_ctor_set(x_2, 0, x_8); return x_2; @@ -34733,7 +34735,7 @@ lean_inc(x_10); lean_dec(x_2); x_12 = lean_ctor_get(x_1, 2); x_13 = l_Lean_Meta_Match_Example_applyFVarSubst(x_12, x_10); -x_14 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_11); +x_14 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_11); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -34742,7 +34744,7 @@ return x_15; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -34899,7 +34901,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -34920,7 +34922,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -34935,7 +34937,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -34944,7 +34946,7 @@ return x_13; } } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1() { _start: { lean_object* x_1; @@ -34952,12 +34954,12 @@ x_1 = lean_mk_string("_private.Lean.Meta.Match.Match.0.Lean.Meta.Match.processVa return x_1; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; -x_2 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; x_3 = lean_unsigned_to_nat(630u); x_4 = lean_unsigned_to_nat(18u); x_5 = l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -34965,7 +34967,7 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -34994,7 +34996,7 @@ x_10 = lean_ctor_get(x_5, 2); x_11 = lean_ctor_get(x_5, 3); x_12 = lean_ctor_get(x_5, 4); lean_inc(x_1); -x_13 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_7); +x_13 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_7); if (lean_obj_tag(x_12) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -35005,7 +35007,7 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); x_14 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_15 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_15 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_16 = lean_panic_fn(x_14, x_15); lean_ctor_set(x_2, 1, x_13); lean_ctor_set(x_2, 0, x_16); @@ -35103,7 +35105,7 @@ lean_dec(x_33); x_34 = lean_ctor_get(x_12, 0); lean_dec(x_34); x_35 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_36 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_36 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_37 = lean_panic_fn(x_35, x_36); lean_ctor_set(x_12, 1, x_13); lean_ctor_set(x_12, 0, x_37); @@ -35114,7 +35116,7 @@ else lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_12); x_38 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_39 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_39 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_40 = lean_panic_fn(x_38, x_39); x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -35141,7 +35143,7 @@ lean_inc(x_44); lean_inc(x_43); lean_dec(x_5); lean_inc(x_1); -x_48 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_42); +x_48 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_42); if (lean_obj_tag(x_47) == 0) { lean_object* x_49; lean_object* x_50; lean_object* x_51; @@ -35151,7 +35153,7 @@ lean_dec(x_44); lean_dec(x_43); lean_dec(x_1); x_49 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_50 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_50 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_51 = lean_panic_fn(x_49, x_50); lean_ctor_set(x_2, 1, x_48); lean_ctor_set(x_2, 0, x_51); @@ -35244,7 +35246,7 @@ if (lean_is_exclusive(x_47)) { x_63 = lean_box(0); } x_64 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_65 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_65 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_66 = lean_panic_fn(x_64, x_65); if (lean_is_scalar(x_63)) { x_67 = lean_alloc_ctor(1, 2, 0); @@ -35289,7 +35291,7 @@ if (lean_is_exclusive(x_68)) { x_75 = lean_box(0); } lean_inc(x_1); -x_76 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_69); +x_76 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_1, x_69); if (lean_obj_tag(x_74) == 0) { lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; @@ -35300,7 +35302,7 @@ lean_dec(x_71); lean_dec(x_70); lean_dec(x_1); x_77 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_78 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_78 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_79 = lean_panic_fn(x_77, x_78); x_80 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_80, 0, x_79); @@ -35402,7 +35404,7 @@ if (lean_is_exclusive(x_74)) { x_92 = lean_box(0); } x_93 = l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2; -x_94 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; +x_94 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2; x_95 = lean_panic_fn(x_93, x_94); if (lean_is_scalar(x_92)) { x_96 = lean_alloc_ctor(1, 2, 0); @@ -35419,7 +35421,7 @@ return x_96; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -35440,7 +35442,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -35455,7 +35457,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -35502,7 +35504,7 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_1, 3); lean_inc(x_23); x_24 = lean_box(0); -x_25 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(x_22, x_24); +x_25 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(x_22, x_24); x_26 = lean_ctor_get(x_19, 0); lean_inc(x_26); lean_dec(x_19); @@ -35538,16 +35540,16 @@ lean_inc(x_37); x_38 = lean_ctor_get(x_1, 3); lean_inc(x_38); lean_inc(x_1); -x_39 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_5, lean_box(0), x_38); -x_40 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_19, x_39); +x_39 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_5, lean_box(0), x_38); +x_40 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_19, x_39); lean_dec(x_19); x_41 = lean_box(0); -x_42 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(x_34, x_37, x_41); +x_42 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(x_34, x_37, x_41); lean_inc(x_36); -x_43 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_36, x_42); -x_44 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_34, x_43); +x_43 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_36, x_42); +x_44 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_34, x_43); lean_inc(x_3); -x_45 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_36, x_3); +x_45 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_36, x_3); x_46 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_46, 0, x_35); lean_ctor_set(x_46, 1, x_45); @@ -35569,8 +35571,8 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; -x_2 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1; x_3 = lean_unsigned_to_nat(609u); x_4 = lean_unsigned_to_nat(15u); x_5 = l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; @@ -35741,30 +35743,30 @@ return x_30; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___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_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_2); +x_3 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -35831,7 +35833,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -35860,7 +35862,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_ x_8 = lean_ctor_get(x_2, 1); x_9 = lean_ctor_get(x_7, 1); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_List_lengthAux___main___rarg(x_9, x_10); +x_11 = l_List_lengthAux___rarg(x_9, x_10); x_12 = l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(x_1, x_11); if (x_12 == 0) { @@ -35894,15 +35896,15 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(x_3, x_2); +x_4 = l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(x_1, x_2); +x_3 = l_List_foldl___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } @@ -36176,7 +36178,7 @@ return x_49; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -36198,7 +36200,7 @@ x_6 = l_Lean_Expr_fvarId_x21(x_4); lean_dec(x_4); x_7 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_5); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -36215,7 +36217,7 @@ x_11 = l_Lean_Expr_fvarId_x21(x_9); lean_dec(x_9); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_10); +x_13 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -36294,7 +36296,7 @@ if (x_27 == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; x_28 = lean_ctor_get(x_26, 0); -x_29 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_21); +x_29 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_21); x_30 = lean_ctor_get(x_1, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_1, 1); @@ -36349,7 +36351,7 @@ x_46 = lean_ctor_get(x_26, 1); lean_inc(x_46); lean_inc(x_45); lean_dec(x_26); -x_47 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_21); +x_47 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(x_21); x_48 = lean_ctor_get(x_1, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_1, 1); @@ -36722,7 +36724,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -36741,7 +36743,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_mkFVar(x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_5); +x_7 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -36755,7 +36757,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_mkFVar(x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_9); +x_11 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -36764,7 +36766,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -36785,7 +36787,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -36800,7 +36802,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -36809,7 +36811,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -36829,7 +36831,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_5); +x_7 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -36844,7 +36846,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_9); +x_11 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -36853,7 +36855,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -36874,13 +36876,13 @@ x_7 = lean_ctor_get(x_3, 1); x_8 = l_Lean_Expr_fvarId_x21(x_1); x_9 = lean_ctor_get(x_2, 1); x_10 = l_Array_toList___rarg(x_9); -x_11 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_10); +x_11 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_10); x_12 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = l_Lean_Meta_Match_Example_replaceFVarId(x_8, x_12, x_6); lean_dec(x_12); lean_dec(x_8); -x_14 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_7); +x_14 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_14); lean_ctor_set(x_3, 0, x_13); return x_3; @@ -36896,13 +36898,13 @@ lean_dec(x_3); x_17 = l_Lean_Expr_fvarId_x21(x_1); x_18 = lean_ctor_get(x_2, 1); x_19 = l_Array_toList___rarg(x_18); -x_20 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_19); +x_20 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__3(x_19); x_21 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_21, 0, x_20); x_22 = l_Lean_Meta_Match_Example_replaceFVarId(x_17, x_21, x_15); lean_dec(x_21); lean_dec(x_17); -x_23 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_16); +x_23 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_16); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -36911,7 +36913,7 @@ return x_24; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -36931,7 +36933,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_1, 3); x_8 = l_Lean_Meta_Match_Example_applyFVarSubst(x_7, x_5); -x_9 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_6); +x_9 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_6); lean_ctor_set(x_2, 1, x_9); lean_ctor_set(x_2, 0, x_8); return x_2; @@ -36946,7 +36948,7 @@ lean_inc(x_10); lean_dec(x_2); x_12 = lean_ctor_get(x_1, 3); x_13 = l_Lean_Meta_Match_Example_applyFVarSubst(x_12, x_10); -x_14 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_11); +x_14 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_11); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -36955,7 +36957,7 @@ return x_15; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -37015,7 +37017,7 @@ x_15 = lean_ctor_get(x_10, 1); lean_inc(x_15); lean_dec(x_10); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_List_lengthAux___main___rarg(x_15, x_16); +x_17 = l_List_lengthAux___rarg(x_15, x_16); lean_dec(x_15); x_18 = lean_nat_dec_eq(x_17, x_1); lean_dec(x_17); @@ -37080,7 +37082,7 @@ x_28 = lean_ctor_get(x_23, 1); lean_inc(x_28); lean_dec(x_23); x_29 = lean_unsigned_to_nat(0u); -x_30 = l_List_lengthAux___main___rarg(x_28, x_29); +x_30 = l_List_lengthAux___rarg(x_28, x_29); lean_dec(x_28); x_31 = lean_nat_dec_eq(x_30, x_1); lean_dec(x_30); @@ -37118,7 +37120,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -37139,7 +37141,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -37154,7 +37156,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Meta_Match_Alt_applyFVarSubst(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -37175,7 +37177,7 @@ static lean_object* _init_l_List_mapM___at___private_Lean_Meta_Match_Match_0__Le _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8___closed__1; x_3 = lean_unsigned_to_nat(685u); x_4 = lean_unsigned_to_nat(18u); @@ -37753,7 +37755,7 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_1, 3); lean_inc(x_23); x_24 = lean_box(0); -x_25 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(x_22, x_24); +x_25 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(x_22, x_24); x_26 = lean_ctor_get(x_19, 0); lean_inc(x_26); lean_dec(x_19); @@ -37789,21 +37791,21 @@ x_38 = lean_ctor_get(x_19, 3); lean_inc(x_38); x_39 = l_Array_toList___rarg(x_37); lean_dec(x_37); -x_40 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_39); +x_40 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__1(x_39); lean_inc(x_3); x_41 = l_List_append___rarg(x_40, x_3); lean_inc(x_38); -x_42 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_38, x_41); +x_42 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2(x_38, x_41); x_43 = lean_ctor_get(x_1, 2); lean_inc(x_43); x_44 = lean_ctor_get(x_1, 3); lean_inc(x_44); -x_45 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_2, x_19, x_44); -x_46 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_19, x_45); +x_45 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_2, x_19, x_44); +x_46 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_19, x_45); lean_dec(x_19); x_47 = lean_box(0); -x_48 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(x_35, x_43, x_47); -x_49 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_38, x_48); +x_48 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(x_35, x_43, x_47); +x_49 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__7(x_38, x_48); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -37875,7 +37877,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; +x_1 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1; x_2 = l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8___closed__1; x_3 = lean_unsigned_to_nat(663u); x_4 = lean_unsigned_to_nat(15u); @@ -38048,30 +38050,30 @@ return x_31; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_3); +x_4 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_2); +x_3 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(x_1, x_2, x_3); +x_4 = l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__6(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -38188,7 +38190,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -38198,12 +38200,12 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2() { +static lean_object* _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1; +x_2 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1; x_3 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -38212,7 +38214,7 @@ lean_ctor_set(x_3, 3, x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -38240,7 +38242,7 @@ x_9 = lean_ctor_get(x_4, 3); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 4); lean_inc(x_10); -x_11 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_5); +x_11 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_5); if (lean_obj_tag(x_10) == 0) { lean_dec(x_9); @@ -38327,7 +38329,7 @@ else lean_object* x_35; lean_dec(x_25); lean_free_object(x_12); -x_35 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; +x_35 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; lean_ctor_set(x_10, 0, x_35); lean_ctor_set(x_1, 1, x_11); return x_1; @@ -38375,7 +38377,7 @@ else lean_object* x_48; lean_object* x_49; lean_dec(x_37); lean_free_object(x_12); -x_48 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; +x_48 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_36); @@ -38444,7 +38446,7 @@ else lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_52); lean_free_object(x_12); -x_64 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; +x_64 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; if (lean_is_scalar(x_51)) { x_65 = lean_alloc_ctor(1, 2, 0); } else { @@ -38615,7 +38617,7 @@ else { lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_dec(x_80); -x_93 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; +x_93 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; if (lean_is_scalar(x_79)) { x_94 = lean_alloc_ctor(1, 2, 0); } else { @@ -38744,7 +38746,7 @@ x_109 = lean_ctor_get(x_104, 3); lean_inc(x_109); x_110 = lean_ctor_get(x_104, 4); lean_inc(x_110); -x_111 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_105); +x_111 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_105); if (lean_obj_tag(x_110) == 0) { lean_object* x_112; @@ -38859,7 +38861,7 @@ else lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_120); lean_dec(x_115); -x_134 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; +x_134 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2; if (lean_is_scalar(x_119)) { x_135 = lean_alloc_ctor(1, 2, 0); } else { @@ -38976,7 +38978,7 @@ if (x_2 == 0) { lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_1, 2); -x_4 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_3); +x_4 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_3); lean_ctor_set(x_1, 2, x_4); return x_1; } @@ -38992,7 +38994,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_dec(x_1); -x_9 = l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_7); +x_9 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(x_7); x_10 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_10, 0, x_5); lean_ctor_set(x_10, 1, x_6); @@ -43414,7 +43416,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Match_mkMatcher_match__1___rarg), 2 return x_2; } } -lean_object* l_List_map___main___at_Lean_Meta_Match_mkMatcher___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_Match_mkMatcher___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -43436,7 +43438,7 @@ x_6 = l_Lean_Expr_fvarId_x21(x_4); lean_dec(x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at_Lean_Meta_Match_mkMatcher___spec__1(x_5); +x_8 = l_List_map___at_Lean_Meta_Match_mkMatcher___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -43453,7 +43455,7 @@ x_11 = l_Lean_Expr_fvarId_x21(x_9); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at_Lean_Meta_Match_mkMatcher___spec__1(x_10); +x_13 = l_List_map___at_Lean_Meta_Match_mkMatcher___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -43507,7 +43509,7 @@ x_5 = lean_usize_of_nat(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_Occurrences_contains___spec__1(x_2, x_7); +x_8 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_2, x_7); lean_dec(x_7); return x_8; } @@ -45443,7 +45445,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Array_toList___rarg(x_2); lean_inc(x_23); -x_24 = l_List_map___main___at_Lean_Meta_Match_mkMatcher___spec__1(x_23); +x_24 = l_List_map___at_Lean_Meta_Match_mkMatcher___spec__1(x_23); x_25 = l_Lean_Expr_mvarId_x21(x_21); x_26 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_26, 0, x_25); @@ -45614,7 +45616,7 @@ goto block_134; block_67: { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = l_List_lengthAux___main___rarg(x_5, x_39); +x_60 = l_List_lengthAux___rarg(x_5, x_39); x_61 = l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1; lean_inc(x_60); x_62 = l_Nat_foldAux___at_Lean_Meta_Match_mkMatcher___spec__4(x_61, x_35, x_60, x_60, x_27); @@ -48711,14 +48713,14 @@ l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2___closed__1 = _init_l_ lean_mark_persistent(l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2___closed__1); l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2 = _init_l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2(); lean_mark_persistent(l_Lean_Meta_Match_Alt_Lean_Meta_Match_Match___instance__2); -l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1 = _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1); -l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2 = _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2); -l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3 = _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3); -l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4 = _init_l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4(); -lean_mark_persistent(l_List_map___main___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4); +l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1 = _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__1); +l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2 = _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2(); +lean_mark_persistent(l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__2); +l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3 = _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3(); +lean_mark_persistent(l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__3); +l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4 = _init_l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4(); +lean_mark_persistent(l_List_map___at_Lean_Meta_Match_Alt_toMessageData___spec__1___closed__4); l_Lean_Meta_Match_Alt_toMessageData___closed__1 = _init_l_Lean_Meta_Match_Alt_toMessageData___closed__1(); lean_mark_persistent(l_Lean_Meta_Match_Alt_toMessageData___closed__1); l_Lean_Meta_Match_Alt_toMessageData___closed__2 = _init_l_Lean_Meta_Match_Alt_toMessageData___closed__2(); @@ -48797,12 +48799,12 @@ l_Lean_Meta_Match_State_used___default = _init_l_Lean_Meta_Match_State_used___de lean_mark_persistent(l_Lean_Meta_Match_State_used___default); l_Lean_Meta_Match_State_counterExamples___default = _init_l_Lean_Meta_Match_State_counterExamples___default(); lean_mark_persistent(l_Lean_Meta_Match_State_counterExamples___default); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__1); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__2); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1___closed__3); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___closed__1); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___closed__1(); @@ -48879,10 +48881,10 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___closed__1); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__1); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__2 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__2(); @@ -48899,10 +48901,10 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__2 lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__3 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__3); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1); -l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2 = _init_l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2(); -lean_mark_persistent(l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1); +l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2 = _init_l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2(); +lean_mark_persistent(l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__1); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__2 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index fa07dd4efb..a3f258d976 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -25,7 +25,6 @@ lean_object* l_Lean_Meta_binductionOnSuffix; lean_object* l_Array_findIdxMAux___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*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_getMajorPos_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -82,7 +81,6 @@ lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultTy lean_object* l_Lean_Meta_RecursorInfo_numParams(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___spec__1(lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_getMajorPos_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -106,6 +104,7 @@ lean_object* l_Array_qpartition_loop___at_Lean_Meta_initFn____x40_Lean_Meta_Recu lean_object* l_List_toStringAux___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___spec__4___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1; lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___closed__8; lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1(lean_object*); @@ -124,7 +123,6 @@ lean_object* l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(lean_ lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2074____closed__5; lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object*); lean_object* l_Lean_Meta_brecOnSuffix; lean_object* l_Array_qsort_sort___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2074____spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -165,7 +163,6 @@ lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_ lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_Lean_Meta_RecursorInfo___instance__1_match__1(lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4; -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___boxed(lean_object**); extern lean_object* l_Lean_Meta_Lean_Meta_Basic___instance__5___closed__1; @@ -181,6 +178,7 @@ lean_object* l_Std_RBNode_find___at_Lean_sanitizeName___spec__1(lean_object*, le lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___spec__3(lean_object*); lean_object* l_Lean_Meta_mkBInductionOnFor(lean_object*); lean_object* l_Nat_repr(lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4___boxed(lean_object*, lean_object*); lean_object* l_List_toStringAux___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___spec__8___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Array_findIdxMAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -318,6 +316,7 @@ lean_object* l_Array_toList___rarg(lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1(lean_object*); lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___closed__2; lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); @@ -343,6 +342,7 @@ lean_object* l_List_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Met lean_object* l_Array_findIdxAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_Meta_binductionOnSuffix___closed__1; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2074____closed__2; @@ -358,12 +358,12 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2074____closed__1; lean_object* l_Array_findIdxAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_recOnSuffix___closed__1; lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3; lean_object* l_List_toStringAux___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__2___spec__4(uint8_t, lean_object*); lean_object* l_Array_findIdxAux___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object*, lean_object*); uint8_t l_Lean_Expr_isSort(lean_object*); lean_object* l_Lean_Meta_Lean_Meta_RecursorInfo___instance__1___closed__1; lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1(lean_object*); @@ -536,7 +536,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 5); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); return x_4; } } @@ -555,7 +555,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 6); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); return x_4; } } @@ -1652,7 +1652,7 @@ return x_27; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1672,7 +1672,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_5); +x_7 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1687,7 +1687,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_9); +x_11 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1696,7 +1696,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object* x_1) { +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1716,7 +1716,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_5); +x_7 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1731,7 +1731,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_9); +x_11 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1740,7 +1740,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1760,7 +1760,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_nat_add(x_1, x_5); lean_dec(x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_6); +x_8 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -1775,7 +1775,7 @@ lean_inc(x_9); lean_dec(x_2); x_11 = lean_nat_add(x_1, x_9); lean_dec(x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_10); +x_12 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1805,17 +1805,17 @@ x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); x_14 = lean_unsigned_to_nat(0u); -x_15 = l_List_lengthAux___main___rarg(x_13, x_14); +x_15 = l_List_lengthAux___rarg(x_13, x_14); lean_dec(x_13); lean_inc(x_15); x_16 = l_List_range(x_15); -x_17 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_16); +x_17 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_16); x_18 = lean_ctor_get(x_2, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); -x_20 = l_List_lengthAux___main___rarg(x_19, x_14); +x_20 = l_List_lengthAux___rarg(x_19, x_14); lean_dec(x_19); x_21 = lean_nat_dec_eq(x_20, x_15); lean_dec(x_15); @@ -1830,12 +1830,12 @@ x_26 = lean_ctor_get(x_2, 2); lean_inc(x_26); lean_inc(x_26); x_27 = l_List_range(x_26); -x_28 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_27); +x_28 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_27); x_29 = lean_ctor_get(x_2, 3); lean_inc(x_29); lean_inc(x_29); x_30 = l_List_range(x_29); -x_31 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_26, x_30); +x_31 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_26, x_30); x_32 = lean_nat_add(x_29, x_26); lean_dec(x_26); lean_dec(x_29); @@ -1907,17 +1907,17 @@ x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); lean_dec(x_46); x_48 = lean_unsigned_to_nat(0u); -x_49 = l_List_lengthAux___main___rarg(x_47, x_48); +x_49 = l_List_lengthAux___rarg(x_47, x_48); lean_dec(x_47); lean_inc(x_49); x_50 = l_List_range(x_49); -x_51 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_50); +x_51 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_50); x_52 = lean_ctor_get(x_2, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); -x_54 = l_List_lengthAux___main___rarg(x_53, x_48); +x_54 = l_List_lengthAux___rarg(x_53, x_48); lean_dec(x_53); x_55 = lean_nat_dec_eq(x_54, x_49); lean_dec(x_49); @@ -1932,12 +1932,12 @@ x_60 = lean_ctor_get(x_2, 2); lean_inc(x_60); lean_inc(x_60); x_61 = l_List_range(x_60); -x_62 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_61); +x_62 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(x_61); x_63 = lean_ctor_get(x_2, 3); lean_inc(x_63); lean_inc(x_63); x_64 = l_List_range(x_63); -x_65 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_60, x_64); +x_65 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_60, x_64); x_66 = lean_nat_add(x_63, x_60); lean_dec(x_60); lean_dec(x_63); @@ -2039,11 +2039,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_2); +x_3 = l_List_map___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_1, x_2); lean_dec(x_1); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 803e2a3430..e185791049 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -269,6 +269,7 @@ lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__L lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_SynthInstance_tryResolve___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_step(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_State_tableEntries___default___spec__1(lean_object*); lean_object* l_Lean_Meta_SynthInstance_consume_match__2(lean_object*); extern lean_object* l_Lean_TagAttribute_Lean_Attributes___instance__5___closed__1; @@ -312,7 +313,6 @@ lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed_ lean_object* l_Lean_Meta_SynthInstance_getNextToResume___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normExpr_match__2(lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__7; -lean_object* l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(lean_object*); lean_object* l_Lean_KVMap_getNat(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_tryResolveCore_match__1___rarg(lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); @@ -4028,7 +4028,7 @@ x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); x_41 = l_Array_toList___rarg(x_29); -x_42 = l_List_map___main___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_41); +x_42 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_41); x_43 = l_Lean_MessageData_ofList(x_42); lean_dec(x_42); x_44 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Apply.c b/stage0/stdlib/Lean/Meta/Tactic/Apply.c index 4ee0422502..21178281a2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Apply.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Apply.c @@ -19,7 +19,6 @@ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Meta_apply_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_filterAux___at_Lean_Meta_apply___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_FindMVar_main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -67,7 +66,6 @@ lean_object* l_Lean_FindMVar_visit(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FindMVar_main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1___lambda__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6; -uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_apply___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_name_mk_string(lean_object*, lean_object*); @@ -110,6 +108,8 @@ lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsA lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +uint8_t l_List_elem___at_Lean_Meta_apply___spec__3(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_Meta_apply___spec__3___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forM_loop___at_Lean_Meta_appendParentTag___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); @@ -2032,7 +2032,7 @@ x_7 = l_Lean_Meta_getMVarsNoDelayedImp(x_1, x_2, x_3, x_4, x_5, x_6); return x_7; } } -uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_Meta_apply___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2080,7 +2080,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_2, x_3); -x_9 = l_List_elem___main___at_Lean_Meta_apply___spec__3(x_8, x_1); +x_9 = l_List_elem___at_Lean_Meta_apply___spec__3(x_8, x_1); lean_dec(x_8); if (x_9 == 0) { @@ -2766,11 +2766,11 @@ lean_dec(x_4); return x_9; } } -lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_Meta_apply___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Meta_apply___spec__3(x_1, x_2); +x_3 = l_List_elem___at_Lean_Meta_apply___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index daf133c5be..3266faf70e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -171,7 +171,6 @@ lean_object* l_Array_umapMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta lean_object* l_Array_umapMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getInductiveUniverseAndParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -337,6 +336,7 @@ lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___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* l_Array_anyRangeMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2233,7 +2233,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 4); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); return x_4; } } @@ -2418,7 +2418,7 @@ lean_dec(x_33); x_35 = lean_ctor_get(x_19, 4); lean_inc(x_35); x_36 = lean_unsigned_to_nat(0u); -x_37 = l_List_lengthAux___main___rarg(x_35, x_36); +x_37 = l_List_lengthAux___rarg(x_35, x_36); lean_dec(x_35); x_38 = lean_nat_sub(x_20, x_21); lean_dec(x_21); @@ -2467,7 +2467,7 @@ lean_dec(x_42); x_44 = lean_ctor_get(x_19, 4); lean_inc(x_44); x_45 = lean_unsigned_to_nat(0u); -x_46 = l_List_lengthAux___main___rarg(x_44, x_45); +x_46 = l_List_lengthAux___rarg(x_44, x_45); lean_dec(x_44); x_47 = lean_nat_sub(x_20, x_21); lean_dec(x_21); @@ -2627,7 +2627,7 @@ lean_dec(x_75); x_78 = lean_ctor_get(x_60, 4); lean_inc(x_78); x_79 = lean_unsigned_to_nat(0u); -x_80 = l_List_lengthAux___main___rarg(x_78, x_79); +x_80 = l_List_lengthAux___rarg(x_78, x_79); lean_dec(x_78); x_81 = lean_nat_sub(x_61, x_62); lean_dec(x_62); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 3ecdac5aad..43e0043842 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -27,6 +27,7 @@ lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object* lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_Meta_induction___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfHeadPredImp___at_Lean_Meta_induction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); extern lean_object* l_Lean_Level_Lean_Level___instance__4; @@ -80,7 +81,6 @@ lean_object* l_List_forM___at_Lean_Meta_induction___spec__4(lean_object*, lean_o lean_object* l_Nat_forM_loop___at_Lean_Meta_induction___spec__6___closed__1; lean_object* l_Nat_forM_loop___at_Lean_Meta_induction___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__12___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(lean_object*, lean_object*, 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_Induction_0__Lean_Meta_getTypeBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__11___closed__3; @@ -119,7 +119,6 @@ lean_object* l_Lean_Meta_InductionSubgoal_subst___default; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___closed__4; uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,7 +167,7 @@ lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__11___lambda lean_object* l_Array_umapMAux___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__12___lambda__2___closed__3; lean_object* l_Lean_Meta_induction_match__2(lean_object*); -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_Meta_induction___spec__5(lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_Meta_induction___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2___rarg(lean_object*, lean_object*); @@ -238,6 +237,7 @@ lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_objec lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__10___rarg(lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__4(lean_object*); lean_object* l_Nat_forM_loop___at_Lean_Meta_induction___spec__6___lambda__1___closed__2; lean_object* l_Nat_forM_loop___at_Lean_Meta_induction___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2632,9 +2632,9 @@ lean_inc(x_20); lean_dec(x_18); x_21 = lean_ctor_get(x_3, 7); x_22 = lean_unsigned_to_nat(0u); -x_23 = l_List_lengthAux___main___rarg(x_21, x_22); +x_23 = l_List_lengthAux___rarg(x_21, x_22); x_24 = lean_ctor_get(x_3, 5); -x_25 = l_List_lengthAux___main___rarg(x_24, x_22); +x_25 = l_List_lengthAux___rarg(x_24, x_22); x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_add(x_25, x_26); lean_dec(x_25); @@ -4650,7 +4650,7 @@ return x_31; } } } -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_Meta_induction___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4718,7 +4718,7 @@ return x_17; else { uint8_t x_18; -x_18 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_2, x_3); +x_18 = l_List_elem___at_Lean_Meta_induction___spec__5(x_2, x_3); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; @@ -7295,11 +7295,11 @@ lean_dec(x_4); return x_11; } } -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_Meta_induction___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_1, x_2); +x_3 = l_List_elem___at_Lean_Meta_induction___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c index bebfab34bc..7052419b2d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c @@ -65,6 +65,7 @@ lean_object* l_Lean_Meta_rewrite___lambda__4___closed__2; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_rewrite___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Meta_rewrite___spec__3(lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_rewrite___lambda__2___closed__3; lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); @@ -95,7 +96,6 @@ lean_object* l_Lean_Meta_rewrite___lambda__4(lean_object*, lean_object*, lean_ob extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__3(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_rewrite_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { @@ -638,7 +638,7 @@ x_9 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp(x_1, x_2, x_3, return x_9; } } -lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__3(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_rewrite___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -658,7 +658,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Expr_mvarId_x21(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_5); +x_7 = l_List_map___at_Lean_Meta_rewrite___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -673,7 +673,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Expr_mvarId_x21(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_9); +x_11 = l_List_map___at_Lean_Meta_rewrite___spec__3(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -744,7 +744,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_26 = lean_ctor_get(x_24, 0); x_27 = l_Array_toList___rarg(x_26); lean_dec(x_26); -x_28 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_27); +x_28 = l_List_map___at_Lean_Meta_rewrite___spec__3(x_27); x_29 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_29, 0, x_8); lean_ctor_set(x_29, 1, x_19); @@ -762,7 +762,7 @@ lean_inc(x_30); lean_dec(x_24); x_32 = l_Array_toList___rarg(x_30); lean_dec(x_30); -x_33 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_32); +x_33 = l_List_map___at_Lean_Meta_rewrite___spec__3(x_32); x_34 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_34, 0, x_8); lean_ctor_set(x_34, 1, x_19); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index e75665abc1..c12f55d0b7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -130,7 +130,6 @@ lean_object* l_Lean_Meta_mkEqRec___at_Lean_Meta_substCore___spec__6(lean_object* lean_object* l_Lean_Meta_substCore___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___at_Lean_Meta_subst___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Meta_substCore___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_substCore___spec__8(lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Meta_substCore___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -140,6 +139,7 @@ lean_object* l_Lean_Meta_subst___lambda__1(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Meta_substCore___lambda__11___boxed(lean_object**); lean_object* l_Lean_Meta_substCore___lambda__13___closed__18; lean_object* l_Lean_Meta_substCore___lambda__13___closed__24; +lean_object* l_List_map___at_Lean_Meta_substCore___spec__8(lean_object*); lean_object* l_Lean_Meta_substCore_match__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__9___boxed(lean_object**); lean_object* l_Lean_Meta_substCore___lambda__13___closed__15; @@ -560,7 +560,7 @@ return x_25; } } } -lean_object* l_List_map___main___at_Lean_Meta_substCore___spec__8(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Meta_substCore___spec__8(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -580,7 +580,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at_Lean_Meta_substCore___spec__8(x_5); +x_7 = l_List_map___at_Lean_Meta_substCore___spec__8(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -595,7 +595,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at_Lean_Meta_substCore___spec__8(x_9); +x_11 = l_List_map___at_Lean_Meta_substCore___spec__8(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -2732,7 +2732,7 @@ else { lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; x_48 = l_Array_toList___rarg(x_24); -x_49 = l_List_map___main___at_Lean_Meta_substCore___spec__8(x_48); +x_49 = l_List_map___at_Lean_Meta_substCore___spec__8(x_48); x_50 = l_Lean_MessageData_ofList(x_49); lean_dec(x_49); x_51 = l_Lean_Meta_substCore___lambda__12___closed__2; diff --git a/stage0/stdlib/Lean/Meta/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 7b2a74dd1a..d64b9954fe 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -49,7 +49,6 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__2; lean_object* l_Lean_Meta_reduceBinNatOp___closed__5; extern lean_object* l_Lean_Lean_ToExpr___instance__9___rarg___closed__2; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_matchConstAux_match__2___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Nat_HasMod___closed__1; lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_0__Lean_Meta_inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_extractIdRhs(lean_object*); @@ -59,6 +58,7 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaBetaDefinition___rarg_ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isQuotRecStuck_x3f___at___private_Lean_Meta_WHNF_0__Lean_Meta_getStuckMVarImp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Meta_toCtorIfLit___closed__7; +extern lean_object* l_Nat_Init_Data_Nat_Div___instance__1___closed__1; lean_object* l_Lean_Meta_whnfImp_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getStuckMVar_x3f(lean_object*); lean_object* l_Lean_Meta_toCtorIfLit___closed__5; @@ -85,7 +85,6 @@ lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceNat_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_getConfig___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isRecStuck_x3f___at___private_Lean_Meta_WHNF_0__Lean_Meta_getStuckMVarImp_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases_match__1(lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_Data_Position___instance__2___spec__1(lean_object*); @@ -170,7 +169,6 @@ extern lean_object* l_Nat_HasAdd___closed__1; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_cached_x3f___closed__2; lean_object* l_Lean_Meta_reduceNat_x3f___closed__11; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___closed__4; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isQuotRecStuck_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_878____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,6 +214,7 @@ lean_object* l_Lean_Meta_reduceNat_x3f___closed__9; lean_object* l_Lean_ofExcept___at_Lean_Meta_reduceBoolNativeUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isAuxDefImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Nat_Init_Data_Nat_Div___instance__2___closed__1; lean_object* l_Lean_Meta_reduceNat_x3f___closed__4; lean_object* l_Lean_Meta_reduceNative_x3f_match__1(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); @@ -229,7 +228,6 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_matchConstAux_match__1___ra lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isAuxDef_x3f(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_4520_(lean_object*); -extern lean_object* l_Nat_HasDiv___closed__1; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___closed__1; lean_object* l_Lean_RecursorVal_getInduct(lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -246,6 +244,7 @@ lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___at_Lean_withNestedTraces___spec__5___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_cache_match__1(lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f_match__3(lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec_match__1(lean_object*); @@ -338,6 +337,7 @@ lean_object* l_Lean_Meta_withNatValue_match__1___rarg(lean_object*, lean_object* lean_object* l_Lean_Meta_reduceNat_x3f___closed__15; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp___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_Meta_WHNF_0__Lean_Meta_matchConstAux_match__2(lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp___spec__2___closed__5; extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___closed__1; lean_object* l_Lean_Meta_reduceNat_x3f___closed__2; @@ -1547,7 +1547,7 @@ lean_closure_set(x_5, 0, x_4); x_6 = lean_ctor_get(x_1, 6); lean_inc(x_6); lean_dec(x_1); -x_7 = l_List_find_x3f___main___rarg(x_5, x_6); +x_7 = l_List_find_x3f___rarg(x_5, x_6); return x_7; } else @@ -3606,13 +3606,13 @@ x_32 = lean_unsigned_to_nat(1u); x_33 = lean_nat_sub(x_29, x_32); lean_dec(x_29); x_34 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_15, x_31, x_33); -x_35 = l_List_lengthAux___main___rarg(x_3, x_28); +x_35 = l_List_lengthAux___rarg(x_3, x_28); x_36 = lean_ctor_get(x_1, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); -x_38 = l_List_lengthAux___main___rarg(x_37, x_28); +x_38 = l_List_lengthAux___rarg(x_37, x_28); x_39 = lean_nat_dec_eq(x_35, x_38); lean_dec(x_38); lean_dec(x_35); @@ -6776,9 +6776,9 @@ _start: lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_5 = l_Lean_ConstantInfo_lparams(x_1); x_6 = lean_unsigned_to_nat(0u); -x_7 = l_List_lengthAux___main___rarg(x_5, x_6); +x_7 = l_List_lengthAux___rarg(x_5, x_6); lean_dec(x_5); -x_8 = l_List_lengthAux___main___rarg(x_2, x_6); +x_8 = l_List_lengthAux___rarg(x_2, x_6); x_9 = lean_nat_dec_eq(x_7, x_8); lean_dec(x_8); lean_dec(x_7); @@ -6825,9 +6825,9 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_6 = l_Lean_ConstantInfo_lparams(x_1); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_List_lengthAux___main___rarg(x_6, x_7); +x_8 = l_List_lengthAux___rarg(x_6, x_7); lean_dec(x_6); -x_9 = l_List_lengthAux___main___rarg(x_2, x_7); +x_9 = l_List_lengthAux___rarg(x_2, x_7); x_10 = lean_nat_dec_eq(x_8, x_9); lean_dec(x_9); lean_dec(x_8); @@ -7061,9 +7061,9 @@ _start: lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; x_12 = l_Lean_ConstantInfo_lparams(x_4); x_13 = lean_unsigned_to_nat(0u); -x_14 = l_List_lengthAux___main___rarg(x_12, x_13); +x_14 = l_List_lengthAux___rarg(x_12, x_13); lean_dec(x_12); -x_15 = l_List_lengthAux___main___rarg(x_5, x_13); +x_15 = l_List_lengthAux___rarg(x_5, x_13); x_16 = lean_nat_dec_eq(x_14, x_15); lean_dec(x_15); lean_dec(x_14); @@ -13496,9 +13496,9 @@ _start: lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_8 = l_Lean_ConstantInfo_lparams(x_1); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_List_lengthAux___main___rarg(x_8, x_9); +x_10 = l_List_lengthAux___rarg(x_8, x_9); lean_dec(x_8); -x_11 = l_List_lengthAux___main___rarg(x_2, x_9); +x_11 = l_List_lengthAux___rarg(x_2, x_9); x_12 = lean_nat_dec_eq(x_10, x_11); lean_dec(x_11); lean_dec(x_10); @@ -13531,9 +13531,9 @@ _start: lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_9 = l_Lean_ConstantInfo_lparams(x_1); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_List_lengthAux___main___rarg(x_9, x_10); +x_11 = l_List_lengthAux___rarg(x_9, x_10); lean_dec(x_9); -x_12 = l_List_lengthAux___main___rarg(x_2, x_10); +x_12 = l_List_lengthAux___rarg(x_2, x_10); x_13 = lean_nat_dec_eq(x_11, x_12); lean_dec(x_12); lean_dec(x_11); @@ -13568,9 +13568,9 @@ _start: lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_9 = l_Lean_ConstantInfo_lparams(x_1); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_List_lengthAux___main___rarg(x_9, x_10); +x_11 = l_List_lengthAux___rarg(x_9, x_10); lean_dec(x_9); -x_12 = l_List_lengthAux___main___rarg(x_2, x_10); +x_12 = l_List_lengthAux___rarg(x_2, x_10); x_13 = lean_nat_dec_eq(x_11, x_12); lean_dec(x_12); lean_dec(x_11); @@ -13848,9 +13848,9 @@ lean_inc(x_41); lean_dec(x_31); x_42 = l_Lean_ConstantInfo_lparams(x_41); x_43 = lean_unsigned_to_nat(0u); -x_44 = l_List_lengthAux___main___rarg(x_42, x_43); +x_44 = l_List_lengthAux___rarg(x_42, x_43); lean_dec(x_42); -x_45 = l_List_lengthAux___main___rarg(x_29, x_43); +x_45 = l_List_lengthAux___rarg(x_29, x_43); x_46 = lean_nat_dec_eq(x_44, x_45); lean_dec(x_45); lean_dec(x_44); @@ -14088,9 +14088,9 @@ lean_inc(x_94); lean_dec(x_31); x_95 = l_Lean_ConstantInfo_lparams(x_94); x_96 = lean_unsigned_to_nat(0u); -x_97 = l_List_lengthAux___main___rarg(x_95, x_96); +x_97 = l_List_lengthAux___rarg(x_95, x_96); lean_dec(x_95); -x_98 = l_List_lengthAux___main___rarg(x_29, x_96); +x_98 = l_List_lengthAux___rarg(x_29, x_96); x_99 = lean_nat_dec_eq(x_97, x_98); lean_dec(x_98); lean_dec(x_97); @@ -20012,7 +20012,7 @@ else { lean_object* x_42; lean_object* x_43; lean_dec(x_21); -x_42 = l_Nat_HasMod___closed__1; +x_42 = l_Nat_Init_Data_Nat_Div___instance__2___closed__1; x_43 = l_Lean_Meta_reduceBinNatOp(x_42, x_20, x_19, x_2, x_3, x_4, x_5, x_6); return x_43; } @@ -20021,7 +20021,7 @@ else { lean_object* x_44; lean_object* x_45; lean_dec(x_21); -x_44 = l_Nat_HasDiv___closed__1; +x_44 = l_Nat_Init_Data_Nat_Div___instance__1___closed__1; x_45 = l_Lean_Meta_reduceBinNatOp(x_44, x_20, x_19, x_2, x_3, x_4, x_5, x_6); return x_45; } diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index c11bf010ea..cf33af56e5 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -169,6 +169,7 @@ extern lean_object* l_Array_empty___closed__1; lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__33(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_MetavarContext_exprDependsOn___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__52___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -240,6 +241,7 @@ lean_object* l_Lean_MetavarContext_renameMVar(lean_object*, lean_object*, lean_o uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__27(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); extern lean_object* l_List_repr___rarg___closed__3; uint8_t l_Array_anyRangeMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -334,7 +336,6 @@ lean_object* l_Array_anyRangeMAux___at_Lean_MetavarContext_localDeclDependsOn___ lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__39___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_MetavarContext_instantiateExprMVars___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars_match__2___rarg(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__19(lean_object*, lean_object*); @@ -348,7 +349,6 @@ lean_object* l_Lean_MetavarKind_isSyntheticOpaque_match__1___rarg___boxed(lean_o lean_object* l_Array_findIdxAux___at_Lean_LocalInstances_erase___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__26___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__22(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__16___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -429,7 +429,6 @@ lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___sp lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__5; lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__13___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___at_Lean_MetavarContext_instantiateLCtxMVars___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarKind_isNatural___boxed(lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__30(lean_object*, lean_object*); @@ -478,7 +477,6 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l_Lean_LocalContext_foldlM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__23___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_MetavarContext_exprDependsOn___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_MetavarContext_assignDelayed___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_mkAuxMVarType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -491,6 +489,7 @@ lean_object* l___private_Init_Data_Array_Basic_0__Array_iterateRevMAux___at___pr uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__11(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContext_instantiateExprMVars___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_MetavarContext_exprDependsOn___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssigned___boxed(lean_object*, lean_object*); lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_eraseDelayed___spec__3(lean_object*, lean_object*, lean_object*); @@ -582,6 +581,7 @@ lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_MetavarContext_eraseDela lean_object* l_Nat_forM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__61(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayedAssigned___spec__1(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__4(lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContext_instantiateExprMVars___spec__9___rarg___lambda__2(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__20(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__38(lean_object*, lean_object*); @@ -611,6 +611,7 @@ lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___sp lean_object* l_Array_anyRangeMAux___at_Lean_MetavarContext_exprDependsOn___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_MetavarContext_instantiateLCtxMVars___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__31___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -664,6 +665,7 @@ lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContex uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* lean_metavar_ctx_mk_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_MetavarContext_isAnonymousMVar_match__1(lean_object*); +uint8_t l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12(lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__28___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -772,6 +774,7 @@ lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___sp lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__17(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11; lean_object* l_Lean_MetavarContext_MkBinding_Lean_MetavarContext___instance__6___closed__1; uint8_t l_Lean_Expr_isMVar(lean_object*); @@ -843,7 +846,6 @@ lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_MetavarContext_getExprA lean_object* l_Std_PersistentHashMap_findAux___at_Lean_MetavarContext_getDelayedAssignment_x3f___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_MetavarContext_findLevelDepth_x3f___spec__2(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_exprDependsOn___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__40___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__32(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_renameMVar___closed__1; @@ -862,6 +864,7 @@ lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVar lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignableMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___closed__2; lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__22___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_main_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -954,7 +957,6 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mk lean_object* l_Lean_MetavarContext_hasAssignedMVar___closed__1; lean_object* l_Array_umapMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_findDecl_x3f___spec__1(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -984,7 +986,6 @@ uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsO lean_object* l_Lean_MetavarContext_isLevelAssignable___closed__1; lean_object* l_Array_findIdxAux___at_Lean_LocalInstances_erase___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findExprDependsOn___closed__1; -uint8_t l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addExprMVarDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getInScope___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isExprAssignable(lean_object*, lean_object*); @@ -1034,7 +1035,6 @@ lean_object* l_Std_PersistentHashMap_insert___at_Lean_MetavarContext_assignDelay lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__21(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findLocalDeclDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__24(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_Lean_MetavarContext___instance__5___closed__1; uint8_t l_Array_anyRangeMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1090,7 +1090,6 @@ lean_object* l_Nat_foldRevM_loop___rarg(lean_object*, lean_object*, lean_object* lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_MetavarContext_assignExprCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_MetavarContext___instance__1___closed__1; lean_object* l_Array_iterateMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__58(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__41___rarg___lambda__16(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_MetavarContext_assignExprCore___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__41(lean_object*, lean_object*); @@ -1106,6 +1105,7 @@ lean_object* l_Lean_MetavarContext_mkLambda_match__1___rarg(lean_object*, lean_o lean_object* l_Array_umapMAux___at_Lean_MetavarContext_instantiateExprMVars___spec__27(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_MetavarContext_assignDelayed___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__34(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_reduceLocalContext___boxed(lean_object*, lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); @@ -8834,7 +8834,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_MetavarContext_hasAssignedMVar_match__1_ return x_2; } } -uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -8851,7 +8851,7 @@ x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); lean_dec(x_3); lean_inc(x_1); -x_6 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_2, x_5); x_7 = l_Lean_MetavarContext_hasAssignedLevelMVar(x_1, x_4); if (x_7 == 0) { @@ -8931,7 +8931,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_dec(x_2); x_10 = 0; -x_11 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_10, x_9); +x_11 = l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_10, x_9); return x_11; } case 5: @@ -9311,13 +9311,13 @@ return x_76; } } } -lean_object* l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(x_1, x_4, x_3); x_6 = lean_box(x_5); return x_6; } @@ -9939,7 +9939,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_MetavarContext_hasAssignableMVar_match__ return x_2; } } -uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -9953,7 +9953,7 @@ lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); lean_inc(x_1); -x_6 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_2, x_5); x_7 = l_Lean_MetavarContext_hasAssignableLevelMVar(x_1, x_4); if (x_7 == 0) { @@ -10012,7 +10012,7 @@ case 4: lean_object* x_7; uint8_t x_8; uint8_t x_9; x_7 = lean_ctor_get(x_2, 1); x_8 = 0; -x_9 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_8, x_7); +x_9 = l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_8, x_7); return x_9; } case 5: @@ -10348,13 +10348,13 @@ return x_74; } } } -lean_object* l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(x_1, x_4, x_3); lean_dec(x_3); x_6 = lean_box(x_5); return x_6; @@ -24018,7 +24018,7 @@ return x_46; } } } -uint8_t l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -24057,12 +24057,12 @@ x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_7); +x_8 = l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_List_foldl___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -24132,7 +24132,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(x_3, x_6); +x_9 = l_List_foldl___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__6(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -24161,64 +24161,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_expr_eqv(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_eqv(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_expr_eqv(x_9, x_2); -if (x_11 == 0) +x_12 = lean_expr_eqv(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -24238,7 +24240,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Expr_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_9); +x_10 = l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -24270,7 +24272,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_9, x_2, x_2); +x_17 = l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -24289,7 +24291,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Expr_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_24); +x_25 = l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -24322,7 +24324,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_24, x_2, x_2); +x_33 = l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -24410,11 +24412,11 @@ return x_23; } } } -lean_object* l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_1, x_2); +x_3 = l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -24432,11 +24434,11 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_1, x_2, x_3); +x_4 = l_List_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__7(x_1, x_2, x_3); lean_dec(x_2); return x_4; } diff --git a/stage0/stdlib/Lean/Parser/Basic.c b/stage0/stdlib/Lean/Parser/Basic.c index 5316dfa409..460e7792e9 100644 --- a/stage0/stdlib/Lean/Parser/Basic.c +++ b/stage0/stdlib/Lean/Parser/Basic.c @@ -209,7 +209,6 @@ lean_object* l_Lean_Parser_mkTokenAndFixPos_match__1___rarg(lean_object*, lean_o lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot___closed__27; lean_object* l_Lean_Parser_checkColGeFn_match__1___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_Syntax_structEq___spec__3(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_0__Array_iterateRevMAux___at_Lean_Syntax_foldSepRevArgs___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_withoutForbidden___lambda__1(lean_object*, lean_object*, lean_object*); @@ -389,6 +388,7 @@ lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Basic___hyg_5869____closed_ lean_object* l_Lean_Parser_antiquotNestedExpr___closed__1; lean_object* l_Lean_Syntax_foldSepRevArgsM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_checkNoWsBefore(lean_object*); +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Parser_antiquotNestedExpr___closed__2; lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); lean_object* l_Lean_Parser_longestMatchFn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -396,7 +396,6 @@ lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind; lean_object* l_Lean_Parser_nonReservedSymbolInfo(lean_object*, uint8_t); lean_object* l_Lean_Parser_runLongestMatchParser_match__1(lean_object*); -lean_object* l_List_eraseRepsAux___main___at_Lean_Parser_Error_toString___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_finishCommentBlock___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_checkNoWsBefore___elambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgs(lean_object*); @@ -466,6 +465,7 @@ lean_object* l_Lean_Parser_charLitNoAntiquot___closed__2; lean_object* l_Lean_Parser_longestMatchStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_tryAnti_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_setExpectedFn(lean_object*); +lean_object* l_List_eraseRepsAux___at_Lean_Parser_Error_toString___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_strLitFn(lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___at_Lean_Syntax_forSepArgsM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot___closed__12; @@ -2188,7 +2188,7 @@ return x_6; } } } -lean_object* l_List_eraseRepsAux___main___at_Lean_Parser_Error_toString___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_eraseRepsAux___at_Lean_Parser_Error_toString___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2267,19 +2267,21 @@ _start: { if (lean_obj_tag(x_1) == 0) { -return x_1; +lean_object* x_2; +x_2 = lean_box(0); +return x_2; } else { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); lean_dec(x_1); -x_4 = lean_box(0); -x_5 = l_List_eraseRepsAux___main___at_Lean_Parser_Error_toString___spec__4(x_2, x_3, x_4); -return x_5; +x_5 = lean_box(0); +x_6 = l_List_eraseRepsAux___at_Lean_Parser_Error_toString___spec__4(x_3, x_4, x_5); +return x_6; } } } @@ -2330,7 +2332,7 @@ lean_dec(x_1); x_4 = l_String_splitAux___closed__1; x_5 = lean_string_dec_eq(x_2, x_4); x_6 = lean_box(0); -x_7 = l_List_beq___main___at_Lean_Syntax_structEq___spec__3(x_3, x_6); +x_7 = l_List_beq___at_Lean_Syntax_structEq___spec__3(x_3, x_6); if (x_5 == 0) { lean_object* x_8; @@ -2470,7 +2472,7 @@ else lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_1, 1); x_8 = lean_ctor_get(x_2, 1); -x_9 = l_List_beq___main___at_Lean_Syntax_structEq___spec__3(x_7, x_8); +x_9 = l_List_beq___at_Lean_Syntax_structEq___spec__3(x_7, x_8); return x_9; } } diff --git a/stage0/stdlib/Lean/Parser/Extension.c b/stage0/stdlib/Lean/Parser/Extension.c index 697425c5a3..fc2d0c9f48 100644 --- a/stage0/stdlib/Lean/Parser/Extension.c +++ b/stage0/stdlib/Lean/Parser/Extension.c @@ -18,6 +18,7 @@ lean_object* l_Lean_Parser_declareLeadingBuiltinParser___closed__2; lean_object* l_Lean_Parser_builtinTokenTable; lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_updateBuiltinTokens_match__1(lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3103____closed__1; +lean_object* l_List_map___at_Lean_Parser_addLeadingParser___spec__1(lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1654____closed__5; extern lean_object* l_Std_RBTree_toList___rarg___closed__1; lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add_match__1(lean_object*); @@ -103,6 +104,7 @@ lean_object* l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(lean lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); lean_object* l_Lean_Parser_addBuiltinParser___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_addBuiltinParser(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Parser_addLeadingParser___spec__3(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_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); @@ -241,6 +243,7 @@ extern lean_object* l_Lean_Parser_Trie_Lean_Data_Trie___instance__1___closed__1; lean_object* l_Array_iterateMAux___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___lambda__2___closed__1; uint8_t l_Std_PersistentHashMap_contains___at___private_Lean_Parser_Extension_0__Lean_Parser_addParserCategoryCore___spec__1(lean_object*, lean_object*); +lean_object* l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1654____lambda__2___closed__2; lean_object* l_Lean_Parser_parserExtension___closed__4; @@ -254,7 +257,6 @@ extern lean_object* l___private_Init_LeanInit_0__Lean_quoteName___closed__3; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_nameLit; -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtension_addImported___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1598____closed__4; lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_registerParserAttributeImplBuilder___closed__2; @@ -283,6 +285,7 @@ lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1598____closed__5; +lean_object* l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3123____closed__4; lean_object* l_Lean_Parser_mkParserAttributeImpl___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -333,13 +336,13 @@ lean_object* l_Lean_Parser_addParser_match__1(lean_object*); lean_object* l_Lean_Parser_whitespace(lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_getTokenTable(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_getParserPriority___closed__2; lean_object* l_Array_iterateMAux___at_Lean_Parser_getSyntaxNodeKinds___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_Parser_isValidSyntaxNodeKind___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_isValidSyntaxNodeKind___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1598____closed__2; lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Parser_addLeadingParser___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepByFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_addTrailingParser(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerTagAttribute___lambda__6___closed__2; @@ -399,7 +402,6 @@ lean_object* l_Lean_Parser_tryFn(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); -lean_object* l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_ofExcept___at___private_Lean_Parser_Extension_0__Lean_Parser_addBuiltinParserCategory___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_categoryParser(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); @@ -476,7 +478,6 @@ lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_throwParserCategor lean_object* l_Lean_Parser_mkParserOfConstant(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_compileParserDescr_visit_match__3___rarg___boxed(lean_object**); -lean_object* l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(lean_object*); lean_object* l_Array_iterateMAux___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_parserExtension___elambda__1(lean_object*); @@ -504,6 +505,7 @@ extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3133____closed__2; lean_object* l_Lean_Parser_getParserPriority___closed__5; extern lean_object* l_Lean_Parser_mkAntiquot___closed__8; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addParserCategoryCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_addLeadingParser_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtensionAddEntry_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -524,7 +526,6 @@ uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___lambda__2___closed__3; lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1654____lambda__2___closed__3; -lean_object* l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; extern lean_object* l_Lean_Parser_Lean_Parser_Basic___instance__14___closed__1; lean_object* l_Lean_Parser_Trie_find_x3f_loop___rarg(lean_object*, lean_object*, lean_object*); @@ -539,7 +540,6 @@ lean_object* l_Lean_Parser_compileParserDescr_visit_match__2(lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtensionAddEntry___closed__1; lean_object* l_Lean_Parser_parserExtension___elambda__3(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addTokenConfig___closed__2; lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1654____closed__2; @@ -2092,7 +2092,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Parser_addLeadingParser_match__2___rarg) return x_2; } } -lean_object* l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(lean_object* x_1) { +lean_object* l_List_map___at_Lean_Parser_addLeadingParser___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2112,7 +2112,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_box(0); x_7 = lean_name_mk_string(x_6, x_4); -x_8 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_5); +x_8 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -2127,7 +2127,7 @@ lean_inc(x_9); lean_dec(x_1); x_11 = lean_box(0); x_12 = lean_name_mk_string(x_11, x_9); -x_13 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_10); +x_13 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -2136,7 +2136,7 @@ return x_14; } } } -lean_object* l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_Parser_addLeadingParser___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2198,7 +2198,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_Parser_addLeadingParser___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2293,14 +2293,14 @@ lean_dec(x_6); x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_11); +x_12 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_11); x_13 = !lean_is_exclusive(x_10); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_14 = lean_ctor_get(x_10, 0); x_15 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_12); -x_16 = l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__2(x_4, x_5, x_14, x_15); +x_16 = l_List_foldl___at_Lean_Parser_addLeadingParser___spec__2(x_4, x_5, x_14, x_15); lean_ctor_set(x_10, 0, x_16); x_17 = l_Std_PersistentHashMap_insert___at___private_Lean_Parser_Extension_0__Lean_Parser_addParserCategoryCore___spec__4(x_1, x_2, x_10); x_18 = lean_alloc_ctor(1, 1, 0); @@ -2315,7 +2315,7 @@ x_20 = lean_ctor_get_uint8(x_10, sizeof(void*)*1); lean_inc(x_19); lean_dec(x_10); x_21 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_12); -x_22 = l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__2(x_4, x_5, x_19, x_21); +x_22 = l_List_foldl___at_Lean_Parser_addLeadingParser___spec__2(x_4, x_5, x_19, x_21); x_23 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_23, 0, x_22); lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_20); @@ -2334,14 +2334,14 @@ lean_dec(x_6); x_27 = lean_ctor_get(x_9, 0); lean_inc(x_27); lean_dec(x_9); -x_28 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_27); +x_28 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_27); x_29 = !lean_is_exclusive(x_26); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_30 = lean_ctor_get(x_26, 0); x_31 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_28); -x_32 = l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__3(x_4, x_5, x_30, x_31); +x_32 = l_List_foldl___at_Lean_Parser_addLeadingParser___spec__3(x_4, x_5, x_30, x_31); lean_ctor_set(x_26, 0, x_32); x_33 = l_Std_PersistentHashMap_insert___at___private_Lean_Parser_Extension_0__Lean_Parser_addParserCategoryCore___spec__4(x_1, x_2, x_26); x_34 = lean_alloc_ctor(1, 1, 0); @@ -2356,7 +2356,7 @@ x_36 = lean_ctor_get_uint8(x_26, sizeof(void*)*1); lean_inc(x_35); lean_dec(x_26); x_37 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_28); -x_38 = l_List_foldl___main___at_Lean_Parser_addLeadingParser___spec__3(x_4, x_5, x_35, x_37); +x_38 = l_List_foldl___at_Lean_Parser_addLeadingParser___spec__3(x_4, x_5, x_35, x_37); x_39 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_39, 0, x_38); lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_36); @@ -2535,7 +2535,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Parser_Extension_0__Lean_Parse return x_2; } } -lean_object* l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2597,7 +2597,7 @@ goto _start; } } } -lean_object* l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -2675,9 +2675,9 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); lean_dec(x_5); -x_7 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_6); +x_7 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_6); x_8 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_7); -x_9 = l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(x_2, x_3, x_1, x_8); +x_9 = l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__1(x_2, x_3, x_1, x_8); return x_9; } case 3: @@ -2686,9 +2686,9 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); lean_dec(x_5); -x_11 = l_List_map___main___at_Lean_Parser_addLeadingParser___spec__1(x_10); +x_11 = l_List_map___at_Lean_Parser_addLeadingParser___spec__1(x_10); x_12 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_11); -x_13 = l_List_foldl___main___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(x_2, x_3, x_1, x_12); +x_13 = l_List_foldl___at___private_Lean_Parser_Extension_0__Lean_Parser_addTrailingParserAux___spec__2(x_2, x_3, x_1, x_12); return x_13; } default: @@ -9399,7 +9399,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_2 = lean_ctor_get(x_1, 3); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +x_4 = l_List_lengthAux___rarg(x_2, x_3); x_5 = l_Nat_repr(x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 2ac21003fd..b19bf10bff 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -64,6 +64,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_match_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_let___elambda__1___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_visitArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_admit___closed__3; +lean_object* l_Lean_Parser_Tactic_location___elambda__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_subst_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_rewrite___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__7; @@ -150,6 +151,7 @@ lean_object* l_Lean_Parser_Tactic_majorPremise___closed__1; lean_object* l_Lean_Parser_Tactic_have___closed__1; lean_object* l_Lean_Parser_Tactic_rewrite_parenthesizer___closed__9; lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__2; +lean_object* l_Lean_Parser_Tactic_location_parenthesizer___closed__10; lean_object* l_Lean_Parser_Tactic_location_formatter___closed__8; lean_object* l___regBuiltin_Lean_Parser_Tactic_refine_x21_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith___elambda__1___closed__4; @@ -178,6 +180,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_exact_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_matchAlts___closed__5; extern lean_object* l_Lean_Parser_Term_have___closed__2; lean_object* l_Lean_Parser_Tactic_induction___closed__2; +lean_object* l_Lean_Parser_Tactic_location___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_apply_parenthesizer___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_admit(lean_object*); lean_object* l_Lean_Parser_Tactic_rewriteSeq___elambda__1(lean_object*, lean_object*); @@ -290,6 +293,7 @@ lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__6; extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_done_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__6; +lean_object* l_Lean_Parser_Tactic_location_formatter___closed__10; lean_object* l_Lean_Parser_Tactic_change___closed__1; extern lean_object* l_Lean_Parser_darrow; lean_object* l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5; @@ -389,7 +393,6 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_revert_parenthesizer(lean_object* lean_object* l_Lean_Parser_Tactic_admit___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_intros___closed__5; lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__5; -lean_object* l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__15; @@ -491,6 +494,7 @@ lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_show___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__13; lean_object* l___regBuiltin_Lean_Parser_Tactic_paren_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_match_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_refine_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_clear___closed__1; @@ -509,7 +513,6 @@ lean_object* l_Lean_Parser_Tactic_changeWith_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_case___closed__4; lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_majorPremise_formatter___closed__3; -lean_object* l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_traceState_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_rwRule_formatter___closed__1; @@ -537,6 +540,7 @@ lean_object* l_Lean_Parser_Tactic_introMatch_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_locationWildcard___closed__4; lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; +lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_let_x21_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__14; @@ -658,7 +662,6 @@ lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__10; lean_object* l___regBuiltin_Lean_Parser_Tactic_revert_formatter___closed__1; extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__5; -lean_object* l_Lean_Parser_Tactic_locationHyp_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_traceState_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_refine___closed__3; lean_object* l_Lean_Parser_Tactic_allGoals_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1526,7 +1529,6 @@ lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__2; lean_object* l_Lean_Parser_Tactic_induction_parenthesizer___closed__9; lean_object* l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_generalize_formatter___closed__4; -lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__11; lean_object* l_Lean_Parser_Tactic_let___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_intro_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_show___elambda__1___closed__1; @@ -1605,6 +1607,7 @@ lean_object* l_Lean_Parser_Tactic_change_formatter(lean_object*, lean_object*, l lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer(lean_object*); extern lean_object* l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_inductionAlts___elambda__1___closed__3; +lean_object* l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3; extern lean_object* l_Lean_Parser_Term_matchAlt_formatter___closed__1; extern lean_object* l_Lean_Parser_Term_structInstArrayRef_formatter___closed__2; extern lean_object* l_Lean_Parser_Term_matchAlts___closed__5; @@ -1826,7 +1829,6 @@ lean_object* l_Lean_Parser_Tactic_skip___closed__4; lean_object* l_Lean_Parser_Tactic_suffices___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_focus___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_rwRule___closed__7; -lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__12; lean_object* l_Lean_Parser_Tactic_rwRule_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_allGoals_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__2; @@ -10069,31 +10071,21 @@ return x_4; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_ident___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_many1Fn), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; -x_2 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5; +x_2 = l_Lean_Parser_Tactic_revert___elambda__1___closed__9; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8; -x_2 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6; +x_2 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -10107,7 +10099,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_3 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__4; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7; +x_5 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6; x_6 = 1; x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); return x_7; @@ -10116,13 +10108,11 @@ return x_7; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_ident; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; -x_4 = l_Lean_Parser_nodeInfo(x_3, x_2); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; +x_2 = l_Lean_Parser_Tactic_revert___closed__2; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__2() { @@ -10175,6 +10165,172 @@ x_1 = l_Lean_Parser_Tactic_locationHyp___closed__5; return x_1; } } +lean_object* l_Lean_Parser_Tactic_location___elambda__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 4); +lean_dec(x_7); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_9 = lean_ctor_get(x_6, 2); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +x_11 = l_Lean_FileMap_toPosition(x_9, x_10); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_3, 4, x_12); +x_13 = l_Init_Data_Repr___instance__15___closed__1; +x_14 = lean_string_append(x_13, x_1); +x_15 = lean_string_append(x_14, x_13); +lean_inc(x_3); +x_16 = l_Lean_Parser_symbolFnAux(x_1, x_15, x_3, x_4); +x_17 = lean_ctor_get(x_16, 3); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = l_Lean_Parser_Tactic_locationWildcard___closed__4; +x_19 = 1; +x_20 = l_Lean_Parser_orelseFnCore(x_18, x_2, x_19, x_3, x_16); +return x_20; +} +else +{ +lean_dec(x_17); +lean_dec(x_3); +lean_dec(x_2); +return x_16; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_6); +x_24 = lean_ctor_get(x_4, 1); +lean_inc(x_24); +x_25 = l_Lean_FileMap_toPosition(x_23, x_24); +x_26 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_22); +lean_ctor_set(x_26, 2, x_23); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_3, 4, x_27); +lean_ctor_set(x_3, 0, x_26); +x_28 = l_Init_Data_Repr___instance__15___closed__1; +x_29 = lean_string_append(x_28, x_1); +x_30 = lean_string_append(x_29, x_28); +lean_inc(x_3); +x_31 = l_Lean_Parser_symbolFnAux(x_1, x_30, x_3, x_4); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_33 = l_Lean_Parser_Tactic_locationWildcard___closed__4; +x_34 = 1; +x_35 = l_Lean_Parser_orelseFnCore(x_33, x_2, x_34, x_3, x_31); +return x_35; +} +else +{ +lean_dec(x_32); +lean_dec(x_3); +lean_dec(x_2); +return x_31; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_36 = lean_ctor_get(x_3, 0); +x_37 = lean_ctor_get(x_3, 1); +x_38 = lean_ctor_get(x_3, 2); +x_39 = lean_ctor_get(x_3, 3); +x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_41 = lean_ctor_get(x_3, 5); +lean_inc(x_41); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_3); +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_36, 2); +lean_inc(x_44); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + lean_ctor_release(x_36, 2); + x_45 = x_36; +} else { + lean_dec_ref(x_36); + x_45 = lean_box(0); +} +x_46 = lean_ctor_get(x_4, 1); +lean_inc(x_46); +x_47 = l_Lean_FileMap_toPosition(x_44, x_46); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_43); +lean_ctor_set(x_48, 2, x_44); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_47); +x_50 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_37); +lean_ctor_set(x_50, 2, x_38); +lean_ctor_set(x_50, 3, x_39); +lean_ctor_set(x_50, 4, x_49); +lean_ctor_set(x_50, 5, x_41); +lean_ctor_set_uint8(x_50, sizeof(void*)*6, x_40); +x_51 = l_Init_Data_Repr___instance__15___closed__1; +x_52 = lean_string_append(x_51, x_1); +x_53 = lean_string_append(x_52, x_51); +lean_inc(x_50); +x_54 = l_Lean_Parser_symbolFnAux(x_1, x_53, x_50, x_4); +x_55 = lean_ctor_get(x_54, 3); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; uint8_t x_57; lean_object* x_58; +x_56 = l_Lean_Parser_Tactic_locationWildcard___closed__4; +x_57 = 1; +x_58 = l_Lean_Parser_orelseFnCore(x_56, x_2, x_57, x_50, x_54); +return x_58; +} +else +{ +lean_dec(x_55); +lean_dec(x_50); +lean_dec(x_2); +return x_54; +} +} +} +} static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__1() { _start: { @@ -10234,16 +10390,6 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__6; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_locationTarget___closed__5; x_2 = l_Lean_Parser_Tactic_locationHyp___closed__4; @@ -10253,13 +10399,25 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__6; +x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__7; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_location___elambda__1___lambda__1___boxed), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_locationWildcard___closed__4; +x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__2; x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__8; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_orelseFn), 4, 2); +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; @@ -10269,32 +10427,8 @@ static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__1 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__7; -x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__9; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__2; -x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__10; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_location___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8; -x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__11; +x_2 = l_Lean_Parser_Tactic_location___elambda__1___closed__9; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -10308,7 +10442,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_3 = l_Lean_Parser_Tactic_location___elambda__1___closed__4; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_Lean_Parser_Tactic_location___elambda__1___closed__12; +x_5 = l_Lean_Parser_Tactic_location___elambda__1___closed__10; x_6 = 1; x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); return x_7; @@ -10419,6 +10553,15 @@ x_1 = l_Lean_Parser_Tactic_location___closed__9; return x_1; } } +lean_object* l_Lean_Parser_Tactic_location___elambda__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Parser_Tactic_location___elambda__1___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} static lean_object* _init_l_Lean_Parser_Tactic_change___elambda__1___closed__1() { _start: { @@ -10780,20 +10923,10 @@ return x_5; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___regBuiltin_Lean_Parser_ident_formatter___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; +x_3 = l_Lean_Parser_Tactic_revert_formatter___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -10806,7 +10939,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__3; +x_7 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -10899,10 +11032,20 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_location_formatter___closed__9() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_location_formatter___closed__8; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_withPosition_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_location_formatter___closed__10() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_location_formatter___closed__8; +x_3 = l_Lean_Parser_Tactic_location_formatter___closed__9; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -10915,7 +11058,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_location_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_location_formatter___closed__9; +x_7 = l_Lean_Parser_Tactic_location_formatter___closed__10; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -11138,20 +11281,10 @@ return x_5; static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___regBuiltin_Lean_Parser_ident_parenthesizer___closed__1; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; +x_3 = l_Lean_Parser_Tactic_revert_parenthesizer___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -11164,7 +11297,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3; +x_7 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -11257,10 +11390,20 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__9() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_location_parenthesizer___closed__8; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_withPosition_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__10() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_location___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_location_parenthesizer___closed__8; +x_3 = l_Lean_Parser_Tactic_location_parenthesizer___closed__9; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -11273,7 +11416,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_location_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_location_parenthesizer___closed__9; +x_7 = l_Lean_Parser_Tactic_location_parenthesizer___closed__10; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -14375,9 +14518,19 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_ident___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_many1Fn), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__3; -x_2 = l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5; +x_2 = l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -14388,7 +14541,7 @@ lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1(lean_object* x_1 _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4; +x_3 = l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5; x_4 = l_Lean_Parser_optionalFn(x_3, x_1, x_2); return x_4; } @@ -14828,9 +14981,19 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___regBuiltin_Lean_Parser_ident_formatter___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1; -x_2 = l_Lean_Parser_Tactic_locationHyp_formatter___closed__2; +x_2 = l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -14841,7 +15004,7 @@ lean_object* l_Lean_Parser_Tactic_generalizingVars_formatter(lean_object* x_1, l _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2; +x_6 = l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3; x_7 = l_Lean_PrettyPrinter_Formatter_visitArgs(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } @@ -15257,9 +15420,19 @@ return x_2; static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___regBuiltin_Lean_Parser_ident_parenthesizer___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1; -x_2 = l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -15270,7 +15443,7 @@ lean_object* l_Lean_Parser_Tactic_generalizingVars_parenthesizer(lean_object* x_ _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2; +x_6 = l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3; x_7 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } @@ -21621,8 +21794,6 @@ l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__5); l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6 = _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__6); -l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7 = _init_l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___elambda__1___closed__7); l_Lean_Parser_Tactic_locationHyp___closed__1 = _init_l_Lean_Parser_Tactic_locationHyp___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__1); l_Lean_Parser_Tactic_locationHyp___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp___closed__2(); @@ -21655,10 +21826,6 @@ l_Lean_Parser_Tactic_location___elambda__1___closed__9 = _init_l_Lean_Parser_Tac lean_mark_persistent(l_Lean_Parser_Tactic_location___elambda__1___closed__9); l_Lean_Parser_Tactic_location___elambda__1___closed__10 = _init_l_Lean_Parser_Tactic_location___elambda__1___closed__10(); lean_mark_persistent(l_Lean_Parser_Tactic_location___elambda__1___closed__10); -l_Lean_Parser_Tactic_location___elambda__1___closed__11 = _init_l_Lean_Parser_Tactic_location___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Tactic_location___elambda__1___closed__11); -l_Lean_Parser_Tactic_location___elambda__1___closed__12 = _init_l_Lean_Parser_Tactic_location___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Tactic_location___elambda__1___closed__12); l_Lean_Parser_Tactic_location___closed__1 = _init_l_Lean_Parser_Tactic_location___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_location___closed__1); l_Lean_Parser_Tactic_location___closed__2 = _init_l_Lean_Parser_Tactic_location___closed__2(); @@ -21740,8 +21907,6 @@ l_Lean_Parser_Tactic_locationHyp_formatter___closed__1 = _init_l_Lean_Parser_Tac lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__1); l_Lean_Parser_Tactic_locationHyp_formatter___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__2); -l_Lean_Parser_Tactic_locationHyp_formatter___closed__3 = _init_l_Lean_Parser_Tactic_locationHyp_formatter___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_formatter___closed__3); l_Lean_Parser_Tactic_location_formatter___closed__1 = _init_l_Lean_Parser_Tactic_location_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_location_formatter___closed__1); l_Lean_Parser_Tactic_location_formatter___closed__2 = _init_l_Lean_Parser_Tactic_location_formatter___closed__2(); @@ -21760,6 +21925,8 @@ l_Lean_Parser_Tactic_location_formatter___closed__8 = _init_l_Lean_Parser_Tactic lean_mark_persistent(l_Lean_Parser_Tactic_location_formatter___closed__8); l_Lean_Parser_Tactic_location_formatter___closed__9 = _init_l_Lean_Parser_Tactic_location_formatter___closed__9(); lean_mark_persistent(l_Lean_Parser_Tactic_location_formatter___closed__9); +l_Lean_Parser_Tactic_location_formatter___closed__10 = _init_l_Lean_Parser_Tactic_location_formatter___closed__10(); +lean_mark_persistent(l_Lean_Parser_Tactic_location_formatter___closed__10); l_Lean_Parser_Tactic_change_formatter___closed__1 = _init_l_Lean_Parser_Tactic_change_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_change_formatter___closed__1); l_Lean_Parser_Tactic_change_formatter___closed__2 = _init_l_Lean_Parser_Tactic_change_formatter___closed__2(); @@ -21793,8 +21960,6 @@ l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1 = _init_l_Lean_Parser lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__1); l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__2); -l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp_parenthesizer___closed__3); l_Lean_Parser_Tactic_location_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_location_parenthesizer___closed__1); l_Lean_Parser_Tactic_location_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__2(); @@ -21813,6 +21978,8 @@ l_Lean_Parser_Tactic_location_parenthesizer___closed__8 = _init_l_Lean_Parser_Ta lean_mark_persistent(l_Lean_Parser_Tactic_location_parenthesizer___closed__8); l_Lean_Parser_Tactic_location_parenthesizer___closed__9 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__9(); lean_mark_persistent(l_Lean_Parser_Tactic_location_parenthesizer___closed__9); +l_Lean_Parser_Tactic_location_parenthesizer___closed__10 = _init_l_Lean_Parser_Tactic_location_parenthesizer___closed__10(); +lean_mark_persistent(l_Lean_Parser_Tactic_location_parenthesizer___closed__10); l_Lean_Parser_Tactic_change_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_change_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_change_parenthesizer___closed__1); l_Lean_Parser_Tactic_change_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_change_parenthesizer___closed__2(); @@ -22321,6 +22488,8 @@ l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__3 = _init_l_Lean_Pa lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__3); l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4 = _init_l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4); +l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5 = _init_l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__5); l_Lean_Parser_Tactic_generalizingVars___closed__1 = _init_l_Lean_Parser_Tactic_generalizingVars___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars___closed__1); l_Lean_Parser_Tactic_generalizingVars___closed__2 = _init_l_Lean_Parser_Tactic_generalizingVars___closed__2(); @@ -22398,6 +22567,8 @@ l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1 = _init_l_Lean_Parse lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1); l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2 = _init_l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2); +l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3 = _init_l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_formatter___closed__3); l_Lean_Parser_Tactic_altRHS_formatter___closed__1 = _init_l_Lean_Parser_Tactic_altRHS_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_altRHS_formatter___closed__1); l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1(); @@ -22463,6 +22634,8 @@ l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1 = _init_l_Lean_P lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1); l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__2); +l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__3); l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1); l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1(); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c index f0d6b41d9e..1f2f578f9b 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c @@ -31,7 +31,6 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_numLitNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_eoi_formatter___rarg(lean_object*); -uint8_t l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(uint8_t, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_setExpected_formatter___boxed(lean_object*); lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__12; @@ -80,6 +79,7 @@ lean_object* l_Lean_Parser_mkParserState(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter___lambda__2___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_throwBacktrack(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(lean_object*); lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_format___spec__1(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter___lambda__2___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter___closed__2; @@ -146,6 +146,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(lean_object*, lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkColGe_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_formatterForKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(uint8_t, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_withAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -184,7 +185,6 @@ lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatt lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__6; lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_unquotedSymbol_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__5; lean_object* l_Lean_PrettyPrinter_Formatter_Lean_PrettyPrinter_Formatter___instance__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,6 +197,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_formatterForKind_match__1___rarg(lea lean_object* l_List_forM___at_Lean_PrettyPrinter_Formatter_sepBy_formatter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__13; lean_object* l_Lean_PrettyPrinter_Formatter_checkInsideQuot_formatter___rarg(lean_object*); +lean_object* l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_identEq_formatter(lean_object*); lean_object* l_Array_forMAux___at_Lean_PrettyPrinter_Formatter_categoryParser_formatter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkOutsideQuot_formatter(lean_object*, lean_object*, lean_object*, lean_object*); @@ -251,6 +252,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_visitAtom___boxed(lean_object*, lean uint8_t lean_is_inaccessible_user_name(lean_object*); lean_object* l_String_trimLeft(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_setExpected_formatter(lean_object*); +lean_object* l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6; lean_object* l_Lean_PrettyPrinter_Formatter_pushNone_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -284,7 +286,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_parseToken___closed__1; lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__11; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_PrettyPrinter_Formatter_checkKind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); -lean_object* l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_FormatterM_orelse(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_getStack___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,7 +343,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_skip_formatter___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_parseToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_mkCombinatorFormatterAttribute___closed__3; lean_object* l_Lean_PrettyPrinter_Formatter_pushTokenCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__3; lean_object* l_Lean_PrettyPrinter_Formatter_identEq_formatter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Substring_takeRightWhileAux___at_Lean_PrettyPrinter_Formatter_pushTokenCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -365,7 +365,6 @@ lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__1(lean_object*); extern lean_object* l_Lean_ParserCompiler_CombinatorAttribute_Lean_ParserCompiler_Attribute___instance__1___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__1; lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_pushNone_formatter___spec__1(lean_object*); -lean_object* l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_checkOutsideQuot_formatter___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_charLitNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_concat___lambda__1(lean_object*, lean_object*); @@ -396,13 +395,13 @@ lean_object* l_ReaderT_Init_Control_Reader___instance__4___rarg(lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_Syntax_Traverser_left(lean_object*); -lean_object* l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_throwBacktrack___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_format___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_checkInsideQuot_formatter(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_PrettyPrinter_Formatter_categoryParser_formatter___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_group(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -418,6 +417,7 @@ lean_object* l_List_forM___at_Lean_PrettyPrinter_Formatter_sepBy_formatter___spe lean_object* l_Array_forMAux___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__2; +lean_object* l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; extern lean_object* l_Lean_interpolatedStrLitKind; lean_object* l_Lean_PrettyPrinter_Formatter_andthen_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__1; @@ -5588,7 +5588,7 @@ lean_dec(x_1); return x_7; } } -uint8_t l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5600,7 +5600,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_1, x_4); +x_5 = l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_1, x_4); x_6 = l_Lean_Name_isNum(x_3); if (x_6 == 0) { @@ -5615,7 +5615,7 @@ return x_7; } } } -static lean_object* _init_l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1() { +static lean_object* _init_l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1() { _start: { lean_object* x_1; @@ -5623,7 +5623,7 @@ x_1 = lean_mk_string("«"); return x_1; } } -static lean_object* _init_l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2() { +static lean_object* _init_l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2() { _start: { lean_object* x_1; @@ -5631,7 +5631,7 @@ x_1 = lean_mk_string("»"); return x_1; } } -lean_object* l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5651,12 +5651,12 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_System_FilePath_dirName___closed__1; x_7 = l_Lean_Name_toStringWithSep(x_6, x_4); -x_8 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; +x_8 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; x_9 = lean_string_append(x_8, x_7); lean_dec(x_7); -x_10 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; +x_10 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; x_11 = lean_string_append(x_9, x_10); -x_12 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_5); +x_12 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_5); lean_ctor_set(x_1, 1, x_12); lean_ctor_set(x_1, 0, x_11); return x_1; @@ -5671,12 +5671,12 @@ lean_inc(x_13); lean_dec(x_1); x_15 = l_System_FilePath_dirName___closed__1; x_16 = l_Lean_Name_toStringWithSep(x_15, x_13); -x_17 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; +x_17 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; +x_19 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); -x_21 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_14); +x_21 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_14); x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); @@ -5762,7 +5762,7 @@ if (x_17 == 0) lean_object* x_18; uint8_t x_19; uint8_t x_20; x_18 = l_Lean_Name_components(x_13); x_19 = 0; -x_20 = l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_19, x_18); +x_20 = l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_19, x_18); lean_dec(x_18); if (x_20 == 0) { @@ -5798,9 +5798,9 @@ lean_dec(x_24); lean_dec(x_15); lean_dec(x_10); x_32 = l_Lean_Name_components(x_12); -x_33 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_32); +x_33 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_32); x_34 = lean_box(0); -x_35 = l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(x_34, x_33); +x_35 = l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(x_34, x_33); x_36 = l_Lean_Name_toStringWithSep(x_14, x_35); x_37 = l_Lean_PrettyPrinter_Formatter_pushToken(x_36, x_1, x_2, x_3, x_4, x_25); x_38 = lean_ctor_get(x_37, 1); @@ -5823,9 +5823,9 @@ if (x_41 == 0) lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_15); x_42 = l_Lean_Name_components(x_12); -x_43 = l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_42); +x_43 = l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2(x_42); x_44 = lean_box(0); -x_45 = l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(x_44, x_43); +x_45 = l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(x_44, x_43); x_46 = l_Lean_Name_toStringWithSep(x_14, x_45); x_47 = l_Lean_PrettyPrinter_Formatter_pushToken(x_46, x_1, x_2, x_3, x_4, x_25); x_48 = lean_ctor_get(x_47, 1); @@ -5927,13 +5927,13 @@ return x_69; } } } -lean_object* l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_3, x_2); +x_4 = l_List_foldr___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; @@ -8248,10 +8248,10 @@ l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__3 = _init_l_Lea lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__3); l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__4 = _init_l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__4(); lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__4); -l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1 = _init_l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1(); -lean_mark_persistent(l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1); -l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2 = _init_l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2(); -lean_mark_persistent(l_List_map___main___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2); +l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1 = _init_l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1(); +lean_mark_persistent(l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__1); +l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2 = _init_l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2(); +lean_mark_persistent(l_List_map___at_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___spec__2___closed__2); l_Lean_PrettyPrinter_Formatter_quotedSymbol_formatter___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_quotedSymbol_formatter___closed__1(); lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_quotedSymbol_formatter___closed__1); l_Lean_PrettyPrinter_format___closed__1 = _init_l_Lean_PrettyPrinter_format___closed__1(); diff --git a/stage0/stdlib/Lean/ReducibilityAttrs.c b/stage0/stdlib/Lean/ReducibilityAttrs.c index 5507140796..fe8ad2091e 100644 --- a/stage0/stdlib/Lean/ReducibilityAttrs.c +++ b/stage0/stdlib/Lean/ReducibilityAttrs.c @@ -23,8 +23,8 @@ lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__15; lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10_(lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_registerEnumAttributes___spec__10(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__12; lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__3(lean_object*, lean_object*, lean_object*); @@ -37,14 +37,11 @@ uint8_t lean_name_eq(lean_object*, lean_object*); uint8_t l_Lean_Lean_ReducibilityAttrs___instance__1; lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getReducibilityStatus___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__4; -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__5; uint8_t l_Lean_isReducible(lean_object*, lean_object*); lean_object* l_Lean_isReducible___boxed(lean_object*, lean_object*); @@ -56,7 +53,6 @@ lean_object* l_Lean_isReducible_match__1___rarg___boxed(lean_object*, lean_objec lean_object* l_Std_RBNode_find___at_Lean_getReducibilityStatus___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_isReducible_match__1___rarg(uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_getReducibilityStatus___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_reducibilityAttrs; lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__2(lean_object*, lean_object*); @@ -68,9 +64,11 @@ lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__1___lambda__2___boxed(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__1___lambda__1(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_get_reducibility_status(lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__1___closed__1; @@ -90,21 +88,25 @@ extern lean_object* l_Lean_registerTagAttribute___lambda__6___closed__2; lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getReducibilityStatus___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__1___lambda__2(lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__16; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; lean_object* l_Lean_setReducibilityStatus_match__1(lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__7; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__2; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__1; +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); lean_object* lean_set_reducibility_status(lean_object*, lean_object*, uint8_t); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__2; lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__1; lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__9; lean_object* l_Lean_EnumAttributes_setValue___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -114,13 +116,11 @@ extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____closed__6; lean_object* l_Lean_isReducible_match__1(lean_object*); lean_object* l_Lean_getReducibilityStatus_match__1(lean_object*); -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setReducibilityStatus_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_getReducibilityStatus___spec__2(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____lambda__1___boxed(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_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint8_t _init_l_Lean_Lean_ReducibilityAttrs___instance__1() { _start: { @@ -510,7 +510,7 @@ return x_36; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -567,7 +567,7 @@ return x_21; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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; @@ -586,7 +586,7 @@ if (lean_obj_tag(x_15) == 0) lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_16 = lean_box(0); -x_17 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); +x_17 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); return x_17; } else @@ -632,7 +632,7 @@ return x_27; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (x_7 == 0) @@ -678,12 +678,12 @@ else { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); +x_23 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); return x_23; } } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -705,7 +705,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_3); lean_inc(x_1); -x_9 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_8); +x_9 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_8); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 0); @@ -721,7 +721,7 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); +x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); lean_closure_set(x_15, 2, x_3); @@ -743,7 +743,7 @@ lean_inc(x_17); lean_dec(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_18); +x_19 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_18); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); x_21 = lean_ctor_get(x_17, 0); @@ -759,7 +759,7 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_21); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); +x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_3); @@ -846,7 +846,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); lean_inc(x_13); -x_15 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_3, x_4, x_13, x_2); +x_15 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_3, x_4, x_13, x_2); lean_inc(x_15); x_16 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_15, x_14); if (lean_obj_tag(x_16) == 0) @@ -1184,29 +1184,29 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); -x_12 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); return x_12; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1214,18 +1214,18 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); +x_14 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_14; } } -lean_object* l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_initFn____x40_Lean_ReducibilityAttrs___hyg_10____spec__7(x_1, x_5, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/ResolveName.c b/stage0/stdlib/Lean/ResolveName.c index 952582c788..ce4cdfbc39 100644 --- a/stage0/stdlib/Lean/ResolveName.c +++ b/stage0/stdlib/Lean/ResolveName.c @@ -39,10 +39,8 @@ extern lean_object* l_Lean_LocalContext_fvarIdToDecl___default___closed__1; extern lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2730____closed__4; lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveUsingNamespace_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); lean_object* l_Lean_aliasExtension___closed__3; uint8_t l_Std_AssocList_contains___at_Lean_addAliasEntry___spec__13(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); @@ -57,6 +55,7 @@ lean_object* l_Lean_throwUnknownConstant___rarg(lean_object*, lean_object*, lean uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope_match__1(lean_object*); lean_object* l_Lean_resolveGlobalConst___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(lean_object*, lean_object*); lean_object* l_List_toStringAux___at_Lean_resolveGlobalConstNoOverload___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_getRevAliases___spec__7(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -67,6 +66,7 @@ lean_object* l_Lean_resolveGlobalName___rarg___lambda__1___boxed(lean_object*, l lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_ResolveName___hyg_53____spec__6(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_addAliasEntry___spec__15(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f_match__2(lean_object*); lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAliases___boxed(lean_object*, lean_object*); @@ -89,7 +89,6 @@ lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveQualifiedNa lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveUsingNamespace_match__2(lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName_loop_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_ResolveName___hyg_53____spec__7(lean_object*, lean_object*); lean_object* l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(lean_object*); lean_object* l_Std_AssocList_contains___at_Lean_addAliasEntry___spec__13___boxed(lean_object*, lean_object*); @@ -100,11 +99,12 @@ lean_object* l_Lean_SMap_fold___at_Lean_getRevAliases___spec__1___rarg(lean_obje lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_SMap_fold___at_Lean_getRevAliases___spec__1(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_53____lambda__1(lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; lean_object* l_Lean_ResolveName_resolveNamespaceUsingOpenDecls_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespaceUsingOpenDecls___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseDupsAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; lean_object* l_Array_iterateMAux___at_Lean_getRevAliases___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -133,6 +133,7 @@ lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveUsingNamesp lean_object* l_Lean_ResolveName_resolveNamespaceUsingOpenDecls_match__1(lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName_loop_match__3(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_addAliasEntry___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace(lean_object*); size_t l_Lean_Name_hash(lean_object*); @@ -146,6 +147,7 @@ lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean extern lean_object* l_Init_Data_Repr___instance__15___closed__1; uint8_t l_Lean_Name_isAtomic(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveUsingNamespace(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; extern lean_object* l_Lean_persistentEnvExtensionsRef; @@ -179,11 +181,12 @@ lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_addAliasEntry___spec__4 lean_object* l_Lean_resolveGlobalConstNoOverload_match__1(lean_object*); extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; lean_object* l_Lean_resolveGlobalName___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Lean_aliasExtension___closed__1; lean_object* l_Lean_SMap_find_x3f___at_Lean_addAliasEntry___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l_String_splitAux___closed__1; lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,7 +200,6 @@ uint8_t l_USize_decLe(size_t, size_t); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(lean_object*, lean_object*); lean_object* l_Lean_aliasExtension___elambda__4(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_53_(lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_ResolveName___hyg_53____spec__2(lean_object*, lean_object*); @@ -216,14 +218,13 @@ lean_object* l_Array_iterateMAux___at_Lean_initFn____x40_Lean_ResolveName___hyg_ lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveQualifiedName___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_getRevAliases___spec__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace_match__1(lean_object*); -lean_object* l_List_eraseDupsAux___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_addAliasEntry___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; lean_object* l_Array_iterateMAux___at_Lean_getRevAliases___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___at_Lean_initFn____x40_Lean_ResolveName___hyg_53____spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_addAliasEntry___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); @@ -242,10 +243,10 @@ lean_object* l_Lean_ResolveName_resolveGlobalName_loop_match__1(lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_getRevAliases___spec__5(lean_object*); lean_object* l_Lean_addAliasEntry_match__1(lean_object*); lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_53____lambda__1___closed__2; -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_getRevAliases___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_addAliasEntry___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveOpenDecls(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Lean_Environment___instance__5___lambda__3(lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_ResolveName_resolveNamespaceUsingOpenDecls(lean_object*, lean_object*, lean_object*); @@ -263,7 +264,6 @@ lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*) lean_object* l_Lean_resolveGlobalConst___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst_match__1(lean_object*); -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(lean_object*, lean_object*); lean_object* l_Lean_getAliases_match__1___rarg(lean_object*, lean_object*, 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*); @@ -1475,7 +1475,7 @@ lean_dec(x_4); x_10 = lean_ctor_get(x_2, 1); lean_inc(x_10); lean_dec(x_2); -x_11 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_10, x_9); +x_11 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_10, x_9); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; @@ -2463,7 +2463,7 @@ lean_object* l_Lean_getRevAliases___lambda__1(lean_object* x_1, lean_object* x_2 _start: { uint8_t x_5; -x_5 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_1, x_4); +x_5 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_1, x_4); if (x_5 == 0) { lean_dec(x_3); @@ -2898,7 +2898,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); lean_dec(x_5); -x_9 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_2, x_8); +x_9 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -3119,7 +3119,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_ResolveName_resolveGlobalName_loop_match return x_2; } } -lean_object* l_List_eraseDupsAux___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_eraseDupsAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3137,7 +3137,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_5, x_2); +x_7 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_5, x_2); if (x_7 == 0) { lean_ctor_set(x_1, 1, x_2); @@ -3165,7 +3165,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(x_10, x_2); +x_12 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_10, x_2); if (x_12 == 0) { lean_object* x_13; @@ -3191,11 +3191,11 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_box(0); -x_3 = l_List_eraseDupsAux___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(x_1, x_2); +x_3 = l_List_eraseDupsAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(x_1, x_2); return x_3; } } -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3218,7 +3218,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_1, x_6); +x_8 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -3235,7 +3235,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_1, x_10); +x_12 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3244,7 +3244,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3267,7 +3267,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_1, x_6); +x_8 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -3284,7 +3284,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_1, x_10); +x_12 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3293,7 +3293,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3316,7 +3316,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_1, x_6); +x_8 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -3333,7 +3333,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_1, x_10); +x_12 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3342,7 +3342,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3365,7 +3365,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_1, x_6); +x_8 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -3382,7 +3382,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_1, x_10); +x_12 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3391,7 +3391,7 @@ return x_13; } } } -lean_object* l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -3414,7 +3414,7 @@ lean_inc(x_1); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_1); -x_8 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_1, x_6); +x_8 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -3431,7 +3431,7 @@ lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_1); -x_12 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_1, x_10); +x_12 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3512,7 +3512,7 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); x_25 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_22); -x_26 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_6, x_25); +x_26 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(x_6, x_25); return x_26; } } @@ -3545,7 +3545,7 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); x_33 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_30); -x_34 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_6, x_33); +x_34 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(x_6, x_33); return x_34; } } @@ -3584,7 +3584,7 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); x_41 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_38); -x_42 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_6, x_41); +x_42 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__5(x_6, x_41); return x_42; } } @@ -3617,7 +3617,7 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); x_49 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_46); -x_50 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_6, x_49); +x_50 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(x_6, x_49); return x_50; } } @@ -3653,7 +3653,7 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); x_55 = l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spec__1(x_14); -x_56 = l_List_map___main___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_6, x_55); +x_56 = l_List_map___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(x_6, x_55); return x_56; } } @@ -4406,7 +4406,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConst_match__1___rarg), 2, return x_2; } } -lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4479,7 +4479,7 @@ goto _start; } } } -lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object* x_1) { +lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4500,7 +4500,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_5); +x_7 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -4516,7 +4516,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_9); +x_11 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -4535,7 +4535,7 @@ lean_dec(x_1); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec(x_4); -x_6 = l_List_map___main___at_Lean_resolveGlobalConst___spec__2(x_2); +x_6 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_2); x_7 = lean_apply_2(x_5, lean_box(0), x_6); return x_7; } @@ -4545,7 +4545,7 @@ _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_8 = lean_box(0); -x_9 = l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(x_7, x_8); +x_9 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_7, x_8); lean_inc(x_9); lean_inc(x_1); x_10 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConst___rarg___lambda__1___boxed), 3, 2); @@ -4662,7 +4662,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstNoOverload_match__1___ return x_2; } } -lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4683,7 +4683,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_mkConst(x_5, x_1); -x_8 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -4698,7 +4698,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_mkConst(x_9, x_1); -x_12 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -4838,7 +4838,7 @@ x_11 = lean_string_append(x_10, x_9); lean_dec(x_9); x_12 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_13 = lean_string_append(x_11, x_12); -x_14 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_7, x_6); +x_14 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_7, x_6); x_15 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_14); x_16 = lean_string_append(x_13, x_15); lean_dec(x_15); @@ -4888,7 +4888,7 @@ x_31 = lean_string_append(x_30, x_29); lean_dec(x_29); x_32 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; x_33 = lean_string_append(x_31, x_32); -x_34 = l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(x_27, x_6); +x_34 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_27, x_6); x_35 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_34); x_36 = lean_string_append(x_33, x_35); lean_dec(x_35); diff --git a/stage0/stdlib/Lean/Scopes.c b/stage0/stdlib/Lean/Scopes.c index b51ad168e5..4586c0dbb6 100644 --- a/stage0/stdlib/Lean/Scopes.c +++ b/stage0/stdlib/Lean/Scopes.c @@ -65,12 +65,12 @@ lean_object* l_Array_iterateMAux___at_Lean_TODELETE_regScopeManagerExtension___s lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); lean_object* l_Lean_TODELETE_toValidNamespace_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TODELETE_ScopeManagerState_Lean_Scopes___instance__1___closed__1; -lean_object* l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_is_namespace(lean_object*, lean_object*); lean_object* l_Lean_TODELETE_pushScopeCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; lean_object* l_Lean_TODELETE_pushScopeCore(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_TODELETE_hasOpenScopes___boxed(lean_object*); @@ -79,6 +79,7 @@ lean_object* l_Array_iterateMAux___at_Lean_TODELETE_regScopeManagerExtension___s lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_TODELETE_regScopeManagerExtension___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_TODELETE_getScopeHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; +lean_object* l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*); extern lean_object* l_IO_Error_Init_System_IOError___instance__2___closed__1; @@ -103,7 +104,6 @@ lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_TODELETE_regScopeManage lean_object* l_Lean_TODELETE_getNamespace_match__1(lean_object*); lean_object* l_Lean_TODELETE_ScopeManagerState_Lean_Scopes___instance__1; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; -lean_object* l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_register_namespace(lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_TODELETE_scopeManagerExt___elambda__3___boxed(lean_object*, lean_object*); @@ -1035,7 +1035,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_TODELETE_toValidNamespace_match__1___rar return x_2; } } -lean_object* l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -1099,7 +1099,7 @@ x_7 = lean_box(0); x_8 = lean_ctor_get(x_4, 1); lean_inc(x_8); lean_dec(x_4); -x_9 = l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1(x_2, x_5, x_7, x_8); +x_9 = l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1(x_2, x_5, x_7, x_8); lean_dec(x_8); lean_dec(x_5); return x_9; @@ -1115,11 +1115,11 @@ return x_10; } } } -lean_object* l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_foldl___main___at_Lean_TODELETE_toValidNamespace___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_List_foldl___at_Lean_TODELETE_toValidNamespace___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_2); return x_5; diff --git a/stage0/stdlib/Lean/Server.c b/stage0/stdlib/Lean/Server.c index 392bbfa149..52b5216e7e 100644 --- a/stage0/stdlib/Lean/Server.c +++ b/stage0/stdlib/Lean/Server.c @@ -46,6 +46,7 @@ extern lean_object* l_Array_empty___closed__1; extern lean_object* l_Lean_Lsp_Lean_Data_Lsp_InitShutdown___instance__3___closed__5; lean_object* l_Lean_Server_EditableDocument_compileDocument_match__1(lean_object*); lean_object* l_Lean_Server_handleDidOpen_match__1(lean_object*); +lean_object* l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_writeLspMessage(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_EditableDocument_updateDocument___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -136,7 +137,6 @@ uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); lean_object* l_Lean_Server_EditableDocument_updateDocument_match__2___rarg(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*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__5; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Server_sendDiagnostics___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -182,6 +182,7 @@ lean_object* l_Lean_Server_writeLspResponse___at_Lean_Server_initAndRunServer___ lean_object* l_Lean_Server_initAndRunServer___closed__3; lean_object* l_Lean_Lsp_readLspRequestAs___at_Lean_Server_initAndRunServer___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_Lean_Data_Lsp_Capabilities___instance__2___closed__2; lean_object* l_Lean_Server_EditableDocument_updateDocument_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Lsp_writeLspResponse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -249,7 +250,6 @@ lean_object* l_Std_RBNode_find___at_Lean_Server_findOpenDocument___spec__1___box lean_object* l_Lean_Server_handleNotification_match__1___rarg___closed__4; lean_object* lean_nat_to_int(lean_object*); lean_object* l_Lean_Server_initAndRunServer(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_getLastD___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_Lean_Data_Lsp_InitShutdown___instance__3___closed__2; lean_object* l_Lean_Server_EditableDocument_compileDocument(lean_object*, lean_object*, lean_object*); @@ -457,7 +457,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_EditableDocument_updateDocument_m return x_2; } } -lean_object* l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -567,7 +567,7 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_16 = lean_box(0); -x_17 = l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_2, x_8, x_16); +x_17 = l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_2, x_8, x_16); lean_inc(x_17); x_18 = l_List_getLastD___rarg(x_17, x_7); x_19 = lean_ctor_get(x_4, 0); @@ -691,7 +691,7 @@ if (x_46 == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; x_47 = lean_box(0); -x_48 = l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_2, x_41, x_47); +x_48 = l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_2, x_41, x_47); lean_inc(x_48); x_49 = l_List_getLastD___rarg(x_48, x_40); x_50 = lean_ctor_get(x_4, 0); @@ -755,11 +755,11 @@ return x_62; } } } -lean_object* l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_1, x_2, x_3); +x_4 = l_List_filterAux___at_Lean_Server_EditableDocument_updateDocument___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } diff --git a/stage0/stdlib/Lean/Syntax.c b/stage0/stdlib/Lean/Syntax.c index 659fe34f4e..fd14ce808b 100644 --- a/stage0/stdlib/Lean/Syntax.c +++ b/stage0/stdlib/Lean/Syntax.c @@ -18,6 +18,7 @@ lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateLast___rarg(lean_objec lean_object* l_Lean_Syntax_isAntiquot_match__1(lean_object*); lean_object* l_Lean_Syntax_formatStxAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfoAux_match__2(lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__5(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___closed__1; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_Lean_Syntax___instance__3; @@ -29,6 +30,7 @@ lean_object* l_Lean_SyntaxNode_modifyArgs_match__1(lean_object*); lean_object* l_Lean_Syntax_isQuot_match__1___rarg___closed__1; lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateFirst_match__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___boxed(lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Syntax_reprint___closed__1; lean_object* l_Lean_Syntax_replaceM___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -59,7 +61,6 @@ lean_object* l_Lean_Syntax_MonadTraverser_goRight(lean_object*); lean_object* l_Lean_Syntax_Lean_Syntax___instance__2___closed__2; lean_object* l_Lean_Syntax_isAntiquot_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_withArgs(lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfo_match__1(lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Syntax_reprint___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___closed__7; @@ -78,7 +79,6 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux_match__2(lean_object*); lean_object* l_Lean_Syntax_setInfo_match__1(lean_object*); lean_object* l_Lean_Syntax_setAtomVal(lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_Syntax_structEq___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getArg___boxed(lean_object*, lean_object*); @@ -97,6 +97,7 @@ lean_object* l_Lean_Syntax_MonadTraverser_goDown(lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateFirst___at_Lean_Syntax_setHeadInfoAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_Lean_Syntax___instance__1(lean_object*); lean_object* l_Lean_Syntax_modifyArgs_match__1(lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__4(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailWithPos_match__1(lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateLeadingAux_match__1(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -126,10 +127,10 @@ lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateFirst_match__2(lean_ob lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getKind___boxed(lean_object*); lean_object* l_Lean_Syntax_Lean_Syntax___instance__3___closed__1; -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_isEqvAux___at_Lean_Syntax_structEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfoAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Init_Data_Repr___instance__7___rarg___closed__2; lean_object* l_Lean_Syntax_formatStxAux___closed__5; lean_object* l_Lean_Syntax_updateTrailing(lean_object*, lean_object*); @@ -137,6 +138,7 @@ extern lean_object* l_Lean_numLitKind; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_formatInfo___closed__1; lean_object* l_Lean_Syntax_setHeadInfoAux_match__1(lean_object*); +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Syntax_replaceM_match__2(lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_formatInfo___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getIdx(lean_object*); @@ -148,8 +150,7 @@ lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_goDown___rarg(lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getKind_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailWithPos_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_unreachIsNodeMissing(lean_object*, lean_object*); @@ -180,7 +181,6 @@ lean_object* l_Lean_Syntax_replaceM_match__1___rarg(lean_object*, lean_object*, extern lean_object* l_Lean_formatDataValue___closed__4; lean_object* l_Lean_Syntax_formatStx(lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_reprintLeaf(lean_object*, lean_object*); -uint8_t l_List_beq___main___at_Lean_Syntax_structEq___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_setCur___rarg(lean_object*, lean_object*); lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getAtomVal_x21_match__1(lean_object*); @@ -203,10 +203,10 @@ lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__1___boxed(lean_o lean_object* l_Lean_unreachIsNodeIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateFirst_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Substring_beq(lean_object*, lean_object*); -lean_object* l_List_beq___main___at_Lean_Syntax_structEq___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_modifyArg_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArgs_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_formatInfo_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getAtomVal_x21___closed__3; @@ -220,9 +220,9 @@ lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2___boxed(lean_o lean_object* l_Lean_SyntaxNode_getNumArgs___boxed(lean_object*); lean_object* l_Lean_Format_joinSep___at_Lean_Syntax_formatStxAux___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_unsetTrailing_match__1(lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_sbracket___closed__3; lean_object* l_Lean_Syntax_replaceM___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__3(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_Traverser_fromSyntax(lean_object*); lean_object* l_Lean_unreachIsNodeAtom(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_replaceM_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -240,7 +240,6 @@ lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Lean_Syntax_Traverser_down(lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_withArgs_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_updateTrailing_match__1(lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getIdx___rarg___lambda__1(lean_object*, lean_object*); uint8_t l_Array_isEqvAux___at_Lean_Syntax_structEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); @@ -263,14 +262,14 @@ extern lean_object* l_Lean_Init_LeanInit___instance__8___closed__1; lean_object* l_Lean_SyntaxNode_modifyArgs_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfo_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__2; -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_goUp___rarg___closed__1; lean_object* l_Lean_unreachIsNodeAtom___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_replaceInfo_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateLeadingAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getIdx___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__1(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__4; +lean_object* l_List_beq___at_Lean_Syntax_structEq___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* lean_mk_syntax_atom(lean_object*); @@ -283,16 +282,15 @@ lean_object* l_Lean_Syntax_setInfo(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Syntax_reprint___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_formatInfo(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_goDown___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_List_beq___at_Lean_Syntax_structEq___spec__3___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Syntax_MonadTraverser_goUp___rarg___lambda__1(lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getIdAt___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Lean_Syntax_reprint___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailInfo(lean_object*); lean_object* l_Lean_Syntax_setArgs_match__1(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* lean_array_pop(lean_object*); -lean_object* l_List_beq___main___at_Lean_Syntax_structEq___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_ifNode_match__1(lean_object*); lean_object* l_Lean_Syntax_unsetTrailing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateLeadingAux(lean_object*, lean_object*); @@ -304,6 +302,7 @@ lean_object* l_Lean_Syntax_getTailInfo___boxed(lean_object*); extern lean_object* l_Lean_Lean_Data_Format___instance__20___closed__1; lean_object* l_Lean_Syntax_replaceInfo_match__1(lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_setCur___rarg___lambda__1(lean_object*, lean_object*); +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_syntax_str_lit(lean_object*); lean_object* l_Lean_mkStxLit(lean_object*, lean_object*, lean_object*); @@ -322,6 +321,7 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___closed__6; lean_object* l_Lean_Syntax_replaceM___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getAtomVal_x21(lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_ifNodeKind___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_Lean_SyntaxNode_getKind_match__1(lean_object*); @@ -341,7 +341,6 @@ lean_object* l_Lean_SyntaxNode_getArg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); lean_object* l_Lean_Syntax_setHeadInfoAux(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_getCur___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_Syntax_ifNodeKind_match__1(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -349,6 +348,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Syntax_MonadTraverser_goLeft(lean_object*); lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateFirst_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint_match__1(lean_object*); +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__6(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_updateTrailing(lean_object* x_1, lean_object* x_2) { _start: { @@ -5886,7 +5886,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_formatStxAux_match__1___rarg), 6, return x_2; } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -5910,7 +5910,7 @@ x_10 = lean_nat_add(x_3, x_9); lean_inc(x_1); x_11 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_10, x_7); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_8); +x_12 = l_List_map___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_12); lean_ctor_set(x_4, 0, x_11); return x_4; @@ -5928,7 +5928,7 @@ x_16 = lean_nat_add(x_3, x_15); lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_16, x_13); lean_dec(x_16); -x_18 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_14); +x_18 = l_List_map___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_14); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -5977,7 +5977,7 @@ return x_9; } } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6001,7 +6001,7 @@ x_10 = lean_nat_add(x_3, x_9); lean_inc(x_1); x_11 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_10, x_7); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_8); +x_12 = l_List_map___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_12); lean_ctor_set(x_4, 0, x_11); return x_4; @@ -6019,7 +6019,7 @@ x_16 = lean_nat_add(x_3, x_15); lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_16, x_13); lean_dec(x_16); -x_18 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_14); +x_18 = l_List_map___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_14); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -6028,7 +6028,7 @@ return x_19; } } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6052,7 +6052,7 @@ x_10 = lean_nat_add(x_3, x_9); lean_inc(x_1); x_11 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_10, x_7); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_8); +x_12 = l_List_map___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_12); lean_ctor_set(x_4, 0, x_11); return x_4; @@ -6070,7 +6070,7 @@ x_16 = lean_nat_add(x_3, x_15); lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_16, x_13); lean_dec(x_16); -x_18 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_14); +x_18 = l_List_map___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_14); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -6079,7 +6079,7 @@ return x_19; } } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6103,7 +6103,7 @@ x_10 = lean_nat_add(x_3, x_9); lean_inc(x_1); x_11 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_10, x_7); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_8); +x_12 = l_List_map___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_12); lean_ctor_set(x_4, 0, x_11); return x_4; @@ -6121,7 +6121,7 @@ x_16 = lean_nat_add(x_3, x_15); lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_16, x_13); lean_dec(x_16); -x_18 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_14); +x_18 = l_List_map___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_14); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -6130,7 +6130,7 @@ return x_19; } } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__6(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6154,7 +6154,7 @@ x_10 = lean_nat_add(x_3, x_9); lean_inc(x_1); x_11 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_10, x_7); lean_dec(x_10); -x_12 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_8); +x_12 = l_List_map___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_12); lean_ctor_set(x_4, 0, x_11); return x_4; @@ -6172,7 +6172,7 @@ x_16 = lean_nat_add(x_3, x_15); lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_1, x_2, x_16, x_13); lean_dec(x_16); -x_18 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_14); +x_18 = l_List_map___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_14); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -6320,7 +6320,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean lean_dec(x_9); x_49 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_50 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_49); +x_50 = l_List_map___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_2, x_3, x_49); x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_17); lean_ctor_set(x_51, 1, x_50); @@ -6373,7 +6373,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; x_23 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_24 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_23); +x_24 = l_List_map___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_2, x_3, x_23); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_17); lean_ctor_set(x_25, 1, x_24); @@ -6444,7 +6444,7 @@ lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean lean_dec(x_9); x_66 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_67 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_66); +x_67 = l_List_map___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_2, x_3, x_66); x_68 = lean_box(1); x_69 = l_Lean_Format_joinSep___at_Lean_Syntax_formatStxAux___spec__2(x_67, x_68); lean_dec(x_67); @@ -6478,7 +6478,7 @@ if (x_78 == 0) lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; x_79 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_80 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_79); +x_80 = l_List_map___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_2, x_3, x_79); x_81 = lean_box(1); x_82 = l_Lean_Format_joinSep___at_Lean_Syntax_formatStxAux___spec__2(x_80, x_81); lean_dec(x_80); @@ -6521,7 +6521,7 @@ if (x_93 == 0) lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; x_94 = l_Array_toList___rarg(x_7); lean_dec(x_7); -x_95 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_94); +x_95 = l_List_map___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_2, x_3, x_94); x_96 = lean_box(1); x_97 = l_Lean_Format_joinSep___at_Lean_Syntax_formatStxAux___spec__2(x_95, x_96); lean_dec(x_95); @@ -6594,13 +6594,13 @@ return x_119; } } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Syntax_formatStxAux___spec__1(x_1, x_5, x_3, x_4); lean_dec(x_3); return x_6; } @@ -6614,46 +6614,46 @@ lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Syntax_formatStxAux___spec__3(x_1, x_5, x_3, x_4); lean_dec(x_3); return x_6; } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Syntax_formatStxAux___spec__4(x_1, x_5, x_3, x_4); lean_dec(x_3); return x_6; } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Syntax_formatStxAux___spec__5(x_1, x_5, x_3, x_4); lean_dec(x_3); return x_6; } } -lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___at_Lean_Syntax_formatStxAux___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); -x_6 = l_List_map___main___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_5, x_3, x_4); +x_6 = l_List_map___at_Lean_Syntax_formatStxAux___spec__6(x_1, x_5, x_3, x_4); lean_dec(x_3); return x_6; } @@ -6914,7 +6914,7 @@ goto _start; } } } -uint8_t l_List_beq___main___at_Lean_Syntax_structEq___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6964,7 +6964,7 @@ goto _start; } } } -uint8_t l_List_beq___main___at_Lean_Syntax_structEq___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7011,7 +7011,7 @@ return x_15; else { uint8_t x_16; -x_16 = l_List_beq___main___at_Lean_Syntax_structEq___spec__3(x_11, x_13); +x_16 = l_List_beq___at_Lean_Syntax_structEq___spec__3(x_11, x_13); if (x_16 == 0) { uint8_t x_17; @@ -7142,7 +7142,7 @@ return x_31; else { uint8_t x_32; -x_32 = l_List_beq___main___at_Lean_Syntax_structEq___spec__2(x_24, x_27); +x_32 = l_List_beq___at_Lean_Syntax_structEq___spec__2(x_24, x_27); return x_32; } } @@ -7170,22 +7170,22 @@ x_8 = lean_box(x_7); return x_8; } } -lean_object* l_List_beq___main___at_Lean_Syntax_structEq___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_beq___at_Lean_Syntax_structEq___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_beq___main___at_Lean_Syntax_structEq___spec__3(x_1, x_2); +x_3 = l_List_beq___at_Lean_Syntax_structEq___spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_beq___main___at_Lean_Syntax_structEq___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_beq___at_Lean_Syntax_structEq___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_beq___main___at_Lean_Syntax_structEq___spec__2(x_1, x_2); +x_3 = l_List_beq___at_Lean_Syntax_structEq___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); diff --git a/stage0/stdlib/Lean/Util/CollectFVars.c b/stage0/stdlib/Lean/Util/CollectFVars.c index af04c35bea..0345730139 100644 --- a/stage0/stdlib/Lean/Util/CollectFVars.c +++ b/stage0/stdlib/Lean/Util/CollectFVars.c @@ -15,26 +15,27 @@ extern "C" { #endif lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_List_elem___main___at_Lean_CollectFVars_visit___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_State_fvarSet___default; lean_object* l_Lean_collectFVars(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_CollectFVars_main_match__1(lean_object*); +lean_object* l_List_foldl___at_Lean_CollectFVars_visit___spec__6(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_CollectFVars_visit___spec__6(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectFVars_visit___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_Lean_Util_CollectFVars___instance__1___closed__1; lean_object* l_Lean_CollectFVars_Lean_Util_CollectFVars___instance__1; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_CollectFVars_visit___spec__2(lean_object*, lean_object*); size_t l_Lean_Expr_hash(lean_object*); +lean_object* l_List_elem___at_Lean_CollectFVars_visit___spec__2___boxed(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l_Lean_NameSet_empty; +lean_object* l_List_replace___at_Lean_CollectFVars_visit___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_visit(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -42,13 +43,12 @@ lean_object* l_Std_HashSetImp_expand___at_Lean_CollectFVars_visit___spec__4(lean extern lean_object* l_Std_HashSet_Std_Data_HashSet___instance__1___closed__1; lean_object* l_Lean_CollectFVars_State_visitedExpr___default; lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_CollectFVars_visit___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at_Lean_CollectFVars_visit___spec__3(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_moveEntries___at_Lean_CollectFVars_visit___spec__5(lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_CollectFVars_visit___spec__1(lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); +lean_object* l_List_replace___at_Lean_CollectFVars_visit___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_CollectFVars_State_visitedExpr___default___spec__1(lean_object*); lean_object* l_Lean_CollectFVars_State_visitedExpr___default___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -105,7 +105,7 @@ x_1 = l_Lean_CollectFVars_Lean_Util_CollectFVars___instance__1___closed__1; return x_1; } } -uint8_t l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_CollectFVars_visit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -144,12 +144,12 @@ x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(x_2, x_7); +x_8 = l_List_elem___at_Lean_CollectFVars_visit___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_List_foldl___main___at_Lean_CollectFVars_visit___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_CollectFVars_visit___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -219,7 +219,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Lean_CollectFVars_visit___spec__6(x_3, x_6); +x_9 = l_List_foldl___at_Lean_CollectFVars_visit___spec__6(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -248,64 +248,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectFVars_visit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_expr_eqv(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_CollectFVars_visit___spec__7(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_eqv(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_expr_eqv(x_9, x_2); -if (x_11 == 0) +x_12 = lean_expr_eqv(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_CollectFVars_visit___spec__7(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -325,7 +327,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Expr_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_CollectFVars_visit___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -357,7 +359,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(x_9, x_2, x_2); +x_17 = l_List_replace___at_Lean_CollectFVars_visit___spec__7(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -376,7 +378,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Expr_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Lean_CollectFVars_visit___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -409,7 +411,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(x_24, x_2, x_2); +x_33 = l_List_replace___at_Lean_CollectFVars_visit___spec__7(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -480,11 +482,11 @@ return x_3; } } } -lean_object* l_List_elem___main___at_Lean_CollectFVars_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_CollectFVars_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_CollectFVars_visit___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Lean_CollectFVars_visit___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -502,11 +504,11 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Lean_CollectFVars_visit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectFVars_visit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Lean_CollectFVars_visit___spec__7(x_1, x_2, x_3); +x_4 = l_List_replace___at_Lean_CollectFVars_visit___spec__7(x_1, x_2, x_3); lean_dec(x_2); return x_4; } diff --git a/stage0/stdlib/Lean/Util/CollectLevelParams.c b/stage0/stdlib/Lean/Util/CollectLevelParams.c index f13105dfb1..655bb8a7b1 100644 --- a/stage0/stdlib/Lean/Util/CollectLevelParams.c +++ b/stage0/stdlib/Lean/Util/CollectLevelParams.c @@ -13,14 +13,16 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_State_params___default; lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_CollectLevelParams_visitLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_collect(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2___boxed(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; size_t l_Lean_Level_hash(lean_object*); +lean_object* l_List_foldl___at_Lean_CollectLevelParams_visitLevel___spec__6(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_CollectLevelParams_State_visitedLevel___default___closed__1; @@ -28,21 +30,22 @@ lean_object* l_Lean_CollectLevelParams_State_collect(lean_object*, lean_object*) uint8_t l_Lean_Level_hasParam(lean_object*); lean_object* l_Lean_CollectLevelParams_State_visitedLevel___default; lean_object* l_Std_mkHashSetImp___rarg(lean_object*); -uint8_t l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_CollectLevelParams_main___spec__1(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at_Lean_CollectLevelParams_visitLevel___spec__3(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam_loop(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_main___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLevelParam(lean_object*); lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam___boxed(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main_match__1(lean_object*); lean_object* l_Lean_CollectLevelParams_visitExpr(lean_object*, lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectLevelParams_visitLevel___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_CollectLevelParams_State_visitedExpr___default___spec__1(lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_CollectLevelParams_visitLevel___spec__1(lean_object*, lean_object*); @@ -50,30 +53,27 @@ lean_object* l_Lean_CollectLevelParams_main_match__1___rarg(lean_object*, lean_o lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam_loop___boxed(lean_object*, lean_object*, lean_object*); size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Std_HashSetImp_expand___at_Lean_CollectLevelParams_visitLevel___spec__4(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_CollectLevelParams_visitExpr___spec__6(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Std_HashSetImp_moveEntries___at_Lean_CollectLevelParams_visitExpr___spec__5(lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_expand___at_Lean_CollectLevelParams_visitExpr___spec__4(lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Std_Data_HashSet___instance__1___closed__1; lean_object* l_Lean_CollectLevelParams_collect_match__1(lean_object*); lean_object* l_Std_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_State_visitedExpr___default___closed__1; lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectLevelParams_visitExpr___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_visitLevel___spec__6(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_State_visitedExpr___default; -lean_object* l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_visitExpr___spec__6(lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___instance__1___closed__1; lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Lean_collectLevelParams(lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_collect_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___instance__1; lean_object* l_Std_HashSetImp_moveEntries___at_Lean_CollectLevelParams_visitLevel___spec__5(lean_object*, lean_object*, lean_object*); @@ -159,7 +159,7 @@ x_1 = l_Lean_CollectLevelParams_Lean_Util_CollectLevelParams___instance__1___clo return x_1; } } -uint8_t l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -198,12 +198,12 @@ x_5 = l_Lean_Level_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_7); +x_8 = l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_visitLevel___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_CollectLevelParams_visitLevel___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -273,7 +273,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Lean_CollectLevelParams_visitLevel___spec__6(x_3, x_6); +x_9 = l_List_foldl___at_Lean_CollectLevelParams_visitLevel___spec__6(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -302,64 +302,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_level_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_level_eq(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_level_eq(x_9, x_2); -if (x_11 == 0) +x_12 = lean_level_eq(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -379,7 +381,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Level_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -411,7 +413,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(x_9, x_2, x_2); +x_17 = l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -430,7 +432,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Level_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -463,7 +465,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(x_24, x_2, x_2); +x_33 = l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -540,11 +542,11 @@ return x_3; } } } -lean_object* l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_CollectLevelParams_visitLevel___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -562,11 +564,11 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Lean_CollectLevelParams_visitLevel___spec__7(x_1, x_2, x_3); +x_4 = l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -1087,7 +1089,7 @@ return x_2; } } } -uint8_t l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1126,12 +1128,12 @@ x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_7); +x_8 = l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_visitExpr___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_CollectLevelParams_visitExpr___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1201,7 +1203,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Lean_CollectLevelParams_visitExpr___spec__6(x_3, x_6); +x_9 = l_List_foldl___at_Lean_CollectLevelParams_visitExpr___spec__6(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -1230,64 +1232,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_expr_eqv(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_eqv(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_expr_eqv(x_9, x_2); -if (x_11 == 0) +x_12 = lean_expr_eqv(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -1307,7 +1311,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Expr_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -1339,7 +1343,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(x_9, x_2, x_2); +x_17 = l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -1358,7 +1362,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Expr_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -1391,7 +1395,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(x_24, x_2, x_2); +x_33 = l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -1468,11 +1472,11 @@ return x_3; } } } -lean_object* l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Lean_CollectLevelParams_visitExpr___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -1490,11 +1494,11 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Lean_CollectLevelParams_visitExpr___spec__7(x_1, x_2, x_3); +x_4 = l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -1704,7 +1708,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_CollectLevelParams_main_match__1___rarg) return x_2; } } -lean_object* l_List_foldl___main___at_Lean_CollectLevelParams_main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_CollectLevelParams_main___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1861,7 +1865,7 @@ lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_1, 1); lean_inc(x_18); lean_dec(x_1); -x_19 = l_List_foldl___main___at_Lean_CollectLevelParams_main___spec__1(x_2, x_18); +x_19 = l_List_foldl___at_Lean_CollectLevelParams_main___spec__1(x_2, x_18); return x_19; } case 5: diff --git a/stage0/stdlib/Lean/Util/CollectMVars.c b/stage0/stdlib/Lean/Util/CollectMVars.c index 2c816a3dd6..9e15f9adcb 100644 --- a/stage0/stdlib/Lean/Util/CollectMVars.c +++ b/stage0/stdlib/Lean/Util/CollectMVars.c @@ -16,7 +16,6 @@ extern "C" { lean_object* l_Lean_CollectMVars_visit(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_List_foldl___main___at_Lean_CollectMVars_visit___spec__6(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -26,28 +25,29 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_State_visitedExpr___default___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_CollectMVars_State_visitedExpr___default___spec__1(lean_object*); lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_main_match__1(lean_object*); size_t l_Lean_Expr_hash(lean_object*); +lean_object* l_List_replace___at_Lean_CollectMVars_visit___spec__7(lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); -lean_object* l_List_elem___main___at_Lean_CollectMVars_visit___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_main_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_CollectMVars_visit___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_CollectMVars_visit___spec__6(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_CollectMVars_visit___spec__2___boxed(lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); extern lean_object* l_Std_HashSet_Std_Data_HashSet___instance__1___closed__1; lean_object* lean_nat_mul(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_CollectMVars_visit___spec__2(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_expand___at_Lean_CollectMVars_visit___spec__4(lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_moveEntries___at_Lean_CollectMVars_visit___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_State_visitedExpr___default; -lean_object* l_List_replace___main___at_Lean_CollectMVars_visit___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_State_result___default; lean_object* l_Lean_CollectMVars_Lean_Util_CollectMVars___instance__1___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -105,7 +105,7 @@ x_1 = l_Lean_CollectMVars_Lean_Util_CollectMVars___instance__1___closed__1; return x_1; } } -uint8_t l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_CollectMVars_visit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -144,12 +144,12 @@ x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(x_2, x_7); +x_8 = l_List_elem___at_Lean_CollectMVars_visit___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_List_foldl___main___at_Lean_CollectMVars_visit___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_CollectMVars_visit___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -219,7 +219,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Lean_CollectMVars_visit___spec__6(x_3, x_6); +x_9 = l_List_foldl___at_Lean_CollectMVars_visit___spec__6(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -248,64 +248,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectMVars_visit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_expr_eqv(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_CollectMVars_visit___spec__7(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_eqv(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_expr_eqv(x_9, x_2); -if (x_11 == 0) +x_12 = lean_expr_eqv(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_CollectMVars_visit___spec__7(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -325,7 +327,7 @@ x_6 = lean_array_get_size(x_5); x_7 = l_Lean_Expr_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_CollectMVars_visit___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -357,7 +359,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(x_9, x_2, x_2); +x_17 = l_List_replace___at_Lean_CollectMVars_visit___spec__7(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -376,7 +378,7 @@ x_21 = lean_array_get_size(x_20); x_22 = l_Lean_Expr_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Lean_CollectMVars_visit___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -409,7 +411,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(x_24, x_2, x_2); +x_33 = l_List_replace___at_Lean_CollectMVars_visit___spec__7(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -480,11 +482,11 @@ return x_3; } } } -lean_object* l_List_elem___main___at_Lean_CollectMVars_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_CollectMVars_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_CollectMVars_visit___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Lean_CollectMVars_visit___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -502,11 +504,11 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Lean_CollectMVars_visit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Lean_CollectMVars_visit___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Lean_CollectMVars_visit___spec__7(x_1, x_2, x_3); +x_4 = l_List_replace___at_Lean_CollectMVars_visit___spec__7(x_1, x_2, x_3); lean_dec(x_2); return x_4; } diff --git a/stage0/stdlib/Lean/Util/Path.c b/stage0/stdlib/Lean/Util/Path.c index 60bf3c2ecb..8057561297 100644 --- a/stage0/stdlib/Lean/Util/Path.c +++ b/stage0/stdlib/Lean/Util/Path.c @@ -52,6 +52,7 @@ lean_object* lean_io_realpath(lean_object*, lean_object*); lean_object* l_List_findM_x3f___at_Lean_findOLean___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_modPathToFilePath___closed__1; lean_object* l_System_FilePath_dirName(lean_object*); +lean_object* l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(lean_object*, lean_object*); lean_object* l_System_FilePath_normalizePath(lean_object*); lean_object* l_Lean_getBuiltinSearchPath___closed__5; lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -76,7 +77,6 @@ lean_object* l_Lean_addSearchPathFromEnv_match__1(lean_object*); lean_object* l_IO_isDir___at_Lean_findOLean___spec__1(lean_object*, lean_object*); lean_object* l_Lean_findOLean___closed__1; uint8_t l_UInt32_decEq(uint32_t, uint32_t); -lean_object* l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(lean_object*, lean_object*); lean_object* l_Lean_findOLean___boxed(lean_object*, lean_object*); extern lean_object* l_String_splitAux___closed__1; uint8_t l_String_isPrefixOf(lean_object*, lean_object*); @@ -1286,7 +1286,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_moduleNameOfFileName_match__2___rarg), 3 return x_2; } } -lean_object* l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1393,7 +1393,7 @@ lean_dec(x_6); x_22 = l___private_Lean_Util_Path_0__Lean_pathSep; x_23 = l_String_splitOn(x_21, x_22); x_24 = lean_box(0); -x_25 = l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(x_24, x_23); +x_25 = l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(x_24, x_23); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_4); @@ -1435,7 +1435,7 @@ lean_dec(x_28); x_38 = l___private_Lean_Util_Path_0__Lean_pathSep; x_39 = l_String_splitOn(x_37, x_38); x_40 = lean_box(0); -x_41 = l_List_foldl___main___at_Lean_moduleNameOfFileName___spec__1(x_40, x_39); +x_41 = l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(x_40, x_39); x_42 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_4); diff --git a/stage0/stdlib/Lean/Util/ReplaceLevel.c b/stage0/stdlib/Lean/Util/ReplaceLevel.c index 2a3c0ff905..3a3b1b6b43 100644 --- a/stage0/stdlib/Lean/Util/ReplaceLevel.c +++ b/stage0/stdlib/Lean/Util/ReplaceLevel.c @@ -30,8 +30,10 @@ lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___boxed(lean_obje lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___closed__4; size_t l_Lean_Expr_ReplaceLevelImpl_cacheSize; lean_object* l_Lean_Level_replace_match__2(lean_object*); +lean_object* l_List_map___at_Lean_Expr_replaceLevel___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkLevelIMax(lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_0__Lean_eraseMacroScopesAux___closed__3; +lean_object* l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Level_replace_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit_match__1(lean_object*); lean_object* l_Lean_mkLevelMax(lean_object*, lean_object*); @@ -45,7 +47,6 @@ uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_Level_replace(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Expr_replaceLevel(lean_object*, lean_object*); @@ -57,7 +58,6 @@ lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_initCache; lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___closed__3; lean_object* lean_mk_array(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Lean_Expr___instance__11___closed__1; @@ -511,7 +511,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_vis return x_2; } } -lean_object* l_List_map___main___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -532,7 +532,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Level_replace(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -547,7 +547,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Level_replace(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -645,7 +645,7 @@ x_22 = lean_ctor_get(x_3, 1); lean_inc(x_22); x_23 = lean_ctor_get_uint64(x_3, sizeof(void*)*2); lean_inc(x_22); -x_24 = l_List_map___main___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_22); +x_24 = l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(x_1, x_22); x_25 = lean_alloc_ctor(4, 2, 8); lean_ctor_set(x_25, 0, x_21); lean_ctor_set(x_25, 1, x_22); @@ -1450,7 +1450,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Expr_replaceLevel_match__1___rarg), 10, return x_2; } } -lean_object* l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___at_Lean_Expr_replaceLevel___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1471,7 +1471,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); lean_inc(x_1); x_7 = l_Lean_Level_replace(x_1, x_5); -x_8 = l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(x_1, x_6); +x_8 = l_List_map___at_Lean_Expr_replaceLevel___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -1486,7 +1486,7 @@ lean_inc(x_9); lean_dec(x_2); lean_inc(x_1); x_11 = l_Lean_Level_replace(x_1, x_9); -x_12 = l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(x_1, x_10); +x_12 = l_List_map___at_Lean_Expr_replaceLevel___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1537,7 +1537,7 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_2, 1); lean_inc(x_13); -x_14 = l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(x_1, x_13); +x_14 = l_List_map___at_Lean_Expr_replaceLevel___spec__1(x_1, x_13); x_15 = lean_expr_update_const(x_2, x_14); return x_15; } @@ -1551,7 +1551,7 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_2); lean_inc(x_17); -x_19 = l_List_map___main___at_Lean_Expr_replaceLevel___spec__1(x_1, x_17); +x_19 = l_List_map___at_Lean_Expr_replaceLevel___spec__1(x_1, x_17); x_20 = lean_alloc_ctor(4, 2, 8); lean_ctor_set(x_20, 0, x_16); lean_ctor_set(x_20, 1, x_17); diff --git a/stage0/stdlib/Std/Data/BinomialHeap.c b/stage0/stdlib/Std/Data/BinomialHeap.c index aae1b232f0..96ca86d023 100644 --- a/stage0/stdlib/Std/Data/BinomialHeap.c +++ b/stage0/stdlib/Std/Data/BinomialHeap.c @@ -25,9 +25,9 @@ lean_object* l_Std_BinomialHeap_head___rarg___boxed(lean_object*, lean_object*, lean_object* l_Std_BinomialHeapImp_findMin_match__1(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_findMin(lean_object*); lean_object* l_Std_BinomialHeapImp_head_x3f(lean_object*); +lean_object* l_List_foldl___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_mergeNodes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_head_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2(lean_object*); lean_object* l_Std_BinomialHeapImp_isEmpty___rarg___boxed(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_insert(lean_object*); @@ -40,6 +40,7 @@ lean_object* l_Std_BinomialHeapImp_mergeNodes(lean_object*); lean_object* l_Std_BinomialHeap_head___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_isEmpty_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_findMin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1(lean_object*); lean_object* l_Std_BinomialHeap_insert___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_head_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Std_BinomialHeapImp_isEmpty___rarg(lean_object*); @@ -67,10 +68,7 @@ lean_object* l_Std_BinomialHeap_merge___rarg(lean_object*, lean_object*, lean_ob lean_object* l_Std_BinomialHeap_head(lean_object*); lean_object* l_Std_BinomialHeapImp_toList(lean_object*); lean_object* l_Std_BinomialHeap_tail_match__1___rarg(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1(lean_object*); lean_object* l_Std_BinomialHeapImp_merge_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_Std_Data_BinomialHeap___instance__1(lean_object*); lean_object* l_Std_BinomialHeapImp_findMin_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_singleton(lean_object*, lean_object*); @@ -81,7 +79,6 @@ lean_object* l_Std_mkBinomialHeap___boxed(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_tail_match__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_head___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_toList_match__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_eraseIdx___main___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_tail_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_isEmpty_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_tail_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -91,6 +88,7 @@ lean_object* l_Std_BinomialHeapImp_toList_match__2(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_merge_match__1(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_head_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_merge_match__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_toList___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_toList_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_hRank(lean_object*); @@ -102,13 +100,15 @@ lean_object* l_Std_BinomialHeap_tail___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_hRank___rarg___boxed(lean_object*); lean_object* l_Std_BinomialHeapImp_head_x3f___rarg(lean_object*, lean_object*); lean_object* l_Std_mkBinomialHeap(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2(lean_object*); +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_isEmpty___boxed(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_isEmpty___rarg___boxed(lean_object*); lean_object* l_Std_BinomialHeap_merge(lean_object*); lean_object* l_Std_BinomialHeap_empty(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_merge_match__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_combine(lean_object*); -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_tail___rarg(lean_object*, lean_object*); lean_object* l_Std_BinomialHeap_head_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_BinomialHeapImp_singleton___rarg(lean_object*); @@ -975,7 +975,7 @@ lean_dec(x_2); x_5 = lean_alloc_closure((void*)(l_Std_BinomialHeapImp_head_x3f___rarg___lambda__1), 3, 1); lean_closure_set(x_5, 0, x_1); x_6 = lean_box(0); -x_7 = l_List_foldl___main___rarg(x_5, x_6, x_4); +x_7 = l_List_foldl___rarg(x_5, x_6, x_4); return x_7; } } @@ -1096,7 +1096,7 @@ lean_closure_set(x_7, 0, x_2); x_8 = lean_ctor_get(x_5, 0); lean_inc(x_8); lean_dec(x_5); -x_9 = l_List_foldl___main___rarg(x_7, x_8, x_6); +x_9 = l_List_foldl___rarg(x_7, x_8, x_6); return x_9; } } @@ -1390,7 +1390,7 @@ x_3 = lean_alloc_closure((void*)(l_Std_BinomialHeapImp_tail_match__3___rarg), 5, return x_3; } } -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1414,15 +1414,15 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1(lean_object* x_1) { +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1___rarg), 3, 0); return x_2; } } -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1446,11 +1446,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2(lean_object* x_1) { +lean_object* l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2___rarg), 3, 0); return x_2; } } @@ -1510,7 +1510,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); lean_dec(x_9); -x_13 = l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1___rarg(x_1, x_11, x_12); +x_13 = l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1___rarg(x_1, x_11, x_12); return x_13; } } @@ -1531,13 +1531,13 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_List_eraseIdx___main___rarg(x_5, x_20); +x_21 = l_List_eraseIdx___rarg(x_5, x_20); lean_dec(x_20); lean_ctor_set(x_2, 0, x_21); x_22 = lean_ctor_get(x_19, 2); lean_inc(x_22); lean_dec(x_19); -x_23 = l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2___rarg(x_1, x_2, x_22); +x_23 = l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2___rarg(x_1, x_2, x_22); return x_23; } } @@ -1584,7 +1584,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_28, 1); lean_inc(x_31); lean_dec(x_28); -x_32 = l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__1___rarg(x_1, x_30, x_31); +x_32 = l_List_foldl___at_Std_BinomialHeapImp_tail___spec__1___rarg(x_1, x_30, x_31); return x_32; } } @@ -1605,14 +1605,14 @@ lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); -x_40 = l_List_eraseIdx___main___rarg(x_24, x_39); +x_40 = l_List_eraseIdx___rarg(x_24, x_39); lean_dec(x_39); x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_40); x_42 = lean_ctor_get(x_38, 2); lean_inc(x_42); lean_dec(x_38); -x_43 = l_List_foldl___main___at_Std_BinomialHeapImp_tail___spec__2___rarg(x_1, x_41, x_42); +x_43 = l_List_foldl___at_Std_BinomialHeapImp_tail___spec__2___rarg(x_1, x_41, x_42); return x_43; } } diff --git a/stage0/stdlib/Std/Data/HashSet.c b/stage0/stdlib/Std/Data/HashSet.c index 6328ad7911..56a5daccf3 100644 --- a/stage0/stdlib/Std/Data/HashSet.c +++ b/stage0/stdlib/Std/Data/HashSet.c @@ -15,7 +15,6 @@ extern "C" { #endif lean_object* l_Std_HashSet_numBuckets___rarg(lean_object*); lean_object* l_Std_HashSetImp_insert_match__2___rarg(lean_object*, lean_object*); -lean_object* l_List_erase___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_contains___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_Std_Data_HashSet___instance__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSetImp_foldBuckets___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -28,7 +27,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Std_HashSet_fold_match__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_foldBucketsM(lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_find_x3f(lean_object*); lean_object* l_Std_HashSetImp_reinsertAux_match__1___rarg(size_t, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -37,8 +35,10 @@ lean_object* l_Std_HashSetImp_reinsertAux___rarg(lean_object*, lean_object*, lea lean_object* l_Array_iterateMAux___at_Std_HashSet_toArray___spec__2(lean_object*); uint8_t l_Std_HashSetImp_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l_List_replace___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_foldM_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_reinsertAux_match__1___rarg___boxed(lean_object*, lean_object*); +uint8_t l_List_elem___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSetImp_foldBucketsM___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSetImp_foldBuckets___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSet_toList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -50,13 +50,13 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_HashSet_foldM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp(lean_object*); lean_object* l_List_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Std_HashSet_fold___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_contains_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); +lean_object* l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1(lean_object*); lean_object* l_Std_HashSet_size_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_foldM_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert_match__1(lean_object*, lean_object*, lean_object*); @@ -117,16 +117,17 @@ lean_object* l_Std_HashSetImp_erase_match__1___rarg___boxed(lean_object*, lean_o lean_object* l_Std_HashSet_toList___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_toArray(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_erase(lean_object*); +lean_object* l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSetImp_foldBuckets___spec__2(lean_object*, lean_object*); lean_object* l_Std_HashSet_size_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains(lean_object*); lean_object* l_Std_HashSet_find_x3f_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert(lean_object*); lean_object* l_Std_HashSetImp_contains_match__2___rarg(lean_object*, lean_object*); -lean_object* l_List_replace___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_moveEntries_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSet_isEmpty___rarg(lean_object*); lean_object* l_Std_HashSetImp_insert_match__2(lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Std_HashSet_foldM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_find_x3f_match__1___rarg(size_t, lean_object*); @@ -157,16 +158,15 @@ lean_object* l_Array_iterateMAux___at_Std_HashSetImp_foldM___spec__1___rarg___bo lean_object* l_Std_HashSet_erase_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSet_toList___spec__2(lean_object*); lean_object* l_List_foldlM___at_Std_HashSet_toArray___spec__1(lean_object*); -lean_object* l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSetImp_fold___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_foldM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_erase_match__2___rarg(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_erase_match__1___rarg(size_t, lean_object*); lean_object* l_Std_HashSetImp_moveEntries___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSet_insert_match__1___rarg(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1(lean_object*); lean_object* l_Std_HashSetImp_insert_match__1___rarg(size_t, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_List_erase___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___at_Std_HashSet_toArray___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSet___rarg(lean_object*); lean_object* l_Std_HashSetImp_find_x3f(lean_object*); @@ -805,7 +805,7 @@ x_9 = lean_usize_modn(x_8, x_6); lean_dec(x_6); x_10 = lean_apply_1(x_1, x_4); x_11 = lean_array_uget(x_5, x_9); -x_12 = l_List_find_x3f___main___rarg(x_10, x_11); +x_12 = l_List_find_x3f___rarg(x_10, x_11); return x_12; } } @@ -896,7 +896,7 @@ lean_dec(x_7); x_9 = lean_usize_modn(x_8, x_6); lean_dec(x_6); x_10 = lean_array_uget(x_5, x_9); -x_11 = l_List_elem___main___rarg(x_1, x_4, x_10); +x_11 = l_List_elem___rarg(x_1, x_4, x_10); return x_11; } } @@ -934,7 +934,7 @@ x_3 = lean_alloc_closure((void*)(l_Std_HashSetImp_moveEntries_match__1___rarg), return x_3; } } -lean_object* l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -994,11 +994,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1(lean_object* x_1) { +lean_object* l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1___rarg), 3, 0); return x_2; } } @@ -1023,7 +1023,7 @@ x_7 = lean_array_fget(x_3, x_2); x_8 = lean_box(0); x_9 = lean_array_fset(x_3, x_2, x_8); lean_inc(x_1); -x_10 = l_List_foldl___main___at_Std_HashSetImp_moveEntries___spec__1___rarg(x_1, x_4, x_7); +x_10 = l_List_foldl___at_Std_HashSetImp_moveEntries___spec__1___rarg(x_1, x_4, x_7); x_11 = lean_unsigned_to_nat(1u); x_12 = lean_nat_add(x_2, x_11); lean_dec(x_2); @@ -1146,7 +1146,7 @@ x_12 = lean_array_uget(x_7, x_11); lean_inc(x_12); lean_inc(x_4); lean_inc(x_1); -x_13 = l_List_elem___main___rarg(x_1, x_4, x_12); +x_13 = l_List_elem___rarg(x_1, x_4, x_12); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -1181,7 +1181,7 @@ lean_object* x_20; lean_object* x_21; lean_dec(x_8); lean_dec(x_2); lean_inc(x_4); -x_20 = l_List_replace___main___rarg(x_1, x_12, x_4, x_4); +x_20 = l_List_replace___rarg(x_1, x_12, x_4, x_4); x_21 = lean_array_uset(x_7, x_11, x_20); lean_ctor_set(x_3, 1, x_21); return x_3; @@ -1206,7 +1206,7 @@ x_28 = lean_array_uget(x_23, x_27); lean_inc(x_28); lean_inc(x_4); lean_inc(x_1); -x_29 = l_List_elem___main___rarg(x_1, x_4, x_28); +x_29 = l_List_elem___rarg(x_1, x_4, x_28); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -1242,7 +1242,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_24); lean_dec(x_2); lean_inc(x_4); -x_37 = l_List_replace___main___rarg(x_1, x_28, x_4, x_4); +x_37 = l_List_replace___rarg(x_1, x_28, x_4, x_4); x_38 = lean_array_uset(x_23, x_27, x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_22); @@ -1336,7 +1336,7 @@ x_11 = lean_array_uget(x_6, x_10); lean_inc(x_11); lean_inc(x_4); lean_inc(x_1); -x_12 = l_List_elem___main___rarg(x_1, x_4, x_11); +x_12 = l_List_elem___rarg(x_1, x_4, x_11); if (x_12 == 0) { lean_dec(x_11); @@ -1360,7 +1360,7 @@ lean_dec(x_15); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_sub(x_5, x_16); lean_dec(x_5); -x_18 = l_List_erase___main___rarg(x_1, x_11, x_4); +x_18 = l_List_erase___rarg(x_1, x_11, x_4); x_19 = lean_array_uset(x_6, x_10, x_18); lean_ctor_set(x_3, 1, x_19); lean_ctor_set(x_3, 0, x_17); @@ -1373,7 +1373,7 @@ lean_dec(x_3); x_20 = lean_unsigned_to_nat(1u); x_21 = lean_nat_sub(x_5, x_20); lean_dec(x_5); -x_22 = l_List_erase___main___rarg(x_1, x_11, x_4); +x_22 = l_List_erase___rarg(x_1, x_11, x_4); x_23 = lean_array_uset(x_6, x_10, x_22); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_21); diff --git a/stage0/stdlib/Std/Data/RBMap.c b/stage0/stdlib/Std/Data/RBMap.c index 55eaed1b4f..a21828e1b5 100644 --- a/stage0/stdlib/Std/Data/RBMap.c +++ b/stage0/stdlib/Std/Data/RBMap.c @@ -38,7 +38,6 @@ lean_object* l_Std_mkRBMap___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; lean_object* l_Std_RBMap_insert_match__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balance_u2083_match__2(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_rbmapOf___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_min_match__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_singleton___rarg(lean_object*, lean_object*); lean_object* l_Std_RBMap_erase(lean_object*, lean_object*); @@ -80,7 +79,6 @@ lean_object* l_Std_RBNode_balRight_match__1(lean_object*, lean_object*, lean_obj lean_object* l_Std_RBNode_foldM___at_Std_RBMap_forM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_any_match__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_repr___at_Std_RBMap_Std_Data_RBMap___instance__2___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_rbmapOf___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_balance1_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_Std_Data_RBMap___instance__2___rarg___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -108,7 +106,6 @@ lean_object* l_Std_RBNode_depth___rarg(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert(lean_object*, lean_object*); lean_object* l_Std_RBNode_balLeft_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_max_match__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_RBMap_fromList___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_depth_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_isRed_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balance_u2083_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,6 +121,7 @@ lean_object* l_Std_RBMap_min_x21___rarg___closed__4; lean_object* l_Std_RBNode_isBlack_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_any_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_min_x21___rarg___closed__1; +lean_object* l_List_foldl___at_Std_RBMap_fromList___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Std_RBMap_forM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_max_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_max_x21___boxed(lean_object*, lean_object*, lean_object*); @@ -261,7 +259,7 @@ lean_object* l_Std_RBMap_revFold_match__1(lean_object*, lean_object*, lean_objec uint8_t l_Std_RBMap_isEmpty___rarg(lean_object*); lean_object* l_Std_RBMap_findCore_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_min_x21_match__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_RBMap_fromList___spec__1(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_rbmapOf___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBMap_forM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balLeft_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setRed_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -295,6 +293,7 @@ lean_object* l_Std_RBNode_balance_u2083(lean_object*, lean_object*); lean_object* l_Std_RBNode_all_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_fromList(lean_object*, lean_object*); lean_object* l_Std_RBNode_lowerBound(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_RBMap_fromList___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setRed_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_erase(lean_object*, lean_object*); lean_object* l_Std_RBMap_revFold___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,6 +309,7 @@ lean_object* l_Std_RBNode_lowerBound_match__1(lean_object*, lean_object*, lean_o lean_object* l_Std_RBNode_foldM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_findCore_x3f(lean_object*, lean_object*); lean_object* l_Std_RBNode_any_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_rbmapOf___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_fold___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_min_x21___rarg___closed__2; lean_object* l_Std_RBNode_depth_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -21247,7 +21247,7 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_List_foldl___main___at_Std_RBMap_fromList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_RBMap_fromList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -21276,11 +21276,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_RBMap_fromList___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Std_RBMap_fromList___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_RBMap_fromList___spec__1___rarg), 3, 0); +x_3 = lean_alloc_closure((void*)(l_List_foldl___at_Std_RBMap_fromList___spec__1___rarg), 3, 0); return x_3; } } @@ -21289,7 +21289,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_foldl___main___at_Std_RBMap_fromList___spec__1___rarg(x_2, x_3, x_1); +x_4 = l_List_foldl___at_Std_RBMap_fromList___spec__1___rarg(x_2, x_3, x_1); return x_4; } } @@ -21869,7 +21869,7 @@ x_3 = lean_alloc_closure((void*)(l_Std_RBMap_find_x21___rarg), 4, 0); return x_3; } } -lean_object* l_List_foldl___main___at_Std_rbmapOf___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_rbmapOf___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -21898,11 +21898,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_rbmapOf___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Std_rbmapOf___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_rbmapOf___spec__1___rarg), 3, 0); +x_3 = lean_alloc_closure((void*)(l_List_foldl___at_Std_rbmapOf___spec__1___rarg), 3, 0); return x_3; } } @@ -21911,7 +21911,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_foldl___main___at_Std_rbmapOf___spec__1___rarg(x_2, x_3, x_1); +x_4 = l_List_foldl___at_Std_rbmapOf___spec__1___rarg(x_2, x_3, x_1); return x_4; } } diff --git a/stage0/stdlib/Std/Data/RBTree.c b/stage0/stdlib/Std/Data/RBTree.c index 6215de9055..c7437b6359 100644 --- a/stage0/stdlib/Std/Data/RBTree.c +++ b/stage0/stdlib/Std/Data/RBTree.c @@ -30,6 +30,7 @@ lean_object* l_Std_RBTree_find_x3f___rarg(lean_object*, lean_object*, lean_objec lean_object* l_Std_mkRBTree(lean_object*, lean_object*); lean_object* l_Std_RBTree_subset___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_all___at_Std_RBTree_subset___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_RBTree_fromList___spec__1(lean_object*); lean_object* l_Std_RBNode_all___at_Std_RBTree_all___spec__1(lean_object*); lean_object* l_Std_RBTree_min___rarg(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); @@ -94,7 +95,6 @@ lean_object* l_Std_RBTree_depth___rarg(lean_object*, lean_object*); lean_object* l_Std_RBTree_any___boxed(lean_object*, lean_object*); lean_object* l_Std_RBTree_min___rarg___boxed(lean_object*); lean_object* l_Std_RBTree_ofList_match__1(lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_RBTree_fromList___spec__1(lean_object*); lean_object* l_Std_RBTree_any(lean_object*, lean_object*); lean_object* l_Std_RBTree_isEmpty___boxed(lean_object*, lean_object*); lean_object* l_Std_RBTree_max___rarg(lean_object*); @@ -108,9 +108,9 @@ uint8_t l_Std_RBTree_contains___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBTree_forM___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBTree_any___rarg(lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Std_RBTree_fold___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at_Std_RBTree_fromList___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBTree_erase___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBTree_min(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Std_RBTree_fromList___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBTree_fold___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_any___at_Std_RBTree_any___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Std_RBTree_foldM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1103,7 +1103,7 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_List_foldl___main___at_Std_RBTree_fromList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldl___at_Std_RBTree_fromList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1128,11 +1128,11 @@ goto _start; } } } -lean_object* l_List_foldl___main___at_Std_RBTree_fromList___spec__1(lean_object* x_1) { +lean_object* l_List_foldl___at_Std_RBTree_fromList___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_Std_RBTree_fromList___spec__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Std_RBTree_fromList___spec__1___rarg), 3, 0); return x_2; } } @@ -1141,7 +1141,7 @@ _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_List_foldl___main___at_Std_RBTree_fromList___spec__1___rarg(x_2, x_3, x_1); +x_4 = l_List_foldl___at_Std_RBTree_fromList___spec__1___rarg(x_2, x_3, x_1); return x_4; } } diff --git a/stage0/stdlib/Std/ShareCommon.c b/stage0/stdlib/Std/ShareCommon.c index 57f33c3af9..c689eea457 100644 --- a/stage0/stdlib/Std/ShareCommon.c +++ b/stage0/stdlib/Std/ShareCommon.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Std_ShareCommon_PersistentState_empty___closed__1; lean_object* lean_mk_object_pmap(lean_object*); size_t l_USize_add(size_t, size_t); @@ -42,9 +41,7 @@ lean_object* l_Std_PShareCommonM_run___rarg(lean_object*); 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*); -lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* lean_object_pset_find(lean_object*, lean_object*); -lean_object* l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Std_ShareCommon_ObjectPersistentSet_insert___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); @@ -75,10 +72,11 @@ lean_object* l_Std_ShareCommonT_run(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Std_ShareCommon_ObjectPersistentMap_insert___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_object_set_insert(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Std_ShareCommon_ObjectMap_find_x3f___spec__1(lean_object*, lean_object*); +uint8_t l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2(lean_object*, lean_object*); +lean_object* l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -uint8_t l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_Std_ShareCommon_PersistentState_empty; lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentMap___spec__1___closed__3; lean_object* l_Std_ShareCommonT_monadShareCommon(lean_object*); @@ -115,6 +113,7 @@ size_t lean_ptr_addr(lean_object*); lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentSet___spec__1; lean_object* lean_sharecommon_mk_pstate(lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Std_ShareCommon_ObjectPersistentMap_find_x3f___spec__1(lean_object*, lean_object*); +lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_find_x3f___at_Std_ShareCommon_ObjectSet_find_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Std_ShareCommon_Object_ptrEq___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -133,11 +132,11 @@ lean_object* l_Std_HashSetImp_moveEntries___at_Std_ShareCommon_ObjectSet_insert_ lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentMap___spec__1___closed__1; lean_object* l_Std_PersistentHashMap_findEntryAux___at_Std_ShareCommon_ObjectPersistentSet_find_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentSet___spec__1___closed__2; -lean_object* l_List_foldl___main___at_Std_ShareCommon_ObjectSet_insert___spec__5(lean_object*, lean_object*); lean_object* l_Std_ShareCommonT_withShareCommon___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentSet___spec__1___closed__3; +lean_object* l_List_foldl___at_Std_ShareCommon_ObjectSet_insert___spec__5(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at_Std_ShareCommon_ObjectSet_insert___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentSet___spec__1___closed__1; lean_object* l_Std_PersistentHashMap_empty___at_Std_ShareCommon_mkObjectPersistentMap___spec__1___closed__2; @@ -145,6 +144,7 @@ lean_object* l_Std_AssocList_foldlM___at_Std_ShareCommon_ObjectMap_insert___spec lean_object* l_Std_HashMapImp_expand___at_Std_ShareCommon_ObjectMap_insert___spec__3(lean_object*, lean_object*); lean_object* l_Std_ShareCommonT_withShareCommon(lean_object*); lean_object* l_Std_ShareCommon_mkObjectMap___closed__1; +lean_object* l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_shareCommonM(lean_object*, lean_object*); lean_object* lean_object_pmap_find(lean_object*, lean_object*); lean_object* lean_sharecommon_mk_state(lean_object*); @@ -152,10 +152,10 @@ lean_object* l_Std_PShareCommonT_run(lean_object*); lean_object* lean_object_map_find(lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Std_ShareCommonT_monadShareCommon___rarg(lean_object*); -lean_object* l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_ShareCommonT_run___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Std_ShareCommon_ObjectMap_find_x3f___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_tryFinally___rarg___closed__1; +lean_object* l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_ShareCommon_Object_ptrHash___boxed(lean_object*); lean_object* l_Std_withShareCommon___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -693,7 +693,7 @@ lean_dec(x_4); x_7 = lean_alloc_closure((void*)(l_Std_ShareCommon_Object_eq___boxed), 2, 1); lean_closure_set(x_7, 0, x_2); x_8 = lean_array_uget(x_3, x_6); -x_9 = l_List_find_x3f___main___rarg(x_7, x_8); +x_9 = l_List_find_x3f___rarg(x_7, x_8); return x_9; } } @@ -715,7 +715,7 @@ lean_dec(x_1); return x_3; } } -uint8_t l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -744,7 +744,7 @@ return x_8; } } } -lean_object* l_List_foldl___main___at_Std_ShareCommon_ObjectSet_insert___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___at_Std_ShareCommon_ObjectSet_insert___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -814,7 +814,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at_Std_ShareCommon_ObjectSet_insert___spec__5(x_3, x_6); +x_9 = l_List_foldl___at_Std_ShareCommon_ObjectSet_insert___spec__5(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -843,64 +843,66 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { +lean_object* x_4; lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_sharecommon_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); return x_1; } else { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_sharecommon_eq(x_5, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -x_8 = l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_6, x_2, x_3); -lean_ctor_set(x_1, 1, x_8); -return x_1; -} -else -{ -lean_dec(x_5); +lean_dec(x_6); lean_ctor_set(x_1, 0, x_3); return x_1; } } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_dec(x_1); -x_11 = lean_sharecommon_eq(x_9, x_2); -if (x_11 == 0) +x_12 = lean_sharecommon_eq(x_10, x_2); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_10, x_2, x_3); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; } else { -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; } } } @@ -920,7 +922,7 @@ x_6 = lean_array_get_size(x_5); x_7 = lean_sharecommon_hash(x_2); x_8 = lean_usize_modn(x_7, x_6); x_9 = lean_array_uget(x_5, x_8); -x_10 = l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_2, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -952,7 +954,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_9, x_2, x_2); +x_17 = l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -971,7 +973,7 @@ x_21 = lean_array_get_size(x_20); x_22 = lean_sharecommon_hash(x_2); x_23 = lean_usize_modn(x_22, x_21); x_24 = lean_array_uget(x_20, x_23); -x_25 = l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_2, x_24); +x_25 = l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_2, x_24); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; @@ -1004,7 +1006,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_24, x_2, x_2); +x_33 = l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -1023,22 +1025,22 @@ x_3 = l_Std_HashSetImp_insert___at_Std_ShareCommon_ObjectSet_insert___spec__1(x_ return x_3; } } -lean_object* l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_1, x_2); +x_3 = l_List_elem___at_Std_ShareCommon_ObjectSet_insert___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_1, x_2, x_3); +x_4 = l_List_replace___at_Std_ShareCommon_ObjectSet_insert___spec__6(x_1, x_2, x_3); lean_dec(x_2); return x_4; }