chore: update stage0
This commit is contained in:
parent
d3e2dfb079
commit
e1ba83d902
45 changed files with 11114 additions and 8536 deletions
|
|
@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Util.HasConstCache
|
||||
import Lean.Meta.Match.Match
|
||||
import Lean.Elab.RecAppSyntax
|
||||
import Lean.Elab.PreDefinition.Basic
|
||||
|
|
@ -97,7 +98,11 @@ def refinedArgType (matcherApp : MatcherApp) (arg : Expr) : MetaM Bool := do
|
|||
return false
|
||||
|
||||
private partial def replaceRecApps (recFnName : Name) (recArgInfo : RecArgInfo) (below : Expr) (e : Expr) : M Expr :=
|
||||
let rec loop (below : Expr) (e : Expr) : M Expr := do
|
||||
let containsRecFn (e : Expr) : StateRefT (HasConstCache recFnName) M Bool :=
|
||||
modifyGet (·.contains e)
|
||||
let rec loop (below : Expr) (e : Expr) : StateRefT (HasConstCache recFnName) M Expr := do
|
||||
if !(← containsRecFn e) then
|
||||
return e
|
||||
match e with
|
||||
| Expr.lam n d b c =>
|
||||
withLocalDecl n c.binderInfo (← loop below d) fun x => do
|
||||
|
|
@ -115,7 +120,7 @@ private partial def replaceRecApps (recFnName : Name) (recArgInfo : RecArgInfo)
|
|||
return mkMData d (← loop below b)
|
||||
| Expr.proj n i e _ => return mkProj n i (← loop below e)
|
||||
| Expr.app _ _ _ =>
|
||||
let processApp (e : Expr) : M Expr :=
|
||||
let processApp (e : Expr) : StateRefT (HasConstCache recFnName) M Expr :=
|
||||
e.withApp fun f args => do
|
||||
if f.isConstOf recFnName then
|
||||
let numFixed := recArgInfo.fixedParams.size
|
||||
|
|
@ -175,7 +180,7 @@ private partial def replaceRecApps (recFnName : Name) (recArgInfo : RecArgInfo)
|
|||
pure { matcherApp with alts := altsNew }.toExpr
|
||||
| none => processApp e
|
||||
| e => ensureNoRecFn recFnName e
|
||||
loop below e
|
||||
loop below e |>.run' {}
|
||||
|
||||
def mkBRecOn (recFnName : Name) (recArgInfo : RecArgInfo) (value : Expr) : M Expr := do
|
||||
trace[Elab.definition.structural] "mkBRecOn: {value}"
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ structure State where
|
|||
As a side-effect, this creates matchers. Here we capture all these side-effects, because
|
||||
the construction rolls back any changes done to the environment and the side-effects
|
||||
need to be replayed. -/
|
||||
addMatchers : Array $ MetaM Unit := #[]
|
||||
addMatchers : Array (MetaM Unit) := #[]
|
||||
|
||||
abbrev M := StateRefT State MetaM
|
||||
|
||||
|
|
|
|||
14
stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean
generated
14
stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean
generated
|
|
@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Util.HasConstCache
|
||||
import Lean.Meta.Match.Match
|
||||
import Lean.Meta.Tactic.Simp.Main
|
||||
import Lean.Meta.Tactic.Cleanup
|
||||
|
|
@ -30,9 +31,9 @@ private def mkDecreasingProof (decreasingProp : Expr) (decrTactic? : Option Synt
|
|||
instantiateMVars mvar
|
||||
|
||||
private partial def replaceRecApps (recFnName : Name) (fixedPrefixSize : Nat) (decrTactic? : Option Syntax) (F : Expr) (e : Expr) : TermElabM Expr :=
|
||||
loop F e
|
||||
loop F e |>.run' {}
|
||||
where
|
||||
processRec (F : Expr) (e : Expr) : TermElabM Expr := do
|
||||
processRec (F : Expr) (e : Expr) : StateRefT (HasConstCache recFnName) TermElabM Expr := do
|
||||
if e.getAppNumArgs < fixedPrefixSize + 1 then
|
||||
loop F (← etaExpand e)
|
||||
else
|
||||
|
|
@ -42,13 +43,18 @@ where
|
|||
let r := mkApp r (← mkDecreasingProof decreasingProp decrTactic?)
|
||||
return mkAppN r (← args[fixedPrefixSize+1:].toArray.mapM (loop F))
|
||||
|
||||
processApp (F : Expr) (e : Expr) : TermElabM Expr := do
|
||||
processApp (F : Expr) (e : Expr) : StateRefT (HasConstCache recFnName) TermElabM Expr := do
|
||||
if e.isAppOf recFnName then
|
||||
processRec F e
|
||||
else
|
||||
e.withApp fun f args => return mkAppN (← loop F f) (← args.mapM (loop F))
|
||||
|
||||
loop (F : Expr) (e : Expr) : TermElabM Expr := do
|
||||
containsRecFn (e : Expr) : StateRefT (HasConstCache recFnName) TermElabM Bool := do
|
||||
modifyGet (·.contains e)
|
||||
|
||||
loop (F : Expr) (e : Expr) : StateRefT (HasConstCache recFnName) TermElabM Expr := do
|
||||
if !(← containsRecFn e) then
|
||||
return e
|
||||
match e with
|
||||
| Expr.lam n d b c =>
|
||||
withLocalDecl n c.binderInfo (← loop F d) fun x => do
|
||||
|
|
|
|||
33
stage0/src/Lean/Expr.lean
generated
33
stage0/src/Lean/Expr.lean
generated
|
|
@ -133,9 +133,8 @@ def Expr.mkData
|
|||
(hasFVar hasExprMVar hasLevelMVar hasLevelParam : Bool := false) (bi : BinderInfo := BinderInfo.default) (nonDepLet : Bool := false)
|
||||
: Expr.Data :=
|
||||
let approxDepth : UInt8 := if approxDepth > 255 then 255 else approxDepth.toUInt8
|
||||
if looseBVarRange > Nat.pow 2 16 - 1 then panic! "bound variable index is too big"
|
||||
else
|
||||
let r : UInt64 :=
|
||||
assert! (looseBVarRange ≤ Nat.pow 2 16 - 1)
|
||||
let r : UInt64 :=
|
||||
h.toUInt32.toUInt64 +
|
||||
hasFVar.toUInt64.shiftLeft 32 +
|
||||
hasExprMVar.toUInt64.shiftLeft 33 +
|
||||
|
|
@ -145,7 +144,11 @@ def Expr.mkData
|
|||
bi.toUInt64.shiftLeft 37 +
|
||||
approxDepth.toUInt64.shiftLeft 40 +
|
||||
looseBVarRange.toUInt64.shiftLeft 48
|
||||
r
|
||||
r
|
||||
|
||||
/-- Optimized version of `Expr.mkData` for applications. -/
|
||||
@[extern c inline "(((uint64_t)#5) << 48) | (((uint64_t)#4) << 40) | ((((#1 | #2) << 28) >> 60) << 32) | ((uint64_t)((uint32_t)#3))"]
|
||||
constant Expr.mkAppData (fData : Data) (aData : Data) (hash : UInt64) (approxDepth : UInt8) (looseBVarRange : UInt16) : Data
|
||||
|
||||
@[inline] def Expr.mkDataForBinder (h : UInt64) (looseBVarRange : Nat) (approxDepth : UInt32) (hasFVar hasExprMVar hasLevelMVar hasLevelParam : Bool) (bi : BinderInfo) : Expr.Data :=
|
||||
Expr.mkData h looseBVarRange approxDepth hasFVar hasExprMVar hasLevelMVar hasLevelParam bi false
|
||||
|
|
@ -215,7 +218,8 @@ inductive Expr where
|
|||
|
||||
namespace Expr
|
||||
|
||||
@[inline] def data : Expr → Data
|
||||
@[extern c inline "lean_ctor_get_uint64(#1, lean_ctor_num_objs(#1)*sizeof(void*))"]
|
||||
def data : (@& Expr) → Data
|
||||
| bvar _ d => d
|
||||
| fvar _ d => d
|
||||
| mvar _ d => d
|
||||
|
|
@ -316,14 +320,14 @@ def mkProj (s : Name) (i : Nat) (e : Expr) : Expr :=
|
|||
e.looseBVarRange d e.hasFVar e.hasExprMVar e.hasLevelMVar e.hasLevelParam
|
||||
|
||||
def mkApp (f a : Expr) : Expr :=
|
||||
let d := (max f.approxDepth a.approxDepth) + 1
|
||||
Expr.app f a <| mkData (mixHash d.toUInt64 <| mixHash (hash f) (hash a))
|
||||
(max f.looseBVarRange a.looseBVarRange)
|
||||
d
|
||||
(f.hasFVar || a.hasFVar)
|
||||
(f.hasExprMVar || a.hasExprMVar)
|
||||
(f.hasLevelMVar || a.hasLevelMVar)
|
||||
(f.hasLevelParam || a.hasLevelParam)
|
||||
let fData := f.data
|
||||
let aData := a.data
|
||||
let depth := (max fData.approxDepth.toUInt16 aData.approxDepth.toUInt16) + 1
|
||||
let depth := if depth > 255 then 255 else depth.toUInt8
|
||||
let range := max fData.looseBVarRange aData.looseBVarRange
|
||||
let hash := mixHash fData aData
|
||||
assert! (range ≤ (Nat.pow 2 16 - 1).toUInt32)
|
||||
Expr.app f a (mkAppData fData aData hash depth range.toUInt16)
|
||||
|
||||
def mkLambda (x : Name) (bi : BinderInfo) (t : Expr) (b : Expr) : Expr :=
|
||||
let d := (max t.approxDepth b.approxDepth) + 1
|
||||
|
|
@ -438,6 +442,9 @@ constant eqv (a : @& Expr) (b : @& Expr) : Bool
|
|||
instance : BEq Expr where
|
||||
beq := Expr.eqv
|
||||
|
||||
protected unsafe def ptrEq (a b : Expr) : Bool :=
|
||||
ptrAddrUnsafe a == ptrAddrUnsafe b
|
||||
|
||||
/- Return true iff `a` and `b` are equal.
|
||||
Binder names and annotations are taking into account. -/
|
||||
@[extern "lean_expr_equal"]
|
||||
|
|
|
|||
1
stage0/src/Lean/Util.lean
generated
1
stage0/src/Lean/Util.lean
generated
|
|
@ -23,3 +23,4 @@ import Lean.Util.FoldConsts
|
|||
import Lean.Util.SCC
|
||||
import Lean.Util.OccursCheck
|
||||
import Lean.Util.Paths
|
||||
import Lean.Util.HasConstCache
|
||||
|
|
|
|||
37
stage0/src/Lean/Util/HasConstCache.lean
generated
Normal file
37
stage0/src/Lean/Util/HasConstCache.lean
generated
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/-
|
||||
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Expr
|
||||
|
||||
namespace Lean
|
||||
|
||||
structure HasConstCache (declName : Name) where
|
||||
cache : Std.HashMapImp Expr Bool := Std.mkHashMapImp
|
||||
|
||||
unsafe def HasConstCache.containsUnsafe (e : Expr) : StateM (HasConstCache declName) Bool := do
|
||||
if let some r := (← get).cache.find? (beq := ⟨Expr.ptrEq⟩) e then
|
||||
return r
|
||||
else
|
||||
match e with
|
||||
| .const n .. => return n == declName
|
||||
| .app f a _ => cache e (← containsUnsafe f <||> containsUnsafe a)
|
||||
| .lam _ d b _ => cache e (← containsUnsafe d <||> containsUnsafe b)
|
||||
| .forallE _ d b _ => cache e (← containsUnsafe d <||> containsUnsafe b)
|
||||
| .letE _ t v b _ => cache e (← containsUnsafe t <||> containsUnsafe v <||> containsUnsafe b)
|
||||
| .mdata _ b _ => cache e (← containsUnsafe b)
|
||||
| .proj _ _ b _ => cache e (← containsUnsafe b)
|
||||
| _ => return false
|
||||
where
|
||||
cache (e : Expr) (r : Bool) : StateM (HasConstCache declName) Bool := do
|
||||
modify fun ⟨cache⟩ => ⟨cache.insert (beq := ⟨Expr.ptrEq⟩) e r |>.1⟩
|
||||
return r
|
||||
|
||||
/--
|
||||
Return true iff `e` contains the constant `declName`.
|
||||
Remark: the results for visited expressions are stored in the state cache. -/
|
||||
@[implementedBy HasConstCache.containsUnsafe]
|
||||
constant HasConstCache.contains (e : Expr) : StateM (HasConstCache declName) Bool
|
||||
|
||||
end Lean
|
||||
4
stage0/src/Std/Data/HashMap.lean
generated
4
stage0/src/Std/Data/HashMap.lean
generated
|
|
@ -64,7 +64,7 @@ def findEntry? [BEq α] [Hashable α] (m : HashMapImp α β) (a : α) : Option (
|
|||
let ⟨i, h⟩ := mkIdx buckets.property (hash a |>.toUSize)
|
||||
(buckets.val.uget i h).findEntry? a
|
||||
|
||||
def find? [BEq α] [Hashable α] (m : HashMapImp α β) (a : α) : Option β :=
|
||||
def find? [beq : BEq α] [Hashable α] (m : HashMapImp α β) (a : α) : Option β :=
|
||||
match m with
|
||||
| ⟨_, buckets⟩ =>
|
||||
let ⟨i, h⟩ := mkIdx buckets.property (hash a |>.toUSize)
|
||||
|
|
@ -94,7 +94,7 @@ def expand [Hashable α] (size : Nat) (buckets : HashMapBucket α β) : HashMapI
|
|||
{ size := size,
|
||||
buckets := moveEntries 0 buckets.val new_buckets }
|
||||
|
||||
@[inline] def insert [BEq α] [Hashable α] (m : HashMapImp α β) (a : α) (b : β) : HashMapImp α β × Bool :=
|
||||
@[inline] def insert [beq : BEq α] [Hashable α] (m : HashMapImp α β) (a : α) (b : β) : HashMapImp α β × Bool :=
|
||||
match m with
|
||||
| ⟨size, buckets⟩ =>
|
||||
let ⟨i, h⟩ := mkIdx buckets.property (hash a |>.toUSize)
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Data/Lsp/Internal.c
generated
4
stage0/stdlib/Lean/Data/Lsp/Internal.c
generated
|
|
@ -21,7 +21,7 @@ lean_object* l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(lean_obje
|
|||
LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Lsp_instFromJsonModuleRefs___spec__3(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_RBNode_foldM___at_Lean_Lsp_instFromJsonModuleRefs___spec__8(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonRefInfo___spec__2(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT uint64_t l___private_Lean_Data_Lsp_Internal_0__Lean_Lsp_hashRefIdent____x40_Lean_Data_Lsp_Internal___hyg_106_(lean_object*);
|
||||
|
|
@ -219,7 +219,7 @@ else
|
|||
lean_object* x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9;
|
||||
x_6 = lean_ctor_get(x_1, 0);
|
||||
x_7 = 1;
|
||||
x_8 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_6);
|
||||
x_8 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_6);
|
||||
x_9 = lean_uint64_mix_hash(x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Declaration.c
generated
4
stage0/stdlib/Lean/Declaration.c
generated
|
|
@ -38,6 +38,7 @@ LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__2(
|
|||
LEAN_EXPORT lean_object* lean_mk_reducibility_hints_regular(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__2___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT uint8_t lean_opaque_val_is_unsafe(lean_object*);
|
||||
static lean_object* l___private_Lean_Declaration_0__Lean_reprDefinitionSafety____x40_Lean_Declaration___hyg_277____closed__6;
|
||||
LEAN_EXPORT uint8_t l_Lean_ConstantInfo_isInductive(lean_object*);
|
||||
|
|
@ -94,7 +95,6 @@ LEAN_EXPORT lean_object* l_Lean_DefinitionSafety_toCtorIdx___boxed(lean_object*)
|
|||
LEAN_EXPORT lean_object* l_Lean_DefinitionSafety_toCtorIdx(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__3(lean_object*);
|
||||
static lean_object* l_Lean_instInhabitedConstructor___closed__1;
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_ConstantInfo_toConstantVal(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_ReducibilityHints_isRegular(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Declaration_forExprM___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -2619,7 +2619,7 @@ default:
|
|||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
x_6 = l_Lean_ConstantInfo_value_x21___closed__4;
|
||||
x_7 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_6);
|
||||
x_7 = l_panic___at_Lean_mkApp___spec__1(x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Elab/Match.c
generated
16
stage0/stdlib/Lean/Elab/Match.c
generated
|
|
@ -15094,7 +15094,6 @@ lean_dec(x_10);
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_40 = !lean_is_exclusive(x_18);
|
||||
|
|
@ -15678,19 +15677,16 @@ x_133 = lean_unsigned_to_nat(1u);
|
|||
x_134 = lean_nat_sub(x_132, x_133);
|
||||
x_135 = lean_nat_sub(x_134, x_133);
|
||||
lean_dec(x_134);
|
||||
lean_inc(x_1);
|
||||
x_136 = l_Lean_Expr_getRevArg_x21(x_1, x_135);
|
||||
x_137 = lean_unsigned_to_nat(2u);
|
||||
x_138 = lean_nat_sub(x_132, x_137);
|
||||
x_139 = lean_nat_sub(x_138, x_133);
|
||||
lean_dec(x_138);
|
||||
lean_inc(x_1);
|
||||
x_140 = l_Lean_Expr_getRevArg_x21(x_1, x_139);
|
||||
x_141 = lean_unsigned_to_nat(3u);
|
||||
x_142 = lean_nat_sub(x_132, x_141);
|
||||
x_143 = lean_nat_sub(x_142, x_133);
|
||||
lean_dec(x_142);
|
||||
lean_inc(x_1);
|
||||
x_144 = l_Lean_Expr_getRevArg_x21(x_1, x_143);
|
||||
x_153 = l_Lean_Expr_isFVar(x_136);
|
||||
if (x_153 == 0)
|
||||
|
|
@ -15727,6 +15723,7 @@ lean_object* x_157; lean_object* x_158;
|
|||
x_157 = lean_box(0);
|
||||
x_158 = l_Lean_Elab_Term_ToDepElimPattern_normalize___lambda__2(x_136, x_140, x_144, x_1, x_132, x_157, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_132);
|
||||
lean_dec(x_1);
|
||||
return x_158;
|
||||
}
|
||||
}
|
||||
|
|
@ -15897,6 +15894,7 @@ lean_object* x_16;
|
|||
x_16 = l_Lean_Elab_Term_ToDepElimPattern_normalize___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
|
|
@ -16100,7 +16098,6 @@ x_9 = lean_nat_sub(x_7, x_8);
|
|||
x_10 = lean_unsigned_to_nat(1u);
|
||||
x_11 = lean_nat_sub(x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_inc(x_1);
|
||||
x_12 = l_Lean_Expr_getRevArg_x21(x_1, x_11);
|
||||
x_13 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_unpackMatchTypePatterns(x_12);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
|
|
@ -16114,6 +16111,7 @@ lean_dec(x_7);
|
|||
x_18 = lean_nat_sub(x_17, x_10);
|
||||
lean_dec(x_17);
|
||||
x_19 = l_Lean_Expr_getRevArg_x21(x_1, x_18);
|
||||
lean_dec(x_1);
|
||||
x_20 = lean_array_push(x_15, x_19);
|
||||
lean_ctor_set(x_13, 1, x_20);
|
||||
return x_13;
|
||||
|
|
@ -16132,6 +16130,7 @@ lean_dec(x_7);
|
|||
x_25 = lean_nat_sub(x_24, x_10);
|
||||
lean_dec(x_24);
|
||||
x_26 = l_Lean_Expr_getRevArg_x21(x_1, x_25);
|
||||
lean_dec(x_1);
|
||||
x_27 = lean_array_push(x_22, x_26);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_21);
|
||||
|
|
@ -16772,7 +16771,6 @@ x_76 = lean_nat_sub(x_74, x_75);
|
|||
x_77 = lean_unsigned_to_nat(1u);
|
||||
x_78 = lean_nat_sub(x_76, x_77);
|
||||
lean_dec(x_76);
|
||||
lean_inc(x_1);
|
||||
x_79 = l_Lean_Expr_getRevArg_x21(x_1, x_78);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -16792,13 +16790,13 @@ x_84 = lean_unsigned_to_nat(3u);
|
|||
x_85 = lean_nat_sub(x_74, x_84);
|
||||
x_86 = lean_nat_sub(x_85, x_77);
|
||||
lean_dec(x_85);
|
||||
lean_inc(x_1);
|
||||
x_87 = l_Lean_Expr_getRevArg_x21(x_1, x_86);
|
||||
x_88 = lean_nat_sub(x_74, x_77);
|
||||
lean_dec(x_74);
|
||||
x_89 = lean_nat_sub(x_88, x_77);
|
||||
lean_dec(x_88);
|
||||
x_90 = l_Lean_Expr_getRevArg_x21(x_1, x_89);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_90) == 1)
|
||||
{
|
||||
if (lean_obj_tag(x_87) == 1)
|
||||
|
|
@ -16865,13 +16863,13 @@ x_100 = lean_unsigned_to_nat(3u);
|
|||
x_101 = lean_nat_sub(x_74, x_100);
|
||||
x_102 = lean_nat_sub(x_101, x_77);
|
||||
lean_dec(x_101);
|
||||
lean_inc(x_1);
|
||||
x_103 = l_Lean_Expr_getRevArg_x21(x_1, x_102);
|
||||
x_104 = lean_nat_sub(x_74, x_77);
|
||||
lean_dec(x_74);
|
||||
x_105 = lean_nat_sub(x_104, x_77);
|
||||
lean_dec(x_104);
|
||||
x_106 = l_Lean_Expr_getRevArg_x21(x_1, x_105);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_106) == 1)
|
||||
{
|
||||
if (lean_obj_tag(x_103) == 1)
|
||||
|
|
@ -21480,6 +21478,7 @@ x_23 = lean_unsigned_to_nat(1u);
|
|||
x_24 = lean_nat_sub(x_22, x_23);
|
||||
lean_dec(x_22);
|
||||
x_25 = l_Lean_Expr_getRevArg_x21(x_14, x_24);
|
||||
lean_dec(x_14);
|
||||
x_1 = x_25;
|
||||
x_2 = x_11;
|
||||
x_7 = x_15;
|
||||
|
|
@ -21540,6 +21539,7 @@ x_38 = lean_unsigned_to_nat(1u);
|
|||
x_39 = lean_nat_sub(x_37, x_38);
|
||||
lean_dec(x_37);
|
||||
x_40 = l_Lean_Expr_getRevArg_x21(x_27, x_39);
|
||||
lean_dec(x_27);
|
||||
x_1 = x_40;
|
||||
x_2 = x_11;
|
||||
x_7 = x_28;
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/MutualDef.c
generated
4
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -556,6 +556,7 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_eraseAuxDiscr(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -603,7 +604,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Intro_0__Lea
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -16808,7 +16808,7 @@ lean_closure_set(x_13, 0, x_1);
|
|||
lean_closure_set(x_13, 1, x_2);
|
||||
lean_closure_set(x_13, 2, x_10);
|
||||
lean_closure_set(x_13, 3, x_11);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__3___rarg), 9, 2);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg), 9, 2);
|
||||
lean_closure_set(x_14, 0, x_12);
|
||||
lean_closure_set(x_14, 1, x_13);
|
||||
x_15 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_mvarsToParams___spec__1___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
|
|
|
|||
10049
stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c
generated
10049
stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c
generated
File diff suppressed because it is too large
Load diff
|
|
@ -269,7 +269,6 @@ x_4 = l_Lean_Expr_isAppOf(x_3, x_1);
|
|||
if (x_4 == 0)
|
||||
{
|
||||
uint8_t x_5;
|
||||
lean_dec(x_3);
|
||||
x_5 = 0;
|
||||
return x_5;
|
||||
}
|
||||
|
|
@ -283,7 +282,6 @@ if (x_8 == 0)
|
|||
{
|
||||
uint8_t x_9;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_3);
|
||||
x_9 = 0;
|
||||
return x_9;
|
||||
}
|
||||
|
|
@ -331,6 +329,7 @@ _start:
|
|||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = l_Lean_Elab_Structural_recArgHasLooseBVarsAt___lambda__1(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_box(x_4);
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
|
|||
lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* l_Lean_mkSort(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Structural_structuralRecursion___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Structural_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__6___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Main___hyg_1102_(lean_object*);
|
||||
|
|
@ -43,6 +43,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_
|
|||
lean_object* l_Lean_Elab_eraseRecAppSyntax(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__4;
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__2;
|
||||
extern lean_object* l_Lean_levelZero;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__6;
|
||||
|
|
@ -67,14 +68,13 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_
|
|||
lean_object* l_Nat_repr(lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Structural_structuralRecursion___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___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*);
|
||||
extern lean_object* l_Lean_Elab_instInhabitedPreDefinition;
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__7;
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Structural_structuralRecursion___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_getFixedPrefix___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__4;
|
||||
|
|
@ -103,12 +103,14 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forEachExpr_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Structural_structuralRecursion___closed__1;
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_getFixedPrefix___lambda__2___closed__2;
|
||||
lean_object* l_Lean_Elab_Structural_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(lean_object*);
|
||||
lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Structural_addSmartUnfoldingDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -116,6 +118,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__6___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__3;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__6___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1137,7 +1140,78 @@ lean_dec(x_1);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = lean_apply_8(x_1, x_3, x_4, x_2, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; uint8_t x_10; lean_object* x_11;
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg___lambda__1), 9, 2);
|
||||
lean_closure_set(x_9, 0, x_2);
|
||||
lean_closure_set(x_9, 1, x_3);
|
||||
x_10 = 0;
|
||||
x_11 = l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(x_1, x_10, x_9, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_15 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_16;
|
||||
x_16 = !lean_is_exclusive(x_11);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_11, 0);
|
||||
x_18 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_11);
|
||||
x_19 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg), 8, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
|
|
@ -2006,7 +2080,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_16 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_14);
|
||||
x_16 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1___rarg(x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_14);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
|
|
@ -2015,7 +2089,7 @@ lean_inc(x_17);
|
|||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_18);
|
||||
x_19 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_18);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -2050,7 +2124,7 @@ lean_inc(x_24);
|
|||
x_25 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_16);
|
||||
x_26 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_25);
|
||||
x_26 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_25);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -2240,11 +2314,11 @@ return x_26;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___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_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_8 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
|
|||
5981
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
5981
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
File diff suppressed because it is too large
Load diff
4
stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c
generated
4
stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c
generated
|
|
@ -141,6 +141,7 @@ lean_object* l_Lean_Expr_bindingName_x21(lean_object*);
|
|||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_wfRecursion___lambda__4(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkApp(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_isOnlyOneUnaryDef___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_wfRecursion___closed__2;
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -151,7 +152,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getFixedPrefix___spe
|
|||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getFixedPrefix___spec__3___closed__1;
|
||||
lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_ofSubarray___rarg(lean_object*);
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getFixedPrefix___spec__2___closed__1;
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_wfRecursion___lambda__2___closed__2;
|
||||
|
|
@ -1076,7 +1076,7 @@ lean_inc(x_13);
|
|||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
x_32 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__3___rarg(x_30, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
x_32 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg(x_30, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86;
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/StructInst.c
generated
2
stage0/stdlib/Lean/Elab/StructInst.c
generated
|
|
@ -16694,6 +16694,7 @@ x_327 = lean_unsigned_to_nat(1u);
|
|||
x_328 = lean_nat_sub(x_326, x_327);
|
||||
lean_dec(x_326);
|
||||
x_329 = l_Lean_Expr_getRevArg_x21(x_251, x_328);
|
||||
lean_dec(x_251);
|
||||
x_330 = lean_expr_consume_type_annotations(x_329);
|
||||
lean_ctor_set(x_253, 0, x_330);
|
||||
x_331 = lean_box(0);
|
||||
|
|
@ -17059,6 +17060,7 @@ x_436 = lean_unsigned_to_nat(1u);
|
|||
x_437 = lean_nat_sub(x_435, x_436);
|
||||
lean_dec(x_435);
|
||||
x_438 = l_Lean_Expr_getRevArg_x21(x_251, x_437);
|
||||
lean_dec(x_251);
|
||||
x_439 = lean_expr_consume_type_annotations(x_438);
|
||||
x_440 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_440, 0, x_439);
|
||||
|
|
|
|||
10
stage0/stdlib/Lean/Elab/Structure.c
generated
10
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -48,7 +48,7 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_
|
|||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2223_(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2245_(lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_checkResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -134,6 +134,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___priva
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_551____closed__18;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__3;
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___closed__2;
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_551____closed__3;
|
||||
|
|
@ -396,7 +397,6 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure
|
|||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__4(lean_object*);
|
||||
lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_elabStructure___closed__4;
|
||||
|
|
@ -1928,7 +1928,7 @@ lean_ctor_set(x_23, 0, x_22);
|
|||
lean_ctor_set(x_23, 1, x_14);
|
||||
x_24 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_24);
|
||||
x_25 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2223_(x_24, x_4);
|
||||
x_25 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2245_(x_24, x_4);
|
||||
x_26 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_23);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
|
|
@ -2032,7 +2032,7 @@ x_59 = lean_ctor_get(x_41, 0);
|
|||
lean_inc(x_59);
|
||||
lean_dec(x_41);
|
||||
x_60 = lean_unsigned_to_nat(1024u);
|
||||
x_61 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2223_(x_59, x_60);
|
||||
x_61 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2245_(x_59, x_60);
|
||||
x_62 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_551____closed__28;
|
||||
x_63 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
|
|
@ -22736,7 +22736,7 @@ if (lean_obj_tag(x_22) == 0)
|
|||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29;
|
||||
x_23 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5___closed__4;
|
||||
x_24 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_23);
|
||||
x_24 = l_panic___at_Lean_mkApp___spec__1(x_23);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_18);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
|
|
|
|||
2232
stage0/stdlib/Lean/Expr.c
generated
2232
stage0/stdlib/Lean/Expr.c
generated
File diff suppressed because it is too large
Load diff
4
stage0/stdlib/Lean/HeadIndex.c
generated
4
stage0/stdlib/Lean/HeadIndex.c
generated
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
LEAN_EXPORT lean_object* l___private_Lean_HeadIndex_0__Lean_Expr_toHeadIndexQuick_x3f(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at___private_Lean_HeadIndex_0__Lean_Expr_toHeadIndexSlow___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_head___boxed(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
|
|
@ -258,7 +258,7 @@ case 0:
|
|||
lean_object* x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
x_3 = 11;
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_5 = lean_uint64_mix_hash(x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/LocalContext.c
generated
26
stage0/stdlib/Lean/LocalContext.c
generated
|
|
@ -59,7 +59,7 @@ lean_object* lean_array_uget(lean_object*, size_t);
|
|||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_any___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_of_nat(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_isAuxDecl___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__9___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -83,6 +83,7 @@ static lean_object* l_Lean_LocalDecl_value___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__2(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__7___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_Nat_foldRev_loop___at_Lean_LocalContext_mkBinding___spec__1___closed__1;
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__21___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__12___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_LocalContext_findFromUserName_x3f___spec__1___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -235,7 +236,6 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_LocalContext_any___spec__4(
|
|||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
static size_t l_Std_PersistentHashMap_insertAux___at_Lean_LocalContext_mkLocalDecl___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__4___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRev_x3f___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setBinderInfo___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1000,7 +1000,7 @@ if (lean_obj_tag(x_1) == 0)
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_LocalDecl_value___closed__4;
|
||||
x_3 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_2);
|
||||
x_3 = l_panic___at_Lean_mkApp___spec__1(x_2);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
|
|
@ -1549,7 +1549,7 @@ else
|
|||
lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_9 = lean_array_fget(x_2, x_5);
|
||||
x_10 = lean_array_fget(x_3, x_5);
|
||||
x_11 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_9);
|
||||
x_11 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_9);
|
||||
x_12 = lean_uint64_to_usize(x_11);
|
||||
x_13 = 1;
|
||||
x_14 = lean_usize_sub(x_1, x_13);
|
||||
|
|
@ -2061,7 +2061,7 @@ if (x_4 == 0)
|
|||
lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = 1;
|
||||
x_10 = l_Std_PersistentHashMap_insertAux___at_Lean_LocalContext_mkLocalDecl___spec__2(x_5, x_8, x_9, x_2, x_3);
|
||||
|
|
@ -2080,7 +2080,7 @@ x_14 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_1);
|
||||
x_15 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_15 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_16 = lean_uint64_to_usize(x_15);
|
||||
x_17 = 1;
|
||||
x_18 = l_Std_PersistentHashMap_insertAux___at_Lean_LocalContext_mkLocalDecl___spec__2(x_13, x_16, x_17, x_2, x_3);
|
||||
|
|
@ -2428,7 +2428,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6;
|
|||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_5 = lean_uint64_to_usize(x_4);
|
||||
x_6 = l_Std_PersistentHashMap_findAux___at_Lean_LocalContext_find_x3f___spec__2(x_3, x_5, x_2);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -2647,7 +2647,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; uint8_t x_6;
|
|||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_5 = lean_uint64_to_usize(x_4);
|
||||
x_6 = l_Std_PersistentHashMap_containsAux___at_Lean_LocalContext_contains___spec__2(x_3, x_5, x_2);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -3835,7 +3835,7 @@ if (x_3 == 0)
|
|||
lean_object* x_4; lean_object* x_5; uint64_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
x_6 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_6 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_7 = lean_uint64_to_usize(x_6);
|
||||
x_8 = l_Std_PersistentHashMap_eraseAux___at_Lean_LocalContext_erase___spec__2(x_4, x_7, x_2);
|
||||
x_9 = lean_ctor_get(x_8, 1);
|
||||
|
|
@ -3873,7 +3873,7 @@ x_16 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_16);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_1);
|
||||
x_17 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_17 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_18 = lean_uint64_to_usize(x_17);
|
||||
x_19 = l_Std_PersistentHashMap_eraseAux___at_Lean_LocalContext_erase___spec__2(x_15, x_18, x_2);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
|
|
@ -9653,7 +9653,7 @@ if (lean_obj_tag(x_12) == 0)
|
|||
lean_object* x_13; lean_object* x_14;
|
||||
lean_dec(x_5);
|
||||
x_13 = l_Nat_foldRev_loop___at_Lean_LocalContext_mkBinding___spec__1___closed__2;
|
||||
x_14 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_13);
|
||||
x_14 = l_panic___at_Lean_mkApp___spec__1(x_13);
|
||||
x_4 = x_9;
|
||||
x_5 = x_14;
|
||||
goto _start;
|
||||
|
|
@ -9793,7 +9793,7 @@ if (lean_obj_tag(x_11) == 0)
|
|||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_4);
|
||||
x_12 = l_Nat_foldRev_loop___at_Lean_LocalContext_mkBinding___spec__1___closed__2;
|
||||
x_13 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_12);
|
||||
x_13 = l_panic___at_Lean_mkApp___spec__1(x_12);
|
||||
x_3 = x_8;
|
||||
x_4 = x_13;
|
||||
goto _start;
|
||||
|
|
@ -9917,7 +9917,7 @@ if (lean_obj_tag(x_11) == 0)
|
|||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_4);
|
||||
x_12 = l_Nat_foldRev_loop___at_Lean_LocalContext_mkBinding___spec__1___closed__2;
|
||||
x_13 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_12);
|
||||
x_13 = l_panic___at_Lean_mkApp___spec__1(x_12);
|
||||
x_3 = x_8;
|
||||
x_4 = x_13;
|
||||
goto _start;
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/Meta/Closure.c
generated
26
stage0/stdlib/Lean/Meta/Closure.c
generated
|
|
@ -38,6 +38,7 @@ lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l_List_foldlM___at_Lean_Meta_mkAuxDefinition___spec__6___closed__2;
|
||||
static lean_object* l_Lean_Meta_Closure_collectLevelAux___closed__2;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Closure_collectLevelAux___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__16;
|
||||
|
|
@ -122,7 +123,6 @@ LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_mkAuxDefini
|
|||
lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Closure_State_visitedLevel___default;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Closure_collectExprAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3930,7 +3930,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1027u);
|
||||
x_3 = lean_unsigned_to_nat(1034u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -3959,7 +3959,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__5;
|
||||
x_3 = lean_unsigned_to_nat(1032u);
|
||||
x_3 = lean_unsigned_to_nat(1039u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__6;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -3988,7 +3988,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__8;
|
||||
x_3 = lean_unsigned_to_nat(992u);
|
||||
x_3 = lean_unsigned_to_nat(999u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__9;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -4017,7 +4017,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__11;
|
||||
x_3 = lean_unsigned_to_nat(1060u);
|
||||
x_3 = lean_unsigned_to_nat(1067u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__12;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -4046,7 +4046,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__14;
|
||||
x_3 = lean_unsigned_to_nat(1046u);
|
||||
x_3 = lean_unsigned_to_nat(1053u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__15;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -4075,7 +4075,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1;
|
||||
x_2 = l_Lean_Meta_Closure_collectExprAux___closed__17;
|
||||
x_3 = lean_unsigned_to_nat(1069u);
|
||||
x_3 = lean_unsigned_to_nat(1076u);
|
||||
x_4 = lean_unsigned_to_nat(22u);
|
||||
x_5 = l_Lean_Meta_Closure_collectExprAux___closed__18;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -5609,7 +5609,7 @@ lean_dec(x_385);
|
|||
lean_dec(x_383);
|
||||
lean_dec(x_1);
|
||||
x_396 = l_Lean_Meta_Closure_collectExprAux___closed__10;
|
||||
x_397 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_396);
|
||||
x_397 = l_panic___at_Lean_mkApp___spec__1(x_396);
|
||||
x_398 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_398, 0, x_397);
|
||||
lean_ctor_set(x_398, 1, x_386);
|
||||
|
|
@ -6067,7 +6067,7 @@ lean_dec(x_503);
|
|||
lean_dec(x_501);
|
||||
lean_dec(x_1);
|
||||
x_518 = l_Lean_Meta_Closure_collectExprAux___closed__13;
|
||||
x_519 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_518);
|
||||
x_519 = l_panic___at_Lean_mkApp___spec__1(x_518);
|
||||
x_520 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_520, 0, x_519);
|
||||
lean_ctor_set(x_520, 1, x_504);
|
||||
|
|
@ -6525,7 +6525,7 @@ lean_dec(x_625);
|
|||
lean_dec(x_623);
|
||||
lean_dec(x_1);
|
||||
x_640 = l_Lean_Meta_Closure_collectExprAux___closed__16;
|
||||
x_641 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_640);
|
||||
x_641 = l_panic___at_Lean_mkApp___spec__1(x_640);
|
||||
x_642 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_642, 0, x_641);
|
||||
lean_ctor_set(x_642, 1, x_626);
|
||||
|
|
@ -7027,7 +7027,7 @@ lean_dec(x_748);
|
|||
lean_dec(x_746);
|
||||
lean_dec(x_1);
|
||||
x_763 = l_Lean_Meta_Closure_collectExprAux___closed__19;
|
||||
x_764 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_763);
|
||||
x_764 = l_panic___at_Lean_mkApp___spec__1(x_763);
|
||||
x_765 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_765, 0, x_764);
|
||||
lean_ctor_set(x_765, 1, x_751);
|
||||
|
|
@ -7965,7 +7965,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_20 = l_Lean_Meta_Closure_collectExprAux___closed__4;
|
||||
x_21 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_20);
|
||||
x_21 = l_panic___at_Lean_mkApp___spec__1(x_20);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_10);
|
||||
|
|
@ -8016,7 +8016,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
|||
lean_dec(x_24);
|
||||
lean_dec(x_1);
|
||||
x_36 = l_Lean_Meta_Closure_collectExprAux___closed__7;
|
||||
x_37 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_36);
|
||||
x_37 = l_panic___at_Lean_mkApp___spec__1(x_36);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_25);
|
||||
|
|
|
|||
20
stage0/stdlib/Lean/Meta/DiscrTree.c
generated
20
stage0/stdlib/Lean/Meta/DiscrTree.c
generated
|
|
@ -2390,6 +2390,7 @@ lean_dec(x_17);
|
|||
x_26 = lean_nat_sub(x_25, x_24);
|
||||
lean_dec(x_25);
|
||||
x_27 = l_Lean_Expr_getRevArg_x21(x_1, x_26);
|
||||
lean_dec(x_1);
|
||||
x_1 = x_27;
|
||||
goto _start;
|
||||
}
|
||||
|
|
@ -2595,7 +2596,6 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_112 = l_Lean_Expr_appArg_x21(x_2);
|
||||
lean_dec(x_2);
|
||||
x_113 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(x_112);
|
||||
x_114 = lean_box(x_113);
|
||||
x_115 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -2622,7 +2622,6 @@ x_12 = lean_name_eq(x_1, x_11);
|
|||
if (x_12 == 0)
|
||||
{
|
||||
uint8_t x_13; lean_object* x_14; lean_object* x_15;
|
||||
lean_dec(x_2);
|
||||
x_13 = 0;
|
||||
x_14 = lean_box(x_13);
|
||||
x_15 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -2635,7 +2634,6 @@ else
|
|||
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_16 = lean_unsigned_to_nat(0u);
|
||||
x_17 = l_Lean_Expr_getAppNumArgsAux(x_2, x_16);
|
||||
lean_dec(x_2);
|
||||
x_18 = lean_unsigned_to_nat(1u);
|
||||
x_19 = lean_nat_dec_eq(x_17, x_18);
|
||||
lean_dec(x_17);
|
||||
|
|
@ -2660,7 +2658,6 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_26 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__10;
|
||||
x_27 = lean_name_eq(x_1, x_26);
|
||||
if (x_27 == 0)
|
||||
|
|
@ -2695,7 +2692,6 @@ x_36 = lean_nat_sub(x_23, x_35);
|
|||
lean_dec(x_23);
|
||||
x_37 = lean_nat_sub(x_36, x_35);
|
||||
lean_dec(x_36);
|
||||
lean_inc(x_2);
|
||||
x_38 = l_Lean_Expr_getRevArg_x21(x_2, x_37);
|
||||
x_39 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNatType(x_38, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_39) == 0)
|
||||
|
|
@ -2708,7 +2704,6 @@ lean_dec(x_40);
|
|||
if (x_41 == 0)
|
||||
{
|
||||
uint8_t x_42;
|
||||
lean_dec(x_2);
|
||||
x_42 = !lean_is_exclusive(x_39);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
|
|
@ -2744,7 +2739,6 @@ lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54;
|
|||
x_51 = lean_ctor_get(x_39, 0);
|
||||
lean_dec(x_51);
|
||||
x_52 = l_Lean_Expr_appArg_x21(x_2);
|
||||
lean_dec(x_2);
|
||||
x_53 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(x_52);
|
||||
x_54 = lean_box(x_53);
|
||||
lean_ctor_set(x_39, 0, x_54);
|
||||
|
|
@ -2757,7 +2751,6 @@ x_55 = lean_ctor_get(x_39, 1);
|
|||
lean_inc(x_55);
|
||||
lean_dec(x_39);
|
||||
x_56 = l_Lean_Expr_appArg_x21(x_2);
|
||||
lean_dec(x_2);
|
||||
x_57 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(x_56);
|
||||
x_58 = lean_box(x_57);
|
||||
x_59 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -2770,7 +2763,6 @@ return x_59;
|
|||
else
|
||||
{
|
||||
uint8_t x_60;
|
||||
lean_dec(x_2);
|
||||
x_60 = !lean_is_exclusive(x_39);
|
||||
if (x_60 == 0)
|
||||
{
|
||||
|
|
@ -2829,7 +2821,6 @@ lean_dec(x_70);
|
|||
x_75 = lean_unsigned_to_nat(1u);
|
||||
x_76 = lean_nat_sub(x_74, x_75);
|
||||
lean_dec(x_74);
|
||||
lean_inc(x_2);
|
||||
x_77 = l_Lean_Expr_getRevArg_x21(x_2, x_76);
|
||||
x_78 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNatType(x_77, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_78) == 0)
|
||||
|
|
@ -2842,7 +2833,6 @@ lean_dec(x_79);
|
|||
if (x_80 == 0)
|
||||
{
|
||||
uint8_t x_81;
|
||||
lean_dec(x_2);
|
||||
x_81 = !lean_is_exclusive(x_78);
|
||||
if (x_81 == 0)
|
||||
{
|
||||
|
|
@ -2878,7 +2868,6 @@ lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93;
|
|||
x_90 = lean_ctor_get(x_78, 0);
|
||||
lean_dec(x_90);
|
||||
x_91 = l_Lean_Expr_appArg_x21(x_2);
|
||||
lean_dec(x_2);
|
||||
x_92 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(x_91);
|
||||
x_93 = lean_box(x_92);
|
||||
lean_ctor_set(x_78, 0, x_93);
|
||||
|
|
@ -2891,7 +2880,6 @@ x_94 = lean_ctor_get(x_78, 1);
|
|||
lean_inc(x_94);
|
||||
lean_dec(x_78);
|
||||
x_95 = l_Lean_Expr_appArg_x21(x_2);
|
||||
lean_dec(x_2);
|
||||
x_96 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral(x_95);
|
||||
x_97 = lean_box(x_96);
|
||||
x_98 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -2904,7 +2892,6 @@ return x_98;
|
|||
else
|
||||
{
|
||||
uint8_t x_99;
|
||||
lean_dec(x_2);
|
||||
x_99 = !lean_is_exclusive(x_78);
|
||||
if (x_99 == 0)
|
||||
{
|
||||
|
|
@ -2934,6 +2921,7 @@ _start:
|
|||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isOffset(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -2957,7 +2945,6 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_11 = 1;
|
||||
x_12 = lean_box(x_11);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -2972,6 +2959,7 @@ _start:
|
|||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -3910,7 +3898,6 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_12);
|
||||
x_70 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_69, x_12, x_4, x_5, x_6, x_7, x_13);
|
||||
if (lean_obj_tag(x_70) == 0)
|
||||
{
|
||||
|
|
@ -4372,7 +4359,6 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_111);
|
||||
x_162 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar(x_161, x_111, x_4, x_5, x_6, x_7, x_112);
|
||||
if (lean_obj_tag(x_162) == 0)
|
||||
{
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/DiscrTreeTypes.c
generated
4
stage0/stdlib/Lean/Meta/DiscrTreeTypes.c
generated
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
static lean_object* l_Lean_Meta_DiscrTree_root___default___closed__2;
|
||||
static lean_object* l_Lean_Meta_DiscrTree_instBEqKey___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_root___default(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_312_(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_312____closed__31;
|
||||
|
|
@ -938,7 +938,7 @@ lean_object* x_9; lean_object* x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13
|
|||
x_9 = lean_ctor_get(x_1, 0);
|
||||
x_10 = lean_ctor_get(x_1, 1);
|
||||
x_11 = 3541;
|
||||
x_12 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_9);
|
||||
x_12 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_9);
|
||||
x_13 = lean_uint64_of_nat(x_10);
|
||||
x_14 = lean_uint64_mix_hash(x_12, x_13);
|
||||
x_15 = lean_uint64_mix_hash(x_11, x_14);
|
||||
|
|
|
|||
34
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
34
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
|
|
@ -74,7 +74,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_isDefEqStringLit(lean_object*, lean_object*
|
|||
static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_assignConst___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_checkMVar___spec__13(lean_object*, lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
|
||||
|
|
@ -102,6 +102,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAss
|
|||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_cacheResult___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_occursCheck(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_hasLetDeclsInBetween___lambda__1___boxed(lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_assignConst___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_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_sameHeadSymbol___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -350,7 +351,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isListLeve
|
|||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_CheckAssignment_run___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__6;
|
||||
uint8_t l_Lean_ReducibilityHints_isRegular(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -10948,7 +10948,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8;
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_4);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_4);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -10968,7 +10968,7 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_2);
|
||||
x_15 = lean_array_get_size(x_1);
|
||||
x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_13);
|
||||
x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_13);
|
||||
x_17 = lean_uint64_to_usize(x_16);
|
||||
x_18 = lean_usize_modn(x_17, x_15);
|
||||
lean_dec(x_15);
|
||||
|
|
@ -11108,7 +11108,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8;
|
|||
x_4 = lean_ctor_get(x_1, 0);
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
x_6 = lean_array_get_size(x_5);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
x_10 = lean_array_uget(x_5, x_9);
|
||||
|
|
@ -11160,7 +11160,7 @@ lean_inc(x_21);
|
|||
lean_inc(x_20);
|
||||
lean_dec(x_1);
|
||||
x_22 = lean_array_get_size(x_21);
|
||||
x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_24 = lean_uint64_to_usize(x_23);
|
||||
x_25 = lean_usize_modn(x_24, x_22);
|
||||
x_26 = lean_array_uget(x_21, x_25);
|
||||
|
|
@ -12983,7 +12983,7 @@ _start:
|
|||
lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_3 = lean_ctor_get(x_1, 1);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_6 = lean_uint64_to_usize(x_5);
|
||||
x_7 = lean_usize_modn(x_6, x_4);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -15607,7 +15607,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_check___closed__1;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_check___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1027u);
|
||||
x_3 = lean_unsigned_to_nat(1034u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Meta_CheckAssignment_check___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15636,7 +15636,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_check___closed__1;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_check___closed__5;
|
||||
x_3 = lean_unsigned_to_nat(1032u);
|
||||
x_3 = lean_unsigned_to_nat(1039u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Meta_CheckAssignment_check___closed__6;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15665,7 +15665,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_check___closed__1;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_check___closed__8;
|
||||
x_3 = lean_unsigned_to_nat(1060u);
|
||||
x_3 = lean_unsigned_to_nat(1067u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Meta_CheckAssignment_check___closed__9;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15694,7 +15694,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_check___closed__1;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_check___closed__11;
|
||||
x_3 = lean_unsigned_to_nat(1046u);
|
||||
x_3 = lean_unsigned_to_nat(1053u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l_Lean_Meta_CheckAssignment_check___closed__12;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15723,7 +15723,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_CheckAssignment_check___closed__1;
|
||||
x_2 = l_Lean_Meta_CheckAssignment_check___closed__14;
|
||||
x_3 = lean_unsigned_to_nat(1069u);
|
||||
x_3 = lean_unsigned_to_nat(1076u);
|
||||
x_4 = lean_unsigned_to_nat(22u);
|
||||
x_5 = l_Lean_Meta_CheckAssignment_check___closed__15;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16187,7 +16187,7 @@ lean_dec(x_101);
|
|||
lean_dec(x_99);
|
||||
lean_dec(x_1);
|
||||
x_116 = l_Lean_Meta_CheckAssignment_check___closed__10;
|
||||
x_117 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_116);
|
||||
x_117 = l_panic___at_Lean_mkApp___spec__1(x_116);
|
||||
x_118 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_118, 0, x_117);
|
||||
lean_ctor_set(x_118, 1, x_102);
|
||||
|
|
@ -16496,7 +16496,7 @@ lean_dec(x_165);
|
|||
lean_dec(x_163);
|
||||
lean_dec(x_1);
|
||||
x_180 = l_Lean_Meta_CheckAssignment_check___closed__13;
|
||||
x_181 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_180);
|
||||
x_181 = l_panic___at_Lean_mkApp___spec__1(x_180);
|
||||
x_182 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_182, 0, x_181);
|
||||
lean_ctor_set(x_182, 1, x_166);
|
||||
|
|
@ -16837,7 +16837,7 @@ lean_dec(x_230);
|
|||
lean_dec(x_228);
|
||||
lean_dec(x_1);
|
||||
x_245 = l_Lean_Meta_CheckAssignment_check___closed__16;
|
||||
x_246 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_245);
|
||||
x_246 = l_panic___at_Lean_mkApp___spec__1(x_245);
|
||||
x_247 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_247, 0, x_246);
|
||||
lean_ctor_set(x_247, 1, x_233);
|
||||
|
|
@ -17446,7 +17446,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_20 = l_Lean_Meta_CheckAssignment_check___closed__4;
|
||||
x_21 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_20);
|
||||
x_21 = l_panic___at_Lean_mkApp___spec__1(x_20);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_10);
|
||||
|
|
@ -17497,7 +17497,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
|||
lean_dec(x_24);
|
||||
lean_dec(x_1);
|
||||
x_36 = l_Lean_Meta_CheckAssignment_check___closed__7;
|
||||
x_37 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_36);
|
||||
x_37 = l_panic___at_Lean_mkApp___spec__1(x_36);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_25);
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/InferType.c
generated
4
stage0/stdlib/Lean/Meta/InferType.c
generated
|
|
@ -44,6 +44,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_proce
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isAlwaysZero___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_throwTypeExcepted___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__2;
|
||||
size_t lean_usize_sub(size_t, size_t);
|
||||
|
|
@ -119,7 +120,6 @@ lean_object* l_instInhabited___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l_panic___at_Lean_Expr_instantiateBetaRevRange_visit___spec__10___closed__2;
|
||||
static lean_object* l_panic___at_Lean_Expr_instantiateBetaRevRange_visit___spec__10___closed__1;
|
||||
lean_object* lean_level_mk_imax_simp(lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Expr_instantiateBetaRevRange_visit___spec__7___at_Lean_Expr_instantiateBetaRevRange_visit___spec__8(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Expr_instantiateBetaRevRange_visit___spec__2(lean_object*, lean_object*);
|
||||
lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*);
|
||||
|
|
@ -2071,7 +2071,7 @@ if (x_8 == 0)
|
|||
lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_1);
|
||||
x_9 = l_Lean_Expr_instantiateBetaRevRange___closed__5;
|
||||
x_10 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_9);
|
||||
x_10 = l_panic___at_Lean_mkApp___spec__1(x_9);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
1
stage0/stdlib/Lean/Meta/Injective.c
generated
1
stage0/stdlib/Lean/Meta/Injective.c
generated
|
|
@ -334,6 +334,7 @@ x_13 = lean_unsigned_to_nat(1u);
|
|||
x_14 = lean_nat_sub(x_12, x_13);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_Expr_getRevArg_x21(x_1, x_14);
|
||||
lean_dec(x_1);
|
||||
x_16 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_15);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
|
|||
5
stage0/stdlib/Lean/Meta/Match/Basic.c
generated
5
stage0/stdlib/Lean/Meta/Match/Basic.c
generated
|
|
@ -6688,7 +6688,6 @@ x_83 = lean_nat_sub(x_81, x_82);
|
|||
x_84 = lean_unsigned_to_nat(1u);
|
||||
x_85 = lean_nat_sub(x_83, x_84);
|
||||
lean_dec(x_83);
|
||||
lean_inc(x_1);
|
||||
x_86 = l_Lean_Expr_getRevArg_x21(x_1, x_85);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -6708,13 +6707,13 @@ x_91 = lean_unsigned_to_nat(3u);
|
|||
x_92 = lean_nat_sub(x_81, x_91);
|
||||
x_93 = lean_nat_sub(x_92, x_84);
|
||||
lean_dec(x_92);
|
||||
lean_inc(x_1);
|
||||
x_94 = l_Lean_Expr_getRevArg_x21(x_1, x_93);
|
||||
x_95 = lean_nat_sub(x_81, x_84);
|
||||
lean_dec(x_81);
|
||||
x_96 = lean_nat_sub(x_95, x_84);
|
||||
lean_dec(x_95);
|
||||
x_97 = l_Lean_Expr_getRevArg_x21(x_1, x_96);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_97) == 1)
|
||||
{
|
||||
if (lean_obj_tag(x_94) == 1)
|
||||
|
|
@ -6781,13 +6780,13 @@ x_107 = lean_unsigned_to_nat(3u);
|
|||
x_108 = lean_nat_sub(x_81, x_107);
|
||||
x_109 = lean_nat_sub(x_108, x_84);
|
||||
lean_dec(x_108);
|
||||
lean_inc(x_1);
|
||||
x_110 = l_Lean_Expr_getRevArg_x21(x_1, x_109);
|
||||
x_111 = lean_nat_sub(x_81, x_84);
|
||||
lean_dec(x_81);
|
||||
x_112 = lean_nat_sub(x_111, x_84);
|
||||
lean_dec(x_111);
|
||||
x_113 = l_Lean_Expr_getRevArg_x21(x_1, x_112);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_113) == 1)
|
||||
{
|
||||
if (lean_obj_tag(x_110) == 1)
|
||||
|
|
|
|||
9
stage0/stdlib/Lean/Meta/Offset.c
generated
9
stage0/stdlib/Lean/Meta/Offset.c
generated
|
|
@ -743,6 +743,7 @@ lean_dec(x_25);
|
|||
x_229 = lean_nat_sub(x_228, x_225);
|
||||
lean_dec(x_228);
|
||||
x_230 = l_Lean_Expr_getRevArg_x21(x_1, x_229);
|
||||
lean_dec(x_1);
|
||||
x_231 = l_Lean_Meta_evalNat(x_230, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_231) == 0)
|
||||
{
|
||||
|
|
@ -1089,7 +1090,6 @@ x_67 = lean_nat_sub(x_25, x_24);
|
|||
x_68 = lean_unsigned_to_nat(1u);
|
||||
x_69 = lean_nat_sub(x_67, x_68);
|
||||
lean_dec(x_67);
|
||||
lean_inc(x_1);
|
||||
x_70 = l_Lean_Expr_getRevArg_x21(x_1, x_69);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -1147,6 +1147,7 @@ lean_dec(x_25);
|
|||
x_82 = lean_nat_sub(x_81, x_68);
|
||||
lean_dec(x_81);
|
||||
x_83 = l_Lean_Expr_getRevArg_x21(x_1, x_82);
|
||||
lean_dec(x_1);
|
||||
x_84 = l_Lean_Meta_evalNat(x_83, x_2, x_3, x_4, x_5, x_79);
|
||||
if (lean_obj_tag(x_84) == 0)
|
||||
{
|
||||
|
|
@ -1340,7 +1341,6 @@ x_124 = lean_nat_sub(x_25, x_24);
|
|||
x_125 = lean_unsigned_to_nat(1u);
|
||||
x_126 = lean_nat_sub(x_124, x_125);
|
||||
lean_dec(x_124);
|
||||
lean_inc(x_1);
|
||||
x_127 = l_Lean_Expr_getRevArg_x21(x_1, x_126);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -1398,6 +1398,7 @@ lean_dec(x_25);
|
|||
x_139 = lean_nat_sub(x_138, x_125);
|
||||
lean_dec(x_138);
|
||||
x_140 = l_Lean_Expr_getRevArg_x21(x_1, x_139);
|
||||
lean_dec(x_1);
|
||||
x_141 = l_Lean_Meta_evalNat(x_140, x_2, x_3, x_4, x_5, x_136);
|
||||
if (lean_obj_tag(x_141) == 0)
|
||||
{
|
||||
|
|
@ -1573,7 +1574,6 @@ x_174 = lean_nat_sub(x_25, x_24);
|
|||
x_175 = lean_unsigned_to_nat(1u);
|
||||
x_176 = lean_nat_sub(x_174, x_175);
|
||||
lean_dec(x_174);
|
||||
lean_inc(x_1);
|
||||
x_177 = l_Lean_Expr_getRevArg_x21(x_1, x_176);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -1631,6 +1631,7 @@ lean_dec(x_25);
|
|||
x_189 = lean_nat_sub(x_188, x_175);
|
||||
lean_dec(x_188);
|
||||
x_190 = l_Lean_Expr_getRevArg_x21(x_1, x_189);
|
||||
lean_dec(x_1);
|
||||
x_191 = l_Lean_Meta_evalNat(x_190, x_2, x_3, x_4, x_5, x_186);
|
||||
if (lean_obj_tag(x_191) == 0)
|
||||
{
|
||||
|
|
@ -2711,7 +2712,6 @@ x_109 = lean_unsigned_to_nat(1u);
|
|||
x_110 = lean_nat_sub(x_27, x_109);
|
||||
x_111 = lean_nat_sub(x_110, x_109);
|
||||
lean_dec(x_110);
|
||||
lean_inc(x_1);
|
||||
x_112 = l_Lean_Expr_getRevArg_x21(x_1, x_111);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2769,6 +2769,7 @@ lean_dec(x_27);
|
|||
x_124 = lean_nat_sub(x_123, x_109);
|
||||
lean_dec(x_123);
|
||||
x_125 = l_Lean_Expr_getRevArg_x21(x_1, x_124);
|
||||
lean_dec(x_1);
|
||||
x_126 = 0;
|
||||
x_127 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_125, x_126, x_3, x_4, x_5, x_6, x_121);
|
||||
if (lean_obj_tag(x_127) == 0)
|
||||
|
|
|
|||
8
stage0/stdlib/Lean/Meta/ReduceEval.c
generated
8
stage0/stdlib/Lean/Meta/ReduceEval.c
generated
|
|
@ -3674,7 +3674,6 @@ x_22 = lean_nat_sub(x_14, x_13);
|
|||
x_23 = lean_unsigned_to_nat(1u);
|
||||
x_24 = lean_nat_sub(x_22, x_23);
|
||||
lean_dec(x_22);
|
||||
lean_inc(x_9);
|
||||
x_25 = l_Lean_Expr_getRevArg_x21(x_9, x_24);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -3694,6 +3693,7 @@ lean_dec(x_14);
|
|||
x_30 = lean_nat_sub(x_29, x_23);
|
||||
lean_dec(x_29);
|
||||
x_31 = l_Lean_Expr_getRevArg_x21(x_9, x_30);
|
||||
lean_dec(x_9);
|
||||
x_32 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__1(x_31, x_2, x_3, x_4, x_5, x_28);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
|
|
@ -3810,7 +3810,6 @@ x_56 = lean_nat_sub(x_14, x_13);
|
|||
x_57 = lean_unsigned_to_nat(1u);
|
||||
x_58 = lean_nat_sub(x_56, x_57);
|
||||
lean_dec(x_56);
|
||||
lean_inc(x_9);
|
||||
x_59 = l_Lean_Expr_getRevArg_x21(x_9, x_58);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -3830,6 +3829,7 @@ lean_dec(x_14);
|
|||
x_64 = lean_nat_sub(x_63, x_57);
|
||||
lean_dec(x_63);
|
||||
x_65 = l_Lean_Expr_getRevArg_x21(x_9, x_64);
|
||||
lean_dec(x_9);
|
||||
x_66 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__2(x_65, x_2, x_3, x_4, x_5, x_62);
|
||||
if (lean_obj_tag(x_66) == 0)
|
||||
{
|
||||
|
|
@ -4022,7 +4022,6 @@ x_103 = lean_nat_sub(x_95, x_94);
|
|||
x_104 = lean_unsigned_to_nat(1u);
|
||||
x_105 = lean_nat_sub(x_103, x_104);
|
||||
lean_dec(x_103);
|
||||
lean_inc(x_90);
|
||||
x_106 = l_Lean_Expr_getRevArg_x21(x_90, x_105);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -4042,6 +4041,7 @@ lean_dec(x_95);
|
|||
x_111 = lean_nat_sub(x_110, x_104);
|
||||
lean_dec(x_110);
|
||||
x_112 = l_Lean_Expr_getRevArg_x21(x_90, x_111);
|
||||
lean_dec(x_90);
|
||||
x_113 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__1(x_112, x_2, x_3, x_4, x_5, x_109);
|
||||
if (lean_obj_tag(x_113) == 0)
|
||||
{
|
||||
|
|
@ -4160,7 +4160,6 @@ x_135 = lean_nat_sub(x_95, x_94);
|
|||
x_136 = lean_unsigned_to_nat(1u);
|
||||
x_137 = lean_nat_sub(x_135, x_136);
|
||||
lean_dec(x_135);
|
||||
lean_inc(x_90);
|
||||
x_138 = l_Lean_Expr_getRevArg_x21(x_90, x_137);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -4180,6 +4179,7 @@ lean_dec(x_95);
|
|||
x_143 = lean_nat_sub(x_142, x_136);
|
||||
lean_dec(x_142);
|
||||
x_144 = l_Lean_Expr_getRevArg_x21(x_90, x_143);
|
||||
lean_dec(x_90);
|
||||
x_145 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__2(x_144, x_2, x_3, x_4, x_5, x_141);
|
||||
if (lean_obj_tag(x_145) == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2048,7 +2048,6 @@ x_111 = lean_nat_sub(x_17, x_16);
|
|||
x_112 = lean_unsigned_to_nat(1u);
|
||||
x_113 = lean_nat_sub(x_111, x_112);
|
||||
lean_dec(x_111);
|
||||
lean_inc(x_1);
|
||||
x_114 = l_Lean_Expr_getRevArg_x21(x_1, x_113);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2068,6 +2067,7 @@ lean_dec(x_17);
|
|||
x_119 = lean_nat_sub(x_118, x_112);
|
||||
lean_dec(x_118);
|
||||
x_120 = l_Lean_Expr_getRevArg_x21(x_1, x_119);
|
||||
lean_dec(x_1);
|
||||
x_121 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_120, x_2, x_3, x_4, x_5, x_6, x_117);
|
||||
if (lean_obj_tag(x_121) == 0)
|
||||
{
|
||||
|
|
@ -2191,7 +2191,6 @@ lean_dec(x_15);
|
|||
x_145 = lean_nat_sub(x_17, x_16);
|
||||
x_146 = lean_nat_sub(x_145, x_137);
|
||||
lean_dec(x_145);
|
||||
lean_inc(x_1);
|
||||
x_147 = l_Lean_Expr_getRevArg_x21(x_1, x_146);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2211,6 +2210,7 @@ lean_dec(x_17);
|
|||
x_152 = lean_nat_sub(x_151, x_137);
|
||||
lean_dec(x_151);
|
||||
x_153 = l_Lean_Expr_getRevArg_x21(x_1, x_152);
|
||||
lean_dec(x_1);
|
||||
x_154 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_153, x_2, x_3, x_4, x_5, x_6, x_150);
|
||||
if (lean_obj_tag(x_154) == 0)
|
||||
{
|
||||
|
|
@ -2532,7 +2532,6 @@ x_49 = lean_nat_sub(x_17, x_16);
|
|||
x_50 = lean_unsigned_to_nat(1u);
|
||||
x_51 = lean_nat_sub(x_49, x_50);
|
||||
lean_dec(x_49);
|
||||
lean_inc(x_1);
|
||||
x_52 = l_Lean_Expr_getRevArg_x21(x_1, x_51);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2555,7 +2554,6 @@ x_56 = lean_nat_sub(x_17, x_50);
|
|||
lean_dec(x_17);
|
||||
x_57 = lean_nat_sub(x_56, x_50);
|
||||
lean_dec(x_56);
|
||||
lean_inc(x_1);
|
||||
x_58 = l_Lean_Expr_getRevArg_x21(x_1, x_57);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2688,6 +2686,7 @@ lean_dec(x_17);
|
|||
x_84 = lean_nat_sub(x_83, x_50);
|
||||
lean_dec(x_83);
|
||||
x_85 = l_Lean_Expr_getRevArg_x21(x_1, x_84);
|
||||
lean_dec(x_1);
|
||||
x_86 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_85, x_2, x_3, x_4, x_5, x_6, x_81);
|
||||
if (lean_obj_tag(x_86) == 0)
|
||||
{
|
||||
|
|
@ -3244,7 +3243,6 @@ x_197 = lean_unsigned_to_nat(1u);
|
|||
x_198 = lean_nat_sub(x_24, x_197);
|
||||
x_199 = lean_nat_sub(x_198, x_197);
|
||||
lean_dec(x_198);
|
||||
lean_inc(x_1);
|
||||
x_200 = l_Lean_Expr_getRevArg_x21(x_1, x_199);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -3265,6 +3263,7 @@ lean_dec(x_24);
|
|||
x_206 = lean_nat_sub(x_205, x_197);
|
||||
lean_dec(x_205);
|
||||
x_207 = l_Lean_Expr_getRevArg_x21(x_1, x_206);
|
||||
lean_dec(x_1);
|
||||
x_208 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_207, x_2, x_3, x_4, x_5, x_6, x_203);
|
||||
if (lean_obj_tag(x_208) == 0)
|
||||
{
|
||||
|
|
@ -3392,7 +3391,6 @@ x_160 = lean_nat_sub(x_24, x_23);
|
|||
x_161 = lean_unsigned_to_nat(1u);
|
||||
x_162 = lean_nat_sub(x_160, x_161);
|
||||
lean_dec(x_160);
|
||||
lean_inc(x_1);
|
||||
x_163 = l_Lean_Expr_getRevArg_x21(x_1, x_162);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -3412,6 +3410,7 @@ lean_dec(x_24);
|
|||
x_168 = lean_nat_sub(x_167, x_161);
|
||||
lean_dec(x_167);
|
||||
x_169 = l_Lean_Expr_getRevArg_x21(x_1, x_168);
|
||||
lean_dec(x_1);
|
||||
x_170 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_169, x_2, x_3, x_4, x_5, x_6, x_166);
|
||||
if (lean_obj_tag(x_170) == 0)
|
||||
{
|
||||
|
|
@ -3515,7 +3514,6 @@ lean_dec(x_24);
|
|||
x_28 = lean_unsigned_to_nat(1u);
|
||||
x_29 = lean_nat_sub(x_27, x_28);
|
||||
lean_dec(x_27);
|
||||
lean_inc(x_1);
|
||||
x_30 = l_Lean_Expr_getRevArg_x21(x_1, x_29);
|
||||
x_31 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1;
|
||||
lean_inc(x_6);
|
||||
|
|
@ -3978,7 +3976,6 @@ x_121 = lean_nat_sub(x_24, x_23);
|
|||
x_122 = lean_unsigned_to_nat(1u);
|
||||
x_123 = lean_nat_sub(x_121, x_122);
|
||||
lean_dec(x_121);
|
||||
lean_inc(x_1);
|
||||
x_124 = l_Lean_Expr_getRevArg_x21(x_1, x_123);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
|
|
@ -3998,6 +3995,7 @@ lean_dec(x_24);
|
|||
x_129 = lean_nat_sub(x_128, x_122);
|
||||
lean_dec(x_128);
|
||||
x_130 = l_Lean_Expr_getRevArg_x21(x_1, x_129);
|
||||
lean_dec(x_1);
|
||||
x_131 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_130, x_2, x_3, x_4, x_5, x_6, x_127);
|
||||
if (lean_obj_tag(x_131) == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1718,7 +1718,6 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
|
|
@ -1742,7 +1741,6 @@ x_20 = lean_nat_sub(x_18, x_19);
|
|||
x_21 = lean_unsigned_to_nat(1u);
|
||||
x_22 = lean_nat_sub(x_20, x_21);
|
||||
lean_dec(x_20);
|
||||
lean_inc(x_2);
|
||||
x_23 = l_Lean_Expr_getRevArg_x21(x_2, x_22);
|
||||
x_24 = lean_unsigned_to_nat(3u);
|
||||
x_25 = lean_nat_sub(x_18, x_24);
|
||||
|
|
@ -1969,7 +1967,6 @@ x_85 = lean_nat_sub(x_83, x_84);
|
|||
x_86 = lean_unsigned_to_nat(1u);
|
||||
x_87 = lean_nat_sub(x_85, x_86);
|
||||
lean_dec(x_85);
|
||||
lean_inc(x_2);
|
||||
x_88 = l_Lean_Expr_getRevArg_x21(x_2, x_87);
|
||||
x_89 = lean_unsigned_to_nat(3u);
|
||||
x_90 = lean_nat_sub(x_83, x_89);
|
||||
|
|
@ -2390,6 +2387,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
|||
x_22 = lean_box(0);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_12, x_11, x_1, x_22, x_12, x_23, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_11);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
|
|
@ -2401,14 +2399,12 @@ x_27 = lean_unsigned_to_nat(2u);
|
|||
x_28 = lean_nat_sub(x_26, x_27);
|
||||
x_29 = lean_nat_sub(x_28, x_8);
|
||||
lean_dec(x_28);
|
||||
lean_inc(x_11);
|
||||
x_30 = l_Lean_Expr_getRevArg_x21(x_11, x_29);
|
||||
x_31 = lean_unsigned_to_nat(3u);
|
||||
x_32 = lean_nat_sub(x_26, x_31);
|
||||
lean_dec(x_26);
|
||||
x_33 = lean_nat_sub(x_32, x_8);
|
||||
lean_dec(x_32);
|
||||
lean_inc(x_11);
|
||||
x_34 = l_Lean_Expr_getRevArg_x21(x_11, x_33);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -2428,6 +2424,7 @@ lean_ctor_set(x_38, 0, x_36);
|
|||
x_39 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__20;
|
||||
x_40 = lean_box(0);
|
||||
x_41 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_12, x_11, x_1, x_39, x_38, x_40, x_2, x_3, x_4, x_5, x_37);
|
||||
lean_dec(x_11);
|
||||
return x_41;
|
||||
}
|
||||
else
|
||||
|
|
@ -2469,14 +2466,12 @@ x_48 = lean_unsigned_to_nat(3u);
|
|||
x_49 = lean_nat_sub(x_47, x_48);
|
||||
x_50 = lean_nat_sub(x_49, x_8);
|
||||
lean_dec(x_49);
|
||||
lean_inc(x_11);
|
||||
x_51 = l_Lean_Expr_getRevArg_x21(x_11, x_50);
|
||||
x_52 = lean_unsigned_to_nat(2u);
|
||||
x_53 = lean_nat_sub(x_47, x_52);
|
||||
lean_dec(x_47);
|
||||
x_54 = lean_nat_sub(x_53, x_8);
|
||||
lean_dec(x_53);
|
||||
lean_inc(x_11);
|
||||
x_55 = l_Lean_Expr_getRevArg_x21(x_11, x_54);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -2496,6 +2491,7 @@ lean_ctor_set(x_59, 0, x_57);
|
|||
x_60 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__22;
|
||||
x_61 = lean_box(0);
|
||||
x_62 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_12, x_11, x_1, x_60, x_59, x_61, x_2, x_3, x_4, x_5, x_58);
|
||||
lean_dec(x_11);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
|
|
@ -2537,7 +2533,6 @@ x_69 = lean_unsigned_to_nat(2u);
|
|||
x_70 = lean_nat_sub(x_68, x_69);
|
||||
x_71 = lean_nat_sub(x_70, x_8);
|
||||
lean_dec(x_70);
|
||||
lean_inc(x_11);
|
||||
x_72 = l_Lean_Expr_getRevArg_x21(x_11, x_71);
|
||||
x_73 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__23;
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2558,7 +2553,6 @@ x_78 = lean_nat_sub(x_68, x_77);
|
|||
lean_dec(x_68);
|
||||
x_79 = lean_nat_sub(x_78, x_8);
|
||||
lean_dec(x_78);
|
||||
lean_inc(x_11);
|
||||
x_80 = l_Lean_Expr_getRevArg_x21(x_11, x_79);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -2578,6 +2572,7 @@ lean_ctor_set(x_84, 0, x_82);
|
|||
x_85 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__25;
|
||||
x_86 = lean_box(0);
|
||||
x_87 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_12, x_11, x_1, x_85, x_84, x_86, x_2, x_3, x_4, x_5, x_83);
|
||||
lean_dec(x_11);
|
||||
return x_87;
|
||||
}
|
||||
else
|
||||
|
|
@ -2649,7 +2644,6 @@ x_98 = lean_unsigned_to_nat(3u);
|
|||
x_99 = lean_nat_sub(x_97, x_98);
|
||||
x_100 = lean_nat_sub(x_99, x_8);
|
||||
lean_dec(x_99);
|
||||
lean_inc(x_11);
|
||||
x_101 = l_Lean_Expr_getRevArg_x21(x_11, x_100);
|
||||
x_102 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__23;
|
||||
lean_inc(x_5);
|
||||
|
|
@ -2670,7 +2664,6 @@ x_107 = lean_nat_sub(x_97, x_106);
|
|||
lean_dec(x_97);
|
||||
x_108 = lean_nat_sub(x_107, x_8);
|
||||
lean_dec(x_107);
|
||||
lean_inc(x_11);
|
||||
x_109 = l_Lean_Expr_getRevArg_x21(x_11, x_108);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -2690,6 +2683,7 @@ lean_ctor_set(x_113, 0, x_111);
|
|||
x_114 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__27;
|
||||
x_115 = lean_box(0);
|
||||
x_116 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_12, x_11, x_1, x_114, x_113, x_115, x_2, x_3, x_4, x_5, x_112);
|
||||
lean_dec(x_11);
|
||||
return x_116;
|
||||
}
|
||||
else
|
||||
|
|
@ -2760,6 +2754,7 @@ _start:
|
|||
lean_object* x_12;
|
||||
x_12 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_2);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
20
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
20
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
|
|
@ -109,6 +109,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_S
|
|||
static lean_object* l_Lean_Meta_Simp_simp_simpLoop___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Config_updateArith(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__8;
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_simp_simpLoop___closed__2;
|
||||
|
|
@ -315,7 +316,6 @@ LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Simp_simp_m
|
|||
lean_object* l_instInhabited___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__3;
|
||||
static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__5;
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1698,7 +1698,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__1;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1046u);
|
||||
x_3 = lean_unsigned_to_nat(1053u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -1757,7 +1757,7 @@ lean_dec(x_10);
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_135 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4;
|
||||
x_136 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_135);
|
||||
x_136 = l_panic___at_Lean_mkApp___spec__1(x_135);
|
||||
x_12 = x_136;
|
||||
goto block_123;
|
||||
}
|
||||
|
|
@ -16941,7 +16941,7 @@ lean_dec(x_105);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_127 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4;
|
||||
x_128 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_127);
|
||||
x_128 = l_panic___at_Lean_mkApp___spec__1(x_127);
|
||||
x_129 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_129, 0, x_128);
|
||||
lean_ctor_set(x_129, 1, x_89);
|
||||
|
|
@ -17209,7 +17209,7 @@ lean_dec(x_159);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_178 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4;
|
||||
x_179 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_178);
|
||||
x_179 = l_panic___at_Lean_mkApp___spec__1(x_178);
|
||||
x_180 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_180, 0, x_179);
|
||||
lean_ctor_set(x_180, 1, x_168);
|
||||
|
|
@ -17573,7 +17573,7 @@ lean_dec(x_229);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_248 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4;
|
||||
x_249 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_248);
|
||||
x_249 = l_panic___at_Lean_mkApp___spec__1(x_248);
|
||||
x_250 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_250, 0, x_249);
|
||||
lean_ctor_set(x_250, 1, x_238);
|
||||
|
|
@ -17975,7 +17975,7 @@ lean_dec(x_306);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_325 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4;
|
||||
x_326 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_325);
|
||||
x_326 = l_panic___at_Lean_mkApp___spec__1(x_325);
|
||||
x_327 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_327, 0, x_326);
|
||||
lean_ctor_set(x_327, 1, x_315);
|
||||
|
|
@ -32848,7 +32848,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__1;
|
||||
x_2 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1032u);
|
||||
x_3 = lean_unsigned_to_nat(1039u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -32883,7 +32883,7 @@ else
|
|||
{
|
||||
lean_object* x_75; lean_object* x_76;
|
||||
x_75 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__3;
|
||||
x_76 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_75);
|
||||
x_76 = l_panic___at_Lean_mkApp___spec__1(x_75);
|
||||
x_11 = x_76;
|
||||
goto block_68;
|
||||
}
|
||||
|
|
@ -33351,7 +33351,7 @@ else
|
|||
lean_object* x_98; lean_object* x_99;
|
||||
lean_dec(x_45);
|
||||
x_98 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__3;
|
||||
x_99 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_98);
|
||||
x_99 = l_panic___at_Lean_mkApp___spec__1(x_98);
|
||||
x_47 = x_99;
|
||||
goto block_91;
|
||||
}
|
||||
|
|
|
|||
10
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
10
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
|
|
@ -60,6 +60,7 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems
|
|||
lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__6;
|
||||
static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__25;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -176,7 +177,6 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Me
|
|||
static size_t l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___closed__2;
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapM___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getSimpTheorems___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_mkSimpExt___closed__1;
|
||||
|
|
@ -11676,7 +11676,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Meta_SimpTheorem_getValue___closed__1;
|
||||
x_2 = l_Lean_Meta_SimpTheorem_getValue___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1001u);
|
||||
x_3 = lean_unsigned_to_nat(1008u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Meta_SimpTheorem_getValue___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -11879,7 +11879,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
|||
x_62 = lean_ctor_get(x_41, 0);
|
||||
lean_dec(x_62);
|
||||
x_63 = l_Lean_Meta_SimpTheorem_getValue___closed__4;
|
||||
x_64 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_63);
|
||||
x_64 = l_panic___at_Lean_mkApp___spec__1(x_63);
|
||||
lean_ctor_set(x_41, 0, x_64);
|
||||
return x_41;
|
||||
}
|
||||
|
|
@ -11890,7 +11890,7 @@ x_65 = lean_ctor_get(x_41, 1);
|
|||
lean_inc(x_65);
|
||||
lean_dec(x_41);
|
||||
x_66 = l_Lean_Meta_SimpTheorem_getValue___closed__4;
|
||||
x_67 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_66);
|
||||
x_67 = l_panic___at_Lean_mkApp___spec__1(x_66);
|
||||
x_68 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_68, 0, x_67);
|
||||
lean_ctor_set(x_68, 1, x_65);
|
||||
|
|
@ -11981,7 +11981,7 @@ if (lean_is_exclusive(x_73)) {
|
|||
x_85 = lean_box(0);
|
||||
}
|
||||
x_86 = l_Lean_Meta_SimpTheorem_getValue___closed__4;
|
||||
x_87 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_86);
|
||||
x_87 = l_panic___at_Lean_mkApp___spec__1(x_86);
|
||||
if (lean_is_scalar(x_85)) {
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
6
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
|
|
@ -4953,6 +4953,7 @@ lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
|||
lean_dec(x_1);
|
||||
x_31 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
x_32 = l_Lean_Expr_getRevArg_x21(x_4, x_31);
|
||||
lean_dec(x_4);
|
||||
x_33 = l_Lean_Expr_hasLooseBVars(x_32);
|
||||
lean_dec(x_32);
|
||||
if (x_33 == 0)
|
||||
|
|
@ -4977,6 +4978,7 @@ lean_object* x_38; lean_object* x_39; uint8_t x_40;
|
|||
lean_dec(x_1);
|
||||
x_38 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
x_39 = l_Lean_Expr_getRevArg_x21(x_4, x_38);
|
||||
lean_dec(x_4);
|
||||
x_40 = l_Lean_Expr_hasLooseBVars(x_39);
|
||||
lean_dec(x_39);
|
||||
if (x_40 == 0)
|
||||
|
|
@ -5144,7 +5146,6 @@ else
|
|||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
lean_inc(x_10);
|
||||
x_14 = l_Lean_Expr_getRevArg_x21(x_10, x_13);
|
||||
x_15 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_14);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
|
|
@ -5179,7 +5180,6 @@ else
|
|||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_4);
|
||||
x_19 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
lean_inc(x_10);
|
||||
x_20 = l_Lean_Expr_getRevArg_x21(x_10, x_19);
|
||||
x_21 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_20);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
|
|
@ -5234,7 +5234,6 @@ else
|
|||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
lean_inc(x_25);
|
||||
x_30 = l_Lean_Expr_getRevArg_x21(x_25, x_29);
|
||||
x_31 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_30);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
|
|
@ -5272,7 +5271,6 @@ else
|
|||
lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
lean_dec(x_4);
|
||||
x_36 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
lean_inc(x_25);
|
||||
x_37 = l_Lean_Expr_getRevArg_x21(x_25, x_36);
|
||||
x_38 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_37);
|
||||
if (lean_obj_tag(x_38) == 0)
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/Tactic/SplitIf.c
generated
4
stage0/stdlib/Lean/Meta/Tactic/SplitIf.c
generated
|
|
@ -2996,7 +2996,6 @@ x_3 = l_Lean_Expr_isDIte(x_1);
|
|||
if (x_3 == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
lean_dec(x_1);
|
||||
x_4 = 0;
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -3073,6 +3072,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
|||
x_6 = lean_ctor_get(x_3, 0);
|
||||
x_7 = l_Lean_Meta_SplitIf_findIfToSplit_x3f___lambda__1___closed__2;
|
||||
x_8 = l_Lean_Expr_getRevArg_x21(x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_inc(x_8);
|
||||
x_9 = l_Lean_Meta_SplitIf_findIfToSplit_x3f(x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
|
|
@ -3110,6 +3110,7 @@ lean_inc(x_13);
|
|||
lean_dec(x_3);
|
||||
x_14 = l_Lean_Meta_SplitIf_findIfToSplit_x3f___lambda__1___closed__2;
|
||||
x_15 = l_Lean_Expr_getRevArg_x21(x_13, x_14);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_15);
|
||||
x_16 = l_Lean_Meta_SplitIf_findIfToSplit_x3f(x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
|
|
@ -3149,6 +3150,7 @@ _start:
|
|||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Meta_SplitIf_findIfToSplit_x3f___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Meta/Tactic/Util.c
generated
14
stage0/stdlib/Lean/Meta/Tactic/Util.c
generated
|
|
@ -35,7 +35,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_throwTacticEx(lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_saturate_go___spec__2___closed__2;
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_checkNotAssigned___closed__3;
|
||||
extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
||||
|
|
@ -1502,7 +1502,7 @@ lean_inc(x_3);
|
|||
x_4 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_4);
|
||||
x_5 = lean_array_get_size(x_4);
|
||||
x_6 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_6 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_7 = lean_uint64_to_usize(x_6);
|
||||
x_8 = lean_usize_modn(x_7, x_5);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -3247,7 +3247,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8;
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_4);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_4);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -3267,7 +3267,7 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_2);
|
||||
x_15 = lean_array_get_size(x_1);
|
||||
x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_13);
|
||||
x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_13);
|
||||
x_17 = lean_uint64_to_usize(x_16);
|
||||
x_18 = lean_usize_modn(x_17, x_15);
|
||||
lean_dec(x_15);
|
||||
|
|
@ -3407,7 +3407,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8;
|
|||
x_4 = lean_ctor_get(x_1, 0);
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
x_6 = lean_array_get_size(x_5);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
x_10 = lean_array_uget(x_5, x_9);
|
||||
|
|
@ -3459,7 +3459,7 @@ lean_inc(x_21);
|
|||
lean_inc(x_20);
|
||||
lean_dec(x_1);
|
||||
x_22 = lean_array_get_size(x_21);
|
||||
x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_24 = lean_uint64_to_usize(x_23);
|
||||
x_25 = lean_usize_modn(x_24, x_22);
|
||||
x_26 = lean_array_uget(x_21, x_25);
|
||||
|
|
@ -5070,7 +5070,7 @@ _start:
|
|||
lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_3 = lean_ctor_get(x_1, 1);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_6 = lean_uint64_to_usize(x_5);
|
||||
x_7 = lean_usize_modn(x_6, x_4);
|
||||
lean_dec(x_4);
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/Meta/Transform.c
generated
26
stage0/stdlib/Lean/Meta/Transform.c
generated
|
|
@ -42,6 +42,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__4
|
|||
LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Meta_unfoldDeclsFrom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_transform_visit_visitPost___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_betaReduce___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_transform_visit___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*);
|
||||
|
|
@ -112,7 +113,6 @@ lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*,
|
|||
lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_transform_visit_visitPost(lean_object*);
|
||||
static lean_object* l_Lean_Core_transform_visit___rarg___lambda__4___closed__2;
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_transform_visit___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_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_transform_visit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_transform___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -674,7 +674,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1;
|
||||
x_2 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1060u);
|
||||
x_3 = lean_unsigned_to_nat(1067u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -726,7 +726,7 @@ lean_dec(x_10);
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_24 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__4;
|
||||
x_25 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_24);
|
||||
x_25 = l_panic___at_Lean_mkApp___spec__1(x_24);
|
||||
x_26 = l_Lean_Core_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_25, x_8);
|
||||
return x_26;
|
||||
}
|
||||
|
|
@ -780,7 +780,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1;
|
||||
x_2 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1046u);
|
||||
x_3 = lean_unsigned_to_nat(1053u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -832,7 +832,7 @@ lean_dec(x_10);
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_24 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__3;
|
||||
x_25 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_24);
|
||||
x_25 = l_panic___at_Lean_mkApp___spec__1(x_24);
|
||||
x_26 = l_Lean_Core_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_25, x_8);
|
||||
return x_26;
|
||||
}
|
||||
|
|
@ -886,7 +886,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1;
|
||||
x_2 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1069u);
|
||||
x_3 = lean_unsigned_to_nat(1076u);
|
||||
x_4 = lean_unsigned_to_nat(22u);
|
||||
x_5 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -939,7 +939,7 @@ lean_dec(x_10);
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_23 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__3;
|
||||
x_24 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_23);
|
||||
x_24 = l_panic___at_Lean_mkApp___spec__1(x_23);
|
||||
x_25 = l_Lean_Core_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_8);
|
||||
return x_25;
|
||||
}
|
||||
|
|
@ -1023,7 +1023,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1;
|
||||
x_2 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1027u);
|
||||
x_3 = lean_unsigned_to_nat(1034u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -1068,7 +1068,7 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_19 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__3;
|
||||
x_20 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_19);
|
||||
x_20 = l_panic___at_Lean_mkApp___spec__1(x_19);
|
||||
x_21 = l_Lean_Core_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_8);
|
||||
return x_21;
|
||||
}
|
||||
|
|
@ -1096,7 +1096,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1;
|
||||
x_2 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1032u);
|
||||
x_3 = lean_unsigned_to_nat(1039u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -1144,7 +1144,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
|||
lean_dec(x_9);
|
||||
lean_dec(x_1);
|
||||
x_20 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__3;
|
||||
x_21 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_20);
|
||||
x_21 = l_panic___at_Lean_mkApp___spec__1(x_20);
|
||||
x_22 = l_Lean_Core_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_21, x_8);
|
||||
return x_22;
|
||||
}
|
||||
|
|
@ -4608,7 +4608,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
|||
lean_dec(x_10);
|
||||
lean_dec(x_1);
|
||||
x_20 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__3;
|
||||
x_21 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_20);
|
||||
x_21 = l_panic___at_Lean_mkApp___spec__1(x_20);
|
||||
x_22 = l_Lean_Meta_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21, x_9);
|
||||
return x_22;
|
||||
}
|
||||
|
|
@ -4655,7 +4655,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
|||
lean_dec(x_10);
|
||||
lean_dec(x_1);
|
||||
x_21 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__3;
|
||||
x_22 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_21);
|
||||
x_22 = l_panic___at_Lean_mkApp___spec__1(x_21);
|
||||
x_23 = l_Lean_Meta_transform_visit_visitPost___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22, x_9);
|
||||
return x_23;
|
||||
}
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/WHNF.c
generated
4
stage0/stdlib/Lean/Meta/WHNF.c
generated
|
|
@ -9656,6 +9656,7 @@ x_31 = lean_unsigned_to_nat(1u);
|
|||
x_32 = lean_nat_sub(x_30, x_31);
|
||||
lean_dec(x_30);
|
||||
x_33 = l_Lean_Expr_getRevArg_x21(x_12, x_32);
|
||||
lean_dec(x_12);
|
||||
lean_ctor_set(x_19, 0, x_33);
|
||||
lean_ctor_set(x_15, 0, x_19);
|
||||
return x_15;
|
||||
|
|
@ -9712,6 +9713,7 @@ x_44 = lean_unsigned_to_nat(1u);
|
|||
x_45 = lean_nat_sub(x_43, x_44);
|
||||
lean_dec(x_43);
|
||||
x_46 = l_Lean_Expr_getRevArg_x21(x_12, x_45);
|
||||
lean_dec(x_12);
|
||||
x_47 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_15, 0, x_47);
|
||||
|
|
@ -9801,6 +9803,7 @@ x_66 = lean_unsigned_to_nat(1u);
|
|||
x_67 = lean_nat_sub(x_65, x_66);
|
||||
lean_dec(x_65);
|
||||
x_68 = l_Lean_Expr_getRevArg_x21(x_12, x_67);
|
||||
lean_dec(x_12);
|
||||
if (lean_is_scalar(x_56)) {
|
||||
x_69 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
|
|
@ -9940,6 +9943,7 @@ x_98 = lean_unsigned_to_nat(1u);
|
|||
x_99 = lean_nat_sub(x_97, x_98);
|
||||
lean_dec(x_97);
|
||||
x_100 = l_Lean_Expr_getRevArg_x21(x_76, x_99);
|
||||
lean_dec(x_76);
|
||||
if (lean_is_scalar(x_88)) {
|
||||
x_101 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
|
|
|
|||
30
stage0/stdlib/Lean/MetavarContext.c
generated
30
stage0/stdlib/Lean/MetavarContext.c
generated
|
|
@ -171,6 +171,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_L
|
|||
LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__21___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn_x27___spec__5(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_MetavarContext_assignExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_mkApp___spec__1(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn_x27___spec__34(lean_object*, lean_object*, size_t, size_t);
|
||||
static lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__2___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -589,7 +590,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarConte
|
|||
LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_MkBinding_instToStringException___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__32___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_MetavarContext_assignDelayed___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_StateRefT_x27_get___at_Lean_MetavarContext_instMonadMCtxStateRefT_x27MetavarContextST___spec__1___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__60___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -15808,7 +15808,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1010u);
|
||||
x_3 = lean_unsigned_to_nat(1017u);
|
||||
x_4 = lean_unsigned_to_nat(16u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15862,7 +15862,7 @@ x_15 = lean_ctor_get(x_14, 1);
|
|||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__4;
|
||||
x_17 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_16);
|
||||
x_17 = l_panic___at_Lean_mkApp___spec__1(x_16);
|
||||
x_18 = lean_apply_2(x_15, lean_box(0), x_17);
|
||||
return x_18;
|
||||
}
|
||||
|
|
@ -15890,7 +15890,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1001u);
|
||||
x_3 = lean_unsigned_to_nat(1008u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15947,7 +15947,7 @@ x_16 = lean_ctor_get(x_15, 1);
|
|||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__3;
|
||||
x_18 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_17);
|
||||
x_18 = l_panic___at_Lean_mkApp___spec__1(x_17);
|
||||
x_19 = lean_apply_2(x_16, lean_box(0), x_18);
|
||||
return x_19;
|
||||
}
|
||||
|
|
@ -15975,7 +15975,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1060u);
|
||||
x_3 = lean_unsigned_to_nat(1067u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16039,7 +16039,7 @@ x_21 = lean_ctor_get(x_20, 1);
|
|||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__3;
|
||||
x_23 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_22);
|
||||
x_23 = l_panic___at_Lean_mkApp___spec__1(x_22);
|
||||
x_24 = lean_apply_2(x_21, lean_box(0), x_23);
|
||||
return x_24;
|
||||
}
|
||||
|
|
@ -16081,7 +16081,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1046u);
|
||||
x_3 = lean_unsigned_to_nat(1053u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16145,7 +16145,7 @@ x_21 = lean_ctor_get(x_20, 1);
|
|||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__3;
|
||||
x_23 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_22);
|
||||
x_23 = l_panic___at_Lean_mkApp___spec__1(x_22);
|
||||
x_24 = lean_apply_2(x_21, lean_box(0), x_23);
|
||||
return x_24;
|
||||
}
|
||||
|
|
@ -16187,7 +16187,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1069u);
|
||||
x_3 = lean_unsigned_to_nat(1076u);
|
||||
x_4 = lean_unsigned_to_nat(22u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16252,7 +16252,7 @@ x_20 = lean_ctor_get(x_19, 1);
|
|||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__3;
|
||||
x_22 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_21);
|
||||
x_22 = l_panic___at_Lean_mkApp___spec__1(x_21);
|
||||
x_23 = lean_apply_2(x_20, lean_box(0), x_22);
|
||||
return x_23;
|
||||
}
|
||||
|
|
@ -16320,7 +16320,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1027u);
|
||||
x_3 = lean_unsigned_to_nat(1034u);
|
||||
x_4 = lean_unsigned_to_nat(19u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16377,7 +16377,7 @@ x_16 = lean_ctor_get(x_15, 1);
|
|||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__3;
|
||||
x_18 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_17);
|
||||
x_18 = l_panic___at_Lean_mkApp___spec__1(x_17);
|
||||
x_19 = lean_apply_2(x_16, lean_box(0), x_18);
|
||||
return x_19;
|
||||
}
|
||||
|
|
@ -16405,7 +16405,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1;
|
||||
x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(1032u);
|
||||
x_3 = lean_unsigned_to_nat(1039u);
|
||||
x_4 = lean_unsigned_to_nat(20u);
|
||||
x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -16465,7 +16465,7 @@ x_17 = lean_ctor_get(x_16, 1);
|
|||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_18 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__3;
|
||||
x_19 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_18);
|
||||
x_19 = l_panic___at_Lean_mkApp___spec__1(x_18);
|
||||
x_20 = lean_apply_2(x_17, lean_box(0), x_19);
|
||||
return x_20;
|
||||
}
|
||||
|
|
|
|||
5
stage0/stdlib/Lean/ParserCompiler.c
generated
5
stage0/stdlib/Lean/ParserCompiler.c
generated
|
|
@ -1288,6 +1288,7 @@ x_30 = lean_unsigned_to_nat(1u);
|
|||
x_31 = lean_nat_sub(x_29, x_30);
|
||||
lean_dec(x_29);
|
||||
x_32 = l_Lean_Expr_getRevArg_x21(x_8, x_31);
|
||||
lean_dec(x_8);
|
||||
x_33 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__1(x_32, x_2, x_3, x_4, x_5, x_9);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
{
|
||||
|
|
@ -1359,6 +1360,7 @@ x_50 = lean_unsigned_to_nat(1u);
|
|||
x_51 = lean_nat_sub(x_49, x_50);
|
||||
lean_dec(x_49);
|
||||
x_52 = l_Lean_Expr_getRevArg_x21(x_8, x_51);
|
||||
lean_dec(x_8);
|
||||
x_53 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__1(x_52, x_2, x_3, x_4, x_5, x_9);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
{
|
||||
|
|
@ -1430,6 +1432,7 @@ x_70 = lean_unsigned_to_nat(1u);
|
|||
x_71 = lean_nat_sub(x_69, x_70);
|
||||
lean_dec(x_69);
|
||||
x_72 = l_Lean_Expr_getRevArg_x21(x_8, x_71);
|
||||
lean_dec(x_8);
|
||||
x_73 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__1(x_72, x_2, x_3, x_4, x_5, x_9);
|
||||
if (lean_obj_tag(x_73) == 0)
|
||||
{
|
||||
|
|
@ -1501,6 +1504,7 @@ lean_dec(x_88);
|
|||
x_91 = lean_nat_sub(x_90, x_89);
|
||||
lean_dec(x_90);
|
||||
x_92 = l_Lean_Expr_getRevArg_x21(x_8, x_91);
|
||||
lean_dec(x_8);
|
||||
x_1 = x_92;
|
||||
x_6 = x_9;
|
||||
goto _start;
|
||||
|
|
@ -1518,6 +1522,7 @@ lean_dec(x_95);
|
|||
x_98 = lean_nat_sub(x_97, x_96);
|
||||
lean_dec(x_97);
|
||||
x_99 = l_Lean_Expr_getRevArg_x21(x_8, x_98);
|
||||
lean_dec(x_8);
|
||||
x_100 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__1(x_99, x_2, x_3, x_4, x_5, x_9);
|
||||
if (lean_obj_tag(x_100) == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25283,7 +25283,6 @@ x_15 = lean_nat_sub(x_10, x_14);
|
|||
x_16 = lean_unsigned_to_nat(1u);
|
||||
x_17 = lean_nat_sub(x_15, x_16);
|
||||
lean_dec(x_15);
|
||||
lean_inc(x_1);
|
||||
x_18 = l_Lean_Expr_getRevArg_x21(x_1, x_17);
|
||||
if (lean_obj_tag(x_18) == 9)
|
||||
{
|
||||
|
|
@ -25301,7 +25300,6 @@ x_21 = lean_unsigned_to_nat(4u);
|
|||
x_22 = lean_nat_sub(x_10, x_21);
|
||||
x_23 = lean_nat_sub(x_22, x_16);
|
||||
lean_dec(x_22);
|
||||
lean_inc(x_1);
|
||||
x_24 = l_Lean_Expr_getRevArg_x21(x_1, x_23);
|
||||
if (lean_obj_tag(x_24) == 9)
|
||||
{
|
||||
|
|
@ -25321,6 +25319,7 @@ lean_dec(x_10);
|
|||
x_29 = lean_nat_sub(x_28, x_16);
|
||||
lean_dec(x_28);
|
||||
x_30 = l_Lean_Expr_getRevArg_x21(x_1, x_29);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_30) == 4)
|
||||
{
|
||||
lean_object* x_31;
|
||||
|
|
|
|||
12
stage0/stdlib/Lean/Server/References.c
generated
12
stage0/stdlib/Lean/Server/References.c
generated
|
|
@ -35,7 +35,7 @@ uint8_t lean_usize_dec_eq(size_t, size_t);
|
|||
LEAN_EXPORT lean_object* l_Std_HashMapImp_erase___at_Lean_Server_References_removeWorkerRefs___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_erase___at_Lean_Server_References_removeWorkerRefs___spec__2(lean_object*, lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(lean_object*);
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
uint64_t l___private_Lean_Data_Lsp_Internal_0__Lean_Lsp_hashRefIdent____x40_Lean_Data_Lsp_Internal___hyg_106_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Server_combineFvars___spec__8(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1827,7 +1827,7 @@ x_3 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_6 = lean_uint64_to_usize(x_5);
|
||||
x_7 = lean_usize_modn(x_6, x_4);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -2346,7 +2346,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8;
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_4);
|
||||
x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_4);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -2368,7 +2368,7 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_2);
|
||||
x_16 = lean_array_get_size(x_1);
|
||||
x_17 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_13);
|
||||
x_17 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_13);
|
||||
x_18 = lean_uint64_to_usize(x_17);
|
||||
x_19 = lean_usize_modn(x_18, x_16);
|
||||
lean_dec(x_16);
|
||||
|
|
@ -2518,7 +2518,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9;
|
|||
x_5 = lean_ctor_get(x_1, 0);
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_8 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_9 = lean_uint64_to_usize(x_8);
|
||||
x_10 = lean_usize_modn(x_9, x_7);
|
||||
x_11 = lean_array_uget(x_6, x_10);
|
||||
|
|
@ -2571,7 +2571,7 @@ lean_inc(x_23);
|
|||
lean_inc(x_22);
|
||||
lean_dec(x_1);
|
||||
x_24 = lean_array_get_size(x_23);
|
||||
x_25 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1732_(x_2);
|
||||
x_25 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1754_(x_2);
|
||||
x_26 = lean_uint64_to_usize(x_25);
|
||||
x_27 = lean_usize_modn(x_26, x_24);
|
||||
x_28 = lean_array_uget(x_23, x_27);
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Util.c
generated
6
stage0/stdlib/Lean/Util.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Util
|
||||
// Imports: Init Lean.Util.CollectFVars Lean.Util.CollectLevelParams Lean.Util.CollectMVars Lean.Util.FindMVar Lean.Util.FindLevelMVar Lean.Util.MonadCache Lean.Util.PPExt Lean.Util.Path Lean.Util.Profile Lean.Util.RecDepth Lean.Util.Sorry Lean.Util.Trace Lean.Util.FindExpr Lean.Util.ReplaceExpr Lean.Util.ForEachExpr Lean.Util.ReplaceLevel Lean.Util.FoldConsts Lean.Util.SCC Lean.Util.OccursCheck Lean.Util.Paths
|
||||
// Imports: Init Lean.Util.CollectFVars Lean.Util.CollectLevelParams Lean.Util.CollectMVars Lean.Util.FindMVar Lean.Util.FindLevelMVar Lean.Util.MonadCache Lean.Util.PPExt Lean.Util.Path Lean.Util.Profile Lean.Util.RecDepth Lean.Util.Sorry Lean.Util.Trace Lean.Util.FindExpr Lean.Util.ReplaceExpr Lean.Util.ForEachExpr Lean.Util.ReplaceLevel Lean.Util.FoldConsts Lean.Util.SCC Lean.Util.OccursCheck Lean.Util.Paths Lean.Util.HasConstCache
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -34,6 +34,7 @@ lean_object* initialize_Lean_Util_FoldConsts(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Lean_Util_SCC(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Util_OccursCheck(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Util_Paths(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Util_HasConstCache(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Util(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -102,6 +103,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Util_Paths(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Util_HasConstCache(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
835
stage0/stdlib/Lean/Util/HasConstCache.c
generated
Normal file
835
stage0/stdlib/Lean/Util/HasConstCache.c
generated
Normal file
|
|
@ -0,0 +1,835 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Util.HasConstCache
|
||||
// Imports: Init Lean.Expr
|
||||
#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_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___boxed(lean_object*);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_HasConstCache_containsUnsafe_cache___spec__4(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_ptrEq(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_HasConstCache_containsUnsafe_cache___spec__2(lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1___boxed(lean_object*, lean_object*);
|
||||
uint64_t l_Lean_Expr_hash(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_cache___default;
|
||||
size_t lean_usize_modn(size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(lean_object*, uint8_t, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_HasConstCache_cache___default___closed__1;
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___rarg(lean_object*, uint8_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache(lean_object*);
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_HasConstCache_containsUnsafe_cache___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lean_HasConstCache_cache___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Std_mkHashMapImp___rarg(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_HasConstCache_cache___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_HasConstCache_cache___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = 0;
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; uint8_t x_6;
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = l_Lean_Expr_ptrEq(x_4, x_1);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
x_2 = x_5;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = 1;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_HasConstCache_containsUnsafe_cache___spec__4(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = !lean_is_exclusive(x_2);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = l_Lean_Expr_hash(x_4);
|
||||
x_8 = lean_uint64_to_usize(x_7);
|
||||
x_9 = lean_usize_modn(x_8, x_6);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_array_uget(x_1, x_9);
|
||||
lean_ctor_set(x_2, 2, x_10);
|
||||
x_11 = lean_array_uset(x_1, x_9, x_2);
|
||||
x_1 = x_11;
|
||||
x_2 = x_5;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_13 = lean_ctor_get(x_2, 0);
|
||||
x_14 = lean_ctor_get(x_2, 1);
|
||||
x_15 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_2);
|
||||
x_16 = lean_array_get_size(x_1);
|
||||
x_17 = l_Lean_Expr_hash(x_13);
|
||||
x_18 = lean_uint64_to_usize(x_17);
|
||||
x_19 = lean_usize_modn(x_18, x_16);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_array_uget(x_1, x_19);
|
||||
x_21 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_21, 0, x_13);
|
||||
lean_ctor_set(x_21, 1, x_14);
|
||||
lean_ctor_set(x_21, 2, x_20);
|
||||
x_22 = lean_array_uset(x_1, x_19, x_21);
|
||||
x_1 = x_22;
|
||||
x_2 = x_15;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_HasConstCache_containsUnsafe_cache___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = lean_array_get_size(x_2);
|
||||
x_5 = lean_nat_dec_lt(x_1, x_4);
|
||||
lean_dec(x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_6 = lean_array_fget(x_2, x_1);
|
||||
x_7 = lean_box(0);
|
||||
x_8 = lean_array_fset(x_2, x_1, x_7);
|
||||
x_9 = l_Std_AssocList_foldlM___at_Lean_HasConstCache_containsUnsafe_cache___spec__4(x_3, x_6);
|
||||
x_10 = lean_unsigned_to_nat(1u);
|
||||
x_11 = lean_nat_add(x_1, x_10);
|
||||
lean_dec(x_1);
|
||||
x_1 = x_11;
|
||||
x_2 = x_8;
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_HasConstCache_containsUnsafe_cache___spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_3 = lean_array_get_size(x_2);
|
||||
x_4 = lean_unsigned_to_nat(2u);
|
||||
x_5 = lean_nat_mul(x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_box(0);
|
||||
x_7 = lean_mk_array(x_5, x_6);
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = l_Std_HashMapImp_moveEntries___at_Lean_HasConstCache_containsUnsafe_cache___spec__3(x_8, x_2, x_7);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_1);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = !lean_is_exclusive(x_3);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_6 = lean_ctor_get(x_3, 0);
|
||||
x_7 = lean_ctor_get(x_3, 1);
|
||||
x_8 = lean_ctor_get(x_3, 2);
|
||||
x_9 = l_Lean_Expr_ptrEq(x_6, x_1);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(x_1, x_2, x_8);
|
||||
lean_ctor_set(x_3, 2, x_10);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_11 = lean_box(x_2);
|
||||
lean_ctor_set(x_3, 1, x_11);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_12 = lean_ctor_get(x_3, 0);
|
||||
x_13 = lean_ctor_get(x_3, 1);
|
||||
x_14 = lean_ctor_get(x_3, 2);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_3);
|
||||
x_15 = l_Lean_Expr_ptrEq(x_12, x_1);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(x_1, x_2, x_14);
|
||||
x_17 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_17, 0, x_12);
|
||||
lean_ctor_set(x_17, 1, x_13);
|
||||
lean_ctor_set(x_17, 2, x_16);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
x_18 = lean_box(x_2);
|
||||
x_19 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_19, 0, x_1);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
lean_ctor_set(x_19, 2, x_14);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = !lean_is_exclusive(x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = l_Lean_Expr_hash(x_1);
|
||||
x_9 = lean_uint64_to_usize(x_8);
|
||||
x_10 = lean_usize_modn(x_9, x_7);
|
||||
x_11 = lean_array_uget(x_6, x_10);
|
||||
x_12 = l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1(x_1, x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19;
|
||||
x_13 = lean_unsigned_to_nat(1u);
|
||||
x_14 = lean_nat_add(x_5, x_13);
|
||||
lean_dec(x_5);
|
||||
x_15 = lean_box(x_2);
|
||||
x_16 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_16, 0, x_1);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
lean_ctor_set(x_16, 2, x_11);
|
||||
x_17 = lean_array_uset(x_6, x_10, x_16);
|
||||
x_18 = l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(x_14);
|
||||
x_19 = lean_nat_dec_le(x_18, x_7);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_18);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
lean_free_object(x_3);
|
||||
x_20 = l_Std_HashMapImp_expand___at_Lean_HasConstCache_containsUnsafe_cache___spec__2(x_14, x_17);
|
||||
x_21 = lean_box(x_2);
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
lean_ctor_set(x_3, 1, x_17);
|
||||
lean_ctor_set(x_3, 0, x_14);
|
||||
x_23 = lean_box(x_2);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_3);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
lean_dec(x_7);
|
||||
x_25 = l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(x_1, x_2, x_11);
|
||||
x_26 = lean_array_uset(x_6, x_10, x_25);
|
||||
lean_ctor_set(x_3, 1, x_26);
|
||||
x_27 = lean_box(x_2);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_3);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; uint64_t x_32; size_t x_33; size_t x_34; lean_object* x_35; uint8_t x_36;
|
||||
x_29 = lean_ctor_get(x_3, 0);
|
||||
x_30 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_3);
|
||||
x_31 = lean_array_get_size(x_30);
|
||||
x_32 = l_Lean_Expr_hash(x_1);
|
||||
x_33 = lean_uint64_to_usize(x_32);
|
||||
x_34 = lean_usize_modn(x_33, x_31);
|
||||
x_35 = lean_array_uget(x_30, x_34);
|
||||
x_36 = l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1(x_1, x_35);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43;
|
||||
x_37 = lean_unsigned_to_nat(1u);
|
||||
x_38 = lean_nat_add(x_29, x_37);
|
||||
lean_dec(x_29);
|
||||
x_39 = lean_box(x_2);
|
||||
x_40 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_40, 0, x_1);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
lean_ctor_set(x_40, 2, x_35);
|
||||
x_41 = lean_array_uset(x_30, x_34, x_40);
|
||||
x_42 = l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(x_38);
|
||||
x_43 = lean_nat_dec_le(x_42, x_31);
|
||||
lean_dec(x_31);
|
||||
lean_dec(x_42);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_44 = l_Std_HashMapImp_expand___at_Lean_HasConstCache_containsUnsafe_cache___spec__2(x_38, x_41);
|
||||
x_45 = lean_box(x_2);
|
||||
x_46 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
lean_ctor_set(x_46, 1, x_44);
|
||||
return x_46;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_38);
|
||||
lean_ctor_set(x_47, 1, x_41);
|
||||
x_48 = lean_box(x_2);
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
lean_dec(x_31);
|
||||
x_50 = l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(x_1, x_2, x_35);
|
||||
x_51 = lean_array_uset(x_30, x_34, x_50);
|
||||
x_52 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_29);
|
||||
lean_ctor_set(x_52, 1, x_51);
|
||||
x_53 = lean_box(x_2);
|
||||
x_54 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_54, 0, x_53);
|
||||
lean_ctor_set(x_54, 1, x_52);
|
||||
return x_54;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_HasConstCache_containsUnsafe_cache___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Std_AssocList_contains___at_Lean_HasConstCache_containsUnsafe_cache___spec__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5___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_Std_AssocList_replace___at_Lean_HasConstCache_containsUnsafe_cache___spec__5(x_1, x_4, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_1, x_4, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe_cache___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_HasConstCache_containsUnsafe_cache(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_box(0);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
x_6 = lean_ctor_get(x_2, 2);
|
||||
x_7 = l_Lean_Expr_ptrEq(x_4, x_1);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
x_2 = x_6;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9;
|
||||
lean_inc(x_5);
|
||||
x_9 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_9, 0, x_5);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_3 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_5 = l_Lean_Expr_hash(x_2);
|
||||
x_6 = lean_uint64_to_usize(x_5);
|
||||
x_7 = lean_usize_modn(x_6, x_4);
|
||||
lean_dec(x_4);
|
||||
x_8 = lean_array_uget(x_3, x_7);
|
||||
lean_dec(x_3);
|
||||
x_9 = l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2(x_2, x_8);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_3);
|
||||
x_4 = l_Std_HashMapImp_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__1(x_3, x_2);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
switch (lean_obj_tag(x_2)) {
|
||||
case 4:
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_name_eq(x_5, x_1);
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_box(x_6);
|
||||
x_8 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_8, 0, x_7);
|
||||
lean_ctor_set(x_8, 1, x_3);
|
||||
return x_8;
|
||||
}
|
||||
case 5:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_9 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_10);
|
||||
x_11 = l_Lean_HasConstCache_containsUnsafe(x_1, x_9, x_3);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_unbox(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
lean_dec(x_12);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_11);
|
||||
x_15 = l_Lean_HasConstCache_containsUnsafe(x_1, x_10, x_14);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_15);
|
||||
x_18 = lean_unbox(x_16);
|
||||
lean_dec(x_16);
|
||||
x_19 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_18, x_17);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; uint8_t x_21; lean_object* x_22;
|
||||
lean_dec(x_10);
|
||||
x_20 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_11);
|
||||
x_21 = lean_unbox(x_12);
|
||||
lean_dec(x_12);
|
||||
x_22 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_21, x_20);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27;
|
||||
x_23 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_24);
|
||||
x_25 = l_Lean_HasConstCache_containsUnsafe(x_1, x_23, x_3);
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_unbox(x_26);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33;
|
||||
lean_dec(x_26);
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_25);
|
||||
x_29 = l_Lean_HasConstCache_containsUnsafe(x_1, x_24, x_28);
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_29);
|
||||
x_32 = lean_unbox(x_30);
|
||||
lean_dec(x_30);
|
||||
x_33 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_32, x_31);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; uint8_t x_35; lean_object* x_36;
|
||||
lean_dec(x_24);
|
||||
x_34 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_25);
|
||||
x_35 = lean_unbox(x_26);
|
||||
lean_dec(x_26);
|
||||
x_36 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_35, x_34);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41;
|
||||
x_37 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_37);
|
||||
x_38 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_38);
|
||||
x_39 = l_Lean_HasConstCache_containsUnsafe(x_1, x_37, x_3);
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_unbox(x_40);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47;
|
||||
lean_dec(x_40);
|
||||
x_42 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_39);
|
||||
x_43 = l_Lean_HasConstCache_containsUnsafe(x_1, x_38, x_42);
|
||||
x_44 = lean_ctor_get(x_43, 0);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_43);
|
||||
x_46 = lean_unbox(x_44);
|
||||
lean_dec(x_44);
|
||||
x_47 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_46, x_45);
|
||||
return x_47;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; uint8_t x_49; lean_object* x_50;
|
||||
lean_dec(x_38);
|
||||
x_48 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_39);
|
||||
x_49 = lean_unbox(x_40);
|
||||
lean_dec(x_40);
|
||||
x_50 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_49, x_48);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
case 8:
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56;
|
||||
x_51 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_51);
|
||||
x_52 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_2, 3);
|
||||
lean_inc(x_53);
|
||||
x_54 = l_Lean_HasConstCache_containsUnsafe(x_1, x_51, x_3);
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_unbox(x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60;
|
||||
lean_dec(x_55);
|
||||
x_57 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_54);
|
||||
x_58 = l_Lean_HasConstCache_containsUnsafe(x_1, x_52, x_57);
|
||||
x_59 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_unbox(x_59);
|
||||
if (x_60 == 0)
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66;
|
||||
lean_dec(x_59);
|
||||
x_61 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_58);
|
||||
x_62 = l_Lean_HasConstCache_containsUnsafe(x_1, x_53, x_61);
|
||||
x_63 = lean_ctor_get(x_62, 0);
|
||||
lean_inc(x_63);
|
||||
x_64 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_62);
|
||||
x_65 = lean_unbox(x_63);
|
||||
lean_dec(x_63);
|
||||
x_66 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_65, x_64);
|
||||
return x_66;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67; uint8_t x_68; lean_object* x_69;
|
||||
lean_dec(x_53);
|
||||
x_67 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_67);
|
||||
lean_dec(x_58);
|
||||
x_68 = lean_unbox(x_59);
|
||||
lean_dec(x_59);
|
||||
x_69 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_68, x_67);
|
||||
return x_69;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_70; uint8_t x_71; lean_object* x_72;
|
||||
lean_dec(x_53);
|
||||
lean_dec(x_52);
|
||||
x_70 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_54);
|
||||
x_71 = lean_unbox(x_55);
|
||||
lean_dec(x_55);
|
||||
x_72 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_71, x_70);
|
||||
return x_72;
|
||||
}
|
||||
}
|
||||
case 10:
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78;
|
||||
x_73 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_73);
|
||||
x_74 = l_Lean_HasConstCache_containsUnsafe(x_1, x_73, x_3);
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_74);
|
||||
x_77 = lean_unbox(x_75);
|
||||
lean_dec(x_75);
|
||||
x_78 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_77, x_76);
|
||||
return x_78;
|
||||
}
|
||||
case 11:
|
||||
{
|
||||
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84;
|
||||
x_79 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_79);
|
||||
x_80 = l_Lean_HasConstCache_containsUnsafe(x_1, x_79, x_3);
|
||||
x_81 = lean_ctor_get(x_80, 0);
|
||||
lean_inc(x_81);
|
||||
x_82 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_80);
|
||||
x_83 = lean_unbox(x_81);
|
||||
lean_dec(x_81);
|
||||
x_84 = l_Lean_HasConstCache_containsUnsafe_cache___rarg(x_2, x_83, x_82);
|
||||
return x_84;
|
||||
}
|
||||
default:
|
||||
{
|
||||
uint8_t x_85; lean_object* x_86; lean_object* x_87;
|
||||
lean_dec(x_2);
|
||||
x_85 = 0;
|
||||
x_86 = lean_box(x_85);
|
||||
x_87 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_86);
|
||||
lean_ctor_set(x_87, 1, x_3);
|
||||
return x_87;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89;
|
||||
lean_dec(x_2);
|
||||
x_88 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_4);
|
||||
x_89 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_88);
|
||||
lean_ctor_set(x_89, 1, x_3);
|
||||
return x_89;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Std_AssocList_find_x3f___at_Lean_HasConstCache_containsUnsafe___spec__2(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HasConstCache_containsUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_HasConstCache_containsUnsafe(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Expr(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Util_HasConstCache(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Expr(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_HasConstCache_cache___default___closed__1 = _init_l_Lean_HasConstCache_cache___default___closed__1();
|
||||
lean_mark_persistent(l_Lean_HasConstCache_cache___default___closed__1);
|
||||
l_Lean_HasConstCache_cache___default = _init_l_Lean_HasConstCache_cache___default();
|
||||
lean_mark_persistent(l_Lean_HasConstCache_cache___default);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue