chore: update stage0
This commit is contained in:
parent
3b75a56160
commit
5c20467600
47 changed files with 15062 additions and 11242 deletions
404
stage0/src/Init/Prelude.lean
generated
404
stage0/src/Init/Prelude.lean
generated
|
|
@ -54,12 +54,12 @@ unsafe axiom lcProof {α : Prop} : α
|
|||
/-- Auxiliary unsafe constant used by the Compiler to mark unreachable code. -/
|
||||
unsafe axiom lcUnreachable {α : Sort u} : α
|
||||
|
||||
inductive True : Prop :=
|
||||
inductive True : Prop where
|
||||
| intro : True
|
||||
|
||||
inductive False : Prop :=
|
||||
inductive False : Prop
|
||||
|
||||
inductive Empty : Type :=
|
||||
inductive Empty : Type
|
||||
|
||||
def Not (a : Prop) : Prop := a → False
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ def Not (a : Prop) : Prop := a → False
|
|||
@[macroInline] def absurd {a : Prop} {b : Sort v} (h₁ : a) (h₂ : Not a) : b :=
|
||||
False.elim (h₂ h₁)
|
||||
|
||||
inductive Eq {α : Sort u} (a : α) : α → Prop :=
|
||||
inductive Eq {α : Sort u} (a : α) : α → Prop where
|
||||
| refl {} : Eq a a
|
||||
|
||||
abbrev Eq.ndrec.{u1, u2} {α : Sort u2} {a : α} {motive : α → Sort u1} (m : motive a) {b : α} (h : Eq a b) : motive b :=
|
||||
|
|
@ -104,7 +104,7 @@ constant Quot.ind {α : Sort u} {r : α → α → Prop} {β : Quot r → Prop}
|
|||
-/
|
||||
init_quot
|
||||
|
||||
inductive HEq {α : Sort u} (a : α) : {β : Sort u} → β → Prop :=
|
||||
inductive HEq {α : Sort u} (a : α) : {β : Sort u} → β → Prop where
|
||||
| refl {} : HEq a a
|
||||
|
||||
@[matchPattern] def HEq.rfl {α : Sort u} {a : α} : HEq a a :=
|
||||
|
|
@ -118,28 +118,31 @@ theorem eqOfHEq {α : Sort u} {a a' : α} (h : HEq a a') : Eq a a' :=
|
|||
h₁
|
||||
this α α a a' h rfl
|
||||
|
||||
structure Prod (α : Type u) (β : Type v) :=
|
||||
(fst : α) (snd : β)
|
||||
structure Prod (α : Type u) (β : Type v) where
|
||||
fst : α
|
||||
snd : β
|
||||
|
||||
attribute [unbox] Prod
|
||||
|
||||
/-- Similar to `Prod`, but `α` and `β` can be propositions.
|
||||
We use this Type internally to automatically generate the brecOn recursor. -/
|
||||
structure PProd (α : Sort u) (β : Sort v) :=
|
||||
(fst : α) (snd : β)
|
||||
structure PProd (α : Sort u) (β : Sort v) where
|
||||
fst : α
|
||||
snd : β
|
||||
|
||||
/-- Similar to `Prod`, but `α` and `β` are in the same universe. -/
|
||||
structure MProd (α β : Type u) :=
|
||||
(fst : α) (snd : β)
|
||||
structure MProd (α β : Type u) where
|
||||
fst : α
|
||||
snd : β
|
||||
|
||||
structure And (a b : Prop) : Prop :=
|
||||
structure And (a b : Prop) : Prop where
|
||||
intro :: (left : a) (right : b)
|
||||
|
||||
inductive Or (a b : Prop) : Prop :=
|
||||
inductive Or (a b : Prop) : Prop where
|
||||
| inl (h : a) : Or a b
|
||||
| inr (h : b) : Or a b
|
||||
|
||||
inductive Bool : Type :=
|
||||
inductive Bool : Type where
|
||||
| false : Bool
|
||||
| true : Bool
|
||||
|
||||
|
|
@ -180,7 +183,7 @@ theorem neTrueOfEqFalse : {b : Bool} → Eq b false → Not (Eq b true)
|
|||
| true, h => Bool.noConfusion h
|
||||
| false, _ => fun h => Bool.noConfusion h
|
||||
|
||||
class Inhabited (α : Sort u) :=
|
||||
class Inhabited (α : Sort u) where
|
||||
mk {} :: (default : α)
|
||||
|
||||
constant arbitrary (α : Sort u) [s : Inhabited α] : α :=
|
||||
|
|
@ -196,7 +199,7 @@ instance (α : Sort u) {β : α → Sort v} [(a : α) → Inhabited (β a)] : In
|
|||
default := fun a => arbitrary (β a)
|
||||
|
||||
/-- Universe lifting operation from Sort to Type -/
|
||||
structure PLift (α : Sort u) : Type u :=
|
||||
structure PLift (α : Sort u) : Type u where
|
||||
up :: (down : α)
|
||||
|
||||
/- Bijection between α and PLift α -/
|
||||
|
|
@ -207,7 +210,7 @@ theorem PLift.downUp {α : Sort u} (a : α) : Eq (down (up a)) a :=
|
|||
rfl
|
||||
|
||||
/- Pointed types -/
|
||||
structure PointedType :=
|
||||
structure PointedType where
|
||||
(type : Type u)
|
||||
(val : type)
|
||||
|
||||
|
|
@ -215,7 +218,7 @@ instance : Inhabited PointedType.{u} where
|
|||
default := { type := PUnit.{u+1}, val := ⟨⟩ }
|
||||
|
||||
/-- Universe lifting operation -/
|
||||
structure ULift.{r, s} (α : Type s) : Type (max s r) :=
|
||||
structure ULift.{r, s} (α : Type s) : Type (max s r) where
|
||||
up :: (down : α)
|
||||
|
||||
/- Bijection between α and ULift.{v} α -/
|
||||
|
|
@ -225,7 +228,7 @@ theorem ULift.upDown {α : Type u} : ∀ (b : ULift.{v} α), Eq (up (down b)) b
|
|||
theorem ULift.downUp {α : Type u} (a : α) : Eq (down (up.{v} a)) a :=
|
||||
rfl
|
||||
|
||||
class inductive Decidable (p : Prop) :=
|
||||
class inductive Decidable (p : Prop) where
|
||||
| isFalse (h : Not p) : Decidable p
|
||||
| isTrue (h : p) : Decidable p
|
||||
|
||||
|
|
@ -271,7 +274,8 @@ theorem ofDecideEqFalse {p : Prop} [s : Decidable p] : Eq (decide p) false → N
|
|||
| true, false => isFalse (fun h => Bool.noConfusion h)
|
||||
| true, true => isTrue rfl
|
||||
|
||||
class BEq (α : Type u) := (beq : α → α → Bool)
|
||||
class BEq (α : Type u) where
|
||||
beq : α → α → Bool
|
||||
|
||||
open BEq (beq)
|
||||
|
||||
|
|
@ -331,13 +335,13 @@ instance {p} [dp : Decidable p] : Decidable (Not p) :=
|
|||
| true => false
|
||||
| false => true
|
||||
|
||||
inductive Nat :=
|
||||
inductive Nat where
|
||||
| zero : Nat
|
||||
| succ (n : Nat) : Nat
|
||||
|
||||
/- For numeric literals notation -/
|
||||
class OfNat (α : Type u) :=
|
||||
(ofNat : Nat → α)
|
||||
class OfNat (α : Type u) where
|
||||
ofNat : Nat → α
|
||||
|
||||
export OfNat (ofNat)
|
||||
|
||||
|
|
@ -348,23 +352,23 @@ instance : OfNat Nat where
|
|||
instance : Inhabited Nat where
|
||||
default := 0
|
||||
|
||||
class HasLessEq (α : Type u) := (LessEq : α → α → Prop)
|
||||
class HasLess (α : Type u) := (Less : α → α → Prop)
|
||||
class HasLessEq (α : Type u) where LessEq : α → α → Prop
|
||||
class HasLess (α : Type u) where Less : α → α → Prop
|
||||
|
||||
export HasLess (Less)
|
||||
export HasLessEq (LessEq)
|
||||
|
||||
class Add (α : Type u) := (add : α → α → α)
|
||||
class Mul (α : Type u) := (mul : α → α → α)
|
||||
class Neg (α : Type u) := (neg : α → α)
|
||||
class Sub (α : Type u) := (sub : α → α → α)
|
||||
class Div (α : Type u) := (div : α → α → α)
|
||||
class Mod (α : Type u) := (mod : α → α → α)
|
||||
class ModN (α : Type u) := (modn : α → Nat → α)
|
||||
class Pow (α : Type u) (β : Type v) := (pow : α → β → α)
|
||||
class Append (α : Type u) := (append : α → α → α)
|
||||
class OrElse (α : Type u) := (orElse : α → α → α)
|
||||
class AndThen (α : Type u) := (andThen : α → α → α)
|
||||
class Add (α : Type u) where add : α → α → α
|
||||
class Mul (α : Type u) where mul : α → α → α
|
||||
class Neg (α : Type u) where neg : α → α
|
||||
class Sub (α : Type u) where sub : α → α → α
|
||||
class Div (α : Type u) where div : α → α → α
|
||||
class Mod (α : Type u) where mod : α → α → α
|
||||
class ModN (α : Type u) where modn : α → Nat → α
|
||||
class Pow (α : Type u) (β : Type v) where pow : α → β → α
|
||||
class Append (α : Type u) where append : α → α → α
|
||||
class OrElse (α : Type u) where orElse : α → α → α
|
||||
class AndThen (α : Type u) where andThen : α → α → α
|
||||
|
||||
open Add (add)
|
||||
open Mul (mul)
|
||||
|
|
@ -449,12 +453,14 @@ def Nat.ble : Nat → Nat → Bool
|
|||
protected def Nat.le (n m : Nat) : Prop :=
|
||||
Eq (ble n m) true
|
||||
|
||||
instance : HasLessEq Nat := ⟨Nat.le⟩
|
||||
instance : HasLessEq Nat where
|
||||
LessEq := Nat.le
|
||||
|
||||
protected def Nat.lt (n m : Nat) : Prop :=
|
||||
Nat.le (succ n) m
|
||||
|
||||
instance : HasLess Nat := ⟨Nat.lt⟩
|
||||
instance : HasLess Nat where
|
||||
Less := Nat.lt
|
||||
|
||||
theorem Nat.notSuccLeZero : ∀ (n : Nat), LessEq (succ n) 0 → False
|
||||
| 0, h => nomatch h
|
||||
|
|
@ -584,9 +590,9 @@ def System.Platform.numBits : Nat :=
|
|||
theorem System.Platform.numBitsEq : Or (Eq numBits 32) (Eq numBits 64) :=
|
||||
(getNumBits ()).property
|
||||
|
||||
structure Fin (n : Nat) :=
|
||||
(val : Nat)
|
||||
(isLt : Less val n)
|
||||
structure Fin (n : Nat) where
|
||||
val : Nat
|
||||
isLt : Less val n
|
||||
|
||||
theorem Fin.eqOfVeq {n} : ∀ {i j : Fin n}, Eq i.val j.val → Eq i j
|
||||
| ⟨v, h⟩, ⟨_, _⟩, rfl => rfl
|
||||
|
|
@ -603,18 +609,18 @@ instance (n : Nat) : DecidableEq (Fin n) :=
|
|||
| isTrue h => isTrue (Fin.eqOfVeq h)
|
||||
| isFalse h => isFalse (Fin.neOfVne h)
|
||||
|
||||
protected def Fin.lt {n} (a b : Fin n) : Prop := Less a.val b.val
|
||||
protected def Fin.le {n} (a b : Fin n) : Prop := LessEq a.val b.val
|
||||
instance {n} : HasLess (Fin n) where
|
||||
Less a b := Less a.val b.val
|
||||
|
||||
instance {n} : HasLess (Fin n) := ⟨Fin.lt⟩
|
||||
instance {n} : HasLessEq (Fin n) := ⟨Fin.le⟩
|
||||
instance {n} : HasLessEq (Fin n) where
|
||||
LessEq a b := LessEq a.val b.val
|
||||
|
||||
instance Fin.decLt {n} (a b : Fin n) : Decidable (Less a b) := Nat.decLt ..
|
||||
instance Fin.decLe {n} (a b : Fin n) : Decidable (LessEq a b) := Nat.decLe ..
|
||||
|
||||
def UInt8.size : Nat := 256
|
||||
structure UInt8 :=
|
||||
(val : Fin UInt8.size)
|
||||
structure UInt8 where
|
||||
val : Fin UInt8.size
|
||||
|
||||
attribute [extern "lean_uint8_of_nat"] UInt8.mk
|
||||
attribute [extern "lean_uint8_to_nat"] UInt8.val
|
||||
|
|
@ -637,8 +643,8 @@ instance : Inhabited UInt8 where
|
|||
default := UInt8.ofNatCore 0 decide!
|
||||
|
||||
def UInt16.size : Nat := 65536
|
||||
structure UInt16 :=
|
||||
(val : Fin UInt16.size)
|
||||
structure UInt16 where
|
||||
val : Fin UInt16.size
|
||||
|
||||
attribute [extern "lean_uint16_of_nat"] UInt16.mk
|
||||
attribute [extern "lean_uint16_to_nat"] UInt16.val
|
||||
|
|
@ -661,8 +667,8 @@ instance : Inhabited UInt16 where
|
|||
default := UInt16.ofNatCore 0 decide!
|
||||
|
||||
def UInt32.size : Nat := 4294967296
|
||||
structure UInt32 :=
|
||||
(val : Fin UInt32.size)
|
||||
structure UInt32 where
|
||||
val : Fin UInt32.size
|
||||
|
||||
attribute [extern "lean_uint32_of_nat"] UInt32.mk
|
||||
attribute [extern "lean_uint32_to_nat"] UInt32.val
|
||||
|
|
@ -687,11 +693,11 @@ instance : DecidableEq UInt32 := UInt32.decEq
|
|||
instance : Inhabited UInt32 where
|
||||
default := UInt32.ofNatCore 0 decide!
|
||||
|
||||
def UInt32.lt (a b : UInt32) : Prop := Less a.val b.val
|
||||
def UInt32.le (a b : UInt32) : Prop := LessEq a.val b.val
|
||||
instance : HasLess UInt32 where
|
||||
Less a b := Less a.val b.val
|
||||
|
||||
instance : HasLess UInt32 := ⟨UInt32.lt⟩
|
||||
instance : HasLessEq UInt32 := ⟨UInt32.le⟩
|
||||
instance : HasLessEq UInt32 where
|
||||
LessEq a b := LessEq a.val b.val
|
||||
|
||||
set_option bootstrap.gen_matcher_code false in
|
||||
@[extern c inline "#1 < #2"]
|
||||
|
|
@ -709,8 +715,8 @@ instance (a b : UInt32) : Decidable (Less a b) := UInt32.decLt a b
|
|||
instance (a b : UInt32) : Decidable (LessEq a b) := UInt32.decLe a b
|
||||
|
||||
def UInt64.size : Nat := 18446744073709551616
|
||||
structure UInt64 :=
|
||||
(val : Fin UInt64.size)
|
||||
structure UInt64 where
|
||||
val : Fin UInt64.size
|
||||
|
||||
attribute [extern "lean_uint64_of_nat"] UInt64.mk
|
||||
attribute [extern "lean_uint64_to_nat"] UInt64.val
|
||||
|
|
@ -740,8 +746,8 @@ theorem usizeSzEq : Or (Eq USize.size 4294967296) (Eq USize.size 184467440737095
|
|||
| _, Or.inl rfl => Or.inl (decide! : (Eq (pow 2 32) (4294967296:Nat)))
|
||||
| _, Or.inr rfl => Or.inr (decide! : (Eq (pow 2 64) (18446744073709551616:Nat)))
|
||||
|
||||
structure USize :=
|
||||
(val : Fin USize.size)
|
||||
structure USize where
|
||||
val : Fin USize.size
|
||||
|
||||
attribute [extern "lean_usize_of_nat"] USize.mk
|
||||
attribute [extern "lean_usize_to_nat"] USize.val
|
||||
|
|
@ -783,9 +789,9 @@ abbrev UInt32.isValidChar (n : UInt32) : Prop :=
|
|||
|
||||
/-- The `Char` Type represents an unicode scalar value.
|
||||
See http://www.unicode.org/glossary/#unicode_scalar_value). -/
|
||||
structure Char :=
|
||||
(val : UInt32)
|
||||
(valid : val.isValidChar)
|
||||
structure Char where
|
||||
val : UInt32
|
||||
valid : val.isValidChar
|
||||
|
||||
private theorem validCharIsUInt32 {n : Nat} (h : n.isValidChar) : Less n UInt32.size :=
|
||||
match h with
|
||||
|
|
@ -830,7 +836,7 @@ def Char.utf8Size (c : Char) : UInt32 :=
|
|||
(UInt32.ofNatCore 3 decide!)
|
||||
(UInt32.ofNatCore 4 decide!)))
|
||||
|
||||
inductive Option (α : Type u) :=
|
||||
inductive Option (α : Type u) where
|
||||
| none : Option α
|
||||
| some (val : α) : Option α
|
||||
|
||||
|
|
@ -841,7 +847,7 @@ export Option (none some)
|
|||
instance {α} : Inhabited (Option α) where
|
||||
default := none
|
||||
|
||||
inductive List (α : Type u) :=
|
||||
inductive List (α : Type u) where
|
||||
| nil : List α
|
||||
| cons (head : α) (tail : List α) : List α
|
||||
|
||||
|
|
@ -892,8 +898,8 @@ def List.get {α : Type u} : (as : List α) → (i : Nat) → Less i as.length
|
|||
have Less i.succ as.length.succ from lengthConsEq .. ▸ h
|
||||
get as i (Nat.leOfSuccLeSucc this)
|
||||
|
||||
structure String :=
|
||||
(data : List Char)
|
||||
structure String where
|
||||
data : List Char
|
||||
|
||||
attribute [extern "lean_string_mk"] String.mk
|
||||
attribute [extern "lean_string_data"] String.data
|
||||
|
|
@ -913,10 +919,10 @@ Indexing a `String` by a byte position is constant-time, while codepoint
|
|||
positions need to be translated internally to byte positions in linear-time. -/
|
||||
abbrev String.Pos := Nat
|
||||
|
||||
structure Substring :=
|
||||
(str : String)
|
||||
(startPos : String.Pos)
|
||||
(stopPos : String.Pos)
|
||||
structure Substring where
|
||||
str : String
|
||||
startPos : String.Pos
|
||||
stopPos : String.Pos
|
||||
|
||||
def String.csize (c : Char) : Nat :=
|
||||
c.utf8Size.toNat
|
||||
|
|
@ -949,8 +955,8 @@ constant panic {α : Type u} [Inhabited α] (msg : String) : α
|
|||
The Compiler has special support for arrays.
|
||||
They are implemented using dynamic arrays: https://en.wikipedia.org/wiki/Dynamic_array
|
||||
-/
|
||||
structure Array (α : Type u) :=
|
||||
(data : List α)
|
||||
structure Array (α : Type u) where
|
||||
data : List α
|
||||
|
||||
attribute [extern "lean_array_to_list"] Array.data
|
||||
attribute [extern "lean_list_to_array"] Array.mk
|
||||
|
|
@ -996,56 +1002,58 @@ protected def Array.appendCore {α : Type u} (as : Array α) (bs : Array α) :
|
|||
(fun _ => as)
|
||||
loop bs.size 0 as
|
||||
|
||||
class Bind (m : Type u → Type v) :=
|
||||
(bind : {α β : Type u} → m α → (α → m β) → m β)
|
||||
class Bind (m : Type u → Type v) where
|
||||
bind : {α β : Type u} → m α → (α → m β) → m β
|
||||
|
||||
export Bind (bind)
|
||||
|
||||
class Pure (f : Type u → Type v) :=
|
||||
(pure {α : Type u} : α → f α)
|
||||
class Pure (f : Type u → Type v) where
|
||||
pure {α : Type u} : α → f α
|
||||
|
||||
export Pure (pure)
|
||||
|
||||
class Functor (f : Type u → Type v) : Type (max (u+1) v) :=
|
||||
(map : {α β : Type u} → (α → β) → f α → f β)
|
||||
(mapConst : {α β : Type u} → α → f β → f α := Function.comp map (Function.const _))
|
||||
class Functor (f : Type u → Type v) : Type (max (u+1) v) where
|
||||
map : {α β : Type u} → (α → β) → f α → f β
|
||||
mapConst : {α β : Type u} → α → f β → f α := Function.comp map (Function.const _)
|
||||
|
||||
class Seq (f : Type u → Type v) : Type (max (u+1) v) :=
|
||||
(seq : {α β : Type u} → f (α → β) → f α → f β)
|
||||
class Seq (f : Type u → Type v) : Type (max (u+1) v) where
|
||||
seq : {α β : Type u} → f (α → β) → f α → f β
|
||||
|
||||
class SeqLeft (f : Type u → Type v) : Type (max (u+1) v) :=
|
||||
(seqLeft : {α : Type u} → f α → f PUnit → f α)
|
||||
class SeqLeft (f : Type u → Type v) : Type (max (u+1) v) where
|
||||
seqLeft : {α : Type u} → f α → f PUnit → f α
|
||||
|
||||
class SeqRight (f : Type u → Type v) : Type (max (u+1) v) :=
|
||||
(seqRight : {β : Type u} → f PUnit → f β → f β)
|
||||
class SeqRight (f : Type u → Type v) : Type (max (u+1) v) where
|
||||
seqRight : {β : Type u} → f PUnit → f β → f β
|
||||
|
||||
class Applicative (f : Type u → Type v) extends Functor f, Pure f, Seq f, SeqLeft f, SeqRight f :=
|
||||
(map := fun x y => Seq.seq (pure x) y)
|
||||
(seqLeft := fun a b => Seq.seq (Functor.map (Function.const _) a) b)
|
||||
(seqRight := fun a b => Seq.seq (Functor.map (Function.const _ id) a) b)
|
||||
class Applicative (f : Type u → Type v) extends Functor f, Pure f, Seq f, SeqLeft f, SeqRight f where
|
||||
map := fun x y => Seq.seq (pure x) y
|
||||
seqLeft := fun a b => Seq.seq (Functor.map (Function.const _) a) b
|
||||
seqRight := fun a b => Seq.seq (Functor.map (Function.const _ id) a) b
|
||||
|
||||
class Monad (m : Type u → Type v) extends Applicative m, Bind m : Type (max (u+1) v) :=
|
||||
(map := fun f x => bind x (Function.comp pure f))
|
||||
(seq := fun f x => bind f (fun y => Functor.map y x))
|
||||
(seqLeft := fun x y => bind x (fun a => bind y (fun _ => pure a)))
|
||||
(seqRight := fun x y => bind x (fun _ => y))
|
||||
class Monad (m : Type u → Type v) extends Applicative m, Bind m : Type (max (u+1) v) where
|
||||
map := fun f x => bind x (Function.comp pure f)
|
||||
seq := fun f x => bind f fun y => Functor.map y x
|
||||
seqLeft := fun x y => bind x fun a => bind y (fun _ => pure a)
|
||||
seqRight := fun x y => bind x fun _ => y
|
||||
|
||||
instance {α : Type u} {m : Type u → Type v} [Monad m] : Inhabited (α → m α) := ⟨pure⟩
|
||||
instance {α : Type u} {m : Type u → Type v} [Monad m] : Inhabited (α → m α) where
|
||||
default := pure
|
||||
|
||||
instance {α : Type u} {m : Type u → Type v} [Monad m] [Inhabited α] : Inhabited (m α) := ⟨pure (arbitrary _)⟩
|
||||
instance {α : Type u} {m : Type u → Type v} [Monad m] [Inhabited α] : Inhabited (m α) where
|
||||
default := pure (arbitrary _)
|
||||
|
||||
/-- A Function for lifting a computation from an inner Monad to an outer Monad.
|
||||
Like [MonadTrans](https://hackage.haskell.org/package/transformers-0.5.5.0/docs/Control-Monad-Trans-Class.html),
|
||||
but `n` does not have to be a monad transformer.
|
||||
Alternatively, an implementation of [MonadLayer](https://hackage.haskell.org/package/layers-0.1/docs/Control-Monad-Layer.html#t:MonadLayer) without `layerInvmap` (so far). -/
|
||||
class MonadLift (m : Type u → Type v) (n : Type u → Type w) :=
|
||||
(monadLift : {α : Type u} → m α → n α)
|
||||
class MonadLift (m : Type u → Type v) (n : Type u → Type w) where
|
||||
monadLift : {α : Type u} → m α → n α
|
||||
|
||||
/-- The reflexive-transitive closure of `MonadLift`.
|
||||
`monadLift` is used to transitively lift monadic computations such as `StateT.get` or `StateT.put s`.
|
||||
Corresponds to [MonadLift](https://hackage.haskell.org/package/layers-0.1/docs/Control-Monad-Layer.html#t:MonadLift). -/
|
||||
class MonadLiftT (m : Type u → Type v) (n : Type u → Type w) :=
|
||||
(monadLift : {α : Type u} → m α → n α)
|
||||
class MonadLiftT (m : Type u → Type v) (n : Type u → Type w) where
|
||||
monadLift : {α : Type u} → m α → n α
|
||||
|
||||
export MonadLiftT (monadLift)
|
||||
|
||||
|
|
@ -1061,13 +1069,13 @@ instance (m) : MonadLiftT m m where
|
|||
Based on pipes' [MFunctor](https://hackage.haskell.org/package/pipes-2.4.0/docs/Control-MFunctor.html),
|
||||
but not restricted to monad transformers.
|
||||
Alternatively, an implementation of [MonadTransFunctor](http://duairc.netsoc.ie/layers-docs/Control-Monad-Layer.html#t:MonadTransFunctor). -/
|
||||
class MonadFunctor (m : Type u → Type v) (n : Type u → Type w) :=
|
||||
(monadMap {α : Type u} : (∀ {β}, m β → m β) → n α → n α)
|
||||
class MonadFunctor (m : Type u → Type v) (n : Type u → Type w) where
|
||||
monadMap {α : Type u} : (∀ {β}, m β → m β) → n α → n α
|
||||
|
||||
/-- The reflexive-transitive closure of `MonadFunctor`.
|
||||
`monadMap` is used to transitively lift Monad morphisms -/
|
||||
class MonadFunctorT (m : Type u → Type v) (n : Type u → Type w) :=
|
||||
(monadMap {α : Type u} : (∀ {β}, m β → m β) → n α → n α)
|
||||
class MonadFunctorT (m : Type u → Type v) (n : Type u → Type w) where
|
||||
monadMap {α : Type u} : (∀ {β}, m β → m β) → n α → n α
|
||||
|
||||
export MonadFunctorT (monadMap)
|
||||
|
||||
|
|
@ -1077,19 +1085,19 @@ instance (m n o) [MonadFunctorT m n] [MonadFunctor n o] : MonadFunctorT m o wher
|
|||
instance monadFunctorRefl (m) : MonadFunctorT m m where
|
||||
monadMap f := f
|
||||
|
||||
inductive Except (ε : Type u) (α : Type v) :=
|
||||
inductive Except (ε : Type u) (α : Type v) where
|
||||
| error : ε → Except ε α
|
||||
| ok : α → Except ε α
|
||||
|
||||
attribute [unbox] Except
|
||||
|
||||
instance {ε : Type u} {α : Type v} [Inhabited ε] : Inhabited (Except ε α) :=
|
||||
⟨Except.error (arbitrary ε)⟩
|
||||
instance {ε : Type u} {α : Type v} [Inhabited ε] : Inhabited (Except ε α) where
|
||||
default := Except.error (arbitrary ε)
|
||||
|
||||
/-- An implementation of [MonadError](https://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Monad-Except.html#t:MonadError) -/
|
||||
class MonadExceptOf (ε : Type u) (m : Type v → Type w) :=
|
||||
(throw {α : Type v} : ε → m α)
|
||||
(tryCatch {α : Type v} : m α → (ε → m α) → m α)
|
||||
class MonadExceptOf (ε : Type u) (m : Type v → Type w) where
|
||||
throw {α : Type v} : ε → m α
|
||||
tryCatch {α : Type v} : m α → (ε → m α) → m α
|
||||
|
||||
abbrev throwThe (ε : Type u) {m : Type v → Type w} [MonadExceptOf ε m] {α : Type v} (e : ε) : m α :=
|
||||
MonadExceptOf.throw e
|
||||
|
|
@ -1098,9 +1106,9 @@ abbrev tryCatchThe (ε : Type u) {m : Type v → Type w} [MonadExceptOf ε m] {
|
|||
MonadExceptOf.tryCatch x handle
|
||||
|
||||
/-- Similar to `MonadExceptOf`, but `ε` is an outParam for convenience -/
|
||||
class MonadExcept (ε : outParam (Type u)) (m : Type v → Type w) :=
|
||||
(throw {α : Type v} : ε → m α)
|
||||
(tryCatch {α : Type v} : m α → (ε → m α) → m α)
|
||||
class MonadExcept (ε : outParam (Type u)) (m : Type v → Type w) where
|
||||
throw {α : Type v} : ε → m α
|
||||
tryCatch {α : Type v} : m α → (ε → m α) → m α
|
||||
|
||||
export MonadExcept (throw tryCatch)
|
||||
|
||||
|
|
@ -1114,7 +1122,8 @@ variables {ε : Type u} {m : Type v → Type w}
|
|||
@[inline] protected def orelse [MonadExcept ε m] {α : Type v} (t₁ t₂ : m α) : m α :=
|
||||
tryCatch t₁ fun _ => t₂
|
||||
|
||||
instance [MonadExcept ε m] {α : Type v} : OrElse (m α) := ⟨MonadExcept.orelse⟩
|
||||
instance [MonadExcept ε m] {α : Type v} : OrElse (m α) where
|
||||
orElse := MonadExcept.orelse
|
||||
|
||||
end MonadExcept
|
||||
|
||||
|
|
@ -1122,8 +1131,8 @@ end MonadExcept
|
|||
def ReaderT (ρ : Type u) (m : Type u → Type v) (α : Type u) : Type (max u v) :=
|
||||
ρ → m α
|
||||
|
||||
instance (ρ : Type u) (m : Type u → Type v) (α : Type u) [Inhabited (m α)] : Inhabited (ReaderT ρ m α) :=
|
||||
⟨fun _ => arbitrary _⟩
|
||||
instance (ρ : Type u) (m : Type u → Type v) (α : Type u) [Inhabited (m α)] : Inhabited (ReaderT ρ m α) where
|
||||
default := fun _ => arbitrary _
|
||||
|
||||
@[inline] def ReaderT.run {ρ : Type u} {m : Type u → Type v} {α : Type u} (x : ReaderT ρ m α) (r : ρ) : m α :=
|
||||
x r
|
||||
|
|
@ -1135,13 +1144,11 @@ namespace ReaderT
|
|||
section
|
||||
variables {ρ : Type u} {m : Type u → Type v} {α : Type u}
|
||||
|
||||
@[inline] protected def lift (a : m α) : ReaderT ρ m α :=
|
||||
fun r => a
|
||||
|
||||
instance : MonadLift m (ReaderT ρ m) := ⟨ReaderT.lift⟩
|
||||
instance : MonadLift m (ReaderT ρ m) where
|
||||
monadLift x := fun _ => x
|
||||
|
||||
instance (ε) [MonadExceptOf ε m] : MonadExceptOf ε (ReaderT ρ m) where
|
||||
throw := Function.comp ReaderT.lift (throwThe ε)
|
||||
throw e := liftM (m := m) (throw e)
|
||||
tryCatch := fun x c r => tryCatchThe ε (x r) (fun e => (c e) r)
|
||||
|
||||
end
|
||||
|
|
@ -1166,7 +1173,8 @@ instance : Monad (ReaderT ρ m) where
|
|||
bind := ReaderT.bind
|
||||
map := ReaderT.map
|
||||
|
||||
instance (ρ m) [Monad m] : MonadFunctor m (ReaderT ρ m) := ⟨fun f x r => f (x r)⟩
|
||||
instance (ρ m) [Monad m] : MonadFunctor m (ReaderT ρ m) where
|
||||
monadMap f x := fun ctx => f (x ctx)
|
||||
|
||||
@[inline] protected def adapt {ρ' : Type u} [Monad m] {α : Type u} (f : ρ' → ρ) : ReaderT ρ m α → ReaderT ρ' m α :=
|
||||
fun x r => x (f r)
|
||||
|
|
@ -1184,59 +1192,60 @@ end ReaderT
|
|||
(lift {α : Type u} : (∀ {m : Type u → Type u} [Monad m], ReaderT ρ m α) → n α)
|
||||
```
|
||||
-/
|
||||
class MonadReaderOf (ρ : Type u) (m : Type u → Type v) :=
|
||||
(read : m ρ)
|
||||
class MonadReaderOf (ρ : Type u) (m : Type u → Type v) where
|
||||
read : m ρ
|
||||
|
||||
@[inline] def readThe (ρ : Type u) {m : Type u → Type v} [MonadReaderOf ρ m] : m ρ :=
|
||||
MonadReaderOf.read
|
||||
|
||||
/-- Similar to `MonadReaderOf`, but `ρ` is an outParam for convenience -/
|
||||
class MonadReader (ρ : outParam (Type u)) (m : Type u → Type v) :=
|
||||
(read : m ρ)
|
||||
class MonadReader (ρ : outParam (Type u)) (m : Type u → Type v) where
|
||||
read : m ρ
|
||||
|
||||
export MonadReader (read)
|
||||
|
||||
instance (ρ : Type u) (m : Type u → Type v) [MonadReaderOf ρ m] : MonadReader ρ m :=
|
||||
⟨readThe ρ⟩
|
||||
instance (ρ : Type u) (m : Type u → Type v) [MonadReaderOf ρ m] : MonadReader ρ m where
|
||||
read := readThe ρ
|
||||
|
||||
instance {ρ : Type u} {m : Type u → Type v} {n : Type u → Type w} [MonadReaderOf ρ m] [MonadLift m n] : MonadReaderOf ρ n :=
|
||||
⟨monadLift (MonadReader.read : m ρ)⟩
|
||||
instance {ρ : Type u} {m : Type u → Type v} {n : Type u → Type w} [MonadReaderOf ρ m] [MonadLift m n] : MonadReaderOf ρ n where
|
||||
read := liftM (m := m) read
|
||||
|
||||
instance {ρ : Type u} {m : Type u → Type v} [Monad m] : MonadReaderOf ρ (ReaderT ρ m) :=
|
||||
⟨ReaderT.read⟩
|
||||
instance {ρ : Type u} {m : Type u → Type v} [Monad m] : MonadReaderOf ρ (ReaderT ρ m) where
|
||||
read := ReaderT.read
|
||||
|
||||
class MonadWithReaderOf (ρ : Type u) (m : Type u → Type v) :=
|
||||
(withReader {α : Type u} : (ρ → ρ) → m α → m α)
|
||||
class MonadWithReaderOf (ρ : Type u) (m : Type u → Type v) where
|
||||
withReader {α : Type u} : (ρ → ρ) → m α → m α
|
||||
|
||||
@[inline] def withTheReader (ρ : Type u) {m : Type u → Type v} [MonadWithReaderOf ρ m] {α : Type u} (f : ρ → ρ) (x : m α) : m α :=
|
||||
MonadWithReaderOf.withReader f x
|
||||
|
||||
class MonadWithReader (ρ : outParam (Type u)) (m : Type u → Type v) :=
|
||||
(withReader {α : Type u} : (ρ → ρ) → m α → m α)
|
||||
class MonadWithReader (ρ : outParam (Type u)) (m : Type u → Type v) where
|
||||
withReader {α : Type u} : (ρ → ρ) → m α → m α
|
||||
|
||||
export MonadWithReader (withReader)
|
||||
|
||||
instance (ρ : Type u) (m : Type u → Type v) [MonadWithReaderOf ρ m] : MonadWithReader ρ m := ⟨withTheReader ρ⟩
|
||||
instance (ρ : Type u) (m : Type u → Type v) [MonadWithReaderOf ρ m] : MonadWithReader ρ m where
|
||||
withReader := withTheReader ρ
|
||||
|
||||
instance {ρ : Type u} {m : Type u → Type v} {n : Type u → Type v} [MonadWithReaderOf ρ m] [MonadFunctor m n] : MonadWithReaderOf ρ n :=
|
||||
⟨fun f => monadMap (m := m) (withTheReader ρ f)⟩
|
||||
instance {ρ : Type u} {m : Type u → Type v} {n : Type u → Type v} [MonadWithReaderOf ρ m] [MonadFunctor m n] : MonadWithReaderOf ρ n where
|
||||
withReader f := monadMap (m := m) (withTheReader ρ f)
|
||||
|
||||
instance {ρ : Type u} {m : Type u → Type v} [Monad m] : MonadWithReaderOf ρ (ReaderT ρ m) :=
|
||||
⟨fun f x ctx => x (f ctx)⟩
|
||||
instance {ρ : Type u} {m : Type u → Type v} [Monad m] : MonadWithReaderOf ρ (ReaderT ρ m) where
|
||||
withReader f x := fun ctx => x (f ctx)
|
||||
|
||||
/-- An implementation of [MonadState](https://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Monad-State-Class.html).
|
||||
In contrast to the Haskell implementation, we use overlapping instances to derive instances
|
||||
automatically from `monadLift`. -/
|
||||
class MonadStateOf (σ : Type u) (m : Type u → Type v) :=
|
||||
class MonadStateOf (σ : Type u) (m : Type u → Type v) where
|
||||
/- Obtain the top-most State of a Monad stack. -/
|
||||
(get : m σ)
|
||||
get : m σ
|
||||
/- Set the top-most State of a Monad stack. -/
|
||||
(set : σ → m PUnit)
|
||||
set : σ → m PUnit
|
||||
/- Map the top-most State of a Monad stack.
|
||||
|
||||
Note: `modifyGet f` may be preferable to `do s <- get; let (a, s) := f s; put s; pure a`
|
||||
because the latter does not use the State linearly (without sufficient inlining). -/
|
||||
(modifyGet {α : Type u} : (σ → Prod α σ) → m α)
|
||||
modifyGet {α : Type u} : (σ → Prod α σ) → m α
|
||||
|
||||
export MonadStateOf (set)
|
||||
|
||||
|
|
@ -1250,10 +1259,10 @@ abbrev getThe (σ : Type u) {m : Type u → Type v} [MonadStateOf σ m] : m σ :
|
|||
MonadStateOf.modifyGet f
|
||||
|
||||
/-- Similar to `MonadStateOf`, but `σ` is an outParam for convenience -/
|
||||
class MonadState (σ : outParam (Type u)) (m : Type u → Type v) :=
|
||||
(get : m σ)
|
||||
(set : σ → m PUnit)
|
||||
(modifyGet {α : Type u} : (σ → Prod α σ) → m α)
|
||||
class MonadState (σ : outParam (Type u)) (m : Type u → Type v) where
|
||||
get : m σ
|
||||
set : σ → m PUnit
|
||||
modifyGet {α : Type u} : (σ → Prod α σ) → m α
|
||||
|
||||
export MonadState (get modifyGet)
|
||||
|
||||
|
|
@ -1277,13 +1286,14 @@ instance {σ : Type u} {m : Type u → Type v} {n : Type u → Type w} [MonadSta
|
|||
|
||||
namespace EStateM
|
||||
|
||||
inductive Result (ε σ α : Type u) :=
|
||||
inductive Result (ε σ α : Type u) where
|
||||
| ok : α → σ → Result ε σ α
|
||||
| error : ε → σ → Result ε σ α
|
||||
|
||||
variables {ε σ α : Type u}
|
||||
|
||||
instance [Inhabited ε] [Inhabited σ] : Inhabited (Result ε σ α) := ⟨Result.error (arbitrary _) (arbitrary _)⟩
|
||||
instance [Inhabited ε] [Inhabited σ] : Inhabited (Result ε σ α) where
|
||||
default := Result.error (arbitrary _) (arbitrary _)
|
||||
|
||||
end EStateM
|
||||
|
||||
|
|
@ -1314,9 +1324,9 @@ instance [Inhabited ε] : Inhabited (EStateM ε σ α) := ⟨fun s =>
|
|||
Result.error e s
|
||||
|
||||
/-- Auxiliary instance for saving/restoring the "backtrackable" part of the state. -/
|
||||
class Backtrackable (δ : outParam (Type u)) (σ : Type u) :=
|
||||
(save : σ → δ)
|
||||
(restore : σ → δ → σ)
|
||||
class Backtrackable (δ : outParam (Type u)) (σ : Type u) where
|
||||
save : σ → δ
|
||||
restore : σ → δ → σ
|
||||
|
||||
@[inline] protected def tryCatch {δ} [Backtrackable δ σ] {α} (x : EStateM ε σ α) (handle : ε → EStateM ε σ α) : EStateM ε σ α := fun s =>
|
||||
let d := Backtrackable.save s
|
||||
|
|
@ -1387,8 +1397,8 @@ instance nonBacktrackable : Backtrackable PUnit σ where
|
|||
|
||||
end EStateM
|
||||
|
||||
class Hashable (α : Type u) :=
|
||||
(hash : α → USize)
|
||||
class Hashable (α : Type u) where
|
||||
hash : α → USize
|
||||
|
||||
export Hashable (hash)
|
||||
|
||||
|
|
@ -1398,24 +1408,27 @@ constant mixHash (u₁ u₂ : USize) : USize
|
|||
@[extern "lean_string_hash"]
|
||||
protected constant String.hash (s : @& String) : USize
|
||||
|
||||
instance : Hashable String := ⟨String.hash⟩
|
||||
instance : Hashable String where
|
||||
hash := String.hash
|
||||
|
||||
namespace Lean
|
||||
|
||||
/- Hierarchical names -/
|
||||
inductive Name :=
|
||||
inductive Name where
|
||||
| anonymous : Name
|
||||
| str : Name → String → USize → Name
|
||||
| num : Name → Nat → USize → Name
|
||||
|
||||
instance : Inhabited Name := ⟨Name.anonymous⟩
|
||||
instance : Inhabited Name where
|
||||
default := Name.anonymous
|
||||
|
||||
protected def Name.hash : Name → USize
|
||||
| Name.anonymous => USize.ofNat32 1723 decide!
|
||||
| Name.str p s h => h
|
||||
| Name.num p v h => h
|
||||
|
||||
instance : Hashable Name := ⟨Name.hash⟩
|
||||
instance : Hashable Name where
|
||||
hash := Name.hash
|
||||
|
||||
namespace Name
|
||||
|
||||
|
|
@ -1437,14 +1450,16 @@ protected def beq : (@& Name) → (@& Name) → Bool
|
|||
| num p₁ n₁ _, num p₂ n₂ _ => and (BEq.beq n₁ n₂) (Name.beq p₁ p₂)
|
||||
| _, _ => false
|
||||
|
||||
instance : BEq Name := ⟨Name.beq⟩
|
||||
instance : BEq Name where
|
||||
beq := Name.beq
|
||||
|
||||
protected def append : Name → Name → Name
|
||||
| n, anonymous => n
|
||||
| n, str p s _ => Name.mkStr (Name.append n p) s
|
||||
| n, num p d _ => Name.mkNum (Name.append n p) d
|
||||
|
||||
instance : Append Name := ⟨Name.append⟩
|
||||
instance : Append Name where
|
||||
append := Name.append
|
||||
|
||||
end Name
|
||||
|
||||
|
|
@ -1455,12 +1470,12 @@ end Name
|
|||
syntax quotations, but syntax transformations might want to invalidate only one side to make the pretty printer
|
||||
reformat it. In the special case of the delaborator, we also use purely synthetic position information without
|
||||
whitespace information. -/
|
||||
structure SourceInfo :=
|
||||
structure SourceInfo where
|
||||
/- Will be inferred after parsing by `Syntax.updateLeading`. During parsing,
|
||||
it is not at all clear what the preceding token was, especially with backtracking. -/
|
||||
(leading : Option Substring := none)
|
||||
(pos : Option String.Pos := none)
|
||||
(trailing : Option Substring := none)
|
||||
leading : Option Substring := none
|
||||
pos : Option String.Pos := none
|
||||
trailing : Option Substring := none
|
||||
|
||||
instance : Inhabited SourceInfo := ⟨{}⟩
|
||||
|
||||
|
|
@ -1468,13 +1483,14 @@ abbrev SyntaxNodeKind := Name
|
|||
|
||||
/- Syntax AST -/
|
||||
|
||||
inductive Syntax :=
|
||||
inductive Syntax where
|
||||
| missing : Syntax
|
||||
| node (kind : SyntaxNodeKind) (args : Array Syntax) : Syntax
|
||||
| atom (info : SourceInfo) (val : String) : Syntax
|
||||
| ident (info : SourceInfo) (rawVal : Substring) (val : Name) (preresolved : List (Prod Name (List String))) : Syntax
|
||||
|
||||
instance : Inhabited Syntax := ⟨Syntax.missing⟩
|
||||
instance : Inhabited Syntax where
|
||||
default := Syntax.missing
|
||||
|
||||
/- Builtin kinds -/
|
||||
def choiceKind : SyntaxNodeKind := `choice
|
||||
|
|
@ -1545,7 +1561,7 @@ end Syntax
|
|||
|
||||
/- Parser descriptions -/
|
||||
|
||||
inductive ParserDescr :=
|
||||
inductive ParserDescr where
|
||||
| const (name : Name)
|
||||
| unary (name : Name) (p : ParserDescr)
|
||||
| binary (name : Name) (p₁ p₂ : ParserDescr)
|
||||
|
|
@ -1557,7 +1573,9 @@ inductive ParserDescr :=
|
|||
| parser (declName : Name)
|
||||
| nodeWithAntiquot (name : String) (kind : SyntaxNodeKind) (p : ParserDescr)
|
||||
|
||||
instance : Inhabited ParserDescr := ⟨ParserDescr.symbol ""⟩
|
||||
instance : Inhabited ParserDescr where
|
||||
default := ParserDescr.symbol ""
|
||||
|
||||
abbrev TrailingParserDescr := ParserDescr
|
||||
|
||||
/-
|
||||
|
|
@ -1578,10 +1596,10 @@ def firstFrontendMacroScope := add reservedMacroScope 1
|
|||
(independent of whether this identifier turns out to be a reference to an
|
||||
existing declaration, or an actually fresh binding during further
|
||||
elaboration). -/
|
||||
class MonadQuotation (m : Type → Type) :=
|
||||
class MonadQuotation (m : Type → Type) where
|
||||
-- Get the fresh scope of the current macro invocation
|
||||
(getCurrMacroScope : m MacroScope)
|
||||
(getMainModule : m Name)
|
||||
getCurrMacroScope : m MacroScope
|
||||
getMainModule : m Name
|
||||
/- Execute action in a new macro invocation context. This transformer should be
|
||||
used at all places that morally qualify as the beginning of a "macro call",
|
||||
e.g. `elabCommand` and `elabTerm` in the case of the elaborator. However, it
|
||||
|
|
@ -1593,7 +1611,7 @@ class MonadQuotation (m : Type → Type) :=
|
|||
restricted to passing a single syntax tree. Modelling this helper as a
|
||||
transformer and not just a monadic action ensures that the current macro
|
||||
scope before the recursive call is restored after it, as expected. -/
|
||||
(withFreshMacroScope {α : Type} : m α → m α)
|
||||
withFreshMacroScope {α : Type} : m α → m α
|
||||
|
||||
export MonadQuotation (getCurrMacroScope getMainModule withFreshMacroScope)
|
||||
|
||||
|
|
@ -1652,13 +1670,14 @@ def Name.simpMacroScopes (n : Name) : Name :=
|
|||
| true => simpMacroScopesAux n
|
||||
| false => n
|
||||
|
||||
structure MacroScopesView :=
|
||||
(name : Name)
|
||||
(imported : Name)
|
||||
(mainModule : Name)
|
||||
(scopes : List MacroScope)
|
||||
structure MacroScopesView where
|
||||
name : Name
|
||||
imported : Name
|
||||
mainModule : Name
|
||||
scopes : List MacroScope
|
||||
|
||||
instance : Inhabited MacroScopesView := ⟨⟨arbitrary _, arbitrary _, arbitrary _, arbitrary _⟩⟩
|
||||
instance : Inhabited MacroScopesView where
|
||||
default := ⟨arbitrary _, arbitrary _, arbitrary _, arbitrary _⟩
|
||||
|
||||
def MacroScopesView.review (view : MacroScopesView) : Name :=
|
||||
match view.scopes with
|
||||
|
|
@ -1728,9 +1747,9 @@ def defaultMaxRecDepth := 512
|
|||
def maxRecDepthErrorMessage : String :=
|
||||
"maximum recursion depth has been reached (use `set_option maxRecDepth <num>` to increase limit)"
|
||||
|
||||
class MonadRef (m : Type → Type) :=
|
||||
(getRef : m Syntax)
|
||||
(withRef {α} : Syntax → m α → m α)
|
||||
class MonadRef (m : Type → Type) where
|
||||
getRef : m Syntax
|
||||
withRef {α} : Syntax → m α → m α
|
||||
|
||||
export MonadRef (getRef)
|
||||
|
||||
|
|
@ -1754,17 +1773,18 @@ namespace Macro
|
|||
constant MacroEnvPointed : PointedType.{0}
|
||||
|
||||
def MacroEnv : Type := MacroEnvPointed.type
|
||||
instance : Inhabited MacroEnv := ⟨MacroEnvPointed.val⟩
|
||||
instance : Inhabited MacroEnv where
|
||||
default := MacroEnvPointed.val
|
||||
|
||||
structure Context :=
|
||||
(macroEnv : MacroEnv)
|
||||
(mainModule : Name)
|
||||
(currMacroScope : MacroScope)
|
||||
(currRecDepth : Nat := 0)
|
||||
(maxRecDepth : Nat := defaultMaxRecDepth)
|
||||
(ref : Syntax)
|
||||
structure Context where
|
||||
macroEnv : MacroEnv
|
||||
mainModule : Name
|
||||
currMacroScope : MacroScope
|
||||
currRecDepth : Nat := 0
|
||||
maxRecDepth : Nat := defaultMaxRecDepth
|
||||
ref : Syntax
|
||||
|
||||
inductive Exception :=
|
||||
inductive Exception where
|
||||
| error : Syntax → String → Exception
|
||||
| unsupportedSyntax : Exception
|
||||
|
||||
|
|
|
|||
72
stage0/src/Lean/Delaborator.lean
generated
72
stage0/src/Lean/Delaborator.lean
generated
|
|
@ -231,6 +231,17 @@ def annotateCurPos (stx : Syntax) : Delab := do
|
|||
let ctx ← read
|
||||
pure $ annotatePos ctx.pos stx
|
||||
|
||||
def getUnusedName (suggestion : Name) : DelabM Name := do
|
||||
-- Use a nicer binder name than `[anonymous]`. We probably shouldn't do this in all LocalContext use cases, so do it here.
|
||||
let suggestion := if suggestion.isAnonymous then `a else suggestion;
|
||||
let lctx ← getLCtx
|
||||
pure $ lctx.getUnusedName suggestion
|
||||
|
||||
def withBindingBodyUnusedName {α} (d : Syntax → DelabM α) : DelabM α := do
|
||||
let n ← getUnusedName (← getExpr).bindingName!
|
||||
let stxN ← annotateCurPos (mkIdent n)
|
||||
withBindingBody n $ d stxN
|
||||
|
||||
@[inline] def liftMetaM {α} (x : MetaM α) : DelabM α :=
|
||||
liftM x
|
||||
|
||||
|
|
@ -373,12 +384,6 @@ def delabAppImplicit : Delab := whenNotPPOption getPPExplicit do
|
|||
pure (fnStx, paramKinds.tailD [], argStxs.push argStx))
|
||||
Syntax.mkApp fnStx argStxs
|
||||
|
||||
private def getUnusedName (suggestion : Name) : DelabM Name := do
|
||||
-- Use a nicer binder name than `[anonymous]`. We probably shouldn't do this in all LocalContext use cases, so do it here.
|
||||
let suggestion := if suggestion.isAnonymous then `a else suggestion;
|
||||
let lctx ← getLCtx
|
||||
pure $ lctx.getUnusedName suggestion
|
||||
|
||||
/-- State for `delabAppMatch` and helpers. -/
|
||||
structure AppMatchState :=
|
||||
(info : MatcherInfo)
|
||||
|
|
@ -393,10 +398,8 @@ structure AppMatchState :=
|
|||
/-- Skip `numParams` binders. -/
|
||||
private def skippingBinders {α} : (numParams : Nat) → (x : DelabM α) → DelabM α
|
||||
| 0, x => x
|
||||
| numParams+1, x => do
|
||||
let e ← getExpr
|
||||
let n ← getUnusedName e.bindingName!
|
||||
withBindingBody n $
|
||||
| numParams+1, x =>
|
||||
withBindingBodyUnusedName fun _ =>
|
||||
skippingBinders numParams x
|
||||
|
||||
/--
|
||||
|
|
@ -516,16 +519,13 @@ private partial def delabBinders (delabGroup : Array Syntax → Syntax → Delab
|
|||
-- binder group `(d e ...)` as determined by `shouldGroupWithNext`. We cannot do grouping
|
||||
-- inside-out, on the Syntax level, because it depends on comparing the Expr binder types.
|
||||
| curNames => do
|
||||
let e ← getExpr
|
||||
let n ← getUnusedName e.bindingName!
|
||||
let stxN ← annotateCurPos (mkIdent n)
|
||||
let curNames := curNames.push stxN
|
||||
if (← shouldGroupWithNext) then
|
||||
-- group with nested binder => recurse immediately
|
||||
withBindingBody n $ delabBinders delabGroup curNames
|
||||
withBindingBodyUnusedName fun stxN => delabBinders delabGroup (curNames.push stxN)
|
||||
else
|
||||
-- don't group => delab body and prepend current binder group
|
||||
withBindingBody n delab >>= delabGroup curNames
|
||||
let (stx, stxN) ← withBindingBodyUnusedName fun stxN => do (← delab, stxN)
|
||||
delabGroup (curNames.push stxN) stx
|
||||
|
||||
@[builtinDelab lam]
|
||||
def delabLam : Delab :=
|
||||
|
|
@ -801,13 +801,53 @@ def delabNamedPattern : Delab := do
|
|||
guard x.isIdent
|
||||
`($x:ident@$p:term)
|
||||
|
||||
partial def delabDoElems : DelabM (List Syntax) := do
|
||||
let e ← getExpr
|
||||
if e.isAppOfArity `Bind.bind 6 then
|
||||
-- Bind.bind.{u, v} : {m : Type u → Type v} → [self : Bind m] → {α β : Type u} → m α → (α → m β) → m β
|
||||
let ma ← withAppFn $ withAppArg delab
|
||||
withAppArg do
|
||||
match (← getExpr) with
|
||||
| Expr.lam _ _ body _ =>
|
||||
withBindingBodyUnusedName fun n => do
|
||||
if body.hasLooseBVars then
|
||||
prependAndRec `(doElem|let $n:term ← $ma)
|
||||
else
|
||||
prependAndRec `(doElem|$ma:term)
|
||||
| _ => delabAndRet
|
||||
else if e.isLet then
|
||||
let Expr.letE n t v b _ ← getExpr | unreachable!
|
||||
let n ← getUnusedName n
|
||||
let stxT ← descend t 0 delab
|
||||
let stxV ← descend v 1 delab
|
||||
withLetDecl n t v fun fvar =>
|
||||
let b := b.instantiate1 fvar
|
||||
descend b 2 $
|
||||
prependAndRec `(doElem|let $(mkIdent n) : $stxT := $stxV)
|
||||
else
|
||||
delabAndRet
|
||||
where
|
||||
prependAndRec x : DelabM _ := List.cons <$> x <*> delabDoElems
|
||||
delabAndRet : DelabM _ := do let stx ← delab; [←`(doElem|$stx:term)]
|
||||
|
||||
@[builtinDelab app.Bind.bind]
|
||||
def delabDo : Delab := whenPPOption getPPNotation do
|
||||
unless (← getExpr).isAppOfArity `Bind.bind 6 do
|
||||
failure
|
||||
let elems ← delabDoElems
|
||||
let items := elems.toArray.map (mkNode `Lean.Parser.Term.doSeqItem #[·, mkNullNode])
|
||||
`(do $items:doSeqItem*)
|
||||
|
||||
end Delaborator
|
||||
|
||||
/-- "Delaborate" the given term into surface-level syntax using the default and given subterm-specific options. -/
|
||||
def delab (currNamespace : Name) (openDecls : List OpenDecl) (e : Expr) (optionsPerPos : OptionsPerPos := {}) : MetaM Syntax := do
|
||||
trace[PrettyPrinter.delab.input]! "{fmt e}"
|
||||
let opts ← MonadOptions.getOptions
|
||||
catchInternalId Delaborator.delabFailureId
|
||||
(Delaborator.delab.run { expr := e, defaultOptions := opts, optionsPerPos := optionsPerPos, currNamespace := currNamespace, openDecls := openDecls })
|
||||
(fun _ => unreachable!)
|
||||
|
||||
builtin_initialize registerTraceClass `PrettyPrinter.delab
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/DefView.lean
generated
2
stage0/src/Lean/Elab/DefView.lean
generated
|
|
@ -138,7 +138,7 @@ def mkDefViewOfConstant (modifiers : Modifiers) (stx : Syntax) : CommandElabM De
|
|||
let val ← match (stx.getArg 3).getOptional? with
|
||||
| some val => pure val
|
||||
| none =>
|
||||
let val ← `(arbitrary _)
|
||||
let val ← `(arbitrary)
|
||||
pure $ Syntax.node `Lean.Parser.Command.declValSimple #[ mkAtomFrom stx ":=", val ]
|
||||
return {
|
||||
ref := stx, kind := DefKind.opaque, modifiers := modifiers,
|
||||
|
|
|
|||
30
stage0/src/Lean/Meta/Instances.lean
generated
30
stage0/src/Lean/Meta/Instances.lean
generated
|
|
@ -7,18 +7,17 @@ import Lean.Meta.DiscrTree
|
|||
|
||||
namespace Lean.Meta
|
||||
|
||||
structure InstanceEntry :=
|
||||
(keys : Array DiscrTree.Key)
|
||||
(val : Expr)
|
||||
(globalName? : Option Name := none)
|
||||
structure InstanceEntry where
|
||||
keys : Array DiscrTree.Key
|
||||
val : Expr
|
||||
globalName? : Option Name := none
|
||||
|
||||
structure Instances :=
|
||||
(discrTree : DiscrTree Expr := DiscrTree.empty )
|
||||
(globalInstances : NameSet := {})
|
||||
structure Instances where
|
||||
discrTree : DiscrTree Expr := DiscrTree.empty
|
||||
globalInstances : NameSet := {}
|
||||
|
||||
instance : Inhabited Instances := {
|
||||
instance : Inhabited Instances where
|
||||
default := {}
|
||||
}
|
||||
|
||||
def addInstanceEntry (d : Instances) (e : InstanceEntry) : Instances := {
|
||||
d with
|
||||
|
|
@ -74,16 +73,15 @@ def getGlobalInstancesIndex : MetaM (DiscrTree Expr) :=
|
|||
|
||||
/- Default instance support -/
|
||||
|
||||
structure DefaultInstanceEntry :=
|
||||
(className : Name)
|
||||
(instanceName : Name)
|
||||
structure DefaultInstanceEntry where
|
||||
className : Name
|
||||
instanceName : Name
|
||||
|
||||
structure DefaultInstances :=
|
||||
(defaultInstances : NameMap (List Name) := {})
|
||||
structure DefaultInstances where
|
||||
defaultInstances : NameMap (List Name) := {}
|
||||
|
||||
instance : Inhabited DefaultInstances := {
|
||||
instance : Inhabited DefaultInstances where
|
||||
default := {}
|
||||
}
|
||||
|
||||
def addDefaultInstanceEntry (d : DefaultInstances) (e : DefaultInstanceEntry) : DefaultInstances :=
|
||||
match d.defaultInstances.find? e.className with
|
||||
|
|
|
|||
2
stage0/stdlib/CMakeLists.txt
generated
2
stage0/stdlib/CMakeLists.txt
generated
File diff suppressed because one or more lines are too long
38
stage0/stdlib/Init/Prelude.c
generated
38
stage0/stdlib/Init/Prelude.c
generated
|
|
@ -58,7 +58,6 @@ lean_object* l_List_lengthAux_match__1(lean_object*, lean_object*);
|
|||
lean_object* l_EStateM_instMonadStateOfEStateM___closed__2;
|
||||
lean_object* l_Fin_decLt___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_List_hasDecEq_match__2___rarg(uint8_t, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_UInt8_decEq(uint8_t, uint8_t);
|
||||
lean_object* l_Lean_Macro_throwUnsupported___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_instDecidableEqUInt32___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -151,7 +150,6 @@ lean_object* l_EStateM_instMonadStateOfEStateM___closed__4;
|
|||
uint8_t l_instInhabitedUInt8;
|
||||
lean_object* l_USize_size___closed__1;
|
||||
lean_object* l_instInhabitedNat;
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instInhabitedMacroScopesView;
|
||||
lean_object* l_Lean_instHashableName___closed__1;
|
||||
lean_object* l_Lean_instInhabitedParserDescr___closed__2;
|
||||
|
|
@ -237,7 +235,7 @@ lean_object* l_instInhabitedArrow__1___rarg(lean_object*);
|
|||
lean_object* l_instMonadExcept(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMacroScope_match__2___rarg(uint8_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind___closed__1;
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Macro_throwErrorAt___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_monadFunctorRefl___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_or_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -246,6 +244,7 @@ lean_object* l_Function_const___rarg(lean_object*, lean_object*);
|
|||
uint64_t l_instInhabitedUInt64;
|
||||
lean_object* l_EStateM_adaptExcept_match__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_idDelta(lean_object*);
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_instDecidableEqUInt16___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instMonadRef___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_instDecidableOr_match__2(lean_object*, lean_object*);
|
||||
|
|
@ -298,7 +297,6 @@ lean_object* l_not___boxed(lean_object*);
|
|||
lean_object* l_Lean_Macro_expandMacroNotAvailable_x3f___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Prelude_0__Lean_extractImported_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
lean_object* l_Lean_Name_instAppendName;
|
||||
lean_object* l_Lean_Macro_mkMacroEnvSimple___closed__1;
|
||||
lean_object* l_Lean_choiceKind___closed__2;
|
||||
|
|
@ -464,6 +462,7 @@ lean_object* l_instMonadWithReaderOf___rarg___lambda__1(lean_object*, lean_objec
|
|||
lean_object* l_Array_size___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_List_length(lean_object*);
|
||||
uint32_t l_instInhabitedUInt32___closed__1;
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_instMonadFunctorT___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ite___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_namedPattern___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -760,7 +759,6 @@ lean_object* lean_uint16_to_nat(uint16_t);
|
|||
lean_object* l_List_get_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getHeadInfo_loop___boxed(lean_object*, lean_object*);
|
||||
uint16_t lean_uint16_of_nat(lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_instInhabitedDepArrow(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Macro_instMonadQuotationMacroM___closed__2;
|
||||
lean_object* l_instInhabitedArrow(lean_object*, lean_object*);
|
||||
|
|
@ -4967,49 +4965,31 @@ x_4 = lean_alloc_closure((void*)(l_ReaderT_run___rarg), 2, 0);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_lift___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_lift(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 0);
|
||||
x_4 = lean_alloc_closure((void*)(l_ReaderT_instMonadLiftReaderT___rarg___boxed), 2, 0);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_ReaderT_lift___rarg(x_1, x_2);
|
||||
x_3 = l_ReaderT_instMonadLiftReaderT___rarg(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_ReaderT_instMonadLiftReaderT___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_ReaderT_lift), 3, 2);
|
||||
lean_closure_set(x_1, 0, lean_box(0));
|
||||
lean_closure_set(x_1, 1, lean_box(0));
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_instMonadExceptOfReaderT___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -11084,8 +11064,6 @@ l_Applicative_seqRight___default___rarg___closed__1 = _init_l_Applicative_seqRig
|
|||
lean_mark_persistent(l_Applicative_seqRight___default___rarg___closed__1);
|
||||
l_Applicative_seqRight___default___rarg___closed__2 = _init_l_Applicative_seqRight___default___rarg___closed__2();
|
||||
lean_mark_persistent(l_Applicative_seqRight___default___rarg___closed__2);
|
||||
l_ReaderT_instMonadLiftReaderT___closed__1 = _init_l_ReaderT_instMonadLiftReaderT___closed__1();
|
||||
lean_mark_persistent(l_ReaderT_instMonadLiftReaderT___closed__1);
|
||||
l_EStateM_instMonadEStateM___closed__1 = _init_l_EStateM_instMonadEStateM___closed__1();
|
||||
lean_mark_persistent(l_EStateM_instMonadEStateM___closed__1);
|
||||
l_EStateM_instMonadEStateM___closed__2 = _init_l_EStateM_instMonadEStateM___closed__2();
|
||||
|
|
|
|||
139
stage0/stdlib/Lean/CoreM.c
generated
139
stage0/stdlib/Lean/CoreM.c
generated
|
|
@ -32,8 +32,9 @@ extern lean_object* l_Lean_InternalExceptionId_toString___closed__1;
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* lean_io_error_to_string(lean_object*);
|
||||
lean_object* l_Lean_MessageData_format(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadOptionsCoreM;
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Core_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_empty___closed__1;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
|
|
@ -41,11 +42,9 @@ lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___lambda__1___boxed(lean_ob
|
|||
lean_object* l_Lean_Core_instMetaEvalCoreM_match__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_Context_options___default;
|
||||
lean_object* l_Lean_Core_instMonadTraceCoreM___closed__4;
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadRecDepthCoreM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_string_append(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadRefCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Core_instMetaEvalCoreM___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -87,7 +86,6 @@ lean_object* l_Lean_Core_instMonadRefCoreM;
|
|||
lean_object* l_Lean_Core_instMonadRecDepthCoreM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_withIncRecDepth(lean_object*);
|
||||
lean_object* l_Lean_Core_Context_ref___default;
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___closed__6;
|
||||
lean_object* l_Lean_Core_instInhabitedCoreM(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_CoreM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -132,7 +130,6 @@ lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__4;
|
|||
lean_object* l_Lean_Core_instAddMessageContextCoreM___closed__1;
|
||||
lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_CoreM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_environment_main_module(lean_object*);
|
||||
lean_object* l_IO_println___at_Lean_printTraces___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_withIncRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -147,6 +144,7 @@ lean_object* l_Lean_Core_State_traceState___default;
|
|||
lean_object* l_Lean_Core_instMonadEnvCoreM___closed__3;
|
||||
lean_object* l_Lean_Core_instMonadOptionsCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_CoreM_toIO(lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadRecDepthCoreM___closed__5;
|
||||
|
|
@ -154,7 +152,7 @@ lean_object* l_Lean_catchInternalId(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_catchInternalId___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__1;
|
||||
extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1;
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instInhabitedState___closed__1;
|
||||
lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_Context_currRecDepth___default;
|
||||
|
|
@ -493,32 +491,32 @@ lean_dec(x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = lean_st_ref_get(x_1, x_2);
|
||||
x_4 = !lean_is_exclusive(x_3);
|
||||
if (x_4 == 0)
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = lean_st_ref_get(x_2, x_3);
|
||||
x_5 = !lean_is_exclusive(x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
return x_3;
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = lean_ctor_get(x_4, 0);
|
||||
x_7 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_5);
|
||||
lean_ctor_set(x_7, 1, x_6);
|
||||
return x_7;
|
||||
lean_dec(x_4);
|
||||
x_8 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_8, 0, x_6);
|
||||
lean_ctor_set(x_8, 1, x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
|
|
@ -530,7 +528,7 @@ lean_ctor_set(x_6, 1, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
|
|
@ -616,54 +614,44 @@ static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadEnvCoreM___lambda__1___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadEnvCoreM___lambda__1___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__2;
|
||||
x_2 = l_Lean_Core_instMonadEnvCoreM___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Core_instMonadRefCoreM___spec__2___rarg), 5, 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_Core_instMonadEnvCoreM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadEnvCoreM___lambda__2___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__6() {
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__4;
|
||||
x_2 = l_Lean_Core_instMonadEnvCoreM___closed__5;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Core_instMonadEnvCoreM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Core_instMonadRefCoreM___spec__2___rarg), 5, 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_Core_instMonadEnvCoreM___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadEnvCoreM___lambda__3___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Core_instMonadEnvCoreM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__3;
|
||||
x_2 = l_Lean_Core_instMonadEnvCoreM___closed__4;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -674,28 +662,18 @@ static lean_object* _init_l_Lean_Core_instMonadEnvCoreM() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__6;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__5;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_StateRefT_x27_get___at_Lean_Core_instMonadEnvCoreM___spec__1(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___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_Core_instMonadEnvCoreM___lambda__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_Core_instMonadEnvCoreM___lambda__1(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
|
|
@ -705,6 +683,17 @@ lean_object* x_5;
|
|||
x_5 = l_Lean_Core_instMonadEnvCoreM___lambda__2(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_Core_instMonadEnvCoreM___lambda__3(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -946,7 +935,7 @@ static lean_object* _init_l_Lean_Core_instMonadNameGeneratorCoreM___closed__2()
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Core_instMonadNameGeneratorCoreM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Core_instMonadRefCoreM___spec__2___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -1441,7 +1430,7 @@ static lean_object* _init_l_Lean_Core_instMonadTraceCoreM___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Core_instMonadTraceCoreM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Core_instMonadRefCoreM___spec__2___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -3324,8 +3313,6 @@ l_Lean_Core_instMonadEnvCoreM___closed__4 = _init_l_Lean_Core_instMonadEnvCoreM_
|
|||
lean_mark_persistent(l_Lean_Core_instMonadEnvCoreM___closed__4);
|
||||
l_Lean_Core_instMonadEnvCoreM___closed__5 = _init_l_Lean_Core_instMonadEnvCoreM___closed__5();
|
||||
lean_mark_persistent(l_Lean_Core_instMonadEnvCoreM___closed__5);
|
||||
l_Lean_Core_instMonadEnvCoreM___closed__6 = _init_l_Lean_Core_instMonadEnvCoreM___closed__6();
|
||||
lean_mark_persistent(l_Lean_Core_instMonadEnvCoreM___closed__6);
|
||||
l_Lean_Core_instMonadEnvCoreM = _init_l_Lean_Core_instMonadEnvCoreM();
|
||||
lean_mark_persistent(l_Lean_Core_instMonadEnvCoreM);
|
||||
l_Lean_Core_instMonadOptionsCoreM___closed__1 = _init_l_Lean_Core_instMonadOptionsCoreM___closed__1();
|
||||
|
|
|
|||
2335
stage0/stdlib/Lean/Delaborator.c
generated
2335
stage0/stdlib/Lean/Delaborator.c
generated
File diff suppressed because it is too large
Load diff
4
stage0/stdlib/Lean/Elab/App.c
generated
4
stage0/stdlib/Lean/Elab/App.c
generated
|
|
@ -79,7 +79,6 @@ lean_object* l_Lean_Format_pretty(lean_object*, lean_object*);
|
|||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1(lean_object*);
|
||||
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*);
|
||||
extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4;
|
||||
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_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*);
|
||||
|
|
@ -632,6 +631,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoP
|
|||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2;
|
||||
extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__3;
|
||||
uint8_t l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__5___lambda__1(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8;
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -13195,7 +13195,7 @@ lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean
|
|||
lean_inc(x_18);
|
||||
x_29 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_29, 0, x_18);
|
||||
x_30 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4;
|
||||
x_30 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__3;
|
||||
x_31 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
|
|
|
|||
114
stage0/stdlib/Lean/Elab/Command.c
generated
114
stage0/stdlib/Lean/Elab/Command.c
generated
|
|
@ -44,7 +44,6 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
|
|||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___rarg(lean_object*);
|
||||
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_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_read___at_Lean_Elab_Command_instMonadLogCommandElabM___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*);
|
||||
lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -57,7 +56,6 @@ lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(le
|
|||
extern lean_object* l_Lean_nullKind;
|
||||
lean_object* l_Lean_Elab_Command_withNamespace(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6;
|
||||
lean_object* l_Lean_Elab_Command_getScope___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2;
|
||||
|
|
@ -77,7 +75,6 @@ lean_object* l_Lean_Elab_Command_elabSection___closed__2;
|
|||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__5;
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__4;
|
||||
lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -169,11 +166,11 @@ lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_Command_elabCommand_
|
|||
lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_Scope_currNamespace___default;
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_runTermElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_liftEIO(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_addLinter(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
lean_object* l_Lean_Meta_mkLambdaFVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1;
|
||||
|
|
@ -240,6 +237,7 @@ lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace___c
|
|||
lean_object* l_Lean_Elab_Command_elabSynth___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1___boxed(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -321,7 +319,6 @@ lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessa
|
|||
lean_object* l_Std_AssocList_find_x3f___at_Lean_Elab_Command_elabCommand___spec__6(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__2;
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instInhabitedState___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -337,7 +334,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec
|
|||
lean_object* l_IO_mkRef___at_IO_FS_withIsolatedStreams___spec__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_withFreshMacroScope(lean_object*);
|
||||
lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabVariables___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -500,7 +496,6 @@ lean_object* l_Lean_Elab_Command_liftIO___rarg___boxed(lean_object*, lean_object
|
|||
lean_object* l_Lean_Elab_Command_State_scopes___default___closed__3;
|
||||
lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_modifyScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkCoreContext___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -708,6 +703,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabOpenRenaming__
|
|||
lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___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_Command_failIfSucceeds___closed__3;
|
||||
lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___closed__1;
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_mkCommandElabAttribute(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__5;
|
||||
|
|
@ -1156,32 +1152,7 @@ return x_12;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = lean_st_ref_get(x_1, x_2);
|
||||
x_4 = !lean_is_exclusive(x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_5);
|
||||
lean_ctor_set(x_7, 1, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
|
|
@ -1226,11 +1197,11 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
|
|
@ -1341,25 +1312,27 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 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_Elab_Command_instMonadEnvCommandElabM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed), 4, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__2___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1369,26 +1342,6 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2;
|
||||
x_2 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 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_Elab_Command_instMonadEnvCommandElabM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__2___boxed), 4, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__4;
|
||||
x_2 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__5;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -1399,19 +1352,10 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadEnvCommandElabM() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__4;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_StateRefT_x27_get___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1480,9 +1424,9 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadOptionsCommandElabM___clo
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadOptionsCommandElabM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -2663,7 +2607,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -2683,7 +2627,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -3004,7 +2948,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadLogCommandElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadLogCommandElabM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -3024,7 +2968,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadLogCommandElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadLogCommandElabM___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -5177,9 +5121,9 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -5317,7 +5261,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadLogCommandElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -5335,9 +5279,9 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadRecDepthCommandElabM___cl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2;
|
||||
x_1 = l_Lean_Core_instMonadEnvCoreM___closed__1;
|
||||
x_2 = l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__2___rarg), 5, 2);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Command_instMonadEnvCommandElabM___spec__1___rarg), 5, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -23075,10 +23019,6 @@ l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__3 = _init_l_Lean_Elab_Com
|
|||
lean_mark_persistent(l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__3);
|
||||
l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__4 = _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__4);
|
||||
l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__5 = _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__5);
|
||||
l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6 = _init_l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__6);
|
||||
l_Lean_Elab_Command_instMonadEnvCommandElabM = _init_l_Lean_Elab_Command_instMonadEnvCommandElabM();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_instMonadEnvCommandElabM);
|
||||
l_Lean_Elab_Command_instMonadOptionsCommandElabM___closed__1 = _init_l_Lean_Elab_Command_instMonadOptionsCommandElabM___closed__1();
|
||||
|
|
|
|||
71
stage0/stdlib/Lean/Elab/DefView.c
generated
71
stage0/stdlib/Lean/Elab/DefView.c
generated
|
|
@ -40,7 +40,6 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1(lean_object*, l
|
|||
extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__2;
|
||||
extern lean_object* l_Array_empty___closed__1;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
|
|
@ -88,6 +87,7 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_append(lean_object*, lean_object
|
|||
lean_object* l_Lean_Elab_Command_isDefLike___closed__4;
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__3;
|
||||
lean_object* l_Lean_Elab_Command_isDefLike___closed__8;
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1;
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__5;
|
||||
lean_object* l_Std_RBNode_setBlack___rarg(lean_object*);
|
||||
lean_object* l_Lean_Elab_mkFreshInstanceName(lean_object*, lean_object*);
|
||||
|
|
@ -127,7 +127,6 @@ lean_object* l_Lean_Elab_Command_isDefLike___closed__9;
|
|||
extern lean_object* l_Lean_Elab_Term_elabForall___closed__2;
|
||||
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
|
||||
extern lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8;
|
||||
lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16;
|
||||
lean_object* l_Lean_Elab_Command_MkInstanceName_append___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_MkInstanceName_main___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -138,6 +137,7 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(lean_object*, l
|
|||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_MkInstanceName_collect___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant_match__2___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t);
|
||||
|
|
@ -160,7 +160,7 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfConstant_match__1(lean_object*);
|
|||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
extern lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__2(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018_(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__10;
|
||||
lean_object* l_Lean_Elab_Command_isDefLike___closed__6;
|
||||
lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -172,7 +172,6 @@ lean_object* l_Lean_Elab_expandDeclSig(lean_object*);
|
|||
lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*);
|
||||
|
|
@ -189,7 +188,6 @@ lean_object* l_Lean_Elab_Command_isDefLike___closed__5;
|
|||
lean_object* l_Lean_Elab_DefKind_isExample___boxed(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_DefKind_isTheorem_match__1___rarg(uint8_t, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11407____closed__5;
|
||||
lean_object* l_Lean_Elab_Command_mkDefView___closed__1;
|
||||
|
|
@ -217,7 +215,6 @@ extern lean_object* l_Lean_Meta_mkArbitrary___rarg___closed__2;
|
|||
lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__14;
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1;
|
||||
lean_object* l_Lean_Elab_DefKind_isTheorem_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4812,7 +4809,7 @@ x_13 = l_Lean_Syntax_getOptional_x3f(x_12);
|
|||
lean_dec(x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_14 = l_Lean_Elab_Command_getCurrMacroScope(x_3, x_4, x_5);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
|
|
@ -4835,34 +4832,26 @@ lean_ctor_set(x_25, 0, x_22);
|
|||
lean_ctor_set(x_25, 1, x_23);
|
||||
lean_ctor_set(x_25, 2, x_21);
|
||||
lean_ctor_set(x_25, 3, x_24);
|
||||
x_26 = l_Array_empty___closed__1;
|
||||
x_27 = lean_array_push(x_26, x_25);
|
||||
x_28 = l_Lean_expandExplicitBindersAux_loop___closed__2;
|
||||
x_29 = lean_array_push(x_27, x_28);
|
||||
x_30 = l_myMacro____x40_Init_Notation___hyg_38____closed__8;
|
||||
x_31 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
x_32 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11407____closed__5;
|
||||
x_33 = l_Lean_mkAtomFrom(x_2, x_32);
|
||||
x_34 = l_Lean_Syntax_mkApp___closed__1;
|
||||
x_35 = lean_array_push(x_34, x_33);
|
||||
x_36 = lean_array_push(x_35, x_31);
|
||||
x_37 = l_Lean_Elab_Command_mkDefViewOfConstant___closed__6;
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
x_39 = l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(x_2, x_10, x_1, x_9, x_38, x_3, x_4, x_19);
|
||||
return x_39;
|
||||
x_26 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11407____closed__5;
|
||||
x_27 = l_Lean_mkAtomFrom(x_2, x_26);
|
||||
x_28 = l_Lean_Syntax_mkApp___closed__1;
|
||||
x_29 = lean_array_push(x_28, x_27);
|
||||
x_30 = lean_array_push(x_29, x_25);
|
||||
x_31 = l_Lean_Elab_Command_mkDefViewOfConstant___closed__6;
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_32, 1, x_30);
|
||||
x_33 = l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(x_2, x_10, x_1, x_9, x_32, x_3, x_4, x_19);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41;
|
||||
x_40 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_40);
|
||||
lean_object* x_34; lean_object* x_35;
|
||||
x_34 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_13);
|
||||
x_41 = l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(x_2, x_10, x_1, x_9, x_40, x_3, x_4, x_5);
|
||||
return x_41;
|
||||
x_35 = l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(x_2, x_10, x_1, x_9, x_34, x_3, x_4, x_5);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5502,7 +5491,7 @@ lean_dec(x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -5510,21 +5499,21 @@ x_1 = lean_mk_string("definition");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_841____closed__1;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -5664,11 +5653,11 @@ l_Lean_Elab_Command_mkDefView___closed__2 = _init_l_Lean_Elab_Command_mkDefView_
|
|||
lean_mark_persistent(l_Lean_Elab_Command_mkDefView___closed__2);
|
||||
l_Lean_Elab_Command_mkDefView___closed__3 = _init_l_Lean_Elab_Command_mkDefView___closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_mkDefView___closed__3);
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__1);
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2);
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056_(lean_io_mk_world());
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__1);
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2);
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
12133
stage0/stdlib/Lean/Elab/Do.c
generated
12133
stage0/stdlib/Lean/Elab/Do.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean/Elab/Inductive.c
generated
6
stage0/stdlib/Lean/Elab/Inductive.c
generated
|
|
@ -56,6 +56,7 @@ lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_
|
|||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
extern lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__6;
|
||||
lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_2549____closed__4;
|
||||
|
|
@ -237,7 +238,6 @@ lean_object* l_Lean_Elab_Command_getCheckResultingUniverseOption___boxed(lean_ob
|
|||
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_LocalContext_instInhabitedLocalContext___closed__1;
|
||||
extern lean_object* l_Lean_Expr_instInhabitedExpr___closed__1;
|
||||
extern lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__5;
|
||||
lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___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* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -4537,7 +4537,7 @@ lean_closure_set(x_29, 1, x_2);
|
|||
lean_closure_set(x_29, 2, x_18);
|
||||
lean_closure_set(x_29, 3, x_23);
|
||||
lean_closure_set(x_29, 4, x_28);
|
||||
x_30 = l_Lean_Elab_Term_instMonadLogTermElabM___closed__5;
|
||||
x_30 = l_Lean_Elab_Term_instMonadLogTermElabM___closed__6;
|
||||
x_31 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_31, 0, x_30);
|
||||
lean_closure_set(x_31, 1, x_29);
|
||||
|
|
@ -16385,7 +16385,7 @@ x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInductiveViews___lambd
|
|||
lean_closure_set(x_13, 0, x_1);
|
||||
lean_closure_set(x_13, 1, x_3);
|
||||
lean_closure_set(x_13, 2, x_2);
|
||||
x_14 = l_Lean_Elab_Term_instMonadLogTermElabM___closed__5;
|
||||
x_14 = l_Lean_Elab_Term_instMonadLogTermElabM___closed__6;
|
||||
x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_15, 0, x_14);
|
||||
lean_closure_set(x_15, 1, x_13);
|
||||
|
|
|
|||
86
stage0/stdlib/Lean/Elab/Level.c
generated
86
stage0/stdlib/Lean/Elab/Level.c
generated
|
|
@ -17,7 +17,7 @@ size_t l_USize_add(size_t, size_t);
|
|||
lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM;
|
||||
lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_elabLevel___closed__10;
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__3;
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3;
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Level_instMonadRefLevelElabM___spec__2(lean_object*, lean_object*);
|
||||
|
|
@ -32,7 +32,6 @@ lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___closed__4;
|
|||
lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1;
|
||||
lean_object* l_Lean_Elab_Level_elabLevel___closed__9;
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
|
|
@ -42,6 +41,7 @@ lean_object* l_Lean_Elab_Level_instAddMessageContextLevelElabM(lean_object*, lea
|
|||
lean_object* l_Lean_Elab_Level_mkFreshLevelMVar___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_elabLevel___closed__6;
|
||||
|
|
@ -63,6 +63,7 @@ lean_object* l_Lean_Elab_Level_elabLevel_match__2(lean_object*);
|
|||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
lean_object* l_Lean_Level_addOffsetAux(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_elabLevel___closed__2;
|
||||
lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_elabLevel_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -86,8 +87,9 @@ lean_object* l_ReaderT_read___at_Lean_Elab_Level_instMonadRefLevelElabM___spec__
|
|||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__4;
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__12;
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5;
|
||||
lean_object* lean_name_mk_numeral(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___closed__2;
|
||||
lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___rarg(lean_object*);
|
||||
lean_object* l_Lean_Elab_Level_instAddMessageContextLevelElabM___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -292,7 +294,18 @@ lean_dec(x_2);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
|
|
@ -304,7 +317,7 @@ lean_ctor_set(x_5, 1, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
|
|
@ -342,36 +355,44 @@ static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed), 3, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1;
|
||||
x_2 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Level_instMonadRefLevelElabM___spec__2___rarg), 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_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__2;
|
||||
x_2 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3;
|
||||
x_1 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__1;
|
||||
x_2 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Level_instMonadRefLevelElabM___spec__2___rarg), 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_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3;
|
||||
x_2 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -382,18 +403,17 @@ static lean_object* _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4;
|
||||
x_1 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
|
|
@ -402,6 +422,16 @@ _start:
|
|||
lean_object* x_4;
|
||||
x_4 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
|
|
@ -2012,6 +2042,8 @@ l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3 = _init_l_Lean_El
|
|||
lean_mark_persistent(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3);
|
||||
l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4 = _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__4);
|
||||
l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5 = _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__5);
|
||||
l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM = _init_l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM();
|
||||
lean_mark_persistent(l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM);
|
||||
l_Lean_Elab_Level_elabLevel___closed__1 = _init_l_Lean_Elab_Level_elabLevel___closed__1();
|
||||
|
|
|
|||
8
stage0/stdlib/Lean/Elab/MutualDef.c
generated
8
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -56,7 +56,6 @@ lean_object* lean_array_uget(lean_object*, size_t);
|
|||
lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2;
|
||||
lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -270,6 +269,7 @@ lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*);
|
|||
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*);
|
||||
extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__1;
|
||||
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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4;
|
||||
lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -382,6 +382,7 @@ lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_E
|
|||
lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4;
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___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_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1(lean_object*);
|
||||
lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -526,7 +527,6 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp
|
|||
lean_object* l_Lean_Elab_Term_elabMutualDef___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_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__11;
|
||||
extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
extern lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__6;
|
||||
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5403,7 +5403,7 @@ x_20 = lean_ctor_get(x_17, 7);
|
|||
lean_inc(x_20);
|
||||
x_21 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1___boxed), 9, 1);
|
||||
lean_closure_set(x_21, 0, x_20);
|
||||
x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2;
|
||||
x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__1;
|
||||
x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_23, 0, x_22);
|
||||
lean_closure_set(x_23, 1, x_21);
|
||||
|
|
@ -9792,7 +9792,7 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_Mutu
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
|
|||
12
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
12
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
|
|
@ -109,6 +109,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8
|
|||
lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(lean_object*);
|
||||
lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__13(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -142,7 +143,6 @@ lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_El
|
|||
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_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2;
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
lean_object* l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__12___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__1;
|
||||
|
|
@ -398,7 +398,7 @@ lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean
|
|||
x_43 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_37);
|
||||
x_44 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_44 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_43);
|
||||
x_46 = lean_ctor_get(x_45, 0);
|
||||
lean_inc(x_46);
|
||||
|
|
@ -416,7 +416,7 @@ block_24:
|
|||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_ctor_get(x_1, 3);
|
||||
lean_inc(x_10);
|
||||
x_11 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_11 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
lean_inc(x_10);
|
||||
x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___boxed), 12, 3);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
|
|
@ -494,7 +494,7 @@ x_31 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__
|
|||
x_32 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
x_33 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_33 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_33, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_26);
|
||||
x_35 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_35);
|
||||
|
|
@ -2841,7 +2841,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefiniti
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -3519,7 +3519,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefiniti
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
|
|||
|
|
@ -313,6 +313,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structu
|
|||
lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_throwStructuralFailed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
|
||||
lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___spec__2(lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_hasBadIndexDep_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_hasBadParamDep_x3f___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -425,7 +426,6 @@ lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0
|
|||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___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* l_Lean_Meta_inferType___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_mkBRecOn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_hasBadParamDep_x3f_match__2(lean_object*);
|
||||
|
|
@ -6324,7 +6324,7 @@ static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2;
|
||||
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1018____closed__2;
|
||||
x_2 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_toBelowAux___closed__10;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
|
|||
236
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
236
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
|
|
@ -15,7 +15,6 @@ extern "C" {
|
|||
#endif
|
||||
lean_object* l_List_reverse___rarg(lean_object*);
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2;
|
||||
lean_object* l_List_forIn_loop___at_Lean_Elab_Term_synthesizeUsingDefault___spec__4___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_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__3;
|
||||
|
|
@ -25,7 +24,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
|
|||
lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___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_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at_Lean_Elab_Term_synthesizeUsingDefault___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_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1(lean_object*);
|
||||
|
|
@ -51,7 +50,6 @@ extern lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__3;
|
|||
lean_object* l_Lean_Elab_Tactic_evalTactic(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_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(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_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__7;
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
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_forIn_loop___at_Lean_Elab_Term_synthesizeUsingDefault___spec__3___closed__1;
|
||||
|
|
@ -69,11 +67,9 @@ lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_obj
|
|||
lean_object* l_Lean_Meta_isExprDefEqImp(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(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3;
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar_match__1(lean_object*);
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__5;
|
||||
lean_object* l_Lean_Elab_Term_synthesizeUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -102,11 +98,12 @@ lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_E
|
|||
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*);
|
||||
lean_object* l_Lean_Meta_isClass_x3f___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at_Lean_Elab_Term_synthesizeUsingDefault___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___rarg(lean_object*, lean_object*, 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_liftTacticElabM___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed_match__1(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_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__2;
|
||||
|
|
@ -132,6 +129,7 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostpo
|
|||
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_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* l_Lean_Elab_Term_synthesizeUsingDefault_match__2(lean_object*);
|
||||
lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___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_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__8;
|
||||
lean_object* l_Lean_Meta_isExprDefEqGuarded___at_Lean_Elab_Term_synthesizeUsingDefault___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1___closed__3;
|
||||
|
|
@ -174,6 +172,7 @@ extern lean_object* l_Lean_Elab_abortExceptionId;
|
|||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getDefaultInstances___at_Lean_Elab_Term_synthesizeUsingDefault___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeUsingDefault_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___closed__1;
|
||||
extern lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___closed__1;
|
||||
|
|
@ -190,6 +189,7 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
|||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at_Lean_Elab_Term_synthesizeUsingDefault___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
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*);
|
||||
|
|
@ -206,37 +206,36 @@ extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
|
|||
lean_object* l_Lean_Elab_Term_synthesizeUsingDefault_match__5___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeUsingDefault_match__4(lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEqGuarded___at_Lean_Elab_Term_synthesizeUsingDefault___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_liftTacticElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_st_ref_get(x_1, x_6);
|
||||
x_8 = !lean_is_exclusive(x_7);
|
||||
if (x_8 == 0)
|
||||
lean_object* x_8; uint8_t x_9;
|
||||
x_8 = lean_st_ref_get(x_2, x_7);
|
||||
x_9 = !lean_is_exclusive(x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
return x_7;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_10 = lean_ctor_get(x_8, 0);
|
||||
x_11 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_9);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
return x_11;
|
||||
lean_dec(x_8);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_10);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___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_Lean_Elab_Term_liftTacticElabM___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; uint8_t x_16;
|
||||
|
|
@ -615,29 +614,19 @@ static lean_object* _init_l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1()
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1___boxed), 6, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed), 10, 2);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__2___boxed), 10, 2);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
lean_closure_set(x_10, 1, x_2);
|
||||
x_11 = l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2;
|
||||
x_11 = l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1;
|
||||
x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_12, 0, x_11);
|
||||
lean_closure_set(x_12, 1, x_10);
|
||||
|
|
@ -653,24 +642,25 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg), 9, 0)
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_StateRefT_x27_get___at_Lean_Elab_Term_liftTacticElabM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_liftTacticElabM___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_Lean_Elab_Term_liftTacticElabM___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_Lean_Elab_Term_liftTacticElabM___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_Lean_Elab_Term_liftTacticElabM___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_3);
|
||||
return x_11;
|
||||
}
|
||||
|
|
@ -1793,7 +1783,7 @@ lean_closure_set(x_14, 1, x_2);
|
|||
lean_closure_set(x_14, 2, x_1);
|
||||
lean_closure_set(x_14, 3, x_4);
|
||||
lean_closure_set(x_14, 4, x_3);
|
||||
x_15 = l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2;
|
||||
x_15 = l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1;
|
||||
x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_16, 0, x_15);
|
||||
lean_closure_set(x_16, 1, x_14);
|
||||
|
|
@ -2720,6 +2710,14 @@ x_13 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheti
|
|||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2813,7 +2811,7 @@ return x_13;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71;
|
||||
x_14 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_4, 1);
|
||||
|
|
@ -2843,86 +2841,82 @@ x_65 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__
|
|||
x_66 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_64);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
x_67 = lean_alloc_closure((void*)(l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1___boxed), 6, 1);
|
||||
x_67 = lean_alloc_closure((void*)(l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed), 8, 1);
|
||||
lean_closure_set(x_67, 0, x_66);
|
||||
x_68 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_68, 0, x_67);
|
||||
x_69 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_69, 0, x_68);
|
||||
x_70 = lean_st_ref_get(x_11, x_12);
|
||||
x_71 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_71);
|
||||
x_72 = lean_ctor_get(x_71, 3);
|
||||
x_68 = lean_st_ref_get(x_11, x_12);
|
||||
x_69 = lean_ctor_get(x_68, 0);
|
||||
lean_inc(x_69);
|
||||
x_70 = lean_ctor_get(x_69, 3);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_69);
|
||||
x_71 = lean_ctor_get_uint8(x_70, sizeof(void*)*1);
|
||||
lean_dec(x_70);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
lean_object* x_72;
|
||||
lean_dec(x_67);
|
||||
lean_dec(x_60);
|
||||
x_72 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_71);
|
||||
x_73 = lean_ctor_get_uint8(x_72, sizeof(void*)*1);
|
||||
lean_dec(x_72);
|
||||
if (x_73 == 0)
|
||||
{
|
||||
lean_object* x_74;
|
||||
lean_dec(x_69);
|
||||
lean_dec(x_60);
|
||||
x_74 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_70);
|
||||
x_25 = x_74;
|
||||
lean_dec(x_68);
|
||||
x_25 = x_72;
|
||||
goto block_59;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78;
|
||||
x_75 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_75);
|
||||
lean_dec(x_70);
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76;
|
||||
x_73 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_68);
|
||||
lean_inc(x_24);
|
||||
x_76 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_75);
|
||||
x_77 = lean_ctor_get(x_76, 0);
|
||||
lean_inc(x_77);
|
||||
x_78 = lean_unbox(x_77);
|
||||
lean_dec(x_77);
|
||||
if (x_78 == 0)
|
||||
x_74 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_73);
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_unbox(x_75);
|
||||
lean_dec(x_75);
|
||||
if (x_76 == 0)
|
||||
{
|
||||
lean_object* x_79;
|
||||
lean_dec(x_69);
|
||||
lean_object* x_77;
|
||||
lean_dec(x_67);
|
||||
lean_dec(x_60);
|
||||
x_79 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_76);
|
||||
x_25 = x_79;
|
||||
x_77 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_77);
|
||||
lean_dec(x_74);
|
||||
x_25 = x_77;
|
||||
goto block_59;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81;
|
||||
x_80 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_76);
|
||||
lean_object* x_78; lean_object* x_79;
|
||||
x_78 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_74);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_81 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___rarg(x_60, x_69, x_6, x_7, x_8, x_9, x_10, x_11, x_80);
|
||||
if (lean_obj_tag(x_81) == 0)
|
||||
x_79 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___rarg(x_60, x_67, x_6, x_7, x_8, x_9, x_10, x_11, x_78);
|
||||
if (lean_obj_tag(x_79) == 0)
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_82 = lean_ctor_get(x_81, 0);
|
||||
lean_inc(x_82);
|
||||
x_83 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_81);
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_80 = lean_ctor_get(x_79, 0);
|
||||
lean_inc(x_80);
|
||||
x_81 = lean_ctor_get(x_79, 1);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_79);
|
||||
lean_inc(x_24);
|
||||
x_84 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_82, x_6, x_7, x_8, x_9, x_10, x_11, x_83);
|
||||
x_85 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_84);
|
||||
x_25 = x_85;
|
||||
x_82 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_80, x_6, x_7, x_8, x_9, x_10, x_11, x_81);
|
||||
x_83 = lean_ctor_get(x_82, 1);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_82);
|
||||
x_25 = x_83;
|
||||
goto block_59;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_86;
|
||||
uint8_t x_84;
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
|
|
@ -2935,23 +2929,23 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
x_86 = !lean_is_exclusive(x_81);
|
||||
if (x_86 == 0)
|
||||
x_84 = !lean_is_exclusive(x_79);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
return x_81;
|
||||
return x_79;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_81, 0);
|
||||
x_88 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_81);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_87);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_85 = lean_ctor_get(x_79, 0);
|
||||
x_86 = lean_ctor_get(x_79, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_79);
|
||||
x_87 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_85);
|
||||
lean_ctor_set(x_87, 1, x_86);
|
||||
return x_87;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3677,6 +3671,20 @@ return x_110;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -8140,8 +8148,6 @@ if (lean_io_result_is_error(res)) return res;
|
|||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1 = _init_l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_liftTacticElabM___rarg___closed__1);
|
||||
l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2 = _init_l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_liftTacticElabM___rarg___closed__2);
|
||||
l_Lean_Elab_Term_runTactic___closed__1 = _init_l_Lean_Elab_Term_runTactic___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_runTactic___closed__1);
|
||||
l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1();
|
||||
|
|
|
|||
1668
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
1668
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
File diff suppressed because it is too large
Load diff
1330
stage0/stdlib/Lean/Elab/Tactic/Generalize.c
generated
1330
stage0/stdlib/Lean/Elab/Tactic/Generalize.c
generated
File diff suppressed because it is too large
Load diff
932
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
932
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
File diff suppressed because it is too large
Load diff
728
stage0/stdlib/Lean/Elab/Tactic/Injection.c
generated
728
stage0/stdlib/Lean/Elab/Tactic/Injection.c
generated
|
|
@ -16,7 +16,6 @@ extern "C" {
|
|||
extern lean_object* l_Lean_Meta_injectionCore___closed__1;
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_injection___closed__2;
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__2;
|
||||
|
|
@ -24,7 +23,6 @@ lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnu
|
|||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
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_StateRefT_x27_lift___rarg___boxed(lean_object*, 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_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object*);
|
||||
|
|
@ -43,10 +41,10 @@ lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___
|
|||
lean_object* l_Lean_Elab_Tactic_evalInjection_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___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_Lean_Elab_Tactic_evalInjection___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___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_Tactic_elabAsFVar(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_isNone(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___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___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__1;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, 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*);
|
||||
|
|
@ -274,382 +272,382 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection_match__1___rar
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = l_List_isEmpty___rarg(x_1);
|
||||
if (x_11 == 0)
|
||||
uint8_t x_13;
|
||||
x_13 = l_List_isEmpty___rarg(x_1);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = 1;
|
||||
uint8_t x_14; lean_object* x_15;
|
||||
x_14 = 1;
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_13 = l_Lean_Meta_injection(x_2, x_3, x_1, x_12, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
x_15 = l_Lean_Meta_injection(x_2, x_3, x_1, x_14, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
x_16 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_1, x_6, x_7, x_8, x_9, x_15);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_object* x_16;
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
uint8_t x_17;
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_15);
|
||||
x_18 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_1, x_8, x_9, x_10, x_11, x_17);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_18);
|
||||
x_19 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
lean_ctor_set(x_16, 0, x_19);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
uint8_t x_19;
|
||||
x_19 = !lean_is_exclusive(x_18);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_16);
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
lean_dec(x_20);
|
||||
x_21 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_20);
|
||||
return x_22;
|
||||
lean_ctor_set(x_18, 0, x_21);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_18);
|
||||
x_23 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_23;
|
||||
x_23 = !lean_is_exclusive(x_16);
|
||||
if (x_23 == 0)
|
||||
uint8_t x_25;
|
||||
x_25 = !lean_is_exclusive(x_18);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
return x_16;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_16, 0);
|
||||
x_25 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_dec(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);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_1);
|
||||
x_27 = lean_ctor_get(x_13, 1);
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_18, 0);
|
||||
x_27 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_13);
|
||||
x_28 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_14, 2);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_18);
|
||||
x_28 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_1);
|
||||
x_29 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_14);
|
||||
x_30 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_29, x_6, x_7, x_8, x_9, x_27);
|
||||
lean_dec(x_15);
|
||||
x_30 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_16, 2);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_16);
|
||||
x_32 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_31, x_8, x_9, x_10, x_11, x_29);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
uint8_t x_31;
|
||||
x_31 = !lean_is_exclusive(x_30);
|
||||
if (x_31 == 0)
|
||||
uint8_t x_33;
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_32 = lean_ctor_get(x_30, 0);
|
||||
lean_dec(x_32);
|
||||
x_33 = lean_box(0);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_28);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_34 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_34);
|
||||
x_35 = lean_box(0);
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
lean_ctor_set(x_30, 0, x_36);
|
||||
return x_30;
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_30);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
x_37 = lean_box(0);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
lean_ctor_set(x_32, 0, x_38);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_37 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_30);
|
||||
x_38 = lean_box(0);
|
||||
x_39 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_28);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_39 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_32);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
lean_ctor_set(x_41, 1, 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_37);
|
||||
return x_42;
|
||||
x_41 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_30);
|
||||
lean_ctor_set(x_41, 1, x_40);
|
||||
x_42 = lean_box(0);
|
||||
x_43 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
lean_ctor_set(x_43, 1, x_41);
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_39);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
lean_dec(x_28);
|
||||
x_43 = !lean_is_exclusive(x_30);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_44 = lean_ctor_get(x_30, 0);
|
||||
x_45 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
uint8_t x_45;
|
||||
lean_dec(x_30);
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
return x_46;
|
||||
x_45 = !lean_is_exclusive(x_32);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_46 = lean_ctor_get(x_32, 0);
|
||||
x_47 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_32);
|
||||
x_48 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_46);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_47;
|
||||
uint8_t x_49;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_47 = !lean_is_exclusive(x_13);
|
||||
if (x_47 == 0)
|
||||
x_49 = !lean_is_exclusive(x_15);
|
||||
if (x_49 == 0)
|
||||
{
|
||||
return x_13;
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50;
|
||||
x_48 = lean_ctor_get(x_13, 0);
|
||||
x_49 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_13);
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_48);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_51; lean_object* x_52;
|
||||
x_51 = 0;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_52 = l_Lean_Meta_injection(x_2, x_3, x_1, x_51, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
lean_object* x_53;
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_53);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55;
|
||||
x_54 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
x_55 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_1, x_6, x_7, x_8, x_9, x_54);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
uint8_t x_56;
|
||||
x_56 = !lean_is_exclusive(x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58;
|
||||
x_57 = lean_ctor_get(x_55, 0);
|
||||
lean_dec(x_57);
|
||||
x_58 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
lean_ctor_set(x_55, 0, x_58);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_59 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_55);
|
||||
x_60 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_59);
|
||||
return x_61;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_62;
|
||||
x_62 = !lean_is_exclusive(x_55);
|
||||
if (x_62 == 0)
|
||||
{
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_63 = lean_ctor_get(x_55, 0);
|
||||
x_64 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_55);
|
||||
x_65 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
return x_65;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69;
|
||||
lean_dec(x_1);
|
||||
x_66 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_52);
|
||||
x_67 = lean_ctor_get(x_53, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_53, 2);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_53);
|
||||
x_69 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_68, x_6, x_7, x_8, x_9, x_66);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
if (lean_obj_tag(x_69) == 0)
|
||||
{
|
||||
uint8_t x_70;
|
||||
x_70 = !lean_is_exclusive(x_69);
|
||||
if (x_70 == 0)
|
||||
{
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_71 = lean_ctor_get(x_69, 0);
|
||||
lean_dec(x_71);
|
||||
x_72 = lean_box(0);
|
||||
x_73 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_67);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
x_74 = lean_box(0);
|
||||
x_75 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_74);
|
||||
lean_ctor_set(x_75, 1, x_73);
|
||||
lean_ctor_set(x_69, 0, x_75);
|
||||
return x_69;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_76 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_69);
|
||||
x_77 = lean_box(0);
|
||||
x_78 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_78, 0, x_67);
|
||||
lean_ctor_set(x_78, 1, x_77);
|
||||
x_79 = lean_box(0);
|
||||
x_80 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_79);
|
||||
lean_ctor_set(x_80, 1, x_78);
|
||||
x_81 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
lean_ctor_set(x_81, 1, x_76);
|
||||
return x_81;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_82;
|
||||
lean_dec(x_67);
|
||||
x_82 = !lean_is_exclusive(x_69);
|
||||
if (x_82 == 0)
|
||||
{
|
||||
return x_69;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_83 = lean_ctor_get(x_69, 0);
|
||||
x_84 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_69);
|
||||
x_85 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_83);
|
||||
lean_ctor_set(x_85, 1, x_84);
|
||||
return x_85;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_86;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_86 = !lean_is_exclusive(x_52);
|
||||
if (x_86 == 0)
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_50 = lean_ctor_get(x_15, 0);
|
||||
x_51 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_15);
|
||||
x_52 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_50);
|
||||
lean_ctor_set(x_52, 1, x_51);
|
||||
return x_52;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_52, 0);
|
||||
x_88 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_52);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_87);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
uint8_t x_53; lean_object* x_54;
|
||||
x_53 = 0;
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_54 = l_Lean_Meta_injection(x_2, x_3, x_1, x_53, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
{
|
||||
lean_object* x_55;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57;
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_54);
|
||||
x_57 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_1, x_8, x_9, x_10, x_11, x_56);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
if (lean_obj_tag(x_57) == 0)
|
||||
{
|
||||
uint8_t x_58;
|
||||
x_58 = !lean_is_exclusive(x_57);
|
||||
if (x_58 == 0)
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60;
|
||||
x_59 = lean_ctor_get(x_57, 0);
|
||||
lean_dec(x_59);
|
||||
x_60 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
lean_ctor_set(x_57, 0, x_60);
|
||||
return x_57;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63;
|
||||
x_61 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_57);
|
||||
x_62 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___closed__1;
|
||||
x_63 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_61);
|
||||
return x_63;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_64;
|
||||
x_64 = !lean_is_exclusive(x_57);
|
||||
if (x_64 == 0)
|
||||
{
|
||||
return x_57;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_65 = lean_ctor_get(x_57, 0);
|
||||
x_66 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_66);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_57);
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
lean_dec(x_1);
|
||||
x_68 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_54);
|
||||
x_69 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_69);
|
||||
x_70 = lean_ctor_get(x_55, 2);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_55);
|
||||
x_71 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(x_2, x_70, x_8, x_9, x_10, x_11, x_68);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
{
|
||||
uint8_t x_72;
|
||||
x_72 = !lean_is_exclusive(x_71);
|
||||
if (x_72 == 0)
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77;
|
||||
x_73 = lean_ctor_get(x_71, 0);
|
||||
lean_dec(x_73);
|
||||
x_74 = lean_box(0);
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_69);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
x_76 = lean_box(0);
|
||||
x_77 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_76);
|
||||
lean_ctor_set(x_77, 1, x_75);
|
||||
lean_ctor_set(x_71, 0, x_77);
|
||||
return x_71;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_78 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_71);
|
||||
x_79 = lean_box(0);
|
||||
x_80 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_69);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
x_81 = lean_box(0);
|
||||
x_82 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_81);
|
||||
lean_ctor_set(x_82, 1, x_80);
|
||||
x_83 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_82);
|
||||
lean_ctor_set(x_83, 1, x_78);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_84;
|
||||
lean_dec(x_69);
|
||||
x_84 = !lean_is_exclusive(x_71);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
return x_71;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_85 = lean_ctor_get(x_71, 0);
|
||||
x_86 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_71);
|
||||
x_87 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_85);
|
||||
lean_ctor_set(x_87, 1, x_86);
|
||||
return x_87;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_88;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_88 = !lean_is_exclusive(x_54);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
return x_54;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_89 = lean_ctor_get(x_54, 0);
|
||||
x_90 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_54);
|
||||
x_91 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_91, 0, x_89);
|
||||
lean_ctor_set(x_91, 1, x_90);
|
||||
return x_91;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -686,7 +684,7 @@ lean_dec(x_18);
|
|||
x_20 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16);
|
||||
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_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;
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
|
|
@ -698,25 +696,21 @@ x_24 = lean_ctor_get(x_21, 1);
|
|||
lean_inc(x_24);
|
||||
lean_dec(x_21);
|
||||
lean_inc(x_23);
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection___lambda__1___boxed), 10, 3);
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection___lambda__1___boxed), 12, 3);
|
||||
lean_closure_set(x_25, 0, x_19);
|
||||
lean_closure_set(x_25, 1, x_23);
|
||||
lean_closure_set(x_25, 2, x_15);
|
||||
x_26 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_26, 0, x_25);
|
||||
x_27 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_27, 0, x_26);
|
||||
x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1);
|
||||
lean_closure_set(x_28, 0, x_24);
|
||||
x_29 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2);
|
||||
lean_closure_set(x_29, 0, x_27);
|
||||
lean_closure_set(x_29, 1, x_28);
|
||||
x_30 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_23, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22);
|
||||
return x_30;
|
||||
x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1);
|
||||
lean_closure_set(x_26, 0, x_24);
|
||||
x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2);
|
||||
lean_closure_set(x_27, 0, x_25);
|
||||
lean_closure_set(x_27, 1, x_26);
|
||||
x_28 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_23, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22);
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
uint8_t x_29;
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -727,29 +721,29 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_31 = !lean_is_exclusive(x_20);
|
||||
if (x_31 == 0)
|
||||
x_29 = !lean_is_exclusive(x_20);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_20, 0);
|
||||
x_33 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_20, 0);
|
||||
x_31 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_20);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_32);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
return x_34;
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_35;
|
||||
uint8_t x_33;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -758,35 +752,37 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_35 = !lean_is_exclusive(x_14);
|
||||
if (x_35 == 0)
|
||||
x_33 = !lean_is_exclusive(x_14);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_36 = lean_ctor_get(x_14, 0);
|
||||
x_37 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_37);
|
||||
lean_inc(x_36);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_14, 0);
|
||||
x_35 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_14);
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_36);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
return x_38;
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_Tactic_evalInjection___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_object* x_13;
|
||||
x_13 = l_Lean_Elab_Tactic_evalInjection___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_11;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalInjection___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Tactic/Rewrite.c
generated
4
stage0/stdlib/Lean/Elab/Tactic/Rewrite.c
generated
|
|
@ -25,7 +25,6 @@ extern lean_object* l_Lean_nullKind;
|
|||
lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__4;
|
||||
lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId_match__1(lean_object*);
|
||||
|
|
@ -58,6 +57,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewrite___closed__1;
|
|||
lean_object* l_Lean_Elab_Tactic_rewriteTarget_match__1(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3;
|
||||
lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Tactic_rewrite___closed__2;
|
||||
lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*);
|
||||
|
|
@ -1221,7 +1221,7 @@ x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteAll___lambda__1___bo
|
|||
lean_closure_set(x_18, 0, x_1);
|
||||
lean_closure_set(x_18, 1, x_17);
|
||||
lean_closure_set(x_18, 2, x_15);
|
||||
x_19 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__4;
|
||||
x_19 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1;
|
||||
x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2);
|
||||
lean_closure_set(x_20, 0, x_19);
|
||||
lean_closure_set(x_20, 1, x_18);
|
||||
|
|
|
|||
540
stage0/stdlib/Lean/Elab/Term.c
generated
540
stage0/stdlib/Lean/Elab/Term.c
generated
File diff suppressed because it is too large
Load diff
4
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
4
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
|
|
@ -334,7 +334,6 @@ lean_object* l_Lean_Meta_mkIdRhs(lean_object*);
|
|||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkProjectionImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkPure___rarg___closed__3;
|
||||
lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkCongrArgImp___closed__2;
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
lean_object* l_Lean_Meta_mkArrayLit___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1;
|
||||
lean_object* l_Lean_Meta_mkDecideProof___rarg___lambda__1___closed__1;
|
||||
|
|
@ -433,6 +432,7 @@ lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMArgs_loop(lean_
|
|||
lean_object* l_Lean_Meta_mkIdRhsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkProjectionImp___closed__4;
|
||||
lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqOfHEqImp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkEqMPR___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkArbitrary___rarg___closed__2;
|
||||
|
|
@ -7242,7 +7242,7 @@ static lean_object* _init_l_Lean_Meta_mkAppM___rarg___closed__4() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
x_2 = l_Lean_Meta_mkAppM___rarg___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
|
|||
930
stage0/stdlib/Lean/Meta/Basic.c
generated
930
stage0/stdlib/Lean/Meta/Basic.c
generated
File diff suppressed because it is too large
Load diff
114
stage0/stdlib/Lean/Meta/Closure.c
generated
114
stage0/stdlib/Lean/Meta/Closure.c
generated
|
|
@ -19,13 +19,14 @@ lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_o
|
|||
lean_object* l_Lean_addDecl___at___private_Lean_Meta_Closure_0__Lean_Meta_mkAuxDefinitionImp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkBinding___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitLevel___spec__6(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Meta_Closure_mkValueTypeClosureAux___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_pushFVarArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__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_LevelToFormat_toResult___closed__3;
|
||||
lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
|
||||
|
|
@ -33,7 +34,7 @@ lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
|||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
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*);
|
||||
extern lean_object* l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__2;
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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_Lean_Meta_mkAuxDefinition___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkMVar(lean_object*);
|
||||
|
|
@ -49,7 +50,6 @@ lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*);
|
|||
extern lean_object* l_Lean_Expr_updateApp_x21___closed__2;
|
||||
size_t l_Lean_Level_hash(lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_collectExprAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_visitLevel_match__1(lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
|
|
@ -73,14 +73,12 @@ lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitLevel___spec__
|
|||
uint32_t l_UInt32_add(uint32_t, uint32_t);
|
||||
uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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_Meta_mkAuxDefinition___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*);
|
||||
lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_mkHashMap___at_Lean_Meta_Closure_State_visitedExpr___default___spec__1(lean_object*);
|
||||
lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_visitExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_mkNextUserName___rarg___closed__2;
|
||||
extern lean_object* l_Lean_Core_instMonadTraceCoreM___closed__2;
|
||||
lean_object* l_Lean_Meta_Closure_pushFVarArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_visitLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_collectLevelAux_match__1(lean_object*);
|
||||
|
|
@ -122,6 +120,7 @@ lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__
|
|||
lean_object* l_Lean_Meta_Closure_State_visitedLevel___default;
|
||||
lean_object* l_Array_back___at_Lean_Meta_Closure_pickNextToProcess_x3f___spec__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_collectExprAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Level_updateSucc_x21___closed__3;
|
||||
extern lean_object* l_Lean_Level_instInhabitedLevel;
|
||||
lean_object* l_Lean_Meta_Closure_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -201,7 +200,7 @@ lean_object* l_Lean_Meta_getZetaFVarIds___at_Lean_Meta_Closure_process___spec__1
|
|||
lean_object* l_Lean_Meta_Closure_State_visitedExpr___default;
|
||||
lean_object* l_Lean_Meta_Closure_State_visitedLevel___default___closed__1;
|
||||
uint8_t lean_expr_equal(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___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_expr_update_sort(lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitExpr___spec__6(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_collectLevelAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -250,7 +249,7 @@ lean_object* l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(
|
|||
lean_object* lean_expr_abstract(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_pickNextToProcessAux(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1;
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f___boxed(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Closure_0__Lean_Meta_mkAuxDefinitionImp(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1022____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -258,7 +257,7 @@ lean_object* l_Lean_Meta_Closure_instInhabitedToProcessElement;
|
|||
uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getZetaFVarIds___at_Lean_Meta_Closure_process___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Expr_updateLet_x21___closed__2;
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t);
|
||||
lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -280,7 +279,6 @@ extern lean_object* l_Lean_Parser_Tactic___kind_tactic____x40_Init_Notation___hy
|
|||
lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Meta_Closure_mkValueTypeClosureAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___closed__4;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1(size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Expr_updateForallE_x21___closed__2;
|
||||
|
|
@ -12128,7 +12126,41 @@ x_13 = l___private_Lean_Meta_Closure_0__Lean_Meta_mkAuxDefinitionImp(x_1, x_2, x
|
|||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_st_ref_get(x_4, x_5);
|
||||
x_7 = !lean_is_exclusive(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
x_9 = lean_ctor_get(x_8, 3);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_ctor_set(x_6, 0, x_9);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_ctor_get(x_6, 0);
|
||||
x_11 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_6);
|
||||
x_12 = lean_ctor_get(x_10, 3);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8;
|
||||
|
|
@ -12152,7 +12184,7 @@ return x_12;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
if (x_5 == 0)
|
||||
|
|
@ -12203,7 +12235,7 @@ return x_25;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
|
|
@ -12215,8 +12247,8 @@ static lean_object* _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Core_instMonadTraceCoreM___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_510____closed__4;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__2___boxed), 7, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -12224,29 +12256,17 @@ return x_2;
|
|||
static lean_object* _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_mkAuxDefinition___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__1___boxed), 5, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_510____closed__4;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__1___boxed), 7, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_mkAuxDefinition___rarg___closed__2;
|
||||
x_2 = l_Lean_Meta_mkAuxDefinition___rarg___closed__3;
|
||||
x_2 = l_Lean_Meta_mkAuxDefinition___rarg___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -12261,18 +12281,18 @@ x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_510____closed__4;
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__2___boxed), 10, 4);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__3___boxed), 10, 4);
|
||||
lean_closure_set(x_8, 0, x_2);
|
||||
lean_closure_set(x_8, 1, x_3);
|
||||
lean_closure_set(x_8, 2, x_4);
|
||||
lean_closure_set(x_8, 3, x_7);
|
||||
x_9 = l_Lean_Meta_mkAuxDefinition___rarg___closed__4;
|
||||
x_9 = l_Lean_Meta_mkAuxDefinition___rarg___closed__3;
|
||||
x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_10, 0, x_9);
|
||||
lean_closure_set(x_10, 1, x_8);
|
||||
x_11 = lean_box(x_5);
|
||||
x_12 = lean_box(x_6);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__3___boxed), 11, 5);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___lambda__4___boxed), 11, 5);
|
||||
lean_closure_set(x_13, 0, x_2);
|
||||
lean_closure_set(x_13, 1, x_3);
|
||||
lean_closure_set(x_13, 2, x_4);
|
||||
|
|
@ -12293,11 +12313,23 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxDefinition___rarg___boxed), 6,
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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* l_Lean_Meta_mkAuxDefinition___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_8 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -12306,13 +12338,13 @@ lean_dec(x_2);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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_Lean_Meta_mkAuxDefinition___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11; lean_object* x_12;
|
||||
x_11 = lean_unbox(x_5);
|
||||
lean_dec(x_5);
|
||||
x_12 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__2(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10);
|
||||
x_12 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__3(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -12320,7 +12352,7 @@ lean_dec(x_6);
|
|||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_mkAuxDefinition___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_Lean_Meta_mkAuxDefinition___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12; uint8_t x_13; lean_object* x_14;
|
||||
|
|
@ -12328,7 +12360,7 @@ x_12 = lean_unbox(x_4);
|
|||
lean_dec(x_4);
|
||||
x_13 = lean_unbox(x_5);
|
||||
lean_dec(x_5);
|
||||
x_14 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_14 = l_Lean_Meta_mkAuxDefinition___rarg___lambda__4(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_6);
|
||||
return x_14;
|
||||
}
|
||||
|
|
@ -12568,8 +12600,6 @@ l_Lean_Meta_mkAuxDefinition___rarg___closed__2 = _init_l_Lean_Meta_mkAuxDefiniti
|
|||
lean_mark_persistent(l_Lean_Meta_mkAuxDefinition___rarg___closed__2);
|
||||
l_Lean_Meta_mkAuxDefinition___rarg___closed__3 = _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_mkAuxDefinition___rarg___closed__3);
|
||||
l_Lean_Meta_mkAuxDefinition___rarg___closed__4 = _init_l_Lean_Meta_mkAuxDefinition___rarg___closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_mkAuxDefinition___rarg___closed__4);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
22
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
22
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
|
|
@ -51,6 +51,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq(lean_o
|
|||
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_1373_(lean_object*);
|
||||
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_1358_(lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_CheckAssignment_checkMVar_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -140,7 +141,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldComparingHeadsDe
|
|||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_check___spec__62(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Meta_CheckAssignment_check___spec__60___boxed(lean_object*, lean_object*, lean_object*, 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(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -183,7 +183,6 @@ lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isPropImp(lean_object*
|
|||
lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_check___spec__10___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_etaEq___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process___closed__2;
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__1;
|
||||
|
|
@ -205,6 +204,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssignable_match__1(
|
|||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_CheckAssignment_check___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_etaEq(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDeltaCandidate_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -221,6 +221,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_check___sp
|
|||
uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_check___spec__35(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfold_match__1(lean_object*);
|
||||
uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_check___spec__66___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_check___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_Meta_CheckAssignment_checkMVar___lambda__1___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -263,7 +264,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_check___sp
|
|||
lean_object* l_Lean_addTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
extern lean_object* l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_assignConst___lambda__1___closed__2;
|
||||
lean_object* l_Lean_Expr_constLevels_x21(lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -9492,7 +9492,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__3;
|
||||
x_2 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_2 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_3 = l_Lean_instMonadTrace___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -9512,7 +9512,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__5;
|
||||
x_2 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_2 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_3 = l_Lean_instMonadTrace___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -9534,7 +9534,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__7;
|
||||
x_2 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__11;
|
||||
x_3 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_3 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_4 = l_Lean_instMonadRef___rarg(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -9580,7 +9580,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__10;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_checkFVar___closed__11;
|
||||
x_3 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_3 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_4 = l_Lean_instMonadRef___rarg(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -9602,7 +9602,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__13;
|
||||
x_2 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_2 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_instAddMessageContext___rarg), 3, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -9624,7 +9624,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__15;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_instMonadLiftReaderT___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -9644,7 +9644,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__17;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_instMonadLiftReaderT___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -55367,7 +55367,7 @@ lean_dec(x_3);
|
|||
x_20 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_15);
|
||||
x_21 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_21 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_22 = l_Lean_Meta_instantiateMVars___rarg(x_21, x_1);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Meta/LevelDefEq.c
generated
16
stage0/stdlib/Lean/Meta/LevelDefEq.c
generated
|
|
@ -31,6 +31,7 @@ lean_object* l_Lean_Meta_decLevel_x3f___at_Lean_Meta_decLevel___spec__1___boxed(
|
|||
lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg(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*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_object* l_Lean_Meta_isDefEqNoConstantApprox___rarg___closed__1;
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -73,7 +74,6 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decLevelImp_match__1_
|
|||
lean_object* l_Lean_Meta_isDefEqNoConstantApprox___rarg___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax_match__1(lean_object*);
|
||||
lean_object* l_Lean_Level_mvarId_x21(lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponed(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -90,6 +90,7 @@ lean_object* l_Lean_Meta_getLevel___at___private_Lean_Meta_InferType_0__Lean_Met
|
|||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isDefEqNoConstantApprox___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVarsImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isDefEq___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isLevelDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -118,7 +119,6 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
|||
lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
lean_object* lean_metavar_ctx_get_level_assignment(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -22904,7 +22904,7 @@ lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___lambda
|
|||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_9 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_10 = l_Lean_Meta_setPostponed___rarg(x_9, x_1);
|
||||
x_11 = lean_apply_5(x_10, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
|
|
@ -23068,7 +23068,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__10;
|
||||
x_2 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__11;
|
||||
x_3 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_3 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_4 = l_Lean_instMonadRef___rarg(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -23144,7 +23144,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
|||
x_17 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_14);
|
||||
x_18 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_18 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_19 = l_Lean_Meta_getPostponed___rarg(x_18);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -23420,7 +23420,7 @@ lean_inc(x_79);
|
|||
x_80 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_78);
|
||||
x_81 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_81 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_82 = l_Lean_Meta_setPostponed___rarg(x_81, x_8);
|
||||
x_83 = lean_apply_5(x_82, x_2, x_3, x_4, x_5, x_80);
|
||||
if (lean_obj_tag(x_83) == 0)
|
||||
|
|
@ -23483,7 +23483,7 @@ lean_inc(x_92);
|
|||
x_93 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_14);
|
||||
x_94 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_94 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_95 = l_Lean_Meta_setPostponed___rarg(x_94, x_8);
|
||||
x_96 = lean_apply_5(x_95, x_2, x_3, x_4, x_5, x_93);
|
||||
if (lean_obj_tag(x_96) == 0)
|
||||
|
|
@ -23544,7 +23544,7 @@ lean_inc(x_105);
|
|||
x_106 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_106);
|
||||
lean_dec(x_10);
|
||||
x_107 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_107 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_108 = l_Lean_Meta_setPostponed___rarg(x_107, x_8);
|
||||
x_109 = lean_apply_5(x_108, x_2, x_3, x_4, x_5, x_106);
|
||||
if (lean_obj_tag(x_109) == 0)
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/Match/CaseValues.c
generated
4
stage0/stdlib/Lean/Meta/Match/CaseValues.c
generated
|
|
@ -98,7 +98,6 @@ 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__3___closed__7;
|
||||
lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__2;
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
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_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -119,6 +118,7 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_caseValueAux_match__3___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__6;
|
||||
lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
lean_object* l_Lean_Meta_caseValues_loop_match__3___rarg(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -565,7 +565,7 @@ static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__9() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
x_2 = l_Lean_Meta_caseValueAux___lambda__3___closed__8;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
|
|||
8
stage0/stdlib/Lean/Meta/Match/Match.c
generated
8
stage0/stdlib/Lean/Meta/Match/Match.c
generated
|
|
@ -58,7 +58,6 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_Match_Unify_assign___spec__1___boxed
|
|||
uint8_t l_Std_AssocList_contains___at_Lean_Meta_FVarSubst_contains___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__6;
|
||||
extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
|
||||
extern lean_object* l_Lean_Meta_setInlineAttribute___rarg___closed__2;
|
||||
lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_mkMinorType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
|
|
@ -503,7 +502,6 @@ lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean
|
|||
lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__1;
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_assignGoalOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
lean_object* l_Lean_Meta_MatcherApp_addArg_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_Alt_replaceFVarId(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -619,6 +617,7 @@ lean_object* l_Lean_Meta_Match_mkMatcher_match__1___rarg(lean_object*, lean_obje
|
|||
lean_object* l_Lean_indentD(lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_State_used___default___closed__1;
|
||||
lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1022____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_setInlineAttribute___rarg___closed__1;
|
||||
lean_object* l_Lean_EnumAttributes_setValue___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_State_used___default;
|
||||
|
|
@ -693,6 +692,7 @@ lean_object* l_Lean_Meta_Match_Unify_expandIfVar___boxed(lean_object*, lean_obje
|
|||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Match_mkMatcher___spec__7___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__2___boxed(lean_object*, lean_object*);
|
||||
extern lean_object* l___kind_term____x40_Init_Notation___hyg_6289____closed__6;
|
||||
extern lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
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*);
|
||||
|
|
@ -8627,7 +8627,7 @@ x_10 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta
|
|||
lean_closure_set(x_10, 0, x_2);
|
||||
lean_closure_set(x_10, 1, x_3);
|
||||
lean_closure_set(x_10, 2, x_1);
|
||||
x_11 = l_Lean_Meta_setInlineAttribute___rarg___closed__2;
|
||||
x_11 = l_Lean_Meta_setInlineAttribute___rarg___closed__1;
|
||||
x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_12, 0, x_11);
|
||||
lean_closure_set(x_12, 1, x_10);
|
||||
|
|
@ -17709,7 +17709,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_t
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
x_2 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
|
|||
299
stage0/stdlib/Lean/Meta/SynthInstance.c
generated
299
stage0/stdlib/Lean/Meta/SynthInstance.c
generated
|
|
@ -28,9 +28,10 @@ lean_object* l_Lean_Meta_SynthInstance_mkGeneratorNode_x3f(lean_object*, lean_ob
|
|||
uint8_t lean_is_out_param(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_addAnswer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessArgs_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_inferType___at_Lean_Meta_SynthInstance_mkTableKeyFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_findEntry_x3f___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
||||
lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2(lean_object*, lean_object*);
|
||||
|
|
@ -85,7 +86,6 @@ extern lean_object* l_Array_empty___closed__1;
|
|||
lean_object* l_Lean_Meta_SynthInstance_consume_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1;
|
||||
uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_SynthInstance_isNewAnswer___spec__1(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2;
|
||||
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
|
||||
lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__9(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Level_hasMVar(lean_object*);
|
||||
|
|
@ -98,7 +98,7 @@ extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
|
|||
lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1;
|
||||
extern lean_object* l_Std_PersistentArray_empty___closed__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addNode___spec__1(size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -106,14 +106,13 @@ lean_object* l_Lean_Meta_SynthInstance_getSubgoals_match__1___rarg(lean_object*,
|
|||
lean_object* l_Lean_Meta_SynthInstance_resume_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_mkTableKey___closed__1;
|
||||
lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_findEntry_x3f___spec__2(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___spec__5(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1(lean_object*);
|
||||
lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_findEntry_x3f___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___closed__4;
|
||||
lean_object* l_Lean_Meta_SynthInstance_resume_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_instInhabitedSynthM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__1___closed__3;
|
||||
|
|
@ -123,29 +122,28 @@ lean_object* l_Lean_Meta_SynthInstance_getEntry___closed__3;
|
|||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_SynthInstance_newSubgoal___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__7;
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___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_SynthInstance_instInhabitedSynthM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_resume(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1;
|
||||
lean_object* l_Lean_Meta_synthInstance_x3f___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Expr_getAppArgs___closed__1;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4;
|
||||
lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_SynthInstance_newSubgoal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4;
|
||||
size_t l_USize_shiftRight(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_SynthInstance_findEntry_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__2;
|
||||
lean_object* l_Lean_Meta_SynthInstance_wakeUp_match__2(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_wakeUp_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___boxed(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_Std_HashMapImp_insert___at_Lean_Meta_SynthInstance_newSubgoal___spec__4(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1;
|
||||
|
|
@ -160,7 +158,6 @@ lean_object* l_Lean_Meta_hasAssignableMVar___at___private_Lean_Meta_SynthInstanc
|
|||
lean_object* l_Lean_Meta_isExprDefEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedException___closed__1;
|
||||
lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVarsImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Core_instMonadOptionsCoreM___closed__2;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_getMaxSteps___boxed(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_State_result___default;
|
||||
lean_object* l_Lean_Meta_SynthInstance_findEntry_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -172,6 +169,7 @@ lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAn
|
|||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp_match__3(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_resume_match__2(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2;
|
||||
lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_SynthInstance_isNewAnswer___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_AssocList_contains___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__4___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -184,14 +182,13 @@ lean_object* l_Lean_profileitM___at___private_Lean_Meta_SynthInstance_0__Lean_Me
|
|||
lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f_match__2(lean_object*);
|
||||
lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Core_instMonadTraceCoreM___closed__2;
|
||||
lean_object* l_Lean_Meta_SynthInstance_wakeUp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_5_(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryResolveCore_match__1(lean_object*);
|
||||
uint8_t l_Lean_Meta_SynthInstance_Waiter_isRoot(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SynthInstance_getInstances___spec__2___closed__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__6;
|
||||
lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -208,8 +205,8 @@ lean_object* l_Lean_Meta_SynthInstance_tryResolve(lean_object*, lean_object*, le
|
|||
lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_synth___closed__1;
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2;
|
||||
lean_object* l_Lean_Meta_SynthInstance_getSubgoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2;
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getConfig___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_synth_match__2(lean_object*);
|
||||
|
|
@ -221,19 +218,19 @@ lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_SynthInstance_MkTableKe
|
|||
lean_object* l_Lean_Meta_SynthInstance_generate___closed__3;
|
||||
lean_object* l_Lean_Meta_withMCtx___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryAnswer_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3;
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___boxed__const__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_mapMetaM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances_match__2(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_instInhabitedGeneratorNode;
|
||||
extern lean_object* l_Lean_Meta_isDefEqStuckExceptionId;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_generate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessLevels___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__1;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4(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_Lean_Meta_SynthInstance_getInstances_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
|
||||
|
|
@ -243,7 +240,7 @@ lean_object* l_Lean_Meta_SynthInstance_getEntry___boxed(lean_object*, lean_objec
|
|||
lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_modifyTop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_510____closed__2;
|
||||
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___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -270,7 +267,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SynthInstance_getInstances___
|
|||
lean_object* l_Lean_Meta_SynthInstance_wakeUp_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_back___at_Lean_Meta_SynthInstance_getNextToResume___spec__1___boxed(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_instInhabitedConsumerNode;
|
||||
lean_object* l_Lean_Meta_SynthInstance_Waiter_isRoot_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -397,7 +393,7 @@ lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__2;
|
|||
uint8_t l_Lean_Expr_hasMVar(lean_object*);
|
||||
lean_object* l_Lean_Meta_isClass_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_withNewFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_resume_match__3___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___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_SynthInstance_newSubgoal___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*);
|
||||
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_3247____closed__6;
|
||||
lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_5____closed__3;
|
||||
|
|
@ -405,6 +401,7 @@ lean_object* l_Lean_Meta_SynthInstance_Waiter_isRoot___boxed(lean_object*);
|
|||
extern lean_object* l_Lean_Meta_synthPendingRef;
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3;
|
||||
lean_object* l_Lean_Meta_SynthInstance_generate_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_resume___lambda__1___closed__3;
|
||||
lean_object* l_Lean_addTrace___at_Lean_Meta_SynthInstance_newSubgoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -459,7 +456,7 @@ lean_object* l_Lean_Meta_SynthInstance_mkTableKeyFor(lean_object*, lean_object*,
|
|||
lean_object* lean_array_pop(lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel_match__2(lean_object*);
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2;
|
||||
extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryResolveCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -485,7 +482,9 @@ lean_object* l_Lean_Meta_SynthInstance_consume_match__2___rarg(lean_object*, lea
|
|||
lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_5____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_synth___closed__2;
|
||||
lean_object* l_Lean_Meta_SynthInstance_consume(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1;
|
||||
lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkLevelParam(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -511,7 +510,7 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normExpr(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_SynthInstance_newSubgoal___spec__8(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_main___closed__2;
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SynthInstance_tryAnswer___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_has_out_params(lean_object*, lean_object*);
|
||||
uint8_t l_Std_AssocList_contains___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__4(lean_object*, lean_object*);
|
||||
|
|
@ -5159,7 +5158,41 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMCtx___at_Lean_Meta_SynthInstan
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_st_ref_get(x_4, x_5);
|
||||
x_7 = !lean_is_exclusive(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
x_9 = lean_ctor_get(x_8, 3);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_ctor_set(x_6, 0, x_9);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_ctor_get(x_6, 0);
|
||||
x_11 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_6);
|
||||
x_12 = lean_ctor_get(x_10, 3);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9;
|
||||
|
|
@ -5183,7 +5216,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___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* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
if (x_3 == 0)
|
||||
|
|
@ -5207,7 +5240,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
|
|
@ -5390,11 +5423,9 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Core_instMonadTraceCoreM___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed), 5, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__4() {
|
||||
|
|
@ -5402,7 +5433,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -5411,8 +5442,8 @@ static lean_object* _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__5() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__2___boxed), 8, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -5420,19 +5451,9 @@ return x_2;
|
|||
static lean_object* _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed), 8, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__5;
|
||||
x_2 = l_Lean_Meta_SynthInstance_newSubgoal___closed__6;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_2 = l_Lean_Meta_SynthInstance_newSubgoal___closed__5;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_SynthInstance_newSubgoal___spec__2___rarg), 8, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -5445,14 +5466,14 @@ _start:
|
|||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_11 = l_Lean_Meta_SynthInstance_newSubgoal___closed__2;
|
||||
lean_inc(x_2);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__2___boxed), 9, 2);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__3___boxed), 9, 2);
|
||||
lean_closure_set(x_12, 0, x_2);
|
||||
lean_closure_set(x_12, 1, x_11);
|
||||
x_13 = l_Lean_Meta_SynthInstance_newSubgoal___closed__7;
|
||||
x_13 = l_Lean_Meta_SynthInstance_newSubgoal___closed__6;
|
||||
x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_SynthInstance_newSubgoal___spec__2___rarg), 8, 2);
|
||||
lean_closure_set(x_14, 0, x_13);
|
||||
lean_closure_set(x_14, 1, x_12);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__3___boxed), 10, 3);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__4___boxed), 10, 3);
|
||||
lean_closure_set(x_15, 0, x_2);
|
||||
lean_closure_set(x_15, 1, x_3);
|
||||
lean_closure_set(x_15, 2, x_4);
|
||||
|
|
@ -5500,11 +5521,23 @@ x_4 = lean_box(x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_9 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -5514,13 +5547,13 @@ lean_dec(x_2);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___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* l_Lean_Meta_SynthInstance_newSubgoal___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_11 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_11 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -5529,11 +5562,11 @@ lean_dec(x_4);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_SynthInstance_newSubgoal___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* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_11 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_11;
|
||||
|
|
@ -9801,7 +9834,7 @@ static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_Synth
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__3;
|
||||
x_2 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -12448,7 +12481,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_SynthInstance_resume___closed__5;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed), 8, 1);
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_newSubgoal___lambda__2___boxed), 8, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -12457,7 +12490,7 @@ static lean_object* _init_l_Lean_Meta_SynthInstance_resume___closed__7() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__5;
|
||||
x_1 = l_Lean_Meta_SynthInstance_newSubgoal___closed__4;
|
||||
x_2 = l_Lean_Meta_SynthInstance_resume___closed__6;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_SynthInstance_newSubgoal___spec__2___rarg), 8, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -17076,7 +17109,19 @@ x_2 = lean_alloc_closure((void*)(l_Lean_profileitM___at___private_Lean_Meta_Synt
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1() {
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
x_6 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -17084,16 +17129,16 @@ x_1 = lean_mk_string("FOUND result ");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2() {
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3() {
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -17101,16 +17146,16 @@ x_1 = lean_mk_string(" ==> ");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4() {
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; uint8_t x_73; lean_object* x_74; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90;
|
||||
|
|
@ -17379,7 +17424,7 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean
|
|||
lean_inc(x_19);
|
||||
x_47 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_47, 0, x_19);
|
||||
x_48 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2;
|
||||
x_48 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2;
|
||||
x_49 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
|
|
@ -17442,7 +17487,7 @@ x_76 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__
|
|||
x_77 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_76);
|
||||
lean_ctor_set(x_77, 1, x_75);
|
||||
x_78 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4;
|
||||
x_78 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4;
|
||||
x_79 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_79, 0, x_77);
|
||||
lean_ctor_set(x_79, 1, x_78);
|
||||
|
|
@ -17466,7 +17511,7 @@ goto block_72;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8;
|
||||
|
|
@ -17642,7 +17687,7 @@ return x_50;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1() {
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -17650,16 +17695,16 @@ x_1 = lean_mk_string("result ");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2() {
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
|
|
@ -17743,7 +17788,7 @@ lean_inc(x_26);
|
|||
x_35 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam), 6, 1);
|
||||
lean_closure_set(x_35, 0, x_26);
|
||||
lean_inc(x_26);
|
||||
x_36 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1), 8, 2);
|
||||
x_36 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2), 8, 2);
|
||||
lean_closure_set(x_36, 0, x_8);
|
||||
lean_closure_set(x_36, 1, x_26);
|
||||
x_37 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
|
|
@ -17769,7 +17814,7 @@ x_40 = lean_ctor_get(x_38, 1);
|
|||
lean_inc(x_40);
|
||||
lean_dec(x_38);
|
||||
x_41 = lean_box(0);
|
||||
x_42 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_41, x_3, x_4, x_5, x_6, x_40);
|
||||
x_42 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_41, x_3, x_4, x_5, x_6, x_40);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -17887,7 +17932,7 @@ x_58 = lean_ctor_get(x_55, 1);
|
|||
lean_inc(x_58);
|
||||
lean_dec(x_55);
|
||||
x_59 = lean_box(0);
|
||||
x_60 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_59, x_3, x_4, x_5, x_6, x_58);
|
||||
x_60 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_59, x_3, x_4, x_5, x_6, x_58);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -17936,7 +17981,7 @@ if (lean_is_scalar(x_49)) {
|
|||
x_69 = x_49;
|
||||
}
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
x_70 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_69, x_3, x_4, x_5, x_6, x_68);
|
||||
x_70 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_69, x_3, x_4, x_5, x_6, x_68);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18066,7 +18111,7 @@ lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean
|
|||
lean_inc(x_48);
|
||||
x_90 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_90, 0, x_48);
|
||||
x_91 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2;
|
||||
x_91 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2;
|
||||
x_92 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_92, 0, x_91);
|
||||
lean_ctor_set(x_92, 1, x_90);
|
||||
|
|
@ -18157,7 +18202,7 @@ lean_inc(x_26);
|
|||
x_120 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam), 6, 1);
|
||||
lean_closure_set(x_120, 0, x_26);
|
||||
lean_inc(x_26);
|
||||
x_121 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1), 8, 2);
|
||||
x_121 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2), 8, 2);
|
||||
lean_closure_set(x_121, 0, x_8);
|
||||
lean_closure_set(x_121, 1, x_26);
|
||||
x_122 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
|
|
@ -18183,7 +18228,7 @@ x_125 = lean_ctor_get(x_123, 1);
|
|||
lean_inc(x_125);
|
||||
lean_dec(x_123);
|
||||
x_126 = lean_box(0);
|
||||
x_127 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_126, x_3, x_4, x_5, x_6, x_125);
|
||||
x_127 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_126, x_3, x_4, x_5, x_6, x_125);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18303,7 +18348,7 @@ x_143 = lean_ctor_get(x_140, 1);
|
|||
lean_inc(x_143);
|
||||
lean_dec(x_140);
|
||||
x_144 = lean_box(0);
|
||||
x_145 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_144, x_3, x_4, x_5, x_6, x_143);
|
||||
x_145 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_144, x_3, x_4, x_5, x_6, x_143);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18354,7 +18399,7 @@ if (lean_is_scalar(x_134)) {
|
|||
x_154 = x_134;
|
||||
}
|
||||
lean_ctor_set(x_154, 0, x_152);
|
||||
x_155 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_26, x_154, x_3, x_4, x_5, x_6, x_153);
|
||||
x_155 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_26, x_154, x_3, x_4, x_5, x_6, x_153);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18492,7 +18537,7 @@ lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178;
|
|||
lean_inc(x_133);
|
||||
x_175 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_175, 0, x_133);
|
||||
x_176 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2;
|
||||
x_176 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2;
|
||||
x_177 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_177, 0, x_176);
|
||||
lean_ctor_set(x_177, 1, x_175);
|
||||
|
|
@ -18705,7 +18750,7 @@ lean_inc(x_221);
|
|||
x_230 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam), 6, 1);
|
||||
lean_closure_set(x_230, 0, x_221);
|
||||
lean_inc(x_221);
|
||||
x_231 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1), 8, 2);
|
||||
x_231 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2), 8, 2);
|
||||
lean_closure_set(x_231, 0, x_8);
|
||||
lean_closure_set(x_231, 1, x_221);
|
||||
x_232 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
|
|
@ -18731,7 +18776,7 @@ x_235 = lean_ctor_get(x_233, 1);
|
|||
lean_inc(x_235);
|
||||
lean_dec(x_233);
|
||||
x_236 = lean_box(0);
|
||||
x_237 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_221, x_236, x_3, x_4, x_5, x_6, x_235);
|
||||
x_237 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_221, x_236, x_3, x_4, x_5, x_6, x_235);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18851,7 +18896,7 @@ x_253 = lean_ctor_get(x_250, 1);
|
|||
lean_inc(x_253);
|
||||
lean_dec(x_250);
|
||||
x_254 = lean_box(0);
|
||||
x_255 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_221, x_254, x_3, x_4, x_5, x_6, x_253);
|
||||
x_255 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_221, x_254, x_3, x_4, x_5, x_6, x_253);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -18902,7 +18947,7 @@ if (lean_is_scalar(x_244)) {
|
|||
x_264 = x_244;
|
||||
}
|
||||
lean_ctor_set(x_264, 0, x_262);
|
||||
x_265 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_221, x_264, x_3, x_4, x_5, x_6, x_263);
|
||||
x_265 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_221, x_264, x_3, x_4, x_5, x_6, x_263);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -19040,7 +19085,7 @@ lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288;
|
|||
lean_inc(x_243);
|
||||
x_285 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_285, 0, x_243);
|
||||
x_286 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2;
|
||||
x_286 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2;
|
||||
x_287 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_287, 0, x_286);
|
||||
lean_ctor_set(x_287, 1, x_285);
|
||||
|
|
@ -19278,7 +19323,7 @@ lean_inc(x_335);
|
|||
x_344 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam), 6, 1);
|
||||
lean_closure_set(x_344, 0, x_335);
|
||||
lean_inc(x_335);
|
||||
x_345 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1), 8, 2);
|
||||
x_345 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2), 8, 2);
|
||||
lean_closure_set(x_345, 0, x_8);
|
||||
lean_closure_set(x_345, 1, x_335);
|
||||
x_346 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
|
|
@ -19304,7 +19349,7 @@ x_349 = lean_ctor_get(x_347, 1);
|
|||
lean_inc(x_349);
|
||||
lean_dec(x_347);
|
||||
x_350 = lean_box(0);
|
||||
x_351 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_335, x_350, x_329, x_4, x_5, x_6, x_349);
|
||||
x_351 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_335, x_350, x_329, x_4, x_5, x_6, x_349);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -19424,7 +19469,7 @@ x_367 = lean_ctor_get(x_364, 1);
|
|||
lean_inc(x_367);
|
||||
lean_dec(x_364);
|
||||
x_368 = lean_box(0);
|
||||
x_369 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_335, x_368, x_329, x_4, x_5, x_6, x_367);
|
||||
x_369 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_335, x_368, x_329, x_4, x_5, x_6, x_367);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -19475,7 +19520,7 @@ if (lean_is_scalar(x_358)) {
|
|||
x_378 = x_358;
|
||||
}
|
||||
lean_ctor_set(x_378, 0, x_376);
|
||||
x_379 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_335, x_378, x_329, x_4, x_5, x_6, x_377);
|
||||
x_379 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_335, x_378, x_329, x_4, x_5, x_6, x_377);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -19613,7 +19658,7 @@ lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402;
|
|||
lean_inc(x_357);
|
||||
x_399 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_399, 0, x_357);
|
||||
x_400 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2;
|
||||
x_400 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2;
|
||||
x_401 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_401, 0, x_400);
|
||||
lean_ctor_set(x_401, 1, x_399);
|
||||
|
|
@ -19761,26 +19806,14 @@ return x_432;
|
|||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Core_instMonadOptionsCoreM___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___boxed), 5, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("typeclass inference");
|
||||
return x_1;
|
||||
|
|
@ -19790,13 +19823,13 @@ lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x
|
|||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_7 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___boxed), 7, 1);
|
||||
x_7 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___boxed), 7, 1);
|
||||
lean_closure_set(x_7, 0, x_1);
|
||||
x_8 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2;
|
||||
x_8 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1;
|
||||
x_9 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_9, 0, x_8);
|
||||
lean_closure_set(x_9, 1, x_7);
|
||||
x_10 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3;
|
||||
x_10 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2;
|
||||
x_11 = l_Lean_importModules___closed__1;
|
||||
x_12 = l_Lean_profileitM___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___spec__9___rarg(x_10, x_11, x_9, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_12;
|
||||
|
|
@ -19880,16 +19913,16 @@ lean_dec(x_1);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_object* x_6;
|
||||
x_6 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_8;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
|
|
@ -19897,6 +19930,18 @@ _start:
|
|||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_2);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -21429,8 +21474,6 @@ l_Lean_Meta_SynthInstance_newSubgoal___closed__5 = _init_l_Lean_Meta_SynthInstan
|
|||
lean_mark_persistent(l_Lean_Meta_SynthInstance_newSubgoal___closed__5);
|
||||
l_Lean_Meta_SynthInstance_newSubgoal___closed__6 = _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_SynthInstance_newSubgoal___closed__6);
|
||||
l_Lean_Meta_SynthInstance_newSubgoal___closed__7 = _init_l_Lean_Meta_SynthInstance_newSubgoal___closed__7();
|
||||
lean_mark_persistent(l_Lean_Meta_SynthInstance_newSubgoal___closed__7);
|
||||
l_Lean_Meta_SynthInstance_getEntry___closed__1 = _init_l_Lean_Meta_SynthInstance_getEntry___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_SynthInstance_getEntry___closed__1);
|
||||
l_Lean_Meta_SynthInstance_getEntry___closed__2 = _init_l_Lean_Meta_SynthInstance_getEntry___closed__2();
|
||||
|
|
@ -21532,24 +21575,22 @@ lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_324
|
|||
res = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_3247_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__2);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__3);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__1___closed__4);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__3___closed__2);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__2);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__3);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__2___closed__4);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___lambda__4___closed__2);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__2);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp_x3f___closed__3);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__1 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__1);
|
||||
l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__2 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthInstanceImp___closed__2();
|
||||
|
|
|
|||
10
stage0/stdlib/Lean/Meta/Tactic/Intro.c
generated
10
stage0/stdlib/Lean/Meta/Tactic/Intro.c
generated
|
|
@ -23,6 +23,7 @@ lean_object* l_Lean_Meta_intro1Core___boxed(lean_object*, lean_object*, lean_obj
|
|||
lean_object* lean_local_ctx_get_unused_name(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_introN(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*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4;
|
||||
uint8_t l_Lean_Meta_hygienicIntroDefault;
|
||||
|
|
@ -49,7 +50,6 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(l
|
|||
lean_object* l_Lean_Meta_whnf___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_introNCore___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -58,6 +58,7 @@ lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___ra
|
|||
lean_object* l_Lean_Meta_intro_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___closed__1;
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_533_(lean_object*);
|
||||
lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withNewLocalInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -70,7 +71,6 @@ lean_object* l_Lean_Meta_introNP(lean_object*, lean_object*, lean_object*, lean_
|
|||
lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__2(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*);
|
||||
extern lean_object* l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
lean_object* l_Lean_Meta_introNCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_monadNameGeneratorLift___rarg(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
|
||||
|
|
@ -378,7 +378,7 @@ lean_inc(x_12);
|
|||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_14 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_2);
|
||||
x_15 = l_Lean_Meta_mkLambdaFVars___rarg(x_14, x_2, x_12);
|
||||
|
|
@ -516,7 +516,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___closed__2;
|
||||
x_2 = l_ReaderT_instMonadLiftReaderT___closed__1;
|
||||
x_2 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__2;
|
||||
x_3 = l_Lean_monadNameGeneratorLift___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -821,7 +821,7 @@ lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean
|
|||
x_81 = lean_array_get_size(x_5);
|
||||
x_82 = lean_expr_instantiate_rev_range(x_8, x_6, x_81, x_5);
|
||||
lean_dec(x_8);
|
||||
x_83 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_83 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_84 = l_Lean_Meta_whnf___rarg(x_83, x_82);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
|
|||
192
stage0/stdlib/Lean/Meta/Transform.c
generated
192
stage0/stdlib/Lean/Meta/Transform.c
generated
|
|
@ -17,12 +17,11 @@ lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__
|
|||
lean_object* l_Lean_Meta_transform_visit_visitLambda_match__1(lean_object*);
|
||||
lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_transform_visit_visitForall___spec__3(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___spec__1___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* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___closed__2;
|
||||
lean_object* l_Lean_Core_transform(lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_transform_visit_visitForall___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -45,6 +44,7 @@ lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_transform_visit_visitLambda___spec__7(lean_object*);
|
||||
lean_object* l_Lean_Core_transform___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -73,7 +73,6 @@ lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__4(lean_obj
|
|||
lean_object* l_Lean_Meta_transform_visit_visitForall___rarg___lambda__13(lean_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_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLet___spec__5(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_transform_visit_visitForall___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__6(lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitForall_match__1(lean_object*);
|
||||
lean_object* l_Lean_Core_transform___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -111,6 +110,7 @@ lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__2(lean_obj
|
|||
lean_object* l_Lean_Core_transform_visit_visitPost_match__1(lean_object*);
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform_visit_visitPost_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___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_Lean_Meta_transform_visit_visitLambda___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*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitForall___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_Meta_transform_visit_visitForall___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*);
|
||||
|
|
@ -130,12 +130,13 @@ lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambd
|
|||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitPost_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit___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_Meta_transform___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___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* l_Lean_Meta_transform_visit_visitLambda___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*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at_Lean_Core_transform_visit___spec__2___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_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__2(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___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_Meta_mkForallFVars___at_Lean_Meta_transform_visit_visitForall___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -170,7 +171,7 @@ lean_object* l_Lean_Meta_transform_visit_match__1___rarg(lean_object*, lean_obje
|
|||
lean_object* l_ReaderT_bind___at_Lean_Core_transform_visit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLet___spec__10(lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___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* l_Lean_Meta_transform___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitLambda___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*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitForall___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_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__3(lean_object*);
|
||||
|
|
@ -187,12 +188,14 @@ lean_object* l_Lean_Core_transform_visit_visitPost___rarg___lambda__1(lean_objec
|
|||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitPost_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__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_Lean_Meta_transform___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform_visit_match__2(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLet___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform_visit_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLet___spec__8(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLambda___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
|
||||
|
|
@ -267,6 +270,7 @@ lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_transform_visit_visitLet___s
|
|||
lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_transform_visit_visitLet___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4(lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_transform_visit___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform_visit_visitLet___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*);
|
||||
|
|
@ -6110,39 +6114,106 @@ lean_dec(x_1);
|
|||
return x_15;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Core_transform___rarg___lambda__1___boxed), 4, 1);
|
||||
lean_closure_set(x_4, 0, x_3);
|
||||
x_5 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_5, 0, x_4);
|
||||
x_6 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_6, 0, x_5);
|
||||
x_7 = lean_apply_2(x_1, lean_box(0), x_6);
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_apply_1(x_1, x_6);
|
||||
x_8 = !lean_is_exclusive(x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_6 = lean_alloc_closure((void*)(l_Lean_Core_transform___rarg___lambda__4___boxed), 4, 1);
|
||||
lean_closure_set(x_6, 0, x_1);
|
||||
x_7 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_7, 0, x_6);
|
||||
x_8 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_8, 0, x_7);
|
||||
x_9 = lean_apply_2(x_2, lean_box(0), x_8);
|
||||
x_10 = lean_alloc_closure((void*)(l_StateRefT_x27_run___rarg___lambda__1), 3, 2);
|
||||
lean_closure_set(x_10, 0, x_3);
|
||||
lean_closure_set(x_10, 1, x_5);
|
||||
x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_9, x_10);
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_9);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__1___boxed), 6, 1);
|
||||
lean_closure_set(x_4, 0, x_3);
|
||||
x_5 = lean_apply_2(x_1, lean_box(0), x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_st_mk_ref(x_1, x_6);
|
||||
x_8 = !lean_is_exclusive(x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_9);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_st_ref_get(x_1, x_6);
|
||||
x_8 = !lean_is_exclusive(x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_9);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__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; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__4___boxed), 6, 1);
|
||||
lean_closure_set(x_6, 0, x_1);
|
||||
x_7 = lean_apply_2(x_2, lean_box(0), x_6);
|
||||
x_8 = lean_alloc_closure((void*)(l_StateRefT_x27_run___rarg___lambda__1), 3, 2);
|
||||
lean_closure_set(x_8, 0, x_3);
|
||||
lean_closure_set(x_8, 1, x_5);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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;
|
||||
|
|
@ -6151,7 +6222,7 @@ lean_inc(x_2);
|
|||
lean_inc(x_1);
|
||||
x_11 = l_Lean_Meta_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10);
|
||||
lean_inc(x_9);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__2), 5, 4);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__5), 5, 4);
|
||||
lean_closure_set(x_12, 0, x_10);
|
||||
lean_closure_set(x_12, 1, x_2);
|
||||
lean_closure_set(x_12, 2, x_1);
|
||||
|
|
@ -6164,18 +6235,8 @@ static lean_object* _init_l_Lean_Meta_transform___rarg___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Core_transform___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_transform___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_transform___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
x_1 = l_Std_HashMap_instInhabitedHashMap___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__3___boxed), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -6186,16 +6247,16 @@ _start:
|
|||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_7 = lean_box(0);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__1), 3, 1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__2), 3, 1);
|
||||
lean_closure_set(x_8, 0, x_2);
|
||||
x_9 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_9);
|
||||
x_10 = l_Lean_Meta_transform___rarg___closed__2;
|
||||
x_10 = l_Lean_Meta_transform___rarg___closed__1;
|
||||
lean_inc(x_2);
|
||||
x_11 = lean_apply_2(x_2, lean_box(0), x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_1);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__3), 10, 9);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__6), 10, 9);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
lean_closure_set(x_12, 1, x_2);
|
||||
lean_closure_set(x_12, 2, x_3);
|
||||
|
|
@ -6221,6 +6282,43 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg), 6, 0);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_transform___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_transform___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_transform___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Basic(lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
@ -6242,8 +6340,6 @@ l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___rarg___lambda_
|
|||
lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___rarg___lambda__2___boxed__const__1);
|
||||
l_Lean_Meta_transform___rarg___closed__1 = _init_l_Lean_Meta_transform___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_transform___rarg___closed__1);
|
||||
l_Lean_Meta_transform___rarg___closed__2 = _init_l_Lean_Meta_transform___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_transform___rarg___closed__2);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Meta/WHNF.c
generated
6
stage0/stdlib/Lean/Meta/WHNF.c
generated
|
|
@ -42,6 +42,7 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_getStuckMVarImp_x3f_match__
|
|||
lean_object* l_Lean_Meta_reduceMatcher_x3f_match__3(lean_object*);
|
||||
lean_object* l_Lean_Meta_reduceBinNatOp___closed__3;
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_object* l_Lean_Meta_reduceMatcher_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
|
|
@ -116,7 +117,6 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg___lambda__
|
|||
lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_reduceNatNative___rarg(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp_match__2(lean_object*);
|
||||
extern lean_object* l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___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_USize_decLt(size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5100,7 +5100,7 @@ case 1:
|
|||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_13 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
lean_inc(x_12);
|
||||
x_14 = l_Lean_Meta_getLocalDecl___rarg(x_13, x_12);
|
||||
lean_inc(x_6);
|
||||
|
|
@ -5417,7 +5417,7 @@ case 2:
|
|||
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_88 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_88);
|
||||
x_89 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__3;
|
||||
x_89 = l_Lean_Meta_commitWhenSome_x3f___rarg___closed__4;
|
||||
x_90 = l_Lean_Meta_getExprMVarAssignment_x3f___rarg(x_89, x_88);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
|
|||
57
stage0/stdlib/Lean/MetavarContext.c
generated
57
stage0/stdlib/Lean/MetavarContext.c
generated
|
|
@ -65,7 +65,6 @@ lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsO
|
|||
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__12___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
extern lean_object* l_EStateM_instMonadStateOfEStateM___closed__2;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__21(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContext_instantiateExprMVars___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*);
|
||||
|
|
@ -151,7 +150,7 @@ uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_exprDependsOn___spec
|
|||
lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_exprDependsOn___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_AssocList_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__39___rarg___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__22___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*);
|
||||
|
|
@ -210,7 +209,6 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_exprDependsOn___spec__12
|
|||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1;
|
||||
extern lean_object* l_instInhabitedNat;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__27___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_abstractRange(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__2;
|
||||
lean_object* l_Lean_MetavarContext_getDelayedRoot_match__2(lean_object*);
|
||||
|
|
@ -646,6 +644,7 @@ lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*);
|
|||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__31___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_withAppAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elim___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
size_t l_USize_mul(size_t, size_t);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3(lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapM___at_Lean_MetavarContext_instantiateExprMVars___spec__11(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__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -756,7 +755,7 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de
|
|||
lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(uint8_t, lean_object*);
|
||||
uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__35(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__20___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVarDepsAux_elimApp___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -881,6 +880,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVar
|
|||
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_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__19___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3___boxed(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_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_collectDeps___spec__57(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_renameMVar___closed__1;
|
||||
|
|
@ -32037,7 +32037,18 @@ x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_MetavarContext_MkBindi
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(uint8_t x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
|
|
@ -32049,7 +32060,7 @@ lean_ctor_set(x_5, 1, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
|
|
@ -32092,18 +32103,16 @@ return x_15;
|
|||
static lean_object* _init_l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_EStateM_instMonadStateOfEStateM___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed), 3, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -32123,7 +32132,7 @@ static lean_object* _init_l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheA
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2___boxed), 3, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -32157,15 +32166,14 @@ x_6 = l_ReaderT_bind___at_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAda
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(x_1, x_4, x_3);
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
x_4 = l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__1(x_3, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
|
|
@ -32175,6 +32183,17 @@ uint8_t x_4; lean_object* x_5;
|
|||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2(x_1, x_4, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__3(x_1, x_4, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Parser/Command.c
generated
16
stage0/stdlib/Lean/Parser/Command.c
generated
|
|
@ -58,7 +58,6 @@ lean_object* l_Lean_Parser_Command_structure_formatter(lean_object*, lean_object
|
|||
lean_object* l_Lean_Parser_Command_open___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_structCtor___closed__8;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_quot_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__5;
|
||||
|
|
@ -161,6 +160,7 @@ lean_object* l_Lean_Parser_Command_example___closed__3;
|
|||
lean_object* l_Lean_Parser_Command_ctor___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_theorem_formatter___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__9;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
lean_object* l_Lean_Parser_Command_structCtor___closed__9;
|
||||
lean_object* l_Lean_Parser_Command_structureTk___closed__4;
|
||||
lean_object* l_Lean_Parser_Command_structImplicitBinder___closed__1;
|
||||
|
|
@ -478,7 +478,6 @@ lean_object* l_Lean_Parser_Command_initialize___closed__1;
|
|||
lean_object* l_Lean_Parser_Command_in___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_Command_inferMod___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_def___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__5;
|
||||
lean_object* l_Lean_Parser_Command_openHiding___closed__7;
|
||||
|
|
@ -2253,6 +2252,7 @@ lean_object* l_Lean_Parser_Command_open___closed__10;
|
|||
lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_quot___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_structCtor___elambda__1(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
lean_object* l_Lean_Parser_Command_partial;
|
||||
lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__11;
|
||||
|
|
@ -11632,7 +11632,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_docComment_formatter___closed__3;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
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);
|
||||
|
|
@ -12101,7 +12101,7 @@ static lean_object* _init_l_Lean_Parser_Command_declModifiers_formatter___closed
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_ppDedent_formatter), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -14410,7 +14410,7 @@ static lean_object* _init_l_Lean_Parser_Command_structFields_formatter___closed_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Command_structFields_formatter___closed__9;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -14984,7 +14984,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_docComment_parenthesizer___closed__2;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
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);
|
||||
|
|
@ -15391,7 +15391,7 @@ static lean_object* _init_l_Lean_Parser_Command_declModifiers_parenthesizer___cl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_ppDedent_parenthesizer), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -17340,7 +17340,7 @@ static lean_object* _init_l_Lean_Parser_Command_structFields_parenthesizer___clo
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Command_structFields_parenthesizer___closed__9;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
|
|||
158
stage0/stdlib/Lean/Parser/Do.c
generated
158
stage0/stdlib/Lean/Parser/Do.c
generated
|
|
@ -34,7 +34,6 @@ lean_object* l_Lean_Parser_Term_doNested___elambda__1(lean_object*, lean_object*
|
|||
lean_object* l_Lean_Parser_Term_doSeqItem___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Term_doSeqIndent___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_doElemParser(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
lean_object* l_Lean_Parser_Term_doUnless_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_doSeqBracketed___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doLet___closed__6;
|
||||
|
|
@ -86,6 +85,7 @@ lean_object* l_Lean_Parser_Term_doContinue___elambda__1___closed__2;
|
|||
lean_object* l_Lean_Parser_Term_doMatch_parenthesizer___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_doCatch___closed__8;
|
||||
lean_object* l_Lean_Parser_Term_doLetArrow___elambda__1___closed__7;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
lean_object* l_Lean_Parser_Term_doUnless___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_doIf_formatter___closed__20;
|
||||
lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__6;
|
||||
|
|
@ -274,7 +274,6 @@ lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__3;
|
|||
lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__14;
|
||||
lean_object* l_Lean_Parser_Term_doHave___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Term_doElem_quot_formatter___closed__3;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
lean_object* l_Lean_Parser_Term_doCatchMatch___closed__5;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_termUnless_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doTry_formatter___closed__8;
|
||||
|
|
@ -356,6 +355,7 @@ lean_object* l_Lean_Parser_Term_doCatchMatch___elambda__1___closed__7;
|
|||
lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_doIf___elambda__1___closed__22;
|
||||
lean_object* l_Lean_Parser_Term_doReassign_formatter___closed__4;
|
||||
extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__9;
|
||||
lean_object* l_Lean_Parser_Term_doAssert___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_termUnless_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_group_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -610,7 +610,6 @@ lean_object* l_Lean_Parser_Term_doMatchAlts___elambda__1___closed__1;
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_withForbidden_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_termReturn;
|
||||
lean_object* l_Lean_Parser_Term_doFor;
|
||||
lean_object* l_Lean_Parser_Term_doSeqItem___elambda__1___closed__11;
|
||||
lean_object* l_Lean_Parser_Term_doLetArrow;
|
||||
lean_object* l_Lean_Parser_Term_termUnless___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_doFor___elambda__1___closed__2;
|
||||
|
|
@ -958,6 +957,7 @@ lean_object* l_Lean_Parser_Term_doUnless___elambda__1___closed__14;
|
|||
lean_object* l_Lean_Parser_Term_doSeqBracketed_parenthesizer___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__23;
|
||||
lean_object* l_Lean_Parser_Term_doCatch_parenthesizer___closed__1;
|
||||
extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Term_doSeqIndent___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_doFor___closed__6;
|
||||
|
|
@ -1157,7 +1157,6 @@ lean_object* l_Lean_Parser_Term_termTry_parenthesizer___closed__1;
|
|||
lean_object* l_Lean_Parser_Term_doFor_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_doSeqItem___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_letIdDeclNoBinders_parenthesizer___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_doSeqItem___elambda__1___closed__12;
|
||||
lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__36;
|
||||
lean_object* l_Lean_Parser_Term_doDbgTrace___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_doElem_quot___elambda__1___closed__11;
|
||||
|
|
@ -1326,6 +1325,7 @@ lean_object* l_Lean_Parser_Term_termFor___elambda__1___closed__3;
|
|||
lean_object* l_Lean_Parser_doElemParser_formatter___boxed(lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_doUnless_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doLetRec_formatter___closed__1;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
extern lean_object* l_Lean_Parser_Term_matchAlt_formatter___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Term_matchAlts___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_doIdDecl___elambda__1___closed__10;
|
||||
|
|
@ -2167,43 +2167,25 @@ return x_5;
|
|||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("doSeqItem");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__4() {
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__7;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_3 = 1;
|
||||
x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__5() {
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -2212,27 +2194,27 @@ x_2 = l_String_trim(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6() {
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__5;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3;
|
||||
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_Term_doSeqItem___elambda__1___closed__7() {
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__4;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_optionalFn), 3, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8() {
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -2244,13 +2226,37 @@ lean_closure_set(x_3, 1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___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);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_instInhabitedParser___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__7;
|
||||
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_Term_doSeqItem___elambda__1___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__7;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
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;
|
||||
|
|
@ -2260,32 +2266,8 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__10
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_instInhabitedParser___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___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_Term_doSeqItem___elambda__1___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___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_Term_doSeqItem___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_Term_doSeqItem___elambda__1___closed__11;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___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);
|
||||
|
|
@ -2296,10 +2278,10 @@ lean_object* l_Lean_Parser_Term_doSeqItem___elambda__1(lean_object* x_1, lean_ob
|
|||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_3 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__4;
|
||||
x_3 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
x_5 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__12;
|
||||
x_5 = l_Lean_Parser_Term_doSeqItem___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;
|
||||
|
|
@ -2319,7 +2301,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__5;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3;
|
||||
x_2 = l_Lean_Parser_symbolInfo(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -2359,7 +2341,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem___closed__6() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___closed__5;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -2379,7 +2361,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem___closed__8() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Term_doSeqItem___closed__7;
|
||||
|
|
@ -4528,7 +4510,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doIdDecl___elambda__1___closed__7;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
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);
|
||||
|
|
@ -4763,7 +4745,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doPatDecl___elambda__1___closed__9;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
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);
|
||||
|
|
@ -4784,7 +4766,7 @@ static lean_object* _init_l_Lean_Parser_Term_doPatDecl___elambda__1___closed__12
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
x_2 = l_Lean_Parser_Term_doPatDecl___elambda__1___closed__11;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -8490,8 +8472,8 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_formatter___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__7;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_3 = 1;
|
||||
x_4 = lean_box(x_3);
|
||||
x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3);
|
||||
|
|
@ -8537,7 +8519,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_formatter___closed__5() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem_formatter___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -8549,7 +8531,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_formatter___closed__6() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Term_doSeqItem_formatter___closed__5;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
|
|
@ -9101,7 +9083,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_parenthesizer___closed__1
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__1;
|
||||
x_2 = 1;
|
||||
x_3 = lean_box(x_2);
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2);
|
||||
|
|
@ -9126,7 +9108,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_parenthesizer___closed__3
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Term_doSeqItem_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);
|
||||
|
|
@ -9138,7 +9120,7 @@ static lean_object* _init_l_Lean_Parser_Term_doSeqItem_parenthesizer___closed__4
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Term_doSeqItem_parenthesizer___closed__3;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3);
|
||||
|
|
@ -15440,7 +15422,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr___elambda__1___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -15450,7 +15432,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr___elambda__1___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__7;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__9;
|
||||
x_2 = l_Lean_Parser_Term_doExpr___elambda__1___closed__1;
|
||||
x_3 = 1;
|
||||
x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3);
|
||||
|
|
@ -15473,7 +15455,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr___elambda__1___closed__4() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_2 = l_Lean_Parser_Term_doExpr___elambda__1___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -15524,7 +15506,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_2 = l_Lean_Parser_Term_doExpr___closed__1;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -15585,7 +15567,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Do___hyg_4____closed__4;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_4 = 1;
|
||||
x_5 = l_Lean_Parser_Term_doExpr;
|
||||
x_6 = lean_unsigned_to_nat(0u);
|
||||
|
|
@ -15597,7 +15579,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr_formatter___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__7;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__9;
|
||||
x_2 = l_Lean_Parser_Term_doExpr___elambda__1___closed__1;
|
||||
x_3 = 1;
|
||||
x_4 = lean_box(x_3);
|
||||
|
|
@ -15624,7 +15606,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr_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_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Term_doExpr_formatter___closed__2;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
|
|
@ -15657,7 +15639,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_formatterAttribute;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_4 = l___regBuiltin_Lean_Parser_Term_doExpr_formatter___closed__1;
|
||||
x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -15692,7 +15674,7 @@ static lean_object* _init_l_Lean_Parser_Term_doExpr_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_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_1 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Term_doExpr_parenthesizer___closed__2;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3);
|
||||
|
|
@ -15725,7 +15707,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__8;
|
||||
x_3 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_195____closed__10;
|
||||
x_4 = l___regBuiltin_Lean_Parser_Term_doExpr_parenthesizer___closed__1;
|
||||
x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -16311,7 +16293,7 @@ static lean_object* _init_l_Lean_Parser_Term_doElem_quot___elambda__1___closed__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__8;
|
||||
x_1 = l_Lean_Parser_Term_doSeqItem___elambda__1___closed__6;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_toggleInsideQuotFn), 3, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -17862,10 +17844,6 @@ l_Lean_Parser_Term_doSeqItem___elambda__1___closed__9 = _init_l_Lean_Parser_Term
|
|||
lean_mark_persistent(l_Lean_Parser_Term_doSeqItem___elambda__1___closed__9);
|
||||
l_Lean_Parser_Term_doSeqItem___elambda__1___closed__10 = _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__10();
|
||||
lean_mark_persistent(l_Lean_Parser_Term_doSeqItem___elambda__1___closed__10);
|
||||
l_Lean_Parser_Term_doSeqItem___elambda__1___closed__11 = _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__11();
|
||||
lean_mark_persistent(l_Lean_Parser_Term_doSeqItem___elambda__1___closed__11);
|
||||
l_Lean_Parser_Term_doSeqItem___elambda__1___closed__12 = _init_l_Lean_Parser_Term_doSeqItem___elambda__1___closed__12();
|
||||
lean_mark_persistent(l_Lean_Parser_Term_doSeqItem___elambda__1___closed__12);
|
||||
l_Lean_Parser_Term_doSeqItem___closed__1 = _init_l_Lean_Parser_Term_doSeqItem___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Term_doSeqItem___closed__1);
|
||||
l_Lean_Parser_Term_doSeqItem___closed__2 = _init_l_Lean_Parser_Term_doSeqItem___closed__2();
|
||||
|
|
|
|||
905
stage0/stdlib/Lean/Parser/Extra.c
generated
905
stage0/stdlib/Lean/Parser/Extra.c
generated
File diff suppressed because it is too large
Load diff
20
stage0/stdlib/Lean/Parser/Module.c
generated
20
stage0/stdlib/Lean/Parser/Module.c
generated
|
|
@ -15,7 +15,6 @@ extern "C" {
|
|||
#endif
|
||||
lean_object* lean_string_push(lean_object*, uint32_t);
|
||||
lean_object* l_Lean_Parser_Module_import___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
lean_object* l_Lean_Parser_Module_header_parenthesizer___closed__10;
|
||||
lean_object* l_Lean_Parser_Module_module_parenthesizer___closed__6;
|
||||
lean_object* l_Lean_Parser_Module_module_formatter___closed__2;
|
||||
|
|
@ -36,6 +35,7 @@ lean_object* l_Lean_Parser_Module_import___closed__8;
|
|||
lean_object* lean_io_timeit(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Module_module_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Module_import___closed__4;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
lean_object* l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_0__Lean_Parser_testModuleParserAux_loop___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Module_module_formatter___closed__9;
|
||||
lean_object* l_Lean_Parser_parseModule(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -81,7 +81,6 @@ lean_object* l_Lean_MessageLog_forM___at___private_Lean_Parser_Module_0__Lean_Pa
|
|||
lean_object* l_Lean_Parser_Module_header___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Module_prelude_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Module_module___closed__3;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
lean_object* l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__1;
|
||||
lean_object* l_IO_println___at___private_Lean_Parser_Module_0__Lean_Parser_testModuleParserAux_loop___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Module_header___elambda__1___closed__8;
|
||||
|
|
@ -305,6 +304,7 @@ lean_object* l_Lean_Parser_ModuleParserState_pos___default;
|
|||
lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Parser_isEOI(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Parser_Module_0__Lean_Parser_testModuleParserAux_loop___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
lean_object* l_Lean_Parser_Module_prelude_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Parser_Module_0__Lean_Parser_testModuleParserAux_loop___lambda__2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_manyFn(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1237,7 +1237,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_formatter___closed__2;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
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);
|
||||
|
|
@ -1267,7 +1267,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_formatter___closed__5;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
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);
|
||||
|
|
@ -1289,7 +1289,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_formatter___closed__7;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
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);
|
||||
|
|
@ -1379,7 +1379,7 @@ static lean_object* _init_l_Lean_Parser_Module_module_formatter___closed__5() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
lean_closure_set(x_2, 1, x_1);
|
||||
|
|
@ -1576,7 +1576,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_parenthesizer___closed__2;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
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);
|
||||
|
|
@ -1606,7 +1606,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_parenthesizer___closed__5;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
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);
|
||||
|
|
@ -1628,7 +1628,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Module_header_parenthesizer___closed__7;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
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);
|
||||
|
|
@ -1688,7 +1688,7 @@ static lean_object* _init_l_Lean_Parser_Module_module_parenthesizer___closed__2(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
lean_closure_set(x_2, 1, x_1);
|
||||
|
|
|
|||
12
stage0/stdlib/Lean/Parser/Syntax.c
generated
12
stage0/stdlib/Lean/Parser/Syntax.c
generated
|
|
@ -216,6 +216,7 @@ lean_object* l_Lean_Parser_Syntax_unary_parenthesizer___closed__4;
|
|||
extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_mixfix_formatter___closed__5;
|
||||
lean_object* l_Lean_Parser_Command_identPrec_parenthesizer___closed__1;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
lean_object* l_Lean_Parser_maxSymbol___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Syntax_unary_parenthesizer___closed__1;
|
||||
extern lean_object* l_Lean_Parser_darrow;
|
||||
|
|
@ -234,7 +235,6 @@ lean_object* l_Lean_Parser_Command_parserKindPrio___elambda__1(lean_object*, lea
|
|||
lean_object* l_Lean_Parser_Command_elabTail_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Parser_Command_elab__rules_parenthesizer(lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_elab__rules_formatter___closed__6;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_stx_quot(lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__13;
|
||||
lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__7;
|
||||
|
|
@ -1276,6 +1276,7 @@ lean_object* l_Lean_Parser_Command_elab_parenthesizer___closed__9;
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_suppressInsideQuot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_syntax___closed__2;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Syntax_atom(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
lean_object* l_Lean_Parser_Command_elabTail___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_maxSymbol___closed__4;
|
||||
lean_object* l_Lean_Parser_Command_elabTail___closed__5;
|
||||
|
|
@ -1360,7 +1361,6 @@ lean_object* l_Lean_Parser_Syntax_binary_parenthesizer___closed__6;
|
|||
lean_object* l_Lean_Parser_Syntax_unary_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_mixfix_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__3;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
lean_object* l_Lean_Parser_Command_prefix___elambda__1(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_strLit___closed__2;
|
||||
lean_object* l_Lean_Parser_Syntax_cat___elambda__1___closed__4;
|
||||
|
|
@ -6390,7 +6390,7 @@ static lean_object* _init_l_Lean_Parser_Command_mixfix_formatter___closed__3() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_2 = l_Lean_Parser_Command_mixfix_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);
|
||||
|
|
@ -6773,7 +6773,7 @@ static lean_object* _init_l_Lean_Parser_Command_mixfix_parenthesizer___closed__3
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_2 = l_Lean_Parser_Command_mixfix_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);
|
||||
|
|
@ -7597,7 +7597,7 @@ lean_object* l_Lean_Parser_Command_notationItem_formatter(lean_object* x_1, lean
|
|||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_6 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_7 = l_Lean_Parser_Command_notationItem_formatter___closed__4;
|
||||
x_8 = l_Lean_PrettyPrinter_Formatter_andthen_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
|
|
@ -7811,7 +7811,7 @@ lean_object* l_Lean_Parser_Command_notationItem_parenthesizer(lean_object* x_1,
|
|||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_6 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_7 = l_Lean_Parser_Command_notationItem_parenthesizer___closed__4;
|
||||
x_8 = l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
|
|
|
|||
56
stage0/stdlib/Lean/Parser/Term.c
generated
56
stage0/stdlib/Lean/Parser/Term.c
generated
|
|
@ -66,7 +66,6 @@ lean_object* l_Lean_Parser_Term_uminus___elambda__1___closed__11;
|
|||
lean_object* l_Lean_Parser_Term_let_x2a_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_letrec_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_funImplicitBinder_formatter___closed__3;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
lean_object* l_Lean_Parser_Term_matchAlts_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_matchDiscr___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_sufficesDecl_parenthesizer___closed__1;
|
||||
|
|
@ -207,6 +206,7 @@ lean_object* l_Lean_Parser_Term_show;
|
|||
lean_object* l_Lean_Parser_Level_quot_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_matchDiscr___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_num_formatter___closed__1;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
lean_object* l_Lean_Parser_Term_explicitUniv_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_anonymousCtor_formatter___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_binderType_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -577,6 +577,7 @@ lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__6;
|
|||
lean_object* l___regBuiltin_Lean_Parser_Term_cdot_parenthesizer(lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_macroDollarArg___elambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__10;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_type_parenthesizer___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_prop_parenthesizer(lean_object*);
|
||||
lean_object* l_Lean_Parser_darrow;
|
||||
|
|
@ -638,7 +639,6 @@ lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__6;
|
|||
lean_object* l_Lean_Parser_Term_byTactic___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_let_x2a_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__3;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
lean_object* l_Lean_Parser_Term_hole___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_assert___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Tactic_quotSeq_formatter___closed__4;
|
||||
|
|
@ -659,7 +659,6 @@ lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__5;
|
|||
lean_object* l_Lean_Parser_Term_ensureTypeOf___closed__7;
|
||||
lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__1;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_syntheticHole(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_attributes_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_optIdent_formatter___closed__1;
|
||||
|
|
@ -2162,7 +2161,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_withPosition_formatter(lean_object*,
|
|||
lean_object* l___regBuiltinParser_Lean_Parser_Term_str___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_sort___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_funBinder_formatter___closed__4;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__10;
|
||||
lean_object* l_Lean_Parser_Term_optType___elambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_matchDiscr_parenthesizer___closed__3;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_structInst_formatter(lean_object*);
|
||||
|
|
@ -2254,6 +2252,7 @@ lean_object* l_Lean_Parser_Term_let_x2a___elambda__1___closed__1;
|
|||
lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_basicFun_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Level_quot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__10;
|
||||
lean_object* l_Lean_Parser_Term_matchDiscr_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_haveDecl_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_ensureExpectedType___closed__3;
|
||||
|
|
@ -2904,6 +2903,7 @@ lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3;
|
|||
lean_object* l_Lean_Parser_Term_tupleTail_parenthesizer___closed__1;
|
||||
extern lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__3___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_structInstArrayRef;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__12;
|
||||
lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__5;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_ensureExpectedType_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__7;
|
||||
|
|
@ -3038,7 +3038,6 @@ lean_object* l_Lean_Parser_Term_basicFun_parenthesizer___closed__4;
|
|||
lean_object* l_Lean_Parser_Term_macroDollarArg_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_nativeDecide_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_nameLit_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__12;
|
||||
lean_object* l_Lean_Parser_Term_tparser_x21___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_proj_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__3;
|
||||
|
|
@ -3189,6 +3188,7 @@ lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__6;
|
|||
lean_object* l___regBuiltinParser_Lean_Parser_Term_namedPattern(lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_attrInstance___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_typeAscription___closed__6;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
lean_object* l_Lean_Parser_Term_namedPattern_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_haveDecl___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_ensureTypeOf_parenthesizer___closed__5;
|
||||
|
|
@ -3437,6 +3437,7 @@ lean_object* l_Lean_Parser_Term_binderIdent___elambda__1(lean_object*, lean_obje
|
|||
lean_object* l_Lean_Parser_Term_parser_x21_formatter___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_simpleBinder___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_ensureTypeOf___closed__6;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__6;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_borrowed(lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__11;
|
||||
|
|
@ -3625,7 +3626,6 @@ lean_object* l_Lean_Parser_Term_bracketedBinder___boxed(lean_object*);
|
|||
lean_object* l_Lean_Parser_Term_depArrow___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_funImplicitBinder_formatter___closed__2;
|
||||
extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_pipeProj_parenthesizer(lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_5739____closed__8;
|
||||
extern lean_object* l_Lean_Parser_strLit___closed__2;
|
||||
|
|
@ -5353,7 +5353,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__6;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -5395,7 +5395,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__10;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -5696,7 +5696,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -5728,7 +5728,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -12484,7 +12484,7 @@ lean_object* l_Lean_Parser_Term_optSemicolon_formatter(lean_object* x_1, lean_ob
|
|||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_7 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_7 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_7);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
|
|
@ -12795,7 +12795,7 @@ lean_object* l_Lean_Parser_Term_optSemicolon_parenthesizer(lean_object* x_1, lea
|
|||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_7 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_7);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
|
|
@ -15592,7 +15592,7 @@ static lean_object* _init_l_Lean_Parser_Term_structInst_formatter___closed__19()
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__10;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__10;
|
||||
x_2 = l_Lean_Parser_Term_structInst_formatter___closed__18;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -16014,7 +16014,7 @@ static lean_object* _init_l_Lean_Parser_Term_structInst_parenthesizer___closed__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__12;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__12;
|
||||
x_2 = l_Lean_Parser_Term_structInst_parenthesizer___closed__12;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -20093,7 +20093,7 @@ static lean_object* _init_l_Lean_Parser_Term_forall_formatter___closed__6() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_2 = l_Lean_Parser_Term_forall_formatter___closed__5;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -20349,7 +20349,7 @@ static lean_object* _init_l_Lean_Parser_Term_forall_parenthesizer___closed__5()
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_2 = l_Lean_Parser_Term_forall_parenthesizer___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -21716,7 +21716,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_formatter___closed__6() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_formatter___closed__5;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -21752,7 +21752,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_formatter___closed__9() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_formatter___closed__8;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -21820,7 +21820,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_formatter___closed__15()
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__22;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__22;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_formatter___closed__14;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -22231,7 +22231,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_parenthesizer___closed__5
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_parenthesizer___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -22267,7 +22267,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_parenthesizer___closed__8
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_parenthesizer___closed__7;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -22325,7 +22325,7 @@ static lean_object* _init_l_Lean_Parser_Term_matchAlts_parenthesizer___closed__1
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__24;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__24;
|
||||
x_2 = l_Lean_Parser_Term_matchAlts_parenthesizer___closed__12;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -23763,7 +23763,7 @@ static lean_object* _init_l_Lean_Parser_Term_basicFun_formatter___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_2 = l_Lean_Parser_Term_basicFun_formatter___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -24087,7 +24087,7 @@ static lean_object* _init_l_Lean_Parser_Term_basicFun_parenthesizer___closed__2(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_2 = l_Lean_Parser_Term_basicFun_parenthesizer___closed__1;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -27444,7 +27444,7 @@ static lean_object* _init_l_Lean_Parser_Term_letIdLhs_formatter___closed__3() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_2 = l_Lean_Parser_Term_letIdLhs_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);
|
||||
|
|
@ -27886,7 +27886,7 @@ static lean_object* _init_l_Lean_Parser_Term_letIdLhs_parenthesizer___closed__3(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_2 = l_Lean_Parser_Term_letIdLhs_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);
|
||||
|
|
@ -30211,7 +30211,7 @@ static lean_object* _init_l_Lean_Parser_Term_attrInstance_formatter___closed__3(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__16;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__16;
|
||||
x_2 = l_Lean_Parser_Term_attrInstance_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);
|
||||
|
|
@ -30606,7 +30606,7 @@ static lean_object* _init_l_Lean_Parser_Term_attrInstance_parenthesizer___closed
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_567____closed__18;
|
||||
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_585____closed__18;
|
||||
x_2 = l_Lean_Parser_Term_attrInstance_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);
|
||||
|
|
|
|||
1588
stage0/stdlib/Lean/Parser/Transform.c
generated
Normal file
1588
stage0/stdlib/Lean/Parser/Transform.c
generated
Normal file
File diff suppressed because it is too large
Load diff
341
stage0/stdlib/Lean/ParserCompiler.c
generated
341
stage0/stdlib/Lean/ParserCompiler.c
generated
|
|
@ -66,11 +66,9 @@ lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__20(lean_ob
|
|||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__43(lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9;
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_MetaM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t l_USize_sub(size_t, size_t);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_setEnv___at_Lean_ParserCompiler_compileParserExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__3;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_Context_tyName___rarg(lean_object*);
|
||||
|
|
@ -85,9 +83,7 @@ lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38___boxed
|
|||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__9(lean_object*);
|
||||
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfCoreImp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1;
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__10(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -96,13 +92,16 @@ lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr__
|
|||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2;
|
||||
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
|
||||
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___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*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr_match__4(lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Expr_getAppArgs___closed__1;
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___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*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__47(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_instInhabitedCoreM___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_mkParserOfConstantUnsafe_match__1___rarg___closed__2;
|
||||
|
|
@ -112,6 +111,7 @@ lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18(lean_ob
|
|||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__42(lean_object*);
|
||||
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__11(lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1;
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addAttribute(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__11___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*);
|
||||
|
|
@ -372,7 +372,7 @@ lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
|
|||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
|
||||
lean_object* l_Nat_min(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(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*);
|
||||
|
|
@ -24470,7 +24470,76 @@ return x_16;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1() {
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13;
|
||||
x_9 = lean_st_mk_ref(x_1, x_8);
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_9);
|
||||
x_12 = 1;
|
||||
lean_inc(x_10);
|
||||
x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_2, x_12, x_3, x_4, x_10, x_6, x_7, x_11);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
x_16 = lean_st_ref_get(x_10, x_15);
|
||||
lean_dec(x_10);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_18);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_14);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
lean_dec(x_10);
|
||||
x_21 = !lean_is_exclusive(x_13);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_13, 0);
|
||||
x_23 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_13);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -24480,7 +24549,7 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2() {
|
||||
static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -24490,7 +24559,7 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_29;
|
||||
|
|
@ -24506,12 +24575,12 @@ lean_inc(x_31);
|
|||
lean_dec(x_29);
|
||||
x_32 = l_Lean_ConstantInfo_type(x_30);
|
||||
lean_dec(x_30);
|
||||
x_33 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1;
|
||||
x_33 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1;
|
||||
x_34 = l_Lean_Expr_isConstOf(x_32, x_33);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35; uint8_t x_36;
|
||||
x_35 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
|
||||
x_35 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2;
|
||||
x_36 = l_Lean_Expr_isConstOf(x_32, x_35);
|
||||
lean_dec(x_32);
|
||||
if (x_36 == 0)
|
||||
|
|
@ -24526,37 +24595,50 @@ return x_38;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_39 = lean_box(0);
|
||||
x_40 = l_Lean_mkConst(x_3, x_39);
|
||||
x_41 = 1;
|
||||
x_42 = lean_box(x_41);
|
||||
x_43 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___boxed), 8, 3);
|
||||
lean_closure_set(x_43, 0, x_1);
|
||||
lean_closure_set(x_43, 1, x_42);
|
||||
x_41 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
|
||||
x_42 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1;
|
||||
x_43 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed), 8, 4);
|
||||
lean_closure_set(x_43, 0, x_41);
|
||||
lean_closure_set(x_43, 1, x_1);
|
||||
lean_closure_set(x_43, 2, x_40);
|
||||
x_44 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1;
|
||||
x_45 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
|
||||
x_46 = lean_alloc_closure((void*)(l_Lean_Meta_MetaM_run_x27___rarg), 6, 3);
|
||||
lean_closure_set(x_46, 0, x_43);
|
||||
lean_closure_set(x_46, 1, x_44);
|
||||
lean_closure_set(x_46, 2, x_45);
|
||||
x_47 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_47, 0, x_46);
|
||||
x_48 = l_Functor_discard___at_Lean_ParserCompiler_registerParserCompiler___spec__1(x_47, x_5, x_6, x_7, x_31);
|
||||
return x_48;
|
||||
lean_closure_set(x_43, 3, x_42);
|
||||
x_44 = l_Functor_discard___at_Lean_ParserCompiler_registerParserCompiler___spec__1(x_43, x_5, x_6, x_7, x_31);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49;
|
||||
lean_object* x_45;
|
||||
lean_inc(x_3);
|
||||
x_49 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_33, x_3, x_5, x_6, x_7, x_31);
|
||||
x_45 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_33, x_3, x_5, x_6, x_7, x_31);
|
||||
if (lean_obj_tag(x_45) == 0)
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
x_46 = lean_ctor_get(x_45, 0);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_45);
|
||||
x_9 = x_46;
|
||||
x_10 = x_47;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49;
|
||||
x_48 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_45);
|
||||
x_49 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_35, x_3, x_5, x_6, x_7, x_48);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
x_51 = lean_ctor_get(x_49, 1);
|
||||
|
|
@ -24568,47 +24650,27 @@ goto block_28;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53;
|
||||
x_52 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_49);
|
||||
x_53 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_35, x_3, x_5, x_6, x_7, x_52);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55;
|
||||
x_54 = lean_ctor_get(x_53, 0);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_53);
|
||||
x_9 = x_54;
|
||||
x_10 = x_55;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_56;
|
||||
uint8_t x_52;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_1);
|
||||
x_56 = !lean_is_exclusive(x_53);
|
||||
if (x_56 == 0)
|
||||
x_52 = !lean_is_exclusive(x_49);
|
||||
if (x_52 == 0)
|
||||
{
|
||||
return x_53;
|
||||
return x_49;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_53, 0);
|
||||
x_58 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_53);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_53 = lean_ctor_get(x_49, 0);
|
||||
x_54 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_54);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_49);
|
||||
x_55 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
lean_ctor_set(x_55, 1, x_54);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -24616,98 +24678,98 @@ return x_59;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60;
|
||||
lean_object* x_56;
|
||||
lean_dec(x_32);
|
||||
lean_inc(x_3);
|
||||
x_60 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_33, x_3, x_5, x_6, x_7, x_31);
|
||||
if (lean_obj_tag(x_60) == 0)
|
||||
x_56 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_33, x_3, x_5, x_6, x_7, x_31);
|
||||
if (lean_obj_tag(x_56) == 0)
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62;
|
||||
lean_object* x_57; lean_object* x_58;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
x_61 = lean_ctor_get(x_60, 0);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_60);
|
||||
x_9 = x_61;
|
||||
x_10 = x_62;
|
||||
x_57 = lean_ctor_get(x_56, 0);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_56);
|
||||
x_9 = x_57;
|
||||
x_10 = x_58;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_63 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_60);
|
||||
x_64 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
|
||||
x_65 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_64, x_3, x_5, x_6, x_7, x_63);
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_59 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_56);
|
||||
x_60 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2;
|
||||
x_61 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_60, x_3, x_5, x_6, x_7, x_59);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_65) == 0)
|
||||
if (lean_obj_tag(x_61) == 0)
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67;
|
||||
x_66 = lean_ctor_get(x_65, 0);
|
||||
lean_inc(x_66);
|
||||
x_67 = lean_ctor_get(x_65, 1);
|
||||
lean_inc(x_67);
|
||||
lean_dec(x_65);
|
||||
x_9 = x_66;
|
||||
x_10 = x_67;
|
||||
lean_object* x_62; lean_object* x_63;
|
||||
x_62 = lean_ctor_get(x_61, 0);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_61);
|
||||
x_9 = x_62;
|
||||
x_10 = x_63;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_64;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_1);
|
||||
x_64 = !lean_is_exclusive(x_61);
|
||||
if (x_64 == 0)
|
||||
{
|
||||
return x_61;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_65 = lean_ctor_get(x_61, 0);
|
||||
x_66 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_66);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_61);
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_68;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_1);
|
||||
x_68 = !lean_is_exclusive(x_65);
|
||||
if (x_68 == 0)
|
||||
{
|
||||
return x_65;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_69 = lean_ctor_get(x_65, 0);
|
||||
x_70 = lean_ctor_get(x_65, 1);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_65);
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
return x_71;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_72;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_72 = !lean_is_exclusive(x_29);
|
||||
if (x_72 == 0)
|
||||
x_68 = !lean_is_exclusive(x_29);
|
||||
if (x_68 == 0)
|
||||
{
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_73 = lean_ctor_get(x_29, 0);
|
||||
x_74 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_69 = lean_ctor_get(x_29, 0);
|
||||
x_70 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_29);
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_73);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
return x_75;
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
return x_71;
|
||||
}
|
||||
}
|
||||
block_28:
|
||||
|
|
@ -24784,7 +24846,7 @@ lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg(lean_object* x_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed), 8, 1);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___boxed), 8, 1);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
x_4 = l_Lean_Parser_registerParserAttributeHook(x_3, x_2);
|
||||
return x_4;
|
||||
|
|
@ -24801,10 +24863,19 @@ return x_2;
|
|||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_5);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_ParserCompiler_registerParserCompiler___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9; lean_object* x_10;
|
||||
x_9 = lean_unbox(x_4);
|
||||
lean_dec(x_4);
|
||||
x_10 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8);
|
||||
x_10 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_2);
|
||||
return x_10;
|
||||
}
|
||||
|
|
@ -24880,10 +24951,10 @@ l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4 = _init_l_Lean_Pa
|
|||
lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4);
|
||||
l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__5 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__5();
|
||||
lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__5);
|
||||
l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1);
|
||||
l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2);
|
||||
l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__1);
|
||||
l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2();
|
||||
lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__2___closed__2);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
159
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
159
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
|
|
@ -103,7 +103,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter___lambda__1__
|
|||
lean_object* lean_string_utf8_prev(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2460____closed__51;
|
||||
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkColGt_formatter___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1887____closed__29;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2460____closed__19;
|
||||
|
|
@ -122,9 +122,8 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Pre
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter___lambda__2___closed__2;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_pushLine(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedByCategoryToken_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__10;
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
|
|
@ -168,7 +167,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__1;
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_pushToken_match__2(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkStackTop_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_runForNodeKind___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instCoeArrowFormatterFormatterFormatterAliasValue(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__4;
|
||||
extern lean_object* l_Lean_nameLitKind;
|
||||
|
|
@ -194,6 +192,7 @@ lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Formatter_many_formatter___
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter_match__1(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__5;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkPrec_formatter___rarg(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*);
|
||||
|
|
@ -224,6 +223,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_identEq_formatter___rarg(lean_object
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_checkLineEq_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_setExpected_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_strLitNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_eoi_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_numLitKind;
|
||||
|
|
@ -282,7 +282,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_visitAtom_match__1(lean_object*);
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2460____closed__22;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__3;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__1___closed__4;
|
||||
|
|
@ -312,7 +312,7 @@ extern lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__4;
|
|||
lean_object* l_Lean_PrettyPrinter_formatterAttribute;
|
||||
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__1___closed__5;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr_match__1(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_rawIdent_formatter_match__1(lean_object*);
|
||||
lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -411,7 +411,6 @@ extern lean_object* l_Lean_ParserCompiler_CombinatorAttribute_instInhabitedCombi
|
|||
extern lean_object* l_Lean_Format_getWidth___closed__1;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkNoWsBefore_formatter___boxed(lean_object*);
|
||||
lean_object* lean_pretty_printer_formatter_interpret_parser_descr(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_String_isPrefixOf(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter___rarg(lean_object*);
|
||||
|
|
@ -426,6 +425,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM;
|
|||
uint8_t l_Lean_Name_isAnonymous(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2460____closed__10;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2460____closed__32;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Name_isNum(lean_object*);
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize___boxed(lean_object*);
|
||||
|
|
@ -442,7 +442,6 @@ lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Formatter_many_formatter___
|
|||
lean_object* l_Lean_PrettyPrinter_Formatter_checkNoWsBefore_formatter(lean_object*);
|
||||
extern lean_object* l_Int_instInhabitedInt___closed__1;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___elambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7;
|
||||
extern lean_object* l_Lean_Name_toStringWithSep___closed__1;
|
||||
lean_object* l_Lean_Format_getIndent(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedByCategoryToken_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -527,16 +526,15 @@ extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1887
|
|||
lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_checkKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__8;
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_concat___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
extern lean_object* l___kind_term____x40_Init_Notation___hyg_3____closed__16;
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__11;
|
||||
extern lean_object* l_Lean_PrettyPrinter_backtrackExceptionId;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_suppressInsideQuot_formatter(lean_object*, lean_object*, 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_Syntax_Traverser_left(lean_object*);
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1(lean_object*, lean_object*);
|
||||
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_throwError___at_Lean_PrettyPrinter_Formatter_visitAtom___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1232,32 +1230,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTravers
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1(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_st_ref_get(x_1, x_4);
|
||||
x_6 = !lean_is_exclusive(x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = lean_ctor_get(x_5, 0);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_5);
|
||||
x_9 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_7);
|
||||
lean_ctor_set(x_9, 1, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
|
|
@ -1314,11 +1287,11 @@ return x_19;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2___rarg), 7, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___rarg), 7, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
|
|
@ -1331,7 +1304,32 @@ lean_inc(x_2);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___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* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_st_ref_get(x_2, x_5);
|
||||
x_7 = !lean_is_exclusive(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
x_9 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_8);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
|
|
@ -1407,7 +1405,7 @@ return x_26;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
|
|
@ -1497,63 +1495,53 @@ static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserForma
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___boxed), 4, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed), 5, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__3;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3___boxed), 6, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed), 6, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__5;
|
||||
x_3 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__3;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__4;
|
||||
x_3 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__5;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
|
|
@ -1565,21 +1553,10 @@ static lean_object* _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserForma
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___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_StateRefT_x27_get___at_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___spec__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1589,11 +1566,23 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_7 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -1601,11 +1590,11 @@ lean_dec(x_2);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___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* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_8 = l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -11949,8 +11938,6 @@ l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__5 = _init_
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__5);
|
||||
l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6 = _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__6);
|
||||
l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7 = _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__7);
|
||||
l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM = _init_l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM);
|
||||
l_Lean_PrettyPrinter_Formatter_visitArgs___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_visitArgs___closed__1();
|
||||
|
|
|
|||
159
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
159
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
|
|
@ -73,12 +73,12 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_fieldIdx_parenthesizer(lean_obje
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkStackTop_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Parenthesizer_visitToken___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkOutsideQuot_parenthesizer___rarg(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__34;
|
||||
lean_object* l_Lean_Parser_getBinaryAlias___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_identNoAntiquot_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__8;
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___lambda__1___closed__3;
|
||||
extern lean_object* l_Lean_List_format___rarg___closed__2;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -109,7 +109,6 @@ lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Parenthes
|
|||
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__7;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__36;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1887____closed__29;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2951_(lean_object*);
|
||||
|
|
@ -130,7 +129,6 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__20;
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_throwBacktrack___rarg(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__15;
|
||||
lean_object* l_Lean_PrettyPrinter_ParenthesizerM_orelse(lean_object*);
|
||||
lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__1___closed__8;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkLineEq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_visitToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -205,6 +203,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___closed__1;
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_skip_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__47;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__17;
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_registerAliasCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__3___closed__3;
|
||||
lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__2(lean_object*);
|
||||
|
|
@ -238,7 +237,6 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___lambda__1_
|
|||
lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__1___closed__2;
|
||||
extern lean_object* l_Lean_Option_format___rarg___closed__1;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__3;
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___elambda__6(lean_object*, uint8_t);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_identEq_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -309,7 +307,6 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___elambda__3___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_Lean_PrettyPrinter_parenthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_location___closed__4;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__22;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_liftCoreM(lean_object*);
|
||||
|
|
@ -441,7 +438,7 @@ uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_PrettyPrinter_combinatorParenthesizerAttribute;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___lambda__2(lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_PrettyPrinter_parenthesize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedByCategoryToken_parenthesizer___rarg(lean_object*);
|
||||
lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -449,7 +446,7 @@ lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__8;
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkStackTop_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___closed__10;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_Result_format___spec__1(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_ite___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -464,12 +461,11 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Parenthesizer_int
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_visitToken___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_addPrecCheck(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___elambda__5___boxed(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__2;
|
||||
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1887____closed__53;
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Format_paren___closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_5739____closed__22;
|
||||
lean_object* l_ReaderT_pure___at_Lean_PrettyPrinter_Parenthesizer_instMonadQuotationParenthesizerM___spec__1(lean_object*);
|
||||
|
|
@ -496,6 +492,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__4___
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__10;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2398____closed__32;
|
||||
lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__1___closed__5;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer(lean_object*);
|
||||
|
|
@ -525,7 +522,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__16;
|
|||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getTailInfo(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkAntiquot_parenthesizer_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_optional_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -566,6 +563,7 @@ lean_object* l_Lean_addTrace___at_Lean_PrettyPrinter_parenthesize___spec__1___bo
|
|||
lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__2___boxed(lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__5;
|
||||
extern lean_object* l_Lean_Format_paren___closed__3;
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_mod(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_withForbidden_parenthesizer___boxed(lean_object*);
|
||||
|
|
@ -1639,32 +1637,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTra
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1(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_st_ref_get(x_1, x_4);
|
||||
x_6 = !lean_is_exclusive(x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = lean_ctor_get(x_5, 0);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_5);
|
||||
x_9 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_7);
|
||||
lean_ctor_set(x_9, 1, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
|
|
@ -1721,11 +1694,11 @@ return x_19;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2___rarg), 7, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___rarg), 7, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
|
|
@ -1738,7 +1711,32 @@ lean_inc(x_2);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___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* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_st_ref_get(x_2, x_5);
|
||||
x_7 = !lean_is_exclusive(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
x_9 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_8);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
|
|
@ -1825,7 +1823,7 @@ return x_30;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
|
|
@ -1926,63 +1924,53 @@ static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserP
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___boxed), 4, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed), 5, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__3;
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3___boxed), 6, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed), 6, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__5;
|
||||
x_3 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__3;
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__4;
|
||||
x_3 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__5;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
|
|
@ -1994,21 +1982,10 @@ static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserP
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7;
|
||||
x_1 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___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_StateRefT_x27_get___at_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___spec__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2018,11 +1995,23 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_7 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -2030,11 +2019,11 @@ lean_dec(x_2);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___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* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_8 = l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -13166,8 +13155,6 @@ l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__5
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__5);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6 = _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__6);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7 = _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__7);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM = _init_l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_visitArgs___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_visitArgs___closed__1();
|
||||
|
|
|
|||
330
stage0/stdlib/Lean/Server/ServerBin.c
generated
Normal file
330
stage0/stdlib/Lean/Server/ServerBin.c
generated
Normal file
|
|
@ -0,0 +1,330 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Server.ServerBin
|
||||
// Imports: Init Init.System.IO Lean.Server
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* lean_get_stdin(lean_object*);
|
||||
lean_object* lean_io_error_to_string(lean_object*);
|
||||
lean_object* _lean_main(lean_object*, lean_object*);
|
||||
lean_object* lean_get_stderr(lean_object*);
|
||||
lean_object* l_main___boxed__const__1;
|
||||
lean_object* l_IO_getStdin___at_main___spec__1(lean_object*);
|
||||
lean_object* lean_init_search_path(lean_object*, lean_object*);
|
||||
lean_object* lean_get_stdout(lean_object*);
|
||||
lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Test_runWithInputFile___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_initAndRunServer(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_getStdin___at_main___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_get_stdin(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_main___boxed__const__1() {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_1; lean_object* x_2;
|
||||
x_1 = 0;
|
||||
x_2 = lean_box_uint32(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* _lean_main(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_get_stdin(x_2);
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_4);
|
||||
x_5 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_get_stdout(x_5);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_9 = lean_get_stderr(x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_9);
|
||||
x_12 = lean_box(0);
|
||||
x_13 = lean_init_search_path(x_12, x_11);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
x_14 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_15 = l_Lean_Server_initAndRunServer(x_4, x_7, x_14);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
lean_dec(x_10);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = l_main___boxed__const__1;
|
||||
lean_ctor_set(x_15, 0, x_18);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_15);
|
||||
x_20 = l_main___boxed__const__1;
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_19);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_22 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_15);
|
||||
x_24 = lean_io_error_to_string(x_22);
|
||||
x_25 = l_IO_FS_Stream_putStrLn___at_Lean_Server_Test_runWithInputFile___spec__1(x_10, x_24, x_23);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
uint8_t x_26;
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_27);
|
||||
x_28 = l_main___boxed__const__1;
|
||||
lean_ctor_set(x_25, 0, x_28);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_25);
|
||||
x_30 = l_main___boxed__const__1;
|
||||
x_31 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_32;
|
||||
x_32 = !lean_is_exclusive(x_25);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_33 = lean_ctor_get(x_25, 0);
|
||||
x_34 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_34);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_25);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_36;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
x_36 = !lean_is_exclusive(x_13);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
x_37 = lean_ctor_get(x_13, 0);
|
||||
x_38 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_13);
|
||||
x_39 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
return x_39;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_40;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
x_40 = !lean_is_exclusive(x_9);
|
||||
if (x_40 == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_41 = lean_ctor_get(x_9, 0);
|
||||
x_42 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_9);
|
||||
x_43 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
lean_ctor_set(x_43, 1, x_42);
|
||||
return x_43;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_44;
|
||||
lean_dec(x_4);
|
||||
x_44 = !lean_is_exclusive(x_6);
|
||||
if (x_44 == 0)
|
||||
{
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_45 = lean_ctor_get(x_6, 0);
|
||||
x_46 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_6);
|
||||
x_47 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_45);
|
||||
lean_ctor_set(x_47, 1, x_46);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_48;
|
||||
x_48 = !lean_is_exclusive(x_3);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_3, 0);
|
||||
x_50 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_3);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
return x_51;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(lean_object*);
|
||||
lean_object* initialize_Init_System_IO(lean_object*);
|
||||
lean_object* initialize_Lean_Server(lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
lean_object* initialize_Lean_Server_ServerBin(lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_System_IO(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Server(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_main___boxed__const__1 = _init_l_main___boxed__const__1();
|
||||
lean_mark_persistent(l_main___boxed__const__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
void lean_initialize();
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char ** argv) {
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
#endif
|
||||
lean_object* in; lean_object* res;
|
||||
lean_initialize();
|
||||
res = initialize_Lean_Server_ServerBin(lean_io_mk_world());
|
||||
lean_io_mark_end_initialization();
|
||||
if (lean_io_result_is_ok(res)) {
|
||||
lean_dec_ref(res);
|
||||
lean_init_task_manager();
|
||||
in = lean_box(0);
|
||||
int i = argc;
|
||||
while (i > 1) {
|
||||
lean_object* n;
|
||||
i--;
|
||||
n = lean_alloc_ctor(1,2,0); lean_ctor_set(n, 0, lean_mk_string(argv[i])); lean_ctor_set(n, 1, in);
|
||||
in = n;
|
||||
}
|
||||
res = _lean_main(in, lean_io_mk_world());
|
||||
}
|
||||
if (lean_io_result_is_ok(res)) {
|
||||
int ret = lean_unbox(lean_io_result_get_value(res));
|
||||
lean_dec_ref(res);
|
||||
return ret;
|
||||
} else {
|
||||
lean_io_result_show_error(res);
|
||||
lean_dec_ref(res);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue