chore: update stage0
This commit is contained in:
parent
d2e5c1c300
commit
c2a8f3ecc4
21 changed files with 4167 additions and 2788 deletions
5
stage0/src/Lean/Elab/BuiltinNotation.lean
generated
5
stage0/src/Lean/Elab/BuiltinNotation.lean
generated
|
|
@ -278,7 +278,10 @@ fun stx =>
|
|||
fun stx =>
|
||||
let arg := stx.getArg 1;
|
||||
let body := stx.getArg 3;
|
||||
`(dbgTrace (toString $arg) fun _ => $body)
|
||||
if arg.getKind == interpolatedStrKind then
|
||||
`(dbgTrace (s! $arg) fun _ => $body)
|
||||
else
|
||||
`(dbgTrace (toString $arg) fun _ => $body)
|
||||
|
||||
@[builtinMacro Lean.Parser.Term.«sorry»] def expandSorry : Macro :=
|
||||
fun _ => `(sorryAx _ false)
|
||||
|
|
|
|||
6
stage0/src/Lean/Elab/PreDefinition/Main.lean
generated
6
stage0/src/Lean/Elab/PreDefinition/Main.lean
generated
|
|
@ -13,10 +13,10 @@ open Term
|
|||
|
||||
private def addAndCompilePartial (preDefs : Array PreDefinition) : TermElabM Unit := do
|
||||
for preDef in preDefs do
|
||||
trace[Elab.definition]! msg!"processing {preDef.declName}"
|
||||
trace[Elab.definition]! "processing {preDef.declName}"
|
||||
forallTelescope preDef.type fun xs type => do
|
||||
let inh ← liftM $ mkInhabitantFor preDef.declName xs type
|
||||
trace[Elab.definition]! msg!"inhabitant for {preDef.declName}"
|
||||
trace[Elab.definition]! "inhabitant for {preDef.declName}"
|
||||
addNonRec { preDef with
|
||||
kind := DefKind.«opaque»,
|
||||
value := inh }
|
||||
|
|
@ -53,7 +53,7 @@ if ← logUnassignedUsingErrorInfos pendingMVarIds then
|
|||
|
||||
def addPreDefinitions (preDefs : Array PreDefinition) : TermElabM Unit := do
|
||||
for preDef in preDefs do
|
||||
trace[Elab.definition.body]! msg!"{preDef.declName} : {preDef.type} :=\n{preDef.value}"
|
||||
trace[Elab.definition.body]! "{preDef.declName} : {preDef.type} :=\n{preDef.value}"
|
||||
for preDef in preDefs do
|
||||
ensureNoUnassignedMVarsAtPreDef preDef
|
||||
for preDefs in partitionPreDefs preDefs do
|
||||
|
|
|
|||
|
|
@ -39,6 +39,6 @@ match ← findAssumption? xs type with
|
|||
| none =>
|
||||
match ← mkFnInhabitant? xs type with
|
||||
| some val => pure val
|
||||
| none => throwError msg!"failed to compile partial definition '{declName}', failed to show that type is inhabited"
|
||||
| none => throwError! "failed to compile partial definition '{declName}', failed to show that type is inhabited"
|
||||
|
||||
end Lean.Elab
|
||||
|
|
|
|||
36
stage0/src/Lean/Elab/PreDefinition/Structural.lean
generated
36
stage0/src/Lean/Elab/PreDefinition/Structural.lean
generated
|
|
@ -85,11 +85,11 @@ let rec loop (i : Nat) : MetaM α := do
|
|||
let indIndices := indArgs.extract indInfo.nparams indArgs.size
|
||||
if !indIndices.all Expr.isFVar then
|
||||
orelseMergeErrors
|
||||
(throwError msg!"argument #{i+1} was not used because its type is an inductive family and indices are not variables{indentExpr xType}")
|
||||
(throwError! "argument #{i+1} was not used because its type is an inductive family and indices are not variables{indentExpr xType}")
|
||||
(loop (i+1))
|
||||
else if !indIndices.allDiff then
|
||||
orelseMergeErrors
|
||||
(throwError msg!"argument #{i+1} was not used because its type is an inductive family and indices are not pairwise distinct{indentExpr xType}")
|
||||
(throwError! "argument #{i+1} was not used because its type is an inductive family and indices are not pairwise distinct{indentExpr xType}")
|
||||
(loop (i+1))
|
||||
else
|
||||
let indexMinPos := getIndexMinPos xs indIndices
|
||||
|
|
@ -99,13 +99,13 @@ let rec loop (i : Nat) : MetaM α := do
|
|||
match ← hasBadIndexDep? ys indIndices with
|
||||
| some (index, y) =>
|
||||
orelseMergeErrors
|
||||
(throwError msg!"argument #{i+1} was not used because its type is an inductive family{indentExpr xType}\nand index{indentExpr index}\ndepends on the non index{indentExpr y}")
|
||||
(throwError! "argument #{i+1} was not used because its type is an inductive family{indentExpr xType}\nand index{indentExpr index}\ndepends on the non index{indentExpr y}")
|
||||
(loop (i+1))
|
||||
| none =>
|
||||
match ← hasBadParamDep? ys indParams with
|
||||
| some (indParam, y) =>
|
||||
orelseMergeErrors
|
||||
(throwError msg!"argument #{i+1} was not used because its type is an inductive datatype{indentExpr xType}\nand parameter{indentExpr indParam}\ndepends on{indentExpr y}")
|
||||
(throwError! "argument #{i+1} was not used because its type is an inductive datatype{indentExpr xType}\nand parameter{indentExpr indParam}\ndepends on{indentExpr y}")
|
||||
(loop (i+1))
|
||||
| none =>
|
||||
let indicesPos := indIndices.map fun index => match ys.indexOf? index with | some i => i.val | none => unreachable!
|
||||
|
|
@ -129,7 +129,7 @@ private def ensureNoRecFn (recFnName : Name) (e : Expr) : MetaM Expr := do
|
|||
if containsRecFn recFnName e then
|
||||
Meta.forEachExpr e fun e => do
|
||||
if e.isAppOf recFnName then
|
||||
throwError msg!"unexpected occurrence of recursive application{indentExpr e}"
|
||||
throwError! "unexpected occurrence of recursive application{indentExpr e}"
|
||||
pure e
|
||||
else
|
||||
pure e
|
||||
|
|
@ -141,7 +141,7 @@ throwError "toBelow failed"
|
|||
private partial def toBelowAux (C : Expr) : Expr → Expr → Expr → MetaM Expr
|
||||
| belowDict, arg, F => do
|
||||
belowDict ← whnf belowDict
|
||||
trace[Elab.definition.structural]! msg!"belowDict: {belowDict}, arg: {arg}"
|
||||
trace[Elab.definition.structural]! "belowDict: {belowDict}, arg: {arg}"
|
||||
match belowDict with
|
||||
| Expr.app (Expr.app (Expr.const `PProd _ _) d1 _) d2 _ =>
|
||||
(do toBelowAux C d1 arg (← mkAppM `PProd.fst #[F]))
|
||||
|
|
@ -167,10 +167,10 @@ private partial def toBelowAux (C : Expr) : Expr → Expr → Expr → MetaM Exp
|
|||
/- See toBelow -/
|
||||
private def withBelowDict {α} (below : Expr) (numIndParams : Nat) (k : Expr → Expr → MetaM α) : MetaM α := do
|
||||
let belowType ← inferType below
|
||||
trace[Elab.definition.structural]! msg!"belowType: {belowType}"
|
||||
trace[Elab.definition.structural]! "belowType: {belowType}"
|
||||
belowType.withApp fun f args => do
|
||||
let motivePos := numIndParams + 1
|
||||
unless motivePos < args.size do throwError msg!"unexpected 'below' type{indentExpr belowType}"
|
||||
unless motivePos < args.size do throwError! "unexpected 'below' type{indentExpr belowType}"
|
||||
let pre := mkAppN f (args.extract 0 numIndParams)
|
||||
let preType ← inferType pre
|
||||
forallBoundedTelescope preType (some 1) fun x _ => do
|
||||
|
|
@ -225,9 +225,9 @@ let rec loop : Expr → Expr → MetaM Expr
|
|||
let numFixed := recArgInfo.fixedParams.size
|
||||
let recArgPos := recArgInfo.fixedParams.size + recArgInfo.pos
|
||||
if recArgPos >= args.size then
|
||||
throwError msg!"insufficient number of parameters at recursive application {indentExpr e}"
|
||||
throwError! "insufficient number of parameters at recursive application {indentExpr e}"
|
||||
let recArg := args[recArgPos]
|
||||
let f ← try toBelow below recArgInfo.indParams.size recArg catch _ => throwError msg!"failed to eliminate recursive application{indentExpr e}"
|
||||
let f ← try toBelow below recArgInfo.indParams.size recArg catch _ => throwError! "failed to eliminate recursive application{indentExpr e}"
|
||||
-- Recall that the fixed parameters are not in the scope of the `brecOn`. So, we skip them.
|
||||
let argsNonFixed := args.extract numFixed args.size
|
||||
-- The function `f` does not explicitly take `recArg` and its indices as arguments. So, we skip them too.
|
||||
|
|
@ -279,9 +279,9 @@ let rec loop : Expr → Expr → MetaM Expr
|
|||
do let matcherApp ← mapError (matcherApp.addArg below) (fun msg => "failed to add `below` argument to 'matcher' application" ++ indentD msg)
|
||||
let altsNew ← (Array.zip matcherApp.alts matcherApp.altNumParams).mapM fun (alt, numParams) =>
|
||||
lambdaTelescope alt fun xs altBody => do
|
||||
trace[Elab.definition.structural]! msg!"altNumParams: {numParams}, xs: {xs}"
|
||||
trace[Elab.definition.structural]! "altNumParams: {numParams}, xs: {xs}"
|
||||
unless xs.size >= numParams do
|
||||
throwError msg!"unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}"
|
||||
throwError! "unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}"
|
||||
let belowForAlt := xs[numParams - 1]
|
||||
mkLambdaFVars xs (← loop belowForAlt altBody)
|
||||
pure { matcherApp with alts := altsNew }.toExpr
|
||||
|
|
@ -295,12 +295,12 @@ let major := recArgInfo.ys[recArgInfo.pos]
|
|||
let otherArgs := recArgInfo.ys.filter fun y => y != major && !recArgInfo.indIndices.contains y
|
||||
let motive ← mkForallFVars otherArgs type
|
||||
let brecOnUniv ← getLevel motive
|
||||
trace[Elab.definition.structural]! msg!"brecOn univ: {brecOnUniv}"
|
||||
trace[Elab.definition.structural]! "brecOn univ: {brecOnUniv}"
|
||||
let useBInductionOn := recArgInfo.reflexive && brecOnUniv == levelZero
|
||||
if recArgInfo.reflexive && brecOnUniv != levelZero then
|
||||
brecOnUniv ← decLevel brecOnUniv
|
||||
let motive ← mkLambdaFVars (recArgInfo.indIndices.push major) motive
|
||||
trace[Elab.definition.structural]! msg!"brecOn motive: {motive}"
|
||||
trace[Elab.definition.structural]! "brecOn motive: {motive}"
|
||||
let brecOn :=
|
||||
if useBInductionOn then
|
||||
Lean.mkConst (mkBInductionOnFor recArgInfo.indName) recArgInfo.indLevels
|
||||
|
|
@ -312,8 +312,8 @@ let brecOn := mkAppN brecOn recArgInfo.indIndices
|
|||
let brecOn := mkApp brecOn major
|
||||
check brecOn
|
||||
let brecOnType ← inferType brecOn
|
||||
trace[Elab.definition.structural]! msg!"brecOn {brecOn}"
|
||||
trace[Elab.definition.structural]! msg!"brecOnType {brecOnType}"
|
||||
trace[Elab.definition.structural]! "brecOn {brecOn}"
|
||||
trace[Elab.definition.structural]! "brecOnType {brecOnType}"
|
||||
forallBoundedTelescope brecOnType (some 1) fun F _ => do
|
||||
let F := F[0]
|
||||
let FType ← inferType F
|
||||
|
|
@ -334,13 +334,13 @@ forallBoundedTelescope brecOnType (some 1) fun F _ => do
|
|||
private def elimRecursion (preDef : PreDefinition) : MetaM PreDefinition :=
|
||||
withoutModifyingEnv do lambdaTelescope preDef.value fun xs value => do
|
||||
addAsAxiom preDef
|
||||
trace[Elab.definition.structural]! msg!"{preDef.declName} {xs} :=\n{value}"
|
||||
trace[Elab.definition.structural]! "{preDef.declName} {xs} :=\n{value}"
|
||||
let numFixed := getFixedPrefix preDef.declName xs value
|
||||
findRecArg numFixed xs fun recArgInfo => do
|
||||
-- when (recArgInfo.indName == `Nat) throwStructuralFailed -- HACK to skip Nat argument
|
||||
let valueNew ← mkBRecOn preDef.declName recArgInfo value
|
||||
let valueNew ← mkLambdaFVars xs valueNew
|
||||
trace[Elab.definition.structural]! msg!"result: {valueNew}"
|
||||
trace[Elab.definition.structural]! "result: {valueNew}"
|
||||
-- Recursive applications may still occur in expressions that were not visited by replaceRecApps (e.g., in types)
|
||||
let valueNew ← ensureNoRecFn preDef.declName valueNew
|
||||
pure { preDef with value := valueNew }
|
||||
|
|
|
|||
12
stage0/src/Lean/Elab/Tactic/Basic.lean
generated
12
stage0/src/Lean/Elab/Tactic/Basic.lean
generated
|
|
@ -20,7 +20,7 @@ def goalsToMessageData (goals : List MVarId) : MessageData :=
|
|||
MessageData.joinSep (goals.map $ MessageData.ofGoal) (Format.line ++ Format.line)
|
||||
|
||||
def Term.reportUnsolvedGoals (goals : List MVarId) : TermElabM Unit := do
|
||||
throwError msg!"unsolved goals\n{goalsToMessageData goals}"
|
||||
throwError! "unsolved goals\n{goalsToMessageData goals}"
|
||||
|
||||
namespace Tactic
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ mkElabAttribute Tactic `Lean.Elab.Tactic.tacticElabAttribute `builtinTactic `tac
|
|||
|
||||
private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tactic) : TacticM Unit := do
|
||||
let rec loop : List Tactic → TacticM Unit
|
||||
| [] => throwErrorAt stx msg!"unexpected syntax {indentD stx}"
|
||||
| [] => throwErrorAt! stx "unexpected syntax {indentD stx}"
|
||||
| evalFn::evalFns => do
|
||||
try
|
||||
evalFn stx
|
||||
|
|
@ -117,7 +117,7 @@ mutual
|
|||
|
||||
partial def expandTacticMacroFns (stx : Syntax) (macros : List Macro) : TacticM Unit :=
|
||||
let rec loop : List Macro → TacticM Unit
|
||||
| [] => throwErrorAt stx msg!"tactic '{stx.getKind}' has not been implemented"
|
||||
| [] => throwErrorAt! stx "tactic '{stx.getKind}' has not been implemented"
|
||||
| m::ms => do
|
||||
let scp ← getCurrMacroScope
|
||||
try
|
||||
|
|
@ -177,7 +177,7 @@ let e ← instantiateMVars e
|
|||
let pendingMVars ← getMVars e
|
||||
Term.logUnassignedUsingErrorInfos pendingMVars
|
||||
if e.hasExprMVar then
|
||||
throwError msg!"tactic failed, resulting expression contains metavariables{indentExpr e}"
|
||||
throwError! "tactic failed, resulting expression contains metavariables{indentExpr e}"
|
||||
|
||||
def withMainMVarContext {α} (x : TacticM α) : TacticM α := do
|
||||
let (mvarId, _) ← getMainGoal
|
||||
|
|
@ -286,7 +286,7 @@ fun stx => pure ()
|
|||
fun stx => do
|
||||
let tactic := stx.getArg 1
|
||||
if (← do try evalTactic tactic; pure true catch _ => pure false) then
|
||||
throwError ("tactic succeeded")
|
||||
throwError "tactic succeeded"
|
||||
|
||||
@[builtinTactic traceState] def evalTraceState : Tactic :=
|
||||
fun stx => do
|
||||
|
|
@ -345,7 +345,7 @@ withRef id do
|
|||
let fvar? ← liftTermElabM $ Term.isLocalIdent? id;
|
||||
match fvar? with
|
||||
| some fvar => pure fvar.fvarId!
|
||||
| none => throwError msg!"unknown variable '{id.getId}'"
|
||||
| none => throwError! "unknown variable '{id.getId}'"
|
||||
|
||||
def getFVarIds (ids : Array Syntax) : TacticM (Array FVarId) := do
|
||||
withMainMVarContext $ ids.mapM getFVarId
|
||||
|
|
|
|||
18
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
18
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
|
|
@ -96,9 +96,9 @@ private def getAltRHS (alt : Syntax) : Syntax := alt.getArg 3
|
|||
private def checkAltCtorNames (alts : Array Syntax) (ctorNames : List Name) : TacticM Unit := do
|
||||
for alt in alts do
|
||||
let n := getAltName alt
|
||||
withRef alt $ trace[Elab.checkAlt]! msg!"{n} , {alt}"
|
||||
withRef alt $ trace[Elab.checkAlt]! "{n} , {alt}"
|
||||
unless n == `_ || ctorNames.any (fun ctorName => n.isSuffixOf ctorName) do
|
||||
throwErrorAt (alt.getArg 0) msg!"invalid constructor name '{n}'"
|
||||
throwErrorAt! (alt.getArg 0) "invalid constructor name '{n}'"
|
||||
|
||||
structure RecInfo :=
|
||||
(recName : Name)
|
||||
|
|
@ -143,7 +143,7 @@ match ← getRecFromUsingLoop baseRecName (← inferType major) with
|
|||
try
|
||||
liftMetaMAtMain fun _ => Meta.mkRecursorInfo recName
|
||||
catch _ =>
|
||||
throwError msg!"invalid recursor name '{baseRecName}'"
|
||||
throwError! "invalid recursor name '{baseRecName}'"
|
||||
|
||||
/- Create `RecInfo` assuming builtin recursor -/
|
||||
private def getRecInfoDefault (major : Expr) (withAlts : Syntax) (allowMissingAlts : Bool) : TacticM (RecInfo × Array Name) := do
|
||||
|
|
@ -183,7 +183,7 @@ else
|
|||
altVars := altVars.push []
|
||||
altRHSs := altRHSs.push Syntax.missing
|
||||
else
|
||||
throwError msg!"alternative for constructor '{ctorName}' is missing"
|
||||
throwError! "alternative for constructor '{ctorName}' is missing"
|
||||
unless remainingAlts.isEmpty do
|
||||
throwErrorAt remainingAlts[0] "unused alternative"
|
||||
pure ({ recName := recName, altVars := altVars, altRHSs := altRHSs }, ctorNames.toArray)
|
||||
|
|
@ -238,7 +238,7 @@ else
|
|||
altVars := altVars.push (getAltVarNames alt).toList
|
||||
altRHSs := altRHSs.push (getAltRHS alt)
|
||||
| none =>
|
||||
throwError msg!"alternative for minor premise '{paramName}' is missing"
|
||||
throwError! "alternative for minor premise '{paramName}' is missing"
|
||||
unless remainingAlts.isEmpty do
|
||||
throwErrorAt remainingAlts[0] "unused alternative"
|
||||
pure { recName := recName, altVars := altVars, altRHSs := altRHSs }
|
||||
|
|
@ -252,7 +252,7 @@ if altRHSs.isEmpty then
|
|||
setGoals $ result.toList.map fun s => s.mvarId
|
||||
else
|
||||
unless altRHSs.size == result.size do
|
||||
throwError msg!"mistmatch on the number of subgoals produced ({result.size}) and alternatives provided ({altRHSs.size})"
|
||||
throwError! "mistmatch on the number of subgoals produced ({result.size}) and alternatives provided ({altRHSs.size})"
|
||||
let gs := []
|
||||
for i in [:result.size] do
|
||||
let subgoal := result[i]
|
||||
|
|
@ -299,12 +299,12 @@ let rec loop (i j : Nat) : TacticM Unit :=
|
|||
if ctorName == subgoal.ctorName then
|
||||
loop (i+1) (j+1)
|
||||
else
|
||||
throwError msg!"alternative for '{subgoal.ctorName}' has not been provided"
|
||||
throwError! "alternative for '{subgoal.ctorName}' has not been provided"
|
||||
else
|
||||
throwError msg!"alternative for '{ctorName}' is not needed"
|
||||
throwError! "alternative for '{ctorName}' is not needed"
|
||||
else if h : i < casesResult.size then
|
||||
let subgoal := casesResult.get ⟨i, h⟩
|
||||
throwError msg!"alternative for '{subgoal.ctorName}' has not been provided"
|
||||
throwError! "alternative for '{subgoal.ctorName}' has not been provided"
|
||||
else
|
||||
pure ()
|
||||
unless altRHSs.isEmpty do
|
||||
|
|
|
|||
23
stage0/src/Lean/Exception.lean
generated
23
stage0/src/Lean/Exception.lean
generated
|
|
@ -103,3 +103,26 @@ when (curr == max) $ throwError maxRecDepthErrorMessage;
|
|||
MonadRecDepth.withRecDepth (curr+1) x
|
||||
|
||||
end Lean
|
||||
|
||||
new_frontend
|
||||
|
||||
namespace Lean
|
||||
|
||||
syntax "throwError! " ((interpolatedStr term) <|> term) : term
|
||||
syntax "throwErrorAt! " term:max ((interpolatedStr term) <|> term) : term
|
||||
|
||||
macro_rules
|
||||
| `(throwError! $msg) =>
|
||||
if msg.getKind == interpolatedStrKind then
|
||||
`(throwError (msg! $msg))
|
||||
else
|
||||
`(throwError $msg)
|
||||
|
||||
macro_rules
|
||||
| `(throwErrorAt! $ref $msg) =>
|
||||
if msg.getKind == interpolatedStrKind then
|
||||
`(throwErrorAt $ref (msg! $msg))
|
||||
else
|
||||
`(throwErrorAt $ref $msg)
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
2
stage0/src/Lean/Parser/Do.lean
generated
2
stage0/src/Lean/Parser/Do.lean
generated
|
|
@ -84,7 +84,7 @@ def doFinally := parser! "finally " >> doSeq
|
|||
@[builtinDoElemParser] def doBreak := parser! "break"
|
||||
@[builtinDoElemParser] def doContinue := parser! "continue"
|
||||
@[builtinDoElemParser] def doReturn := parser!:leadPrec "return " >> optional termParser
|
||||
@[builtinDoElemParser] def doDbgTrace := parser!:leadPrec "dbgTrace! " >> termParser
|
||||
@[builtinDoElemParser] def doDbgTrace := parser!:leadPrec "dbgTrace! " >> ((interpolatedStr termParser) <|> termParser)
|
||||
@[builtinDoElemParser] def doAssert := parser!:leadPrec "assert! " >> termParser
|
||||
|
||||
/-
|
||||
|
|
|
|||
8
stage0/src/Lean/Parser/StrInterpolation.lean
generated
8
stage0/src/Lean/Parser/StrInterpolation.lean
generated
|
|
@ -39,8 +39,12 @@ let startPos := s.pos
|
|||
if input.atEnd startPos then
|
||||
s.mkEOIError
|
||||
else
|
||||
let s := s.next input startPos
|
||||
parse startPos c s
|
||||
let curr := input.get s.pos;
|
||||
if curr != '\"' then
|
||||
s.mkError "interpolated string"
|
||||
else
|
||||
let s := s.next input startPos
|
||||
parse startPos c s
|
||||
|
||||
@[inline] def interpolatedStrNoAntiquot (p : Parser) : Parser :=
|
||||
{ fn := interpolatedStrFn p.fn,
|
||||
|
|
|
|||
2
stage0/src/Lean/Parser/Term.lean
generated
2
stage0/src/Lean/Parser/Term.lean
generated
|
|
@ -258,7 +258,7 @@ stx.isAntiquot || stx.isIdent
|
|||
|
||||
@[builtinTermParser] def panic := parser!:leadPrec "panic! " >> termParser
|
||||
@[builtinTermParser] def unreachable := parser!:leadPrec "unreachable!"
|
||||
@[builtinTermParser] def dbgTrace := parser!:leadPrec withPosition ("dbgTrace! " >> termParser) >> optSemicolon termParser
|
||||
@[builtinTermParser] def dbgTrace := parser!:leadPrec withPosition ("dbgTrace! " >> ((interpolatedStr termParser) <|> termParser)) >> optSemicolon termParser
|
||||
@[builtinTermParser] def assert := parser!:leadPrec withPosition ("assert! " >> termParser) >> optSemicolon termParser
|
||||
|
||||
end Term
|
||||
|
|
|
|||
8
stage0/src/Lean/Util/Trace.lean
generated
8
stage0/src/Lean/Util/Trace.lean
generated
|
|
@ -135,9 +135,13 @@ namespace Lean
|
|||
|
||||
macro:max "trace!" id:term:max msg:term : term => `(trace $id fun _ => ($msg : MessageData))
|
||||
|
||||
syntax "trace[" ident "]!" term : term
|
||||
syntax "trace[" ident "]!" ((interpolatedStr term) <|> term) : term
|
||||
|
||||
macro_rules
|
||||
| `(trace[$id]! $s) => `(Lean.trace $(quote id.getId) fun _ => ($s : MessageData))
|
||||
| `(trace[$id]! $s) =>
|
||||
if s.getKind == interpolatedStrKind then
|
||||
`(Lean.trace $(quote id.getId) fun _ => msg! $s)
|
||||
else
|
||||
`(Lean.trace $(quote id.getId) fun _ => ($s : MessageData))
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
298
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
298
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
|
|
@ -18,6 +18,7 @@ extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda
|
|||
lean_object* l_Lean_Elab_Term_expandOrM___closed__2;
|
||||
lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabNativeRefl___closed__5;
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__9;
|
||||
extern lean_object* l_Lean_Meta_mkLe___rarg___closed__4;
|
||||
lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__25;
|
||||
|
|
@ -46,6 +47,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandAndM(lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_expandNot___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__8;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandMap___closed__1;
|
||||
extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__10;
|
||||
lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandPrefixOp___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandModN___closed__3;
|
||||
|
|
@ -87,6 +89,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandModN(lean_object*);
|
|||
extern lean_object* l___private_Lean_Meta_DiscrTree_6__shouldAddAsStar___closed__5;
|
||||
extern lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__30;
|
||||
lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandBNe(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__1;
|
||||
extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8;
|
||||
|
|
@ -124,9 +127,11 @@ lean_object* l_Lean_Elab_Term_expandDollar(lean_object*, lean_object*, lean_obje
|
|||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandBNot___closed__2;
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21;
|
||||
extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__12;
|
||||
lean_object* l_Lean_Elab_Term_expandGT___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___closed__3;
|
||||
lean_object* l_Lean_Elab_Term_elabNativeRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__13;
|
||||
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_expandSubtype(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -148,6 +153,7 @@ lean_object* lean_array_get_size(lean_object*);
|
|||
extern lean_object* l_Lean_Prod_hasQuote___rarg___closed__2;
|
||||
lean_object* l_Lean_Meta_mkExpectedTypeHint___at_Lean_Elab_Term_elabNativeRefl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandBind___closed__1;
|
||||
extern lean_object* l_Lean_interpolatedStrKind;
|
||||
lean_object* l_Lean_Elab_Term_expandHEq(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandEmptyC___closed__9;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert___closed__3;
|
||||
|
|
@ -392,6 +398,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandMod___closed__2;
|
|||
lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandBNot___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Elab_Term_elabNativeRefl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__14;
|
||||
lean_object* l_Lean_Elab_Term_expandDollar___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandProd___closed__1;
|
||||
|
|
@ -528,6 +535,7 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
|||
extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__1___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_expandIf___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_expandMapRev(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__3;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandseq___closed__2;
|
||||
|
|
@ -561,6 +569,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandSorry(lean_object*);
|
|||
lean_object* l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__5;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeRefl___closed__3;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_ExpandFComp___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__10;
|
||||
lean_object* l_Lean_Elab_Term_elabNativeRefl___closed__10;
|
||||
extern lean_object* l_Lean_Elab_Tactic_evalOrelse___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_elabPanic___closed__12;
|
||||
|
|
@ -572,6 +581,7 @@ lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_expandAssert___closed__18;
|
||||
lean_object* l_Lean_Elab_Term_expandShow___closed__8;
|
||||
lean_object* l_Lean_Syntax_getPos(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__12;
|
||||
lean_object* l_Lean_Elab_Term_expandSorry___rarg___closed__8;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandSorry___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_expandNe___closed__2;
|
||||
|
|
@ -581,6 +591,7 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__1;
|
|||
lean_object* l___regBuiltin_Lean_Elab_Term_expandEq(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandHave___closed__5;
|
||||
lean_object* l_Lean_Elab_Term_elabParserMacro___closed__1;
|
||||
extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__9;
|
||||
extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__4;
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_expandNe___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -687,6 +698,7 @@ lean_object* l_Lean_Elab_Term_expandMapRev___boxed(lean_object*, lean_object*, l
|
|||
lean_object* l_Lean_Elab_Term_expandAssert___closed__9;
|
||||
extern lean_object* l_System_FilePath_dirName___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandHEq___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__11;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandseqRight___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandIff___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandAppend___closed__1;
|
||||
|
|
@ -724,6 +736,7 @@ lean_object* l_Lean_Elab_Term_expandseqLeft___closed__3;
|
|||
lean_object* l_Lean_Elab_Term_expandAppend___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_ExpandFComp___closed__3;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Name_hasMacroScopes___main___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_elabTParserMacro___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__3;
|
||||
lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Elab_Term_elabNativeRefl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -746,6 +759,8 @@ lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__4;
|
|||
extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17;
|
||||
lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__2;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable___closed__2;
|
||||
lean_object* lean_name_mk_numeral(lean_object*, lean_object*);
|
||||
extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__16;
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__1;
|
||||
lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__3;
|
||||
lean_object* l_Lean_Elab_Term_expandAnd___closed__1;
|
||||
|
|
@ -11289,86 +11304,219 @@ lean_ctor_set(x_3, 1, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__9;
|
||||
x_2 = l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__10;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__9;
|
||||
x_2 = l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__12;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__10;
|
||||
x_2 = l_Lean_Name_hasMacroScopes___main___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__11;
|
||||
x_2 = lean_unsigned_to_nat(2u);
|
||||
x_3 = lean_name_mk_numeral(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_2 = l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__16;
|
||||
x_3 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__13;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_4 = lean_unsigned_to_nat(1u);
|
||||
x_5 = l_Lean_Syntax_getArg(x_1, x_4);
|
||||
x_6 = lean_unsigned_to_nat(3u);
|
||||
x_7 = l_Lean_Syntax_getArg(x_1, x_6);
|
||||
x_8 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_5);
|
||||
x_8 = l_Lean_Syntax_getKind(x_5);
|
||||
x_9 = l_Lean_interpolatedStrKind;
|
||||
x_10 = lean_name_eq(x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_11 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_2);
|
||||
x_10 = l_Lean_Elab_Term_expandDbgTrace___closed__4;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_addMacroScope(x_9, x_10, x_8);
|
||||
x_12 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_13 = l_Lean_Elab_Term_expandDbgTrace___closed__3;
|
||||
x_14 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
|
||||
x_15 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_15, 0, x_12);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
lean_ctor_set(x_15, 2, x_11);
|
||||
lean_ctor_set(x_15, 3, x_14);
|
||||
x_16 = l_Array_empty___closed__1;
|
||||
x_17 = lean_array_push(x_16, x_15);
|
||||
x_18 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__2___closed__4;
|
||||
x_19 = l_Lean_addMacroScope(x_9, x_18, x_8);
|
||||
x_20 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__2___closed__3;
|
||||
x_21 = l_Lean_Elab_Term_expandDbgTrace___closed__8;
|
||||
x_22 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_22, 0, x_12);
|
||||
lean_ctor_set(x_22, 1, x_20);
|
||||
lean_ctor_set(x_22, 2, x_19);
|
||||
lean_ctor_set(x_22, 3, x_21);
|
||||
x_23 = lean_array_push(x_16, x_22);
|
||||
x_24 = lean_array_push(x_16, x_5);
|
||||
x_25 = l_Lean_nullKind___closed__2;
|
||||
x_26 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_24);
|
||||
x_27 = lean_array_push(x_23, x_26);
|
||||
x_28 = l_Lean_mkAppStx___closed__8;
|
||||
x_13 = l_Lean_Elab_Term_expandDbgTrace___closed__4;
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_12);
|
||||
x_14 = l_Lean_addMacroScope(x_12, x_13, x_11);
|
||||
x_15 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_16 = l_Lean_Elab_Term_expandDbgTrace___closed__3;
|
||||
x_17 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
|
||||
x_18 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_18, 0, x_15);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
lean_ctor_set(x_18, 2, x_14);
|
||||
lean_ctor_set(x_18, 3, x_17);
|
||||
x_19 = l_Array_empty___closed__1;
|
||||
x_20 = lean_array_push(x_19, x_18);
|
||||
x_21 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__2___closed__4;
|
||||
x_22 = l_Lean_addMacroScope(x_12, x_21, x_11);
|
||||
x_23 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____lambda__2___closed__3;
|
||||
x_24 = l_Lean_Elab_Term_expandDbgTrace___closed__8;
|
||||
x_25 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_25, 0, x_15);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
lean_ctor_set(x_25, 2, x_22);
|
||||
lean_ctor_set(x_25, 3, x_24);
|
||||
x_26 = lean_array_push(x_19, x_25);
|
||||
x_27 = lean_array_push(x_19, x_5);
|
||||
x_28 = l_Lean_nullKind___closed__2;
|
||||
x_29 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_27);
|
||||
x_30 = lean_array_push(x_16, x_29);
|
||||
x_31 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
x_32 = lean_array_push(x_30, x_31);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_25);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
x_34 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_35 = lean_array_push(x_34, x_33);
|
||||
x_36 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_37 = lean_array_push(x_35, x_36);
|
||||
x_38 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_39 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_38);
|
||||
lean_ctor_set(x_39, 1, x_37);
|
||||
x_40 = lean_array_push(x_16, x_39);
|
||||
x_41 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_42 = lean_array_push(x_41, x_7);
|
||||
x_43 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_44 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_42);
|
||||
x_45 = lean_array_push(x_40, x_44);
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_25);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
x_47 = lean_array_push(x_17, x_46);
|
||||
x_48 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_28);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_3);
|
||||
return x_49;
|
||||
x_30 = lean_array_push(x_26, x_29);
|
||||
x_31 = l_Lean_mkAppStx___closed__8;
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_32, 1, x_30);
|
||||
x_33 = lean_array_push(x_19, x_32);
|
||||
x_34 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
x_35 = lean_array_push(x_33, x_34);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_28);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
x_37 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_38 = lean_array_push(x_37, x_36);
|
||||
x_39 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_40 = lean_array_push(x_38, x_39);
|
||||
x_41 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_42 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_40);
|
||||
x_43 = lean_array_push(x_19, x_42);
|
||||
x_44 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_45 = lean_array_push(x_44, x_7);
|
||||
x_46 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_47 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_45);
|
||||
x_48 = lean_array_push(x_43, x_47);
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_28);
|
||||
lean_ctor_set(x_49, 1, x_48);
|
||||
x_50 = lean_array_push(x_20, x_49);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_31);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
x_52 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_51);
|
||||
lean_ctor_set(x_52, 1, x_3);
|
||||
return x_52;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_53 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_2);
|
||||
x_55 = l_Lean_Elab_Term_expandDbgTrace___closed__4;
|
||||
x_56 = l_Lean_addMacroScope(x_54, x_55, x_53);
|
||||
x_57 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_58 = l_Lean_Elab_Term_expandDbgTrace___closed__3;
|
||||
x_59 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
|
||||
x_60 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_60, 0, x_57);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
lean_ctor_set(x_60, 2, x_56);
|
||||
lean_ctor_set(x_60, 3, x_59);
|
||||
x_61 = l_Array_empty___closed__1;
|
||||
x_62 = lean_array_push(x_61, x_60);
|
||||
x_63 = l_Lean_Elab_Term_expandDbgTrace___closed__14;
|
||||
x_64 = lean_array_push(x_63, x_5);
|
||||
x_65 = l_Lean_Elab_Term_expandDbgTrace___closed__12;
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_65);
|
||||
lean_ctor_set(x_66, 1, x_64);
|
||||
x_67 = lean_array_push(x_61, x_66);
|
||||
x_68 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
x_69 = lean_array_push(x_67, x_68);
|
||||
x_70 = l_Lean_nullKind___closed__2;
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_70);
|
||||
lean_ctor_set(x_71, 1, x_69);
|
||||
x_72 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_73 = lean_array_push(x_72, x_71);
|
||||
x_74 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_75 = lean_array_push(x_73, x_74);
|
||||
x_76 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_77 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_76);
|
||||
lean_ctor_set(x_77, 1, x_75);
|
||||
x_78 = lean_array_push(x_61, x_77);
|
||||
x_79 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_80 = lean_array_push(x_79, x_7);
|
||||
x_81 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_82 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_81);
|
||||
lean_ctor_set(x_82, 1, x_80);
|
||||
x_83 = lean_array_push(x_78, x_82);
|
||||
x_84 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_84, 0, x_70);
|
||||
lean_ctor_set(x_84, 1, x_83);
|
||||
x_85 = lean_array_push(x_62, x_84);
|
||||
x_86 = l_Lean_mkAppStx___closed__8;
|
||||
x_87 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_86);
|
||||
lean_ctor_set(x_87, 1, x_85);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
lean_ctor_set(x_88, 1, x_3);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_expandDbgTrace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
|
|
@ -12745,6 +12893,18 @@ l_Lean_Elab_Term_expandDbgTrace___closed__7 = _init_l_Lean_Elab_Term_expandDbgTr
|
|||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__7);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__8 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__8();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__8);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__9 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__9();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__9);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__10 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__10();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__10);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__11 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__11();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__11);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__12 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__12();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__12);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__13 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__13();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__13);
|
||||
l_Lean_Elab_Term_expandDbgTrace___closed__14 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__14();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__14);
|
||||
l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__2();
|
||||
|
|
|
|||
569
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
569
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
|
|
@ -29,6 +29,7 @@ extern lean_object* l_Lean_MessageData_ofList___closed__3;
|
|||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__21___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__2;
|
||||
uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -96,11 +97,11 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main
|
|||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__3;
|
||||
extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5;
|
||||
lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__25(lean_object*);
|
||||
lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___rarg___lambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6;
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4;
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -145,7 +146,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursiv
|
|||
uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(lean_object*);
|
||||
lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7;
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__15(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -155,6 +155,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
|||
lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -177,9 +178,11 @@ lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreD
|
|||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3;
|
||||
extern lean_object* l_Lean_Expr_FoldConstsImpl_initCache;
|
||||
lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3;
|
||||
lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___spec__1(lean_object*, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2;
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -192,7 +195,6 @@ lean_object* l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefin
|
|||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__19(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2___closed__3;
|
||||
lean_object* l_Lean_Elab_addPreDefinitions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -452,7 +454,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreD
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("inhabitant for ");
|
||||
x_1 = lean_mk_string("inhabitant for {preDef.declName}");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -461,7 +463,18 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
x_2 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__2;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -479,51 +492,51 @@ lean_inc(x_13);
|
|||
x_14 = l_Lean_Elab_mkInhabitantFor(x_13, x_4, x_5, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42;
|
||||
lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
x_39 = lean_st_ref_get(x_11, x_16);
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_40, 3);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_40);
|
||||
x_42 = lean_ctor_get_uint8(x_41, sizeof(void*)*1);
|
||||
lean_dec(x_41);
|
||||
if (x_42 == 0)
|
||||
x_35 = lean_st_ref_get(x_11, x_16);
|
||||
x_36 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_36);
|
||||
x_37 = lean_ctor_get(x_36, 3);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_36);
|
||||
x_38 = lean_ctor_get_uint8(x_37, sizeof(void*)*1);
|
||||
lean_dec(x_37);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
lean_object* x_43; uint8_t x_44;
|
||||
x_43 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_39);
|
||||
x_44 = 0;
|
||||
x_17 = x_44;
|
||||
x_18 = x_43;
|
||||
goto block_38;
|
||||
lean_object* x_39; uint8_t x_40;
|
||||
x_39 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_35);
|
||||
x_40 = 0;
|
||||
x_17 = x_40;
|
||||
x_18 = x_39;
|
||||
goto block_34;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49;
|
||||
x_45 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_39);
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45;
|
||||
x_41 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_35);
|
||||
lean_inc(x_3);
|
||||
x_46 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_45);
|
||||
x_47 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_46);
|
||||
x_49 = lean_unbox(x_47);
|
||||
lean_dec(x_47);
|
||||
x_17 = x_49;
|
||||
x_18 = x_48;
|
||||
goto block_38;
|
||||
x_42 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_41);
|
||||
x_43 = lean_ctor_get(x_42, 0);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_42);
|
||||
x_45 = lean_unbox(x_43);
|
||||
lean_dec(x_43);
|
||||
x_17 = x_45;
|
||||
x_18 = x_44;
|
||||
goto block_34;
|
||||
}
|
||||
block_38:
|
||||
block_34:
|
||||
{
|
||||
if (x_17 == 0)
|
||||
{
|
||||
|
|
@ -548,44 +561,34 @@ return x_24;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37;
|
||||
lean_inc(x_13);
|
||||
x_25 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_25, 0, x_13);
|
||||
x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__2;
|
||||
x_27 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_25);
|
||||
x_28 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
||||
x_29 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_3, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_18);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_30);
|
||||
x_32 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_33);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33;
|
||||
x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3;
|
||||
x_26 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_3, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_18);
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
x_28 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_1);
|
||||
x_34 = 3;
|
||||
x_35 = lean_alloc_ctor(0, 5, 1);
|
||||
lean_ctor_set(x_35, 0, x_32);
|
||||
lean_ctor_set(x_35, 1, x_33);
|
||||
lean_ctor_set(x_35, 2, x_13);
|
||||
lean_ctor_set(x_35, 3, x_2);
|
||||
lean_ctor_set(x_35, 4, x_15);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_34);
|
||||
x_36 = 0;
|
||||
x_37 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(x_35, x_36, x_6, x_7, x_8, x_9, x_10, x_11, x_31);
|
||||
return x_37;
|
||||
x_30 = 3;
|
||||
x_31 = lean_alloc_ctor(0, 5, 1);
|
||||
lean_ctor_set(x_31, 0, x_28);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
lean_ctor_set(x_31, 2, x_13);
|
||||
lean_ctor_set(x_31, 3, x_2);
|
||||
lean_ctor_set(x_31, 4, x_15);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*5, x_30);
|
||||
x_32 = 0;
|
||||
x_33 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(x_31, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_27);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_50;
|
||||
uint8_t x_46;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -595,23 +598,23 @@ lean_dec(x_6);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_50 = !lean_is_exclusive(x_14);
|
||||
if (x_50 == 0)
|
||||
x_46 = !lean_is_exclusive(x_14);
|
||||
if (x_46 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52; lean_object* x_53;
|
||||
x_51 = lean_ctor_get(x_14, 0);
|
||||
x_52 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_52);
|
||||
lean_inc(x_51);
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_47 = lean_ctor_get(x_14, 0);
|
||||
x_48 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_14);
|
||||
x_53 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_51);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
return x_53;
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_47);
|
||||
lean_ctor_set(x_49, 1, x_48);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -620,7 +623,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreD
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("processing ");
|
||||
x_1 = lean_mk_string("processing {preDef.declName}");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -629,7 +632,18 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
x_2 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__2;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -654,46 +668,61 @@ return x_13;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; uint8_t x_30; lean_object* x_31; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_array_uget(x_1, x_3);
|
||||
x_42 = lean_st_ref_get(x_10, x_11);
|
||||
x_43 = lean_ctor_get(x_42, 0);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_43, 3);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_43);
|
||||
x_45 = lean_ctor_get_uint8(x_44, sizeof(void*)*1);
|
||||
lean_dec(x_44);
|
||||
if (x_45 == 0)
|
||||
x_30 = lean_st_ref_get(x_10, x_11);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_31, 3);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_31);
|
||||
x_33 = lean_ctor_get_uint8(x_32, sizeof(void*)*1);
|
||||
lean_dec(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_46; uint8_t x_47;
|
||||
x_46 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_42);
|
||||
x_47 = 0;
|
||||
x_30 = x_47;
|
||||
x_31 = x_46;
|
||||
goto block_41;
|
||||
lean_object* x_34;
|
||||
x_34 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_30);
|
||||
x_15 = x_34;
|
||||
goto block_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53;
|
||||
x_48 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_42);
|
||||
x_49 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_regTraceClasses___closed__2;
|
||||
x_50 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_48);
|
||||
x_51 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_51);
|
||||
x_52 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_50);
|
||||
x_53 = lean_unbox(x_51);
|
||||
lean_dec(x_51);
|
||||
x_30 = x_53;
|
||||
x_31 = x_52;
|
||||
goto block_41;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
|
||||
x_35 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_30);
|
||||
x_36 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_regTraceClasses___closed__2;
|
||||
x_37 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_35);
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_unbox(x_38);
|
||||
lean_dec(x_38);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40;
|
||||
x_40 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_37);
|
||||
x_15 = x_40;
|
||||
goto block_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_41 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_37);
|
||||
x_42 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3;
|
||||
x_43 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_36, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_41);
|
||||
x_44 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_43);
|
||||
x_15 = x_44;
|
||||
goto block_29;
|
||||
}
|
||||
}
|
||||
block_29:
|
||||
{
|
||||
|
|
@ -756,37 +785,6 @@ return x_28;
|
|||
}
|
||||
}
|
||||
}
|
||||
block_41:
|
||||
{
|
||||
if (x_30 == 0)
|
||||
{
|
||||
x_15 = x_31;
|
||||
goto block_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_32 = lean_ctor_get(x_14, 2);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
x_34 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__2;
|
||||
x_35 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_33);
|
||||
x_36 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
||||
x_37 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
x_38 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_regTraceClasses___closed__2;
|
||||
x_39 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_38, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_31);
|
||||
x_40 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_39);
|
||||
x_15 = x_40;
|
||||
goto block_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4243,135 +4241,132 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefiniti
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("{preDef.declName} : {preDef.type} :=\n{preDef.value}");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4;
|
||||
x_2 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = x_3 < x_2;
|
||||
if (x_12 == 0)
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_19;
|
||||
x_19 = x_3 < x_2;
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_13;
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_4);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
lean_object* x_20;
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_4);
|
||||
lean_ctor_set(x_20, 1, x_11);
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47;
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_array_uget(x_1, x_3);
|
||||
x_44 = lean_st_ref_get(x_10, x_11);
|
||||
x_45 = lean_ctor_get(x_44, 0);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_45, 3);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_45);
|
||||
x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*1);
|
||||
lean_dec(x_46);
|
||||
if (x_47 == 0)
|
||||
x_21 = lean_st_ref_get(x_10, x_11);
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_22, 3);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_22);
|
||||
x_24 = lean_ctor_get_uint8(x_23, sizeof(void*)*1);
|
||||
lean_dec(x_23);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_object* x_48; uint8_t x_49;
|
||||
x_48 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_44);
|
||||
x_49 = 0;
|
||||
x_15 = x_49;
|
||||
x_16 = x_48;
|
||||
goto block_43;
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_21);
|
||||
x_26 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_12 = x_26;
|
||||
x_13 = x_25;
|
||||
goto block_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
x_50 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_44);
|
||||
x_51 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2;
|
||||
x_52 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_50);
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
x_55 = lean_unbox(x_53);
|
||||
lean_dec(x_53);
|
||||
x_15 = x_55;
|
||||
x_16 = x_54;
|
||||
goto block_43;
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
if (x_15 == 0)
|
||||
{
|
||||
size_t x_17; size_t x_18; lean_object* x_19;
|
||||
lean_dec(x_14);
|
||||
x_17 = 1;
|
||||
x_18 = x_3 + x_17;
|
||||
x_19 = lean_box(0);
|
||||
x_3 = x_18;
|
||||
x_4 = x_19;
|
||||
x_11 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; lean_object* x_41;
|
||||
x_21 = lean_ctor_get(x_14, 2);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
x_23 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
||||
x_24 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_26 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = lean_ctor_get(x_14, 3);
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
|
||||
x_27 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_27);
|
||||
x_28 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
x_29 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_26);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2___closed__3;
|
||||
x_31 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
x_32 = lean_ctor_get(x_14, 4);
|
||||
lean_dec(x_21);
|
||||
x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2;
|
||||
x_29 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_27);
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_unbox(x_30);
|
||||
lean_dec(x_30);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_14);
|
||||
x_33 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
x_34 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_31);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
x_35 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_23);
|
||||
x_36 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2;
|
||||
x_37 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_36, x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_16);
|
||||
x_38 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_37);
|
||||
x_39 = 1;
|
||||
x_40 = x_3 + x_39;
|
||||
x_41 = lean_box(0);
|
||||
x_3 = x_40;
|
||||
x_4 = x_41;
|
||||
x_11 = x_38;
|
||||
lean_dec(x_29);
|
||||
x_33 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_12 = x_33;
|
||||
x_13 = x_32;
|
||||
goto block_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_34 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_29);
|
||||
x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6;
|
||||
x_36 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_28, x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_34);
|
||||
x_37 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_36);
|
||||
x_38 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_12 = x_38;
|
||||
x_13 = x_37;
|
||||
goto block_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
block_18:
|
||||
{
|
||||
lean_object* x_14; size_t x_15; size_t x_16;
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = 1;
|
||||
x_16 = x_3 + x_15;
|
||||
x_3 = x_16;
|
||||
x_4 = x_14;
|
||||
x_11 = x_13;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4834,32 +4829,22 @@ return x_1;
|
|||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("scc");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__4() {
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_regTraceClasses___closed__2;
|
||||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__3;
|
||||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__5() {
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -4867,21 +4852,21 @@ x_1 = lean_mk_string("{preDefs.map (·.declName)}");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6() {
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__5;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__4;
|
||||
x_2 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7() {
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6;
|
||||
x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__5;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -4914,7 +4899,7 @@ lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint
|
|||
x_96 = lean_ctor_get(x_91, 1);
|
||||
lean_inc(x_96);
|
||||
lean_dec(x_91);
|
||||
x_97 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__4;
|
||||
x_97 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__3;
|
||||
x_98 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_97, x_2, x_3, x_4, x_5, x_6, x_7, x_96);
|
||||
x_99 = lean_ctor_get(x_98, 0);
|
||||
lean_inc(x_99);
|
||||
|
|
@ -4935,7 +4920,7 @@ lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105;
|
|||
x_102 = lean_ctor_get(x_98, 1);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_98);
|
||||
x_103 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7;
|
||||
x_103 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6;
|
||||
x_104 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_97, x_103, x_2, x_3, x_4, x_5, x_6, x_7, x_102);
|
||||
x_105 = lean_ctor_get(x_104, 1);
|
||||
lean_inc(x_105);
|
||||
|
|
@ -5005,7 +4990,7 @@ if (x_20 == 0)
|
|||
lean_object* x_21; lean_object* x_22;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
lean_ctor_set(x_19, 0, x_22);
|
||||
return x_19;
|
||||
}
|
||||
|
|
@ -5015,7 +5000,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
|||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_19);
|
||||
x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
|
|
@ -5058,7 +5043,7 @@ if (x_31 == 0)
|
|||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_30, 0);
|
||||
lean_dec(x_32);
|
||||
x_33 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_33 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
lean_ctor_set(x_30, 0, x_33);
|
||||
return x_30;
|
||||
}
|
||||
|
|
@ -5068,7 +5053,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
|||
x_34 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_30);
|
||||
x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
|
|
@ -5117,7 +5102,7 @@ if (x_42 == 0)
|
|||
lean_object* x_43; lean_object* x_44;
|
||||
x_43 = lean_ctor_get(x_41, 0);
|
||||
lean_dec(x_43);
|
||||
x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
lean_ctor_set(x_41, 0, x_44);
|
||||
return x_41;
|
||||
}
|
||||
|
|
@ -5127,7 +5112,7 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
|||
x_45 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_41);
|
||||
x_46 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_46 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_45);
|
||||
|
|
@ -5184,7 +5169,7 @@ if (x_59 == 0)
|
|||
lean_object* x_60; lean_object* x_61;
|
||||
x_60 = lean_ctor_get(x_58, 0);
|
||||
lean_dec(x_60);
|
||||
x_61 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_61 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
lean_ctor_set(x_58, 0, x_61);
|
||||
return x_58;
|
||||
}
|
||||
|
|
@ -5194,7 +5179,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
|||
x_62 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_58);
|
||||
x_63 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_63 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_62);
|
||||
|
|
@ -5239,7 +5224,7 @@ if (x_71 == 0)
|
|||
lean_object* x_72; lean_object* x_73;
|
||||
x_72 = lean_ctor_get(x_70, 0);
|
||||
lean_dec(x_72);
|
||||
x_73 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_73 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
lean_ctor_set(x_70, 0, x_73);
|
||||
return x_70;
|
||||
}
|
||||
|
|
@ -5249,7 +5234,7 @@ lean_object* x_74; lean_object* x_75; lean_object* x_76;
|
|||
x_74 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_70);
|
||||
x_75 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__2;
|
||||
x_75 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3;
|
||||
x_76 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_76, 0, x_75);
|
||||
lean_ctor_set(x_76, 1, x_74);
|
||||
|
|
@ -5616,10 +5601,14 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Ela
|
|||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__1);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__2);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___lambda__1___closed__3);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__1();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__1);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__2();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__2);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__4___closed__3);
|
||||
l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__1 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__1();
|
||||
lean_mark_persistent(l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__1);
|
||||
l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__2 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__2();
|
||||
|
|
@ -5630,6 +5619,12 @@ l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2
|
|||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__4);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__1);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__1___closed__2();
|
||||
|
|
@ -5650,8 +5645,6 @@ l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4_
|
|||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__5);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__6);
|
||||
l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__6___lambda__4___closed__7);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
2668
stage0/stdlib/Lean/Elab/PreDefinition/Structural.c
generated
2668
stage0/stdlib/Lean/Elab/PreDefinition/Structural.c
generated
File diff suppressed because it is too large
Load diff
44
stage0/stdlib/Lean/Elab/Syntax.c
generated
44
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -205,7 +205,6 @@ lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_obj
|
|||
lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabSyntax___closed__10;
|
||||
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
|
||||
lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
|
||||
|
|
@ -788,6 +787,7 @@ lean_object* l___private_Lean_Elab_Syntax_1__mkParserSeq___boxed(lean_object*, l
|
|||
lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__35;
|
||||
extern lean_object* l_Lean_Syntax_isQuot___closed__1;
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1;
|
||||
lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
|
||||
|
|
@ -12666,17 +12666,19 @@ return x_4;
|
|||
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__32() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("Exception");
|
||||
return x_1;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_mkMacroAttribute___closed__9;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__33() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_mkMacroAttribute___closed__9;
|
||||
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
|
||||
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
|
||||
x_2 = l_Lean_Elab_registerUnsupportedSyntaxId___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -12685,9 +12687,11 @@ static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__34() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
|
||||
x_2 = l_Lean_Elab_registerUnsupportedSyntaxId___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
|
|
@ -12697,18 +12701,6 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
|
|
@ -12885,10 +12877,10 @@ lean_ctor_set(x_98, 1, x_96);
|
|||
lean_ctor_set(x_98, 2, x_95);
|
||||
lean_ctor_set(x_98, 3, x_97);
|
||||
x_99 = lean_array_push(x_22, x_98);
|
||||
x_100 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
|
||||
x_100 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
|
||||
x_101 = l_Lean_addMacroScope(x_15, x_100, x_11);
|
||||
x_102 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
|
||||
x_103 = l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
|
||||
x_103 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
|
||||
x_104 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_104, 0, x_19);
|
||||
lean_ctor_set(x_104, 1, x_102);
|
||||
|
|
@ -13093,10 +13085,10 @@ lean_ctor_set(x_219, 1, x_217);
|
|||
lean_ctor_set(x_219, 2, x_216);
|
||||
lean_ctor_set(x_219, 3, x_218);
|
||||
x_220 = lean_array_push(x_143, x_219);
|
||||
x_221 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
|
||||
x_221 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
|
||||
x_222 = l_Lean_addMacroScope(x_135, x_221, x_11);
|
||||
x_223 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
|
||||
x_224 = l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
|
||||
x_224 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
|
||||
x_225 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_225, 0, x_140);
|
||||
lean_ctor_set(x_225, 1, x_223);
|
||||
|
|
@ -22201,8 +22193,6 @@ l_Lean_Elab_Command_elabMacroRulesAux___closed__34 = _init_l_Lean_Elab_Command_e
|
|||
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__34);
|
||||
l_Lean_Elab_Command_elabMacroRulesAux___closed__35 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__35();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__35);
|
||||
l_Lean_Elab_Command_elabMacroRulesAux___closed__36 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__36);
|
||||
l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__1 = _init_l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__1);
|
||||
l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2 = _init_l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2();
|
||||
|
|
|
|||
217
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
217
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
|
|
@ -43,6 +43,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Ela
|
|||
lean_object* l_List_forInAux___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__5___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -82,14 +83,12 @@ lean_object* l_Lean_Elab_Tactic_getRecFromUsing_match__1___rarg(lean_object*, le
|
|||
lean_object* l_Lean_Expr_getAppFn___main(lean_object*);
|
||||
extern lean_object* l_Lean_Name_inhabited;
|
||||
extern lean_object* l_String_splitAux___main___closed__1;
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_RecInfo_altRHSs___default;
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__3___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__2(lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop___closed__4;
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalInduction_match__1___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -117,6 +116,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecIn
|
|||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -160,6 +160,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAlt
|
|||
lean_object* l_Lean_Elab_Tactic_evalInduction_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__5(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___closed__1;
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
|
|
@ -279,6 +280,7 @@ lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, le
|
|||
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_evalCases___spec__1(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isNone(lean_object*);
|
||||
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_evalIntros___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forInAux___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__3___closed__2;
|
||||
lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_isHoleRHS___boxed(lean_object*);
|
||||
|
|
@ -292,7 +294,6 @@ lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0_
|
|||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor_match__2(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___closed__4;
|
||||
extern lean_object* l_Lean_mkHole___closed__2;
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Elab_Tactic_getMainTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -329,11 +330,11 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
|||
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___closed__1;
|
||||
extern lean_object* l_Lean_Elab_Tactic_getFVarId___closed__2;
|
||||
lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalCases_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___closed__3;
|
||||
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Elab_Util_6__regTraceClasses___closed__1;
|
||||
lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1772,7 +1773,20 @@ return x_8;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
x_12 = l_Lean_checkTraceOption(x_11, x_1);
|
||||
x_13 = lean_box(x_12);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_10);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
|
|
@ -1939,19 +1953,6 @@ return x_60;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
x_12 = l_Lean_checkTraceOption(x_11, x_1);
|
||||
x_13 = lean_box(x_12);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_10);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1991,7 +1992,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tact
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string(" , ");
|
||||
x_1 = lean_mk_string("{n} , {alt}");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -2000,7 +2001,18 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__5;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
x_2 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -2020,7 +2032,7 @@ return x_16;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69;
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
lean_dec(x_5);
|
||||
x_17 = lean_array_uget(x_2, x_4);
|
||||
x_18 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_17);
|
||||
|
|
@ -2043,43 +2055,61 @@ lean_ctor_set(x_51, 0, x_44);
|
|||
lean_ctor_set(x_51, 1, x_45);
|
||||
lean_ctor_set(x_51, 2, x_46);
|
||||
lean_ctor_set(x_51, 3, x_50);
|
||||
x_66 = lean_st_ref_get(x_13, x_14);
|
||||
x_67 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_67, 3);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
x_69 = lean_ctor_get_uint8(x_68, sizeof(void*)*1);
|
||||
lean_dec(x_68);
|
||||
if (x_69 == 0)
|
||||
x_52 = lean_st_ref_get(x_13, x_14);
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_53, 3);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_53);
|
||||
x_55 = lean_ctor_get_uint8(x_54, sizeof(void*)*1);
|
||||
lean_dec(x_54);
|
||||
if (x_55 == 0)
|
||||
{
|
||||
lean_object* x_70; uint8_t x_71;
|
||||
x_70 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_66);
|
||||
x_71 = 0;
|
||||
x_52 = x_71;
|
||||
x_53 = x_70;
|
||||
goto block_65;
|
||||
lean_object* x_56;
|
||||
lean_dec(x_51);
|
||||
x_56 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_52);
|
||||
x_19 = x_56;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77;
|
||||
x_72 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_66);
|
||||
x_73 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__4;
|
||||
x_74 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(x_73, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_72);
|
||||
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_52 = x_77;
|
||||
x_53 = x_76;
|
||||
goto block_65;
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61;
|
||||
x_57 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_52);
|
||||
x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__4;
|
||||
x_59 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(x_58, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_57);
|
||||
x_60 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_unbox(x_60);
|
||||
lean_dec(x_60);
|
||||
if (x_61 == 0)
|
||||
{
|
||||
lean_object* x_62;
|
||||
lean_dec(x_51);
|
||||
x_62 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_59);
|
||||
x_19 = x_62;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_63 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_59);
|
||||
x_64 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7;
|
||||
x_65 = l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(x_58, x_64, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_63);
|
||||
lean_dec(x_51);
|
||||
x_66 = lean_ctor_get(x_65, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_65);
|
||||
x_19 = x_66;
|
||||
goto block_43;
|
||||
}
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
|
|
@ -2155,47 +2185,6 @@ goto _start;
|
|||
}
|
||||
}
|
||||
}
|
||||
block_65:
|
||||
{
|
||||
if (x_52 == 0)
|
||||
{
|
||||
lean_dec(x_51);
|
||||
x_19 = x_53;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
lean_inc(x_18);
|
||||
x_54 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_54, 0, x_18);
|
||||
x_55 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
||||
x_56 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_54);
|
||||
x_57 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6;
|
||||
x_58 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
lean_inc(x_17);
|
||||
x_59 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_59, 0, x_17);
|
||||
x_60 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
x_61 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_55);
|
||||
x_62 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__4;
|
||||
x_63 = l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(x_62, x_61, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_53);
|
||||
lean_dec(x_51);
|
||||
x_64 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_63);
|
||||
x_19 = x_64;
|
||||
goto block_43;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2268,27 +2257,11 @@ x_6 = lean_box(x_5);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(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_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_11 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2300,6 +2273,22 @@ lean_dec(x_2);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_addTrace___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__3(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_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -11169,6 +11158,8 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_
|
|||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__5);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6);
|
||||
l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7();
|
||||
lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__7);
|
||||
l_Lean_Elab_Tactic_RecInfo_altVars___default = _init_l_Lean_Elab_Tactic_RecInfo_altVars___default();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_RecInfo_altVars___default);
|
||||
l_Lean_Elab_Tactic_RecInfo_altRHSs___default = _init_l_Lean_Elab_Tactic_RecInfo_altRHSs___default();
|
||||
|
|
|
|||
782
stage0/stdlib/Lean/Exception.c
generated
782
stage0/stdlib/Lean/Exception.c
generated
|
|
@ -13,48 +13,88 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5;
|
||||
lean_object* l_Lean_StateRefT_monadRecDepth___rarg(lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9;
|
||||
lean_object* l_Lean_InternalExceptionId_toString(lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5;
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg(lean_object*);
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6;
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__1;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg___closed__4;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4;
|
||||
lean_object* l_Lean_withRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_empty___closed__1;
|
||||
lean_object* l_StateRefT_x27_run___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8;
|
||||
lean_object* l_Lean_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg___lambda__2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1;
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2;
|
||||
extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
extern lean_object* l_Lean_interpolatedStrKind;
|
||||
lean_object* l_Lean_throwKernelException(lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1;
|
||||
lean_object* lean_string_utf8_byte_size(lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4;
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__6;
|
||||
lean_object* l_Lean_Exception_inhabited;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4;
|
||||
extern lean_object* l_Lean_mkAppStx___closed__8;
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg___closed__2;
|
||||
lean_object* l_Lean_refTrans(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5;
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Exception_inhabited___closed__1;
|
||||
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg___closed__1;
|
||||
lean_object* l_Lean_throwKernelException___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_refTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6;
|
||||
extern lean_object* l_Char_HasRepr___closed__1;
|
||||
extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg___lambda__3(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg___closed__5;
|
||||
lean_object* l_Lean_withRef___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant___rarg___closed__3;
|
||||
lean_object* l_Lean_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7;
|
||||
lean_object* l_Lean_Exception_getRef___boxed(lean_object*);
|
||||
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___rarg___lambda__1(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_nullKind___closed__2;
|
||||
lean_object* l_Lean_replaceRef___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError(lean_object*);
|
||||
lean_object* l_Lean_StateRefT_monadRecDepth(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withIncRecDepth(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_SourceInfo_inhabited___closed__1;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7;
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l_Lean_throwKernelException___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg___lambda__3___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -65,18 +105,42 @@ lean_object* l_Lean_ReaderT_MonadRecDepth(lean_object*, lean_object*, lean_objec
|
|||
lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_refTrans___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withIncRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3_;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42_;
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__1;
|
||||
lean_object* l_Lean_addErrorMessageContextDefault___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6;
|
||||
lean_object* l_Lean_StateRefT_monadRecDepth___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addErrorMessageContextDefault(lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7;
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwUnknownConstant(lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
lean_object* l_Lean_withRef(lean_object*);
|
||||
lean_object* l_Lean_refTrans___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5;
|
||||
lean_object* l_Lean_ofExcept(lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4;
|
||||
extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
extern lean_object* l_Lean_mkAppStx___closed__2;
|
||||
extern lean_object* l_Lean_Name_hasMacroScopes___main___closed__1;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2;
|
||||
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_MessageData_Inhabited___closed__1;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87_(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334_(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1;
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__8;
|
||||
lean_object* lean_name_mk_numeral(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ReaderT_MonadRecDepth___rarg___lambda__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Exception_toMessageData(lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2;
|
||||
lean_object* l_Lean_ofExcept___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Exception_toMessageData(lean_object* x_1) {
|
||||
|
|
@ -792,6 +856,656 @@ lean_dec(x_9);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("Exception");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__1;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2;
|
||||
x_2 = l_Lean_Name_hasMacroScopes___main___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3;
|
||||
x_2 = lean_unsigned_to_nat(3u);
|
||||
x_3 = lean_name_mk_numeral(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("throwError! ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5;
|
||||
x_2 = lean_alloc_ctor(11, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__8;
|
||||
x_2 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4;
|
||||
x_2 = lean_unsigned_to_nat(1023u);
|
||||
x_3 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8;
|
||||
x_4 = lean_alloc_ctor(9, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3;
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_name_mk_numeral(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("throwErrorAt! ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2;
|
||||
x_2 = lean_alloc_ctor(11, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = lean_alloc_ctor(20, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1;
|
||||
x_2 = lean_unsigned_to_nat(1023u);
|
||||
x_3 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6;
|
||||
x_4 = lean_alloc_ctor(9, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("throwError");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1;
|
||||
x_2 = lean_string_utf8_byte_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_mkAppStx___closed__2;
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__6;
|
||||
x_3 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4;
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(1);
|
||||
x_7 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_8 = l_Lean_Syntax_getArgs(x_1);
|
||||
x_9 = lean_array_get_size(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_unsigned_to_nat(2u);
|
||||
x_11 = lean_nat_dec_eq(x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_box(1);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_3);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
lean_dec(x_1);
|
||||
lean_inc(x_15);
|
||||
x_16 = l_Lean_Syntax_getKind(x_15);
|
||||
x_17 = l_Lean_interpolatedStrKind;
|
||||
x_18 = lean_name_eq(x_16, x_17);
|
||||
lean_dec(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_19 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_2);
|
||||
x_21 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4;
|
||||
x_22 = l_Lean_addMacroScope(x_20, x_21, x_19);
|
||||
x_23 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_24 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3;
|
||||
x_25 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7;
|
||||
x_26 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_26, 0, x_23);
|
||||
lean_ctor_set(x_26, 1, x_24);
|
||||
lean_ctor_set(x_26, 2, x_22);
|
||||
lean_ctor_set(x_26, 3, x_25);
|
||||
x_27 = l_Array_empty___closed__1;
|
||||
x_28 = lean_array_push(x_27, x_26);
|
||||
x_29 = lean_array_push(x_27, x_15);
|
||||
x_30 = l_Lean_nullKind___closed__2;
|
||||
x_31 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
x_32 = lean_array_push(x_28, x_31);
|
||||
x_33 = l_Lean_mkAppStx___closed__8;
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_3);
|
||||
return x_35;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_36 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_36);
|
||||
x_37 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_2);
|
||||
x_38 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4;
|
||||
x_39 = l_Lean_addMacroScope(x_37, x_38, x_36);
|
||||
x_40 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_41 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3;
|
||||
x_42 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7;
|
||||
x_43 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_43, 0, x_40);
|
||||
lean_ctor_set(x_43, 1, x_41);
|
||||
lean_ctor_set(x_43, 2, x_39);
|
||||
lean_ctor_set(x_43, 3, x_42);
|
||||
x_44 = l_Array_empty___closed__1;
|
||||
x_45 = lean_array_push(x_44, x_43);
|
||||
x_46 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9;
|
||||
x_47 = lean_array_push(x_46, x_15);
|
||||
x_48 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5;
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
x_50 = lean_array_push(x_44, x_49);
|
||||
x_51 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
x_52 = lean_array_push(x_50, x_51);
|
||||
x_53 = l_Lean_nullKind___closed__2;
|
||||
x_54 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_54, 0, x_53);
|
||||
lean_ctor_set(x_54, 1, x_52);
|
||||
x_55 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_56 = lean_array_push(x_55, x_54);
|
||||
x_57 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_58 = lean_array_push(x_56, x_57);
|
||||
x_59 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
x_61 = lean_array_push(x_44, x_60);
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_53);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
x_63 = lean_array_push(x_45, x_62);
|
||||
x_64 = l_Lean_mkAppStx___closed__8;
|
||||
x_65 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_64);
|
||||
lean_ctor_set(x_65, 1, x_63);
|
||||
x_66 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_65);
|
||||
lean_ctor_set(x_66, 1, x_3);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("throwErrorAt");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1;
|
||||
x_2 = lean_string_utf8_byte_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_mkAppStx___closed__2;
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_334_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1;
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(1);
|
||||
x_7 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_8 = l_Lean_Syntax_getArgs(x_1);
|
||||
x_9 = lean_array_get_size(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_unsigned_to_nat(3u);
|
||||
x_11 = lean_nat_dec_eq(x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_box(1);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_3);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
x_16 = lean_unsigned_to_nat(2u);
|
||||
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
|
||||
lean_dec(x_1);
|
||||
lean_inc(x_17);
|
||||
x_18 = l_Lean_Syntax_getKind(x_17);
|
||||
x_19 = l_Lean_interpolatedStrKind;
|
||||
x_20 = lean_name_eq(x_18, x_19);
|
||||
lean_dec(x_18);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_21 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_2);
|
||||
x_23 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4;
|
||||
x_24 = l_Lean_addMacroScope(x_22, x_23, x_21);
|
||||
x_25 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_26 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3;
|
||||
x_27 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7;
|
||||
x_28 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_28, 0, x_25);
|
||||
lean_ctor_set(x_28, 1, x_26);
|
||||
lean_ctor_set(x_28, 2, x_24);
|
||||
lean_ctor_set(x_28, 3, x_27);
|
||||
x_29 = l_Array_empty___closed__1;
|
||||
x_30 = lean_array_push(x_29, x_28);
|
||||
x_31 = lean_array_push(x_29, x_15);
|
||||
x_32 = lean_array_push(x_31, x_17);
|
||||
x_33 = l_Lean_nullKind___closed__2;
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
x_35 = lean_array_push(x_30, x_34);
|
||||
x_36 = l_Lean_mkAppStx___closed__8;
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_36);
|
||||
lean_ctor_set(x_37, 1, x_35);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_3);
|
||||
return x_38;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_39 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_39);
|
||||
x_40 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_2);
|
||||
x_41 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4;
|
||||
x_42 = l_Lean_addMacroScope(x_40, x_41, x_39);
|
||||
x_43 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_44 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3;
|
||||
x_45 = l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7;
|
||||
x_46 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_46, 0, x_43);
|
||||
lean_ctor_set(x_46, 1, x_44);
|
||||
lean_ctor_set(x_46, 2, x_42);
|
||||
lean_ctor_set(x_46, 3, x_45);
|
||||
x_47 = l_Array_empty___closed__1;
|
||||
x_48 = lean_array_push(x_47, x_46);
|
||||
x_49 = lean_array_push(x_47, x_15);
|
||||
x_50 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9;
|
||||
x_51 = lean_array_push(x_50, x_17);
|
||||
x_52 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5;
|
||||
x_53 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_52);
|
||||
lean_ctor_set(x_53, 1, x_51);
|
||||
x_54 = lean_array_push(x_47, x_53);
|
||||
x_55 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5;
|
||||
x_56 = lean_array_push(x_54, x_55);
|
||||
x_57 = l_Lean_nullKind___closed__2;
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_57);
|
||||
lean_ctor_set(x_58, 1, x_56);
|
||||
x_59 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_60 = lean_array_push(x_59, x_58);
|
||||
x_61 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_62 = lean_array_push(x_60, x_61);
|
||||
x_63 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_64 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_62);
|
||||
x_65 = lean_array_push(x_49, x_64);
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_57);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
x_67 = lean_array_push(x_48, x_66);
|
||||
x_68 = l_Lean_mkAppStx___closed__8;
|
||||
x_69 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_68);
|
||||
lean_ctor_set(x_69, 1, x_67);
|
||||
x_70 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_70, 0, x_69);
|
||||
lean_ctor_set(x_70, 1, x_3);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(lean_object*);
|
||||
lean_object* initialize_Lean_Message(lean_object*);
|
||||
lean_object* initialize_Lean_InternalExceptionId(lean_object*);
|
||||
|
|
@ -831,6 +1545,74 @@ l_Lean_withIncRecDepth___rarg___lambda__2___closed__1 = _init_l_Lean_withIncRecD
|
|||
lean_mark_persistent(l_Lean_withIncRecDepth___rarg___lambda__2___closed__1);
|
||||
l_Lean_withIncRecDepth___rarg___lambda__2___closed__2 = _init_l_Lean_withIncRecDepth___rarg___lambda__2___closed__2();
|
||||
lean_mark_persistent(l_Lean_withIncRecDepth___rarg___lambda__2___closed__2);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__2);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__3);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__4);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__5);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__6);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__8);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__9);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_3_ = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_3_();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_3_);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__1);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__2);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__3);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__5);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__6);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7 = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__7);
|
||||
l_Lean___kind_term____x40_Lean_Exception___hyg_42_ = _init_l_Lean___kind_term____x40_Lean_Exception___hyg_42_();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Exception___hyg_42_);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__1);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__2);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__3);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__4);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__5);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__6);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__7);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__8);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__1);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__2);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__3);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__4);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__5);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__6);
|
||||
l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7 = _init_l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Exception___hyg_334____closed__7);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
586
stage0/stdlib/Lean/Parser/Do.c
generated
586
stage0/stdlib/Lean/Parser/Do.c
generated
|
|
@ -24,6 +24,7 @@ extern lean_object* l_Lean_Parser_Term_tupleTail_parenthesizer___closed__2;
|
|||
lean_object* l_Lean_Parser_Term_liftMethod_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_doSeqBracketed_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_doIf_parenthesizer___closed__9;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_doCatch___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__8;
|
||||
extern lean_object* l_Lean_Parser_Term_letIdDecl;
|
||||
|
|
@ -165,6 +166,7 @@ lean_object* l_Lean_Parser_Term_doAssert_formatter___closed__1;
|
|||
lean_object* l_Lean_Parser_Term_doIf___closed__21;
|
||||
lean_object* l_Lean_Parser_Term_doTry___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_doElem_quot___elambda__1___closed__6;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__5;
|
||||
lean_object* l_Lean_Parser_Term_doReturn___closed__1;
|
||||
lean_object* l_Lean_Parser_ParserState_pushSyntax(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_doMatchAlts___closed__8;
|
||||
|
|
@ -212,7 +214,6 @@ lean_object* l_Lean_Parser_Term_doPatDecl_parenthesizer___closed__7;
|
|||
lean_object* l_Lean_Parser_Term_doIdDecl___closed__5;
|
||||
extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__6;
|
||||
extern lean_object* l_Lean_Parser_Term_if_parenthesizer___closed__5;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_doMatchAlt___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doBreak_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__2;
|
||||
|
|
@ -268,6 +269,7 @@ lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Parser_Term_doFinally___closed__6;
|
||||
lean_object* l_Lean_Parser_Term_doIf___closed__1;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_toggleInsideQuot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
lean_object* l_Lean_Parser_Term_doCatchMatch___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_doAssert___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doMatch_formatter___closed__2;
|
||||
|
|
@ -343,7 +345,6 @@ lean_object* l_Lean_Parser_Term_doReassign___elambda__1___closed__3;
|
|||
lean_object* l_Lean_Parser_Term_doIf___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_doLetArrow_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_doUnless___elambda__1___closed__2;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace___closed__2;
|
||||
lean_object* l_Lean_PrettyPrinter_Formatter_optional_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_doSeqIndent___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_doReturn_formatter___closed__1;
|
||||
|
|
@ -610,6 +611,7 @@ lean_object* l_Lean_Parser_Term_doUnless___elambda__1___closed__6;
|
|||
lean_object* l_Lean_Parser_Term_doLetArrow___closed__3;
|
||||
extern lean_object* l_Lean_Parser_Term_letrec_parenthesizer___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_doMatchAlt___closed__3;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Term_doContinue___closed__6;
|
||||
extern lean_object* l_Lean_PrettyPrinter_formatterAttribute;
|
||||
lean_object* l_Lean_Parser_Term_doMatchAlts_formatter___closed__2;
|
||||
|
|
@ -1081,7 +1083,6 @@ lean_object* l_Lean_Parser_Term_doMatchAlt___elambda__1___closed__4;
|
|||
lean_object* l_Lean_Parser_Term_doIdDecl___closed__6;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Term_doLetArrow_formatter(lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Term_doFinally_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_doCatchMatch_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Term_doFinally___elambda__1___closed__4;
|
||||
|
|
@ -1116,6 +1117,7 @@ lean_object* l_Lean_Parser_Term_doPatDecl___elambda__1___closed__8;
|
|||
lean_object* l___regBuiltin_Lean_Parser_Term_doIf_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_ParserState_mkUnexpectedError(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_doCatchMatch_parenthesizer___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Term_dbgTrace___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_doFinally___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Term_doSeqBracketed___closed__7;
|
||||
lean_object* l_Lean_Parser_Term_doSeqBracketed_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -25504,269 +25506,387 @@ return x_4;
|
|||
lean_object* l_Lean_Parser_Term_doDbgTrace___elambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint8_t x_5;
|
||||
x_3 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__4;
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
x_3 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__7;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
x_5 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__4;
|
||||
x_6 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Parser_tryAnti(x_1, x_2);
|
||||
if (x_5 == 0)
|
||||
x_7 = l_Lean_Parser_tryAnti(x_1, x_2);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
lean_dec(x_4);
|
||||
x_6 = l_Lean_Parser_leadPrec;
|
||||
x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2);
|
||||
x_8 = lean_ctor_get(x_7, 3);
|
||||
lean_inc(x_8);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_6);
|
||||
x_8 = l_Lean_Parser_leadPrec;
|
||||
x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2);
|
||||
x_10 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_10);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_array_get_size(x_9);
|
||||
lean_dec(x_9);
|
||||
x_21 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_21);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_11 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_array_get_size(x_11);
|
||||
lean_dec(x_11);
|
||||
x_38 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_1);
|
||||
x_22 = l_Lean_Parser_tokenFn(x_1, x_7);
|
||||
x_23 = lean_ctor_get(x_22, 3);
|
||||
lean_inc(x_23);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_24);
|
||||
lean_dec(x_24);
|
||||
if (lean_obj_tag(x_25) == 2)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_26 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_25);
|
||||
x_27 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__6;
|
||||
x_28 = lean_string_dec_eq(x_26, x_27);
|
||||
lean_dec(x_26);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_29, x_21);
|
||||
x_11 = x_30;
|
||||
goto block_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_21);
|
||||
x_11 = x_22;
|
||||
goto block_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_25);
|
||||
x_31 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_31, x_21);
|
||||
x_11 = x_32;
|
||||
goto block_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34;
|
||||
lean_dec(x_23);
|
||||
x_33 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_33, x_21);
|
||||
x_11 = x_34;
|
||||
goto block_20;
|
||||
}
|
||||
block_20:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = lean_ctor_get(x_11, 3);
|
||||
lean_inc(x_12);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_13 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_14 = lean_unsigned_to_nat(0u);
|
||||
x_15 = l_Lean_Parser_categoryParser___elambda__1(x_13, x_14, x_1, x_11);
|
||||
x_16 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_17 = l_Lean_Parser_ParserState_mkNode(x_15, x_16, x_10);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_1);
|
||||
x_18 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_19 = l_Lean_Parser_ParserState_mkNode(x_11, x_18, x_10);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
x_35 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_array_get_size(x_35);
|
||||
lean_dec(x_35);
|
||||
x_37 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_37);
|
||||
lean_inc(x_1);
|
||||
x_38 = lean_apply_2(x_4, x_1, x_2);
|
||||
x_39 = lean_ctor_get(x_38, 3);
|
||||
lean_inc(x_39);
|
||||
if (lean_obj_tag(x_39) == 0)
|
||||
{
|
||||
lean_dec(x_37);
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_1);
|
||||
return x_38;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; uint8_t x_42;
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
x_39 = l_Lean_Parser_tokenFn(x_1, x_9);
|
||||
x_40 = lean_ctor_get(x_39, 3);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_39);
|
||||
x_41 = lean_ctor_get(x_38, 1);
|
||||
if (lean_obj_tag(x_40) == 0)
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42;
|
||||
x_41 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_nat_dec_eq(x_41, x_37);
|
||||
x_42 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_41);
|
||||
lean_dec(x_41);
|
||||
if (x_42 == 0)
|
||||
if (lean_obj_tag(x_42) == 2)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; uint8_t x_45;
|
||||
x_43 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_42);
|
||||
x_44 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__6;
|
||||
x_45 = lean_string_dec_eq(x_43, x_44);
|
||||
lean_dec(x_43);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47;
|
||||
x_46 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_47 = l_Lean_Parser_ParserState_mkErrorsAt(x_39, x_46, x_38);
|
||||
x_13 = x_47;
|
||||
goto block_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_38);
|
||||
x_13 = x_39;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49;
|
||||
lean_dec(x_42);
|
||||
x_48 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_49 = l_Lean_Parser_ParserState_mkErrorsAt(x_39, x_48, x_38);
|
||||
x_13 = x_49;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51;
|
||||
lean_dec(x_40);
|
||||
lean_dec(x_37);
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_1);
|
||||
return x_38;
|
||||
x_50 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_51 = l_Lean_Parser_ParserState_mkErrorsAt(x_39, x_50, x_38);
|
||||
x_13 = x_51;
|
||||
goto block_37;
|
||||
}
|
||||
else
|
||||
block_37:
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
lean_inc(x_37);
|
||||
x_43 = l_Lean_Parser_ParserState_restore(x_38, x_36, x_37);
|
||||
lean_dec(x_36);
|
||||
x_44 = l_Lean_Parser_leadPrec;
|
||||
x_45 = l_Lean_Parser_checkPrecFn(x_44, x_1, x_43);
|
||||
x_46 = lean_ctor_get(x_45, 3);
|
||||
lean_inc(x_46);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_13, 3);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_47 = lean_ctor_get(x_45, 0);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_array_get_size(x_47);
|
||||
lean_dec(x_47);
|
||||
x_63 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_63);
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_array_get_size(x_15);
|
||||
lean_dec(x_15);
|
||||
x_17 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_1);
|
||||
x_64 = l_Lean_Parser_tokenFn(x_1, x_45);
|
||||
x_65 = lean_ctor_get(x_64, 3);
|
||||
lean_inc(x_65);
|
||||
if (lean_obj_tag(x_65) == 0)
|
||||
x_18 = lean_apply_2(x_4, x_1, x_13);
|
||||
x_19 = lean_ctor_get(x_18, 3);
|
||||
lean_inc(x_19);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67;
|
||||
x_66 = lean_ctor_get(x_64, 0);
|
||||
lean_inc(x_66);
|
||||
x_67 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_66);
|
||||
lean_dec(x_66);
|
||||
if (lean_obj_tag(x_67) == 2)
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_1);
|
||||
x_20 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_21 = l_Lean_Parser_ParserState_mkNode(x_18, x_20, x_12);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; uint8_t x_70;
|
||||
x_68 = lean_ctor_get(x_67, 1);
|
||||
lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_22 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_19);
|
||||
x_23 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_nat_dec_eq(x_23, x_17);
|
||||
lean_dec(x_23);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_1);
|
||||
x_25 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_26 = l_Lean_Parser_ParserState_mkNode(x_18, x_25, x_12);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
lean_inc(x_17);
|
||||
x_27 = l_Lean_Parser_ParserState_restore(x_18, x_16, x_17);
|
||||
lean_dec(x_16);
|
||||
x_28 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_29 = lean_unsigned_to_nat(0u);
|
||||
x_30 = l_Lean_Parser_categoryParser___elambda__1(x_28, x_29, x_1, x_27);
|
||||
x_31 = 1;
|
||||
x_32 = l_Lean_Parser_mergeOrElseErrors(x_30, x_22, x_17, x_31);
|
||||
lean_dec(x_17);
|
||||
x_33 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_12);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_35 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_36 = l_Lean_Parser_ParserState_mkNode(x_13, x_35, x_12);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_52 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_array_get_size(x_52);
|
||||
lean_dec(x_52);
|
||||
x_54 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_54);
|
||||
lean_inc(x_1);
|
||||
x_55 = lean_apply_2(x_6, x_1, x_2);
|
||||
x_56 = lean_ctor_get(x_55, 3);
|
||||
lean_inc(x_56);
|
||||
if (lean_obj_tag(x_56) == 0)
|
||||
{
|
||||
lean_dec(x_54);
|
||||
lean_dec(x_53);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; uint8_t x_59;
|
||||
x_57 = lean_ctor_get(x_56, 0);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_56);
|
||||
x_58 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_58);
|
||||
x_59 = lean_nat_dec_eq(x_58, x_54);
|
||||
lean_dec(x_58);
|
||||
if (x_59 == 0)
|
||||
{
|
||||
lean_dec(x_57);
|
||||
lean_dec(x_54);
|
||||
lean_dec(x_53);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63;
|
||||
lean_inc(x_54);
|
||||
x_60 = l_Lean_Parser_ParserState_restore(x_55, x_53, x_54);
|
||||
lean_dec(x_53);
|
||||
x_61 = l_Lean_Parser_leadPrec;
|
||||
x_62 = l_Lean_Parser_checkPrecFn(x_61, x_1, x_60);
|
||||
x_63 = lean_ctor_get(x_62, 3);
|
||||
lean_inc(x_63);
|
||||
if (lean_obj_tag(x_63) == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_64 = lean_ctor_get(x_62, 0);
|
||||
lean_inc(x_64);
|
||||
x_65 = lean_array_get_size(x_64);
|
||||
lean_dec(x_64);
|
||||
x_98 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_1);
|
||||
x_99 = l_Lean_Parser_tokenFn(x_1, x_62);
|
||||
x_100 = lean_ctor_get(x_99, 3);
|
||||
lean_inc(x_100);
|
||||
if (lean_obj_tag(x_100) == 0)
|
||||
{
|
||||
lean_object* x_101; lean_object* x_102;
|
||||
x_101 = lean_ctor_get(x_99, 0);
|
||||
lean_inc(x_101);
|
||||
x_102 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_101);
|
||||
lean_dec(x_101);
|
||||
if (lean_obj_tag(x_102) == 2)
|
||||
{
|
||||
lean_object* x_103; lean_object* x_104; uint8_t x_105;
|
||||
x_103 = lean_ctor_get(x_102, 1);
|
||||
lean_inc(x_103);
|
||||
lean_dec(x_102);
|
||||
x_104 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__6;
|
||||
x_105 = lean_string_dec_eq(x_103, x_104);
|
||||
lean_dec(x_103);
|
||||
if (x_105 == 0)
|
||||
{
|
||||
lean_object* x_106; lean_object* x_107;
|
||||
x_106 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_107 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_106, x_98);
|
||||
x_66 = x_107;
|
||||
goto block_97;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_98);
|
||||
x_66 = x_99;
|
||||
goto block_97;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_108; lean_object* x_109;
|
||||
lean_dec(x_102);
|
||||
x_108 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_109 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_108, x_98);
|
||||
x_66 = x_109;
|
||||
goto block_97;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_110; lean_object* x_111;
|
||||
lean_dec(x_100);
|
||||
x_110 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10;
|
||||
x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_110, x_98);
|
||||
x_66 = x_111;
|
||||
goto block_97;
|
||||
}
|
||||
block_97:
|
||||
{
|
||||
lean_object* x_67;
|
||||
x_67 = lean_ctor_get(x_66, 3);
|
||||
lean_inc(x_67);
|
||||
if (lean_obj_tag(x_67) == 0)
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_68 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
x_69 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__6;
|
||||
x_70 = lean_string_dec_eq(x_68, x_69);
|
||||
x_69 = lean_array_get_size(x_68);
|
||||
lean_dec(x_68);
|
||||
if (x_70 == 0)
|
||||
x_70 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_1);
|
||||
x_71 = lean_apply_2(x_4, x_1, x_66);
|
||||
x_72 = lean_ctor_get(x_71, 3);
|
||||
lean_inc(x_72);
|
||||
if (lean_obj_tag(x_72) == 0)
|
||||
{
|
||||
lean_object* x_71; lean_object* x_72;
|
||||
x_71 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_71, x_63);
|
||||
x_49 = x_72;
|
||||
goto block_62;
|
||||
lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76;
|
||||
lean_dec(x_70);
|
||||
lean_dec(x_69);
|
||||
lean_dec(x_1);
|
||||
x_73 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_74 = l_Lean_Parser_ParserState_mkNode(x_71, x_73, x_65);
|
||||
x_75 = 1;
|
||||
x_76 = l_Lean_Parser_mergeOrElseErrors(x_74, x_57, x_54, x_75);
|
||||
lean_dec(x_54);
|
||||
return x_76;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_63);
|
||||
x_49 = x_64;
|
||||
goto block_62;
|
||||
lean_object* x_77; lean_object* x_78; uint8_t x_79;
|
||||
x_77 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_77);
|
||||
lean_dec(x_72);
|
||||
x_78 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_78);
|
||||
x_79 = lean_nat_dec_eq(x_78, x_70);
|
||||
lean_dec(x_78);
|
||||
if (x_79 == 0)
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83;
|
||||
lean_dec(x_77);
|
||||
lean_dec(x_70);
|
||||
lean_dec(x_69);
|
||||
lean_dec(x_1);
|
||||
x_80 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_81 = l_Lean_Parser_ParserState_mkNode(x_71, x_80, x_65);
|
||||
x_82 = 1;
|
||||
x_83 = l_Lean_Parser_mergeOrElseErrors(x_81, x_57, x_54, x_82);
|
||||
lean_dec(x_54);
|
||||
return x_83;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
lean_inc(x_70);
|
||||
x_84 = l_Lean_Parser_ParserState_restore(x_71, x_69, x_70);
|
||||
lean_dec(x_69);
|
||||
x_85 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_86 = lean_unsigned_to_nat(0u);
|
||||
x_87 = l_Lean_Parser_categoryParser___elambda__1(x_85, x_86, x_1, x_84);
|
||||
x_88 = 1;
|
||||
x_89 = l_Lean_Parser_mergeOrElseErrors(x_87, x_77, x_70, x_88);
|
||||
lean_dec(x_70);
|
||||
x_90 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_91 = l_Lean_Parser_ParserState_mkNode(x_89, x_90, x_65);
|
||||
x_92 = l_Lean_Parser_mergeOrElseErrors(x_91, x_57, x_54, x_88);
|
||||
lean_dec(x_54);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74;
|
||||
lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96;
|
||||
lean_dec(x_67);
|
||||
x_73 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_74 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_73, x_63);
|
||||
x_49 = x_74;
|
||||
goto block_62;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_75; lean_object* x_76;
|
||||
lean_dec(x_65);
|
||||
x_75 = l_Lean_Parser_Term_dbgTrace___elambda__1___closed__9;
|
||||
x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_75, x_63);
|
||||
x_49 = x_76;
|
||||
goto block_62;
|
||||
}
|
||||
block_62:
|
||||
{
|
||||
lean_object* x_50;
|
||||
x_50 = lean_ctor_get(x_49, 3);
|
||||
lean_inc(x_50);
|
||||
if (lean_obj_tag(x_50) == 0)
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57;
|
||||
x_51 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_52 = lean_unsigned_to_nat(0u);
|
||||
x_53 = l_Lean_Parser_categoryParser___elambda__1(x_51, x_52, x_1, x_49);
|
||||
x_54 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_55 = l_Lean_Parser_ParserState_mkNode(x_53, x_54, x_48);
|
||||
x_56 = 1;
|
||||
x_57 = l_Lean_Parser_mergeOrElseErrors(x_55, x_40, x_37, x_56);
|
||||
lean_dec(x_37);
|
||||
return x_57;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61;
|
||||
lean_dec(x_50);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_58 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_59 = l_Lean_Parser_ParserState_mkNode(x_49, x_58, x_48);
|
||||
x_60 = 1;
|
||||
x_61 = l_Lean_Parser_mergeOrElseErrors(x_59, x_40, x_37, x_60);
|
||||
lean_dec(x_37);
|
||||
return x_61;
|
||||
x_93 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_94 = l_Lean_Parser_ParserState_mkNode(x_66, x_93, x_65);
|
||||
x_95 = 1;
|
||||
x_96 = l_Lean_Parser_mergeOrElseErrors(x_94, x_57, x_54, x_95);
|
||||
lean_dec(x_54);
|
||||
return x_96;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_77; lean_object* x_78;
|
||||
lean_dec(x_46);
|
||||
uint8_t x_112; lean_object* x_113;
|
||||
lean_dec(x_63);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_77 = 1;
|
||||
x_78 = l_Lean_Parser_mergeOrElseErrors(x_45, x_40, x_37, x_77);
|
||||
lean_dec(x_37);
|
||||
return x_78;
|
||||
x_112 = 1;
|
||||
x_113 = l_Lean_Parser_mergeOrElseErrors(x_62, x_57, x_54, x_112);
|
||||
lean_dec(x_54);
|
||||
return x_113;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -25778,7 +25898,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_dbgTrace___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_dbgTrace___closed__3;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -25867,7 +25987,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_leadPrec;
|
||||
x_3 = l_Lean_Parser_Term_dbgTrace_formatter___closed__3;
|
||||
x_3 = l_Lean_Parser_Term_dbgTrace_formatter___closed__5;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
lean_closure_set(x_4, 0, x_1);
|
||||
lean_closure_set(x_4, 1, x_2);
|
||||
|
|
@ -25923,7 +26043,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_doDbgTrace___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_leadPrec;
|
||||
x_3 = l_Lean_Parser_Term_typeAscription_parenthesizer___closed__2;
|
||||
x_3 = l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3);
|
||||
lean_closure_set(x_4, 0, x_1);
|
||||
lean_closure_set(x_4, 1, x_2);
|
||||
|
|
|
|||
53
stage0/stdlib/Lean/Parser/StrInterpolation.c
generated
53
stage0/stdlib/Lean/Parser/StrInterpolation.c
generated
|
|
@ -14,6 +14,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_Lean_Parser_quotedCharCoreFn___at_Lean_Parser_interpolatedStrFn_parse___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Parser_isQuotableCharDefault(uint32_t);
|
||||
lean_object* l_Lean_Parser_ParserState_next(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_interpolatedStrNoAntiquot___closed__1;
|
||||
|
|
@ -26,6 +27,7 @@ lean_object* lean_string_utf8_next(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Parser_interpolatedStr___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_interpolatedStr___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_ParserState_setPos(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_interpolatedStrFn___closed__1;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_interpolatedStrFn_parse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_interpolatedStrFn_parse___closed__1;
|
||||
|
|
@ -470,6 +472,14 @@ lean_dec(x_2);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_interpolatedStrFn___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("interpolated string");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_interpolatedStrFn(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -488,23 +498,42 @@ lean_inc(x_8);
|
|||
x_9 = lean_string_utf8_at_end(x_5, x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11;
|
||||
x_10 = l_Lean_Parser_ParserState_next(x_3, x_5, x_8);
|
||||
x_11 = l_Lean_Parser_interpolatedStrFn_parse(x_1, x_5, x_7, x_8, x_2, x_10);
|
||||
lean_dec(x_5);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
uint32_t x_10; uint32_t x_11; uint8_t x_12;
|
||||
x_10 = lean_string_utf8_get(x_5, x_8);
|
||||
x_11 = 34;
|
||||
x_12 = x_10 == x_11;
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = l_Lean_Parser_ParserState_mkEOIError___closed__1;
|
||||
x_13 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_12);
|
||||
return x_13;
|
||||
x_13 = l_Lean_Parser_interpolatedStrFn___closed__1;
|
||||
x_14 = l_Lean_Parser_ParserState_mkError(x_3, x_13);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = l_Lean_Parser_ParserState_next(x_3, x_5, x_8);
|
||||
x_16 = l_Lean_Parser_interpolatedStrFn_parse(x_1, x_5, x_7, x_8, x_2, x_15);
|
||||
lean_dec(x_5);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_17 = l_Lean_Parser_ParserState_mkEOIError___closed__1;
|
||||
x_18 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -680,6 +709,8 @@ if (lean_io_result_is_error(res)) return res;
|
|||
lean_dec_ref(res);
|
||||
l_Lean_Parser_interpolatedStrFn_parse___closed__1 = _init_l_Lean_Parser_interpolatedStrFn_parse___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_interpolatedStrFn_parse___closed__1);
|
||||
l_Lean_Parser_interpolatedStrFn___closed__1 = _init_l_Lean_Parser_interpolatedStrFn___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_interpolatedStrFn___closed__1);
|
||||
l_Lean_Parser_interpolatedStrNoAntiquot___closed__1 = _init_l_Lean_Parser_interpolatedStrNoAntiquot___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_interpolatedStrNoAntiquot___closed__1);
|
||||
l_Lean_Parser_interpolatedStrNoAntiquot___closed__2 = _init_l_Lean_Parser_interpolatedStrNoAntiquot___closed__2();
|
||||
|
|
|
|||
1343
stage0/stdlib/Lean/Parser/Term.c
generated
1343
stage0/stdlib/Lean/Parser/Term.c
generated
File diff suppressed because it is too large
Load diff
273
stage0/stdlib/Lean/Util/Trace.c
generated
273
stage0/stdlib/Lean/Util/Trace.c
generated
|
|
@ -16,14 +16,15 @@ extern "C" {
|
|||
extern lean_object* l_Lean_mkHole___closed__3;
|
||||
lean_object* lean_string_push(lean_object*, uint32_t);
|
||||
lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_printTraces___spec__3(lean_object*);
|
||||
extern lean_object* l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9;
|
||||
lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__6___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_isTracingEnabledFor___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__5;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3;
|
||||
lean_object* l_Lean_MessageData_format(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Format_pretty(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_printTraces___rarg(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass___closed__1;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__1;
|
||||
lean_object* l___private_Lean_Util_Trace_4__addNode___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -48,8 +49,8 @@ lean_object* l_Lean_traceCtx___rarg___lambda__8(lean_object*, lean_object*, lean
|
|||
lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2(lean_object*, size_t, size_t);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
lean_object* l___private_Lean_Util_Trace_5__getResetTraces___rarg___lambda__1(lean_object*);
|
||||
extern lean_object* l_Lean_interpolatedStrKind;
|
||||
lean_object* l_Lean_getTraces(lean_object*);
|
||||
lean_object* l_Lean_isTracingEnabledFor___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -70,6 +71,7 @@ lean_object* l_Lean_trace(lean_object*);
|
|||
lean_object* l_Lean_monadTraceTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__16;
|
||||
lean_object* l_Lean_setTraceState(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5;
|
||||
uint8_t l___private_Lean_Util_Trace_2__checkTraceOptionAux(lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__3;
|
||||
lean_object* l_Lean_traceM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
|
|
@ -94,13 +96,11 @@ uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
|
|||
lean_object* l_Std_PersistentArray_forM___at_Lean_printTraces___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__7;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2;
|
||||
lean_object* l_Lean_enableTracing___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass___closed__2;
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12;
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_monadTraceTrans(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_traceM(lean_object*);
|
||||
|
|
@ -114,7 +114,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_isTracingEnabledFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_resetTraceState___rarg(lean_object*);
|
||||
size_t l_USize_shiftLeft(size_t, size_t);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1;
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__10;
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -132,6 +131,7 @@ lean_object* l_Lean_addTrace___rarg___lambda__2(lean_object*, lean_object*, lean
|
|||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1;
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7;
|
||||
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__13;
|
||||
lean_object* l_Lean_modifyTraces___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -163,9 +163,11 @@ lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__5___rarg___lam
|
|||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__15;
|
||||
lean_object* l_Std_PersistentArray_getAux___main___at___private_Lean_Util_Trace_1__toFormat___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3;
|
||||
extern lean_object* l_Lean_SourceInfo_inhabited___closed__1;
|
||||
lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l_Lean_traceElem_inhabited;
|
||||
lean_object* l_Lean_traceCtx___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_traceCtx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -212,7 +214,7 @@ extern lean_object* l_Lean_mkHole___closed__2;
|
|||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__1;
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45_(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355_(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362_(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__5;
|
||||
|
|
@ -221,6 +223,7 @@ lean_object* l_Lean_printTraces___rarg___lambda__1(lean_object*, lean_object*, l
|
|||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__2;
|
||||
lean_object* l_Lean_getTraces___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1;
|
||||
lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__6;
|
||||
lean_object* l_Lean_trace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_Monad___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -229,9 +232,11 @@ lean_object* l_Lean_traceCtx___rarg___lambda__1(lean_object*);
|
|||
uint8_t l_List_isEmpty___rarg(lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_usize_to_nat(size_t);
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2;
|
||||
lean_object* l_Array_forMAux___main___at_Lean_printTraces___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__8;
|
||||
lean_object* l_Lean_getTraces___rarg___lambda__1(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4;
|
||||
extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
lean_object* l_Lean_traceCtx___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
extern lean_object* l_Lean_mkAppStx___closed__2;
|
||||
|
|
@ -2373,9 +2378,9 @@ static lean_object* _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = lean_alloc_ctor(20, 2, 0);
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__8;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_42____closed__4;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -2385,8 +2390,8 @@ static lean_object* _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__8;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__9;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__9;
|
||||
x_2 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -2396,22 +2401,10 @@ return x_3;
|
|||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__10;
|
||||
x_2 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__6;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11;
|
||||
x_3 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__10;
|
||||
x_4 = lean_alloc_ctor(9, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
|
|
@ -2423,7 +2416,7 @@ static lean_object* _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3_() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -2841,7 +2834,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__7;
|
||||
x_2 = l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__18;
|
||||
x_2 = l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__7;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -2870,7 +2863,7 @@ x_1 = l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__9;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1() {
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -2878,22 +2871,22 @@ x_1 = lean_mk_string("Lean.trace");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2() {
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1;
|
||||
x_2 = lean_string_utf8_byte_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3() {
|
||||
static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1;
|
||||
x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2;
|
||||
x_3 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
|
|
@ -2901,7 +2894,7 @@ lean_ctor_set(x_4, 2, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
|
|
@ -2941,87 +2934,147 @@ return x_13;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
x_16 = lean_unsigned_to_nat(3u);
|
||||
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_17);
|
||||
x_18 = l_Lean_Syntax_getKind(x_17);
|
||||
x_19 = l_Lean_interpolatedStrKind;
|
||||
x_20 = lean_name_eq(x_18, x_19);
|
||||
lean_dec(x_18);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
x_21 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_2);
|
||||
x_20 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__3;
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_19);
|
||||
x_21 = l_Lean_addMacroScope(x_19, x_20, x_18);
|
||||
x_22 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_23 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3;
|
||||
x_24 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__5;
|
||||
x_25 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_25, 0, x_22);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
lean_ctor_set(x_25, 2, x_21);
|
||||
lean_ctor_set(x_25, 3, x_24);
|
||||
x_26 = l_Array_empty___closed__1;
|
||||
x_27 = lean_array_push(x_26, x_25);
|
||||
x_28 = l_Lean_Syntax_getId(x_15);
|
||||
x_23 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__3;
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_22);
|
||||
x_24 = l_Lean_addMacroScope(x_22, x_23, x_21);
|
||||
x_25 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_26 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3;
|
||||
x_27 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__5;
|
||||
x_28 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_28, 0, x_25);
|
||||
lean_ctor_set(x_28, 1, x_26);
|
||||
lean_ctor_set(x_28, 2, x_24);
|
||||
lean_ctor_set(x_28, 3, x_27);
|
||||
x_29 = l_Array_empty___closed__1;
|
||||
x_30 = lean_array_push(x_29, x_28);
|
||||
x_31 = l_Lean_Syntax_getId(x_15);
|
||||
lean_dec(x_15);
|
||||
x_29 = l___private_Init_LeanInit_13__quoteName___main(x_28);
|
||||
x_30 = lean_array_push(x_26, x_29);
|
||||
x_31 = lean_array_push(x_26, x_17);
|
||||
x_32 = l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__5;
|
||||
x_33 = l_Lean_addMacroScope(x_19, x_32, x_18);
|
||||
x_34 = l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__4;
|
||||
x_35 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__20;
|
||||
x_36 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_36, 0, x_22);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
lean_ctor_set(x_36, 2, x_33);
|
||||
lean_ctor_set(x_36, 3, x_35);
|
||||
x_37 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22;
|
||||
x_38 = lean_array_push(x_37, x_36);
|
||||
x_39 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__8;
|
||||
x_40 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
lean_ctor_set(x_40, 1, x_38);
|
||||
x_41 = lean_array_push(x_26, x_40);
|
||||
x_42 = l_Lean_nullKind___closed__2;
|
||||
x_32 = l___private_Init_LeanInit_13__quoteName___main(x_31);
|
||||
x_33 = lean_array_push(x_29, x_32);
|
||||
x_34 = lean_array_push(x_29, x_17);
|
||||
x_35 = l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__5;
|
||||
x_36 = l_Lean_addMacroScope(x_22, x_35, x_21);
|
||||
x_37 = l_Lean_myMacro____x40_Lean_Message___hyg_158____closed__4;
|
||||
x_38 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__20;
|
||||
x_39 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_39, 0, x_25);
|
||||
lean_ctor_set(x_39, 1, x_37);
|
||||
lean_ctor_set(x_39, 2, x_36);
|
||||
lean_ctor_set(x_39, 3, x_38);
|
||||
x_40 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22;
|
||||
x_41 = lean_array_push(x_40, x_39);
|
||||
x_42 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__8;
|
||||
x_43 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
lean_ctor_set(x_43, 1, x_41);
|
||||
x_44 = lean_array_push(x_31, x_43);
|
||||
x_45 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_42);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
x_46 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_47 = lean_array_push(x_46, x_45);
|
||||
x_48 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_49 = lean_array_push(x_47, x_48);
|
||||
x_50 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
x_52 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_53 = lean_array_push(x_52, x_51);
|
||||
x_54 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_55 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
lean_ctor_set(x_55, 1, x_53);
|
||||
x_56 = lean_array_push(x_30, x_55);
|
||||
x_57 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_57, 0, x_42);
|
||||
lean_ctor_set(x_57, 1, x_56);
|
||||
x_58 = lean_array_push(x_27, x_57);
|
||||
x_59 = l_Lean_mkAppStx___closed__8;
|
||||
x_44 = lean_array_push(x_29, x_43);
|
||||
x_45 = l_Lean_nullKind___closed__2;
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
lean_ctor_set(x_46, 1, x_44);
|
||||
x_47 = lean_array_push(x_34, x_46);
|
||||
x_48 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_45);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
x_49 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6;
|
||||
x_50 = lean_array_push(x_49, x_48);
|
||||
x_51 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15;
|
||||
x_52 = lean_array_push(x_50, x_51);
|
||||
x_53 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4;
|
||||
x_54 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_54, 0, x_53);
|
||||
lean_ctor_set(x_54, 1, x_52);
|
||||
x_55 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_56 = lean_array_push(x_55, x_54);
|
||||
x_57 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_57);
|
||||
lean_ctor_set(x_58, 1, x_56);
|
||||
x_59 = lean_array_push(x_33, x_58);
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_3);
|
||||
return x_61;
|
||||
lean_ctor_set(x_60, 0, x_45);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
x_61 = lean_array_push(x_30, x_60);
|
||||
x_62 = l_Lean_mkAppStx___closed__8;
|
||||
x_63 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_61);
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_3);
|
||||
return x_64;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_65 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_65);
|
||||
x_66 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_2);
|
||||
x_67 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__3;
|
||||
x_68 = l_Lean_addMacroScope(x_66, x_67, x_65);
|
||||
x_69 = l_Lean_SourceInfo_inhabited___closed__1;
|
||||
x_70 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3;
|
||||
x_71 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__5;
|
||||
x_72 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_72, 0, x_69);
|
||||
lean_ctor_set(x_72, 1, x_70);
|
||||
lean_ctor_set(x_72, 2, x_68);
|
||||
lean_ctor_set(x_72, 3, x_71);
|
||||
x_73 = l_Array_empty___closed__1;
|
||||
x_74 = lean_array_push(x_73, x_72);
|
||||
x_75 = l_Lean_Syntax_getId(x_15);
|
||||
lean_dec(x_15);
|
||||
x_76 = l___private_Init_LeanInit_13__quoteName___main(x_75);
|
||||
x_77 = lean_array_push(x_73, x_76);
|
||||
x_78 = l_Lean_myMacro____x40_Lean_Exception___hyg_87____closed__9;
|
||||
x_79 = lean_array_push(x_78, x_17);
|
||||
x_80 = l_Lean___kind_term____x40_Lean_Message___hyg_125____closed__5;
|
||||
x_81 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
lean_ctor_set(x_81, 1, x_79);
|
||||
x_82 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__18;
|
||||
x_83 = lean_array_push(x_82, x_81);
|
||||
x_84 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7;
|
||||
x_85 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_83);
|
||||
x_86 = lean_array_push(x_77, x_85);
|
||||
x_87 = l_Lean_nullKind___closed__2;
|
||||
x_88 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
lean_ctor_set(x_88, 1, x_86);
|
||||
x_89 = lean_array_push(x_74, x_88);
|
||||
x_90 = l_Lean_mkAppStx___closed__8;
|
||||
x_91 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_91, 0, x_90);
|
||||
lean_ctor_set(x_91, 1, x_89);
|
||||
x_92 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_92, 0, x_91);
|
||||
lean_ctor_set(x_92, 1, x_3);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3087,8 +3140,6 @@ l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__10 = _init_l_Lean__
|
|||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__10);
|
||||
l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11 = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__11);
|
||||
l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12 = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed__12);
|
||||
l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3_ = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3_();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3_);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__1 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__1();
|
||||
|
|
@ -3151,12 +3202,12 @@ l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__9 = _init_l_Lean_
|
|||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316____closed__9);
|
||||
l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316_ = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316_();
|
||||
lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_316_);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__1);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__2);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_355____closed__3);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__1);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__2);
|
||||
l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3();
|
||||
lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_362____closed__3);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue