From fcd155931b0bbfa5aa5b9af3f05e0f9600a19863 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 29 Dec 2020 15:13:16 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/CMakeLists.txt | 2 +- stage0/src/Init/Meta.lean | 27 + stage0/src/Lean/Elab/Match.lean | 12 +- stage0/src/Lean/Meta/Match/Match.lean | 18 +- stage0/src/Lean/Meta/Tactic/Simp.lean | 4 +- stage0/src/Lean/Meta/Tactic/Simp/Main.lean | 11 + .../Simp/{Basic.lean => SimpLemmas.lean} | 0 stage0/src/Lean/Meta/Tactic/Simp/Types.lean | 58 + stage0/src/Lean/Parser/Term.lean | 2 + stage0/src/Leanpkg.lean | 135 + stage0/src/Leanpkg/.gitignore | 1 + stage0/src/Leanpkg/Git.lean | 41 + stage0/src/Leanpkg/LeanVersion.lean | 27 + stage0/src/Leanpkg/Manifest.lean | 85 + stage0/src/Leanpkg/Proc.lean | 20 + stage0/src/Leanpkg/Resolve.lean | 91 + stage0/src/Leanpkg/Toml.lean | 72 + stage0/src/config.h.in | 2 + stage0/src/lean.mk.in | 2 +- stage0/src/library/util.cpp | 2 +- stage0/src/shell/CMakeLists.txt | 4 + stage0/src/stdlib.make.in | 2 + stage0/src/version.h.in | 2 + stage0/stdlib/CMakeLists.txt | 2 +- stage0/stdlib/Init/Meta.c | 190 +- stage0/stdlib/Lean/Elab/Declaration.c | 4 +- stage0/stdlib/Lean/Elab/Match.c | 732 ++-- stage0/stdlib/Lean/Meta/Match/Match.c | 3253 ++++++++++------- stage0/stdlib/Lean/Meta/Tactic/Simp.c | 14 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c | 33 + .../Tactic/Simp/{Basic.c => SimpLemmas.c} | 276 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c | 320 ++ stage0/stdlib/Lean/Parser/Term.c | 867 ++++- stage0/stdlib/Lean/Parser/Transform.c | 1586 ++++++++ stage0/stdlib/Leanpkg.c | 3160 ++++++++++++++++ stage0/stdlib/Leanpkg/Git.c | 629 ++++ stage0/stdlib/Leanpkg/LeanVersion.c | 384 ++ stage0/stdlib/Leanpkg/Manifest.c | 2307 ++++++++++++ stage0/stdlib/Leanpkg/Proc.c | 459 +++ stage0/stdlib/Leanpkg/Resolve.c | 2840 ++++++++++++++ stage0/stdlib/Leanpkg/Toml.c | 3196 ++++++++++++++++ 41 files changed, 18914 insertions(+), 1958 deletions(-) create mode 100644 stage0/src/Lean/Meta/Tactic/Simp/Main.lean rename stage0/src/Lean/Meta/Tactic/Simp/{Basic.lean => SimpLemmas.lean} (100%) create mode 100644 stage0/src/Lean/Meta/Tactic/Simp/Types.lean create mode 100644 stage0/src/Leanpkg.lean create mode 100644 stage0/src/Leanpkg/.gitignore create mode 100644 stage0/src/Leanpkg/Git.lean create mode 100644 stage0/src/Leanpkg/LeanVersion.lean create mode 100644 stage0/src/Leanpkg/Manifest.lean create mode 100644 stage0/src/Leanpkg/Proc.lean create mode 100644 stage0/src/Leanpkg/Resolve.lean create mode 100644 stage0/src/Leanpkg/Toml.lean create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c rename stage0/stdlib/Lean/Meta/Tactic/Simp/{Basic.c => SimpLemmas.c} (85%) create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c create mode 100644 stage0/stdlib/Lean/Parser/Transform.c create mode 100644 stage0/stdlib/Leanpkg.c create mode 100644 stage0/stdlib/Leanpkg/Git.c create mode 100644 stage0/stdlib/Leanpkg/LeanVersion.c create mode 100644 stage0/stdlib/Leanpkg/Manifest.c create mode 100644 stage0/stdlib/Leanpkg/Proc.c create mode 100644 stage0/stdlib/Leanpkg/Resolve.c create mode 100644 stage0/stdlib/Leanpkg/Toml.c diff --git a/stage0/src/CMakeLists.txt b/stage0/src/CMakeLists.txt index 6a26bafba7..93451d9789 100644 --- a/stage0/src/CMakeLists.txt +++ b/stage0/src/CMakeLists.txt @@ -373,7 +373,7 @@ endif() configure_file("${LEAN_SOURCE_DIR}/githash.h.in" "${LEAN_BINARY_DIR}/githash.h") # Version -configure_file("${LEAN_SOURCE_DIR}/version.h.in" "${LEAN_BINARY_DIR}/version.h") +configure_file("${LEAN_SOURCE_DIR}/version.h.in" "${LEAN_BINARY_DIR}/include/lean/version.h") if (${STAGE} EQUAL 0) set(LEAN_IS_STAGE0 "#define LEAN_IS_STAGE0 1") else() diff --git a/stage0/src/Init/Meta.lean b/stage0/src/Init/Meta.lean index 3d254a3de8..454b2cc4fb 100644 --- a/stage0/src/Init/Meta.lean +++ b/stage0/src/Init/Meta.lean @@ -9,6 +9,33 @@ prelude import Init.Data.Array.Basic namespace Lean + +@[extern c inline "lean_box(LEAN_VERSION_MAJOR)"] +private constant version.getMajor (u : Unit) : Nat +def version.major : Nat := version.getMajor () + +@[extern c inline "lean_box(LEAN_VERSION_MINOR)"] +private constant version.getMinor (u : Unit) : Nat +def version.minor : Nat := version.getMinor () + +@[extern c inline "lean_box(LEAN_VERSION_PATCH)"] +private constant version.getPatch (u : Unit) : Nat +def version.patch : Nat := version.getPatch () + +-- @[extern c inline "lean_mk_string(LEAN_GITHASH)"] +-- constant getGithash (u : Unit) : String +-- def githash : String := getGithash () + +@[extern c inline "LEAN_VERSION_IS_RELEASE"] +constant version.getIsRelease (u : Unit) : Bool +def version.isRelease : Bool := version.getIsRelease () + +/-- Additional version description like "nightly-2018-03-11" -/ +@[extern c inline "lean_mk_string(LEAN_SPECIAL_VERSION_DESC)"] +constant version.getSpecialDesc (u : Unit) : String +def version.specialDesc : String := version.getSpecialDesc () + + /- Valid identifier names -/ def isGreek (c : Char) : Bool := 0x391 ≤ c.val && c.val ≤ 0x3dd diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index a67512c3bd..1803cbfe5b 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -709,12 +709,16 @@ builtin_initialize def ignoreUnusedAlts (opts : Options) : Bool := opts.get `match.ignoreUnusedAlts false -def reportMatcherResultErrors (result : MatcherResult) : TermElabM Unit := do - -- TODO: improve error messages +def reportMatcherResultErrors (altLHSS : List AltLHS) (result : MatcherResult) : TermElabM Unit := do unless result.counterExamples.isEmpty do throwError! "missing cases:\n{Meta.Match.counterExamplesToMessageData result.counterExamples}" unless ignoreUnusedAlts (← getOptions) || result.unusedAltIdxs.isEmpty do - throwError! "unused alternatives: {result.unusedAltIdxs.map fun idx => s!"#{idx+1}"}" + let mut i := 0 + for alt in altLHSS do + if result.unusedAltIdxs.contains i then + withRef alt.ref do + logError "redundant alternative" + i := i + 1 private def elabMatchAux (discrStxs : Array Syntax) (altViews : Array MatchAltView) (matchOptType : Syntax) (expectedType : Expr) : TermElabM Expr := do @@ -760,7 +764,7 @@ private def elabMatchAux (discrStxs : Array Syntax) (altViews : Array MatchAltVi let matcherName ← mkAuxName `match let matcherResult ← mkMatcher matcherName matchType numDiscrs altLHSS let motive ← forallBoundedTelescope matchType numDiscrs fun xs matchType => mkLambdaFVars xs matchType - reportMatcherResultErrors matcherResult + reportMatcherResultErrors altLHSS matcherResult let r := mkApp matcherResult.matcher motive let r := mkAppN r discrs let r := mkAppN r rhss diff --git a/stage0/src/Lean/Meta/Match/Match.lean b/stage0/src/Lean/Meta/Match/Match.lean index d551ce2c0f..e7ca64f106 100644 --- a/stage0/src/Lean/Meta/Match/Match.lean +++ b/stage0/src/Lean/Meta/Match/Match.lean @@ -498,6 +498,21 @@ def isCurrVarInductive (p : Problem) : MetaM Bool := do let val? ← getInductiveVal? x pure val?.isSome +private def checkNextPatternTypes (p : Problem) : MetaM Unit := do + match p.vars with + | [] => return () + | x::_ => withGoalOf p do + for alt in p.alts do + withRef alt.ref do + match alt.patterns with + | [] => pure () + | p::_ => + let e ← p.toExpr + let xType ← inferType x + let eType ← inferType e + unless (← isDefEq xType eType) do + throwError! "pattern{indentExpr e}\n{← mkHasTypeButIsExpectedMsg eType xType}" + private partial def process (p : Problem) : StateRefT State MetaM Unit := withIncRecDepth do traceState p let isInductive ← liftM $ isCurrVarInductive p @@ -528,7 +543,8 @@ private partial def process (p : Problem) : StateRefT State MetaM Unit := withIn let ps ← processArrayLit p ps.forM process else - liftM $ throwNonSupported p + checkNextPatternTypes p + throwNonSupported p private def getUElimPos? (matcherLevels : List Level) (uElim : Level) : MetaM (Option Nat) := if uElim == levelZero then diff --git a/stage0/src/Lean/Meta/Tactic/Simp.lean b/stage0/src/Lean/Meta/Tactic/Simp.lean index 073a456f8d..96310b92c0 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp.lean @@ -3,4 +3,6 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -import Lean.Meta.Tactic.Simp.Basic +import Lean.Meta.Tactic.Simp.SimpLemmas +import Lean.Meta.Tactic.Simp.Types +import Lean.Meta.Tactic.Simp.Main diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean new file mode 100644 index 0000000000..4982960a2c --- /dev/null +++ b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean @@ -0,0 +1,11 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Meta.Tactic.Simp.Types + +namespace Lean.Meta.Simp + + +end Lean.Meta.Simp diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Basic.lean b/stage0/src/Lean/Meta/Tactic/Simp/SimpLemmas.lean similarity index 100% rename from stage0/src/Lean/Meta/Tactic/Simp/Basic.lean rename to stage0/src/Lean/Meta/Tactic/Simp/SimpLemmas.lean diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Types.lean b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean new file mode 100644 index 0000000000..154f597af9 --- /dev/null +++ b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Meta.Tactic.Simp.SimpLemmas + +namespace Lean.Meta +namespace Simp + +def defaultMaxSteps := 100000 + +structure Result where + expr : Expr + proof? : Option Expr := none -- If none, proof is assumed to be `refl` + +abbrev Cache := ExprMap Result + +structure Config where + maxSteps : Nat := defaultMaxSteps + contextual : Bool := false + memoize : Bool := true + singlePass : Bool := false + zeta : Bool := true + beta : Bool := true + eta : Bool := true + proj : Bool := true + ctorEq : Bool := true + +structure Context where + config : Config + parent? : Option Expr := none + simpLemmas : SimpLemmas + +structure State (σ : Type) where + user : σ -- user state + cache : Cache := {} + numSteps : Nat := 0 + +abbrev SimpM (σ : Type) := ReaderT Context $ StateRefT (State σ) $ MetaM + +inductive Step where + | visit : Result → Step + | done : Result → Step + +structure Methods (σ : Type) where + pre : Expr → SimpM σ Step := fun e => return Step.visit { expr := e } + post : Expr → SimpM σ Step := fun e => return Step.done { expr := e } + discharge? : Expr → SimpM σ (Option Expr) := fun e => return none + +/- Internal monad -/ +abbrev M (σ : Type) := ReaderT (Methods σ) $ SimpM σ + +end Simp + +export Simp (SimpM) + +end Lean.Meta diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index 1bc6d6c334..dba40bc3dd 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -175,6 +175,8 @@ def matchAltsWhereDecls := parser! matchAlts >> optional whereDecls @[builtinTermParser] def noindex := parser! "noindex!" >> termParser maxPrec +@[builtinTermParser] def binrel := parser! "binrel!" >> ident >> termParser maxPrec >> termParser maxPrec + @[builtinTermParser] def typeOf := parser! "typeOf! " >> termParser maxPrec @[builtinTermParser] def ensureTypeOf := parser! "ensureTypeOf! " >> termParser maxPrec >> strLit >> termParser @[builtinTermParser] def ensureExpectedType := parser! "ensureExpectedType! " >> strLit >> termParser maxPrec diff --git a/stage0/src/Leanpkg.lean b/stage0/src/Leanpkg.lean new file mode 100644 index 0000000000..e13d51a879 --- /dev/null +++ b/stage0/src/Leanpkg.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +import Leanpkg.Resolve +import Leanpkg.Git + +namespace Leanpkg + +def readManifest : IO Manifest := do + let m ← Manifest.fromFile leanpkgTomlFn + if m.leanVersion ≠ leanVersionString then + IO.eprintln $ "\nWARNING: Lean version mismatch: installed version is " ++ leanVersionString + ++ ", but package requires " ++ m.leanVersion ++ "\n" + return m + +def writeManifest (manifest : Lean.Syntax) (fn : String) : IO Unit := do + IO.FS.writeFile fn manifest.reprint.get! + +def configure : IO String := do + let d ← readManifest + IO.eprintln $ "configuring " ++ d.name ++ " " ++ d.version + let assg ← solveDeps d + let paths ← constructPath assg + for path in paths do + unless path == "./." do + -- TODO: share build of common dependencies + execCmd { + cmd := "leanpkg" + cwd := path + args := #["build"] + } + System.FilePath.searchPathSeparator.toString.intercalate <| paths.map (· ++ "/build") + +def build (leanArgs : List String) : IO Unit := do + let manifest ← readManifest + let path ← configure + let leanArgs := (match manifest.timeout with | some t => ["-T", toString t] | none => []) ++ leanArgs + execCmd { + cmd := "leanmake" + cwd := manifest.effectivePath + args := #[s!"LEAN_OPTS={" ".intercalate leanArgs}", s!"LEAN_PATH={path}"] + } + +def initGitignoreContents := + "/build +" + +def initPkg (n : String) (fromNew : Bool) : IO Unit := do + IO.FS.writeFile leanpkgTomlFn s!"[package] +name = \"{n}\" +version = \"0.1\" +" + IO.FS.writeFile s!"{n.capitalize}.lean" "def main : IO Unit := + IO.println \"Hello, world!\" +" + let h ← IO.FS.Handle.mk ".gitignore" IO.FS.Mode.append (bin := false) + h.putStr initGitignoreContents + let gitEx ← IO.isDir ".git" + unless gitEx do + (do + execCmd {cmd := "git", args := #["init", "-q"]} + unless upstreamGitBranch = "master" do + execCmd {cmd := "git", args := #["checkout", "-B", upstreamGitBranch]} + ) <|> IO.println "WARNING: failed to initialize git repository" + +def init (n : String) := initPkg n false + +def usage := + "Lean package manager, version " ++ uiLeanVersionString ++ " + +Usage: leanpkg + +configure download dependencies +build [-- ] download dependencies and build *.olean files +init create a Lean package in the current directory + +See `leanpkg help ` for more information on a specific command." + +def main : (cmd : String) → (leanpkgArgs leanArgs : List String) → IO Unit + | "configure", [], [] => discard <| configure + | "build", _, leanArgs => build leanArgs + | "init", [Name], [] => init Name + | "help", ["configure"], [] => IO.println "Download dependencies + +Usage: + leanpkg configure + +This command sets up the `build/deps` directory. + +For each (transitive) git dependency, the specified commit is checked out +into a sub-directory of `build/deps`. If there are dependencies on multiple +versions of the same package, the version materialized is undefined. No copy +is made of local dependencies." + | "help", ["build"], [] => IO.println "download dependencies and build *.olean files + +Usage: + leanpkg build [-- ] + +This command invokes `Leanpkg configure` followed by +`Leanmake `, building the package's Lean files as well as +(transitively) imported files of dependencies. If defined, the `package.timeout` +configuration value is passed to Lean via its `-T` parameter." + | "help", ["init"], [] => IO.println "Create a new Lean package in the current directory + +Usage: + leanpkg init + +This command creates a new Lean package with the given name in the current +directory." + | "help", _, [] => IO.println usage + | _, _, _ => throw <| IO.userError usage + +private def splitCmdlineArgsCore : List String → List String × List String + | [] => ([], []) + | (arg::args) => if arg == "--" + then ([], args) + else + let (outerArgs, innerArgs) := splitCmdlineArgsCore args + (arg::outerArgs, innerArgs) + +def splitCmdlineArgs : List String → IO (String × List String × List String) +| [] => throw <| IO.userError usage +| [cmd] => return (cmd, [], []) +| (cmd::rest) => + let (outerArgs, innerArgs) := splitCmdlineArgsCore rest + return (cmd, outerArgs, innerArgs) + +end Leanpkg + +def main (args : List String) : IO Unit := do + Lean.initSearchPath none -- HACK + let (cmd, outerArgs, innerArgs) ← Leanpkg.splitCmdlineArgs args + Leanpkg.main cmd outerArgs innerArgs diff --git a/stage0/src/Leanpkg/.gitignore b/stage0/src/Leanpkg/.gitignore new file mode 100644 index 0000000000..b62f4dcf77 --- /dev/null +++ b/stage0/src/Leanpkg/.gitignore @@ -0,0 +1 @@ +/leanpkg/config_vars.lean diff --git a/stage0/src/Leanpkg/Git.lean b/stage0/src/Leanpkg/Git.lean new file mode 100644 index 0000000000..1203abb875 --- /dev/null +++ b/stage0/src/Leanpkg/Git.lean @@ -0,0 +1,41 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +import Leanpkg.LeanVersion + +namespace Leanpkg + +def upstreamGitBranch := + if Lean.version.isRelease then + "Lean-" ++ leanVersionStringCore + else + "master" + +def gitdefaultRevision : Option String → String + | none => upstreamGitBranch + | some branch => branch + +def gitParseRevision (gitRepoDir : String) (rev : String) : IO String := do + let rev ← IO.Process.run {cmd := "git", args := #["rev-parse", "-q", "--verify", rev], cwd := gitRepoDir} + rev.trim -- remove newline at end + +def gitHeadRevision (gitRepoDir : String) : IO String := + gitParseRevision gitRepoDir "HEAD" + +def gitParseOriginRevision (gitRepoDir : String) (rev : String) : IO String := + (gitParseRevision gitRepoDir $ "origin/" ++ rev) <|> gitParseRevision gitRepoDir rev + <|> throw (IO.userError s!"cannot find revision {rev} in repository {gitRepoDir}") + +def gitLatestOriginRevision (gitRepoDir : String) (branch : Option String) : IO String := do + discard <| IO.Process.run {cmd := "git", args := #["fetch"], cwd := gitRepoDir} + gitParseOriginRevision gitRepoDir (gitdefaultRevision branch) + +def gitRevisionExists (gitRepoDir : String) (rev : String) : IO Bool := do + try + discard <| gitParseRevision gitRepoDir (rev ++ "^{commit}") + true + catch _ => false + +end Leanpkg diff --git a/stage0/src/Leanpkg/LeanVersion.lean b/stage0/src/Leanpkg/LeanVersion.lean new file mode 100644 index 0000000000..6622486fd5 --- /dev/null +++ b/stage0/src/Leanpkg/LeanVersion.lean @@ -0,0 +1,27 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +namespace Leanpkg + +def leanVersionStringCore := + s!"{Lean.version.major}.{Lean.version.minor}.{Lean.version.patch}" + +def leanVersionString := + if Lean.version.isRelease then + s!"leanprover/lean:{leanVersionStringCore}" + else if Lean.version.specialDesc ≠ "" then + Lean.version.specialDesc + else + "master" + +def uiLeanVersionString := +if Lean.version.isRelease then + leanVersionStringCore +else if Lean.version.specialDesc ≠ "" then + Lean.version.specialDesc +else + s!"master ({leanVersionStringCore})" + +end Leanpkg diff --git a/stage0/src/Leanpkg/Manifest.lean b/stage0/src/Leanpkg/Manifest.lean new file mode 100644 index 0000000000..03912ee606 --- /dev/null +++ b/stage0/src/Leanpkg/Manifest.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +import Leanpkg.Toml +import Leanpkg.LeanVersion + +namespace Leanpkg + +inductive Source where + | path (dirName : String) : Source + | git (url rev : String) (branch : Option String) : Source + +namespace Source + +def fromToml (v : Toml.Value) : Option Source := + (do let Toml.Value.str dirName ← v.lookup "path" | none + path dirName) <|> + (do let Toml.Value.str url ← v.lookup "git" | none + let Toml.Value.str rev ← v.lookup "rev" | none + match v.lookup "branch" with + | none => git url rev none + | some (Toml.Value.str branch) => git url rev (some branch) + | _ => none) + +def toToml : Source → Toml.Value + | path dirName => Toml.Value.table [("path", Toml.Value.str dirName)] + | git url rev none => + Toml.Value.table [("git", Toml.Value.str url), ("rev", Toml.Value.str rev)] + | git url rev (some branch) => + Toml.Value.table [("git", Toml.Value.str url), ("branch", Toml.Value.str branch), ("rev", Toml.Value.str rev)] + +end Source + +structure Dependency where + name : String + src : Source + +structure Manifest where + name : String + version : String + leanVersion : String := leanVersionString + timeout : Option Nat := none + path : Option String := none + dependencies : List Dependency := [] + +namespace Manifest + +def effectivePath (m : Manifest) : String := + m.path.getD "." + +def fromToml (t : Toml.Value) : Option Manifest := do + let pkg ← t.lookup "package" + let Toml.Value.str n ← pkg.lookup "name" | none + let Toml.Value.str ver ← pkg.lookup "version" | none + let leanVer ← match pkg.lookup "lean_version" with + | some (Toml.Value.str leanVer) => some leanVer + | none => some leanVersionString + | _ => none + let tm ← match pkg.lookup "timeout" with + | some (Toml.Value.nat timeout) => some (some timeout) + | none => some none + | _ => none + let path ← match pkg.lookup "path" with + | some (Toml.Value.str path) => some (some path) + | none => some none + | _ => none + let Toml.Value.table deps ← t.lookup "dependencies" <|> some (Toml.Value.table []) | none + let deps ← deps.mapM fun ⟨n, src⟩ => do Dependency.mk n (← Source.fromToml src) + return { name := n, version := ver, leanVersion := leanVer, + path := path, dependencies := deps, timeout := tm } + +def fromFile (fn : String) : IO Manifest := do + let cnts ← IO.FS.readFile fn + let toml ← Toml.parse cnts + let some manifest ← pure (fromToml toml) + | throw <| IO.userError s!"cannot read manifest from {fn}" + manifest + +end Manifest + +def leanpkgTomlFn := "leanpkg.toml" + +end Leanpkg diff --git a/stage0/src/Leanpkg/Proc.lean b/stage0/src/Leanpkg/Proc.lean new file mode 100644 index 0000000000..f62c07c2c8 --- /dev/null +++ b/stage0/src/Leanpkg/Proc.lean @@ -0,0 +1,20 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +namespace Leanpkg + +def execCmd (args : IO.Process.SpawnArgs) : IO Unit := do + let envstr := String.join <| args.env.toList.map fun (k, v) => s!"{k}={v.getD ""} " + let cmdstr := " ".intercalate (args.cmd :: args.args.toList) + IO.println <| "> " ++ envstr ++ + match args.cwd with + | some cwd => cmdstr ++ " # in directory " ++ cwd + | none => cmdstr + let child ← IO.Process.spawn args + let exitCode ← child.wait + if exitCode != 0 then + throw <| IO.userError <| s!"external command exited with status {exitCode}" + +end Leanpkg diff --git a/stage0/src/Leanpkg/Resolve.lean b/stage0/src/Leanpkg/Resolve.lean new file mode 100644 index 0000000000..fc379eeefe --- /dev/null +++ b/stage0/src/Leanpkg/Resolve.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +import Leanpkg.Manifest +import Leanpkg.Proc +import Leanpkg.Git + +namespace Leanpkg + +def Assignment := List (String × String) + +namespace Assignment +def empty : Assignment := [] + +def contains (a : Assignment) (s : String) : Bool := + (a.lookup s).isSome + +def insert (a : Assignment) (k v : String) : Assignment := + if a.contains k then a else (k, v) :: a + +def fold {α} (i : α) (f : α → String → String → α) : Assignment → α := + List.foldl (fun a ⟨k, v⟩ => f a k v) i + +end Assignment + +abbrev Solver := StateT Assignment IO + +def notYetAssigned (d : String) : Solver Bool := do + ¬ (← get).contains d + +def resolvedPath (d : String) : Solver String := do + let some path ← pure ((← get).lookup d) | unreachable! + path + +-- TODO(gabriel): windows? +def resolveDir (absOrRel : String) (base : String) : String := + if absOrRel.front = '/' then + absOrRel -- absolute + else + base ++ "/" ++ absOrRel + +def materialize (relpath : String) (dep : Dependency) : Solver Unit := + match dep.src with + | Source.path dir => do + let depdir := resolveDir dir relpath + IO.println s!"{dep.name}: using local path {depdir}" + modify (·.insert dep.name depdir) + | Source.git url rev branch => do + let depdir := "build/deps/" ++ dep.name + let alreadyThere ← IO.isDir depdir + if alreadyThere then + IO.print s!"{dep.name}: trying to update {depdir} to revision {rev}" + IO.println (match branch with | none => "" | some branch => "@" ++ branch) + let hash ← gitParseOriginRevision depdir rev + let revEx ← gitRevisionExists depdir hash + unless revEx do + execCmd {cmd := "git", args := #["fetch"], cwd := depdir} + else + IO.println s!"{dep.name}: cloning {url} to {depdir}" + execCmd {cmd := "git", args := #["clone", url, depdir]} + let hash ← gitParseOriginRevision depdir rev + execCmd {cmd := "git", args := #["checkout", "--detach", hash], cwd := depdir} + modify (·.insert dep.name depdir) + +def solveDepsCore (relPath : String) (d : Manifest) : (maxDepth : Nat) → Solver Unit + | 0 => throw <| IO.userError "maximum dependency resolution depth reached" + | maxDepth + 1 => do + let deps ← d.dependencies.filterM (notYetAssigned ·.name) + deps.forM (materialize relPath) + for dep in deps do + let p ← resolvedPath dep.name + let d' ← Manifest.fromFile $ p ++ "/" ++ "leanpkg.toml" + unless d'.name = dep.name do + throw <| IO.userError <| d.name ++ " (in " ++ relPath ++ ") depends on " ++ d'.name ++ + ", but resolved dependency has name " ++ dep.name ++ " (in " ++ p ++ ")" + solveDepsCore p d' maxDepth + +def solveDeps (d : Manifest) : IO Assignment := do + let (_, assg) ← (solveDepsCore "." d 1024).run <| Assignment.empty.insert d.name "." + assg + +def constructPathCore (depname : String) (dirname : String) : IO String := do + let path ← Manifest.effectivePath (← Manifest.fromFile $ dirname ++ "/" ++ leanpkgTomlFn) + return dirname ++ "/" ++ path + +def constructPath (assg : Assignment) : IO (List String) := do + assg.reverse.mapM fun ⟨depname, dirname⟩ => constructPathCore depname dirname + +end Leanpkg diff --git a/stage0/src/Leanpkg/Toml.lean b/stage0/src/Leanpkg/Toml.lean new file mode 100644 index 0000000000..31d910a63e --- /dev/null +++ b/stage0/src/Leanpkg/Toml.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2017 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Gabriel Ebner, Sebastian Ullrich +-/ +import Lean.Parser + +namespace Toml + +inductive Value : Type where + | str : String → Value + | nat : Nat → Value + | bool : Bool → Value + | table : List (String × Value) → Value + deriving Inhabited + +def Value.lookup : Value → String → Option Value + | Value.table cs, k => cs.lookup k + | _, _ => none + +-- TODO: custom whitespace and other inaccuracies +declare_syntax_cat val +syntax "True" : val +syntax "False" : val +syntax str : val +syntax num : val +syntax bareKey := ident -- TODO +syntax key := bareKey <|> str +declare_syntax_cat keyCat @[keyCatParser] def key' := key -- HACK: for the antiquotation +syntax keyVal := key " = " val +syntax table := "[" key "]" keyVal* +syntax inlineTable := "{" keyVal,* "}" +syntax inlineTable : val +syntax file := table* +declare_syntax_cat fileCat @[fileCatParser] def file' := file -- HACK: for the antiquotation + +open Lean + +partial def ofSyntax : Syntax → Value + | `(val|True) => Value.bool true + | `(val|False) => Value.bool false + | `(val|$s:strLit) => Value.str <| s.isStrLit?.get! + | `(val|$n:numLit) => Value.nat <| n.isNatLit?.get! + | `(val|{$[$keys:key = $values],*}) => toTable keys (values.map ofSyntax) + | `(fileCat|$[[$keys] $kvss*]*) => toTable keys <| kvss.map fun kvs => ofSyntax <| Lean.Unhygienic.run `(val|{$kvs,*}) + | stx => unreachable! + where + toKey : Syntax → String + | `(keyCat|$key:ident) => key.getId.toString + | `(keyCat|$key:strLit) => key.isStrLit?.get! + | _ => unreachable! + toTable (keys : Array Syntax) (vals : Array Value) : Value := + Value.table <| Array.toList <| keys.zipWith vals fun k v => (toKey k, v) + +open Lean.Parser + +def parse (input : String) : IO Value := do + -- HACKHACKHACK + let env ← importModules [{ module := `Leanpkg.Toml }] {} + let fileParser ← compileParserDescr (parserExtension.getState env).categories file { env := env, opts := {} } + let c := mkParserContext (mkInputContext input "") { env := env, options := {} } + let s := mkParserState input + let s := whitespace c s + let s := fileParser.fn c s + if s.hasError then + throw <| IO.userError (s.toErrorMsg c) + else if input.atEnd s.pos then + ofSyntax s.stxStack.back + else + throw <| IO.userError ((s.mkError "end of input").toErrorMsg c) + +end Toml diff --git a/stage0/src/config.h.in b/stage0/src/config.h.in index 0fec0771e5..f109cc37a6 100644 --- a/stage0/src/config.h.in +++ b/stage0/src/config.h.in @@ -5,6 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #pragma once +#include + @LEAN_SMALL_ALLOCATOR@ @LEAN_LAZY_RC@ @LEAN_COMPRESSED_OBJECT_HEADER@ diff --git a/stage0/src/lean.mk.in b/stage0/src/lean.mk.in index 8f583855dc..1fb910d965 100644 --- a/stage0/src/lean.mk.in +++ b/stage0/src/lean.mk.in @@ -34,7 +34,7 @@ SHELL = /usr/bin/env bash -eo pipefail all: $(OBJS) -bin: $(BIN_OUT)/$(PKG) +bin: $(BIN_OUT)/$(BIN_NAME) lib: $(LIB_OUT)/$(STATIC_LIB_NAME) diff --git a/stage0/src/library/util.cpp b/stage0/src/library/util.cpp index 656c79edab..ed84e951b1 100644 --- a/stage0/src/library/util.cpp +++ b/stage0/src/library/util.cpp @@ -20,7 +20,7 @@ Author: Leonardo de Moura #include "library/projection.h" #include "library/replace_visitor.h" #include "library/num.h" -#include "version.h" +#include #include "githash.h" // NOLINT namespace lean { diff --git a/stage0/src/shell/CMakeLists.txt b/stage0/src/shell/CMakeLists.txt index 0f521d3533..93c958ec43 100644 --- a/stage0/src/shell/CMakeLists.txt +++ b/stage0/src/shell/CMakeLists.txt @@ -112,3 +112,7 @@ FOREACH(T ${LEANTESTS}) COMMAND bash -c "PATH=${LEAN_BIN}:$PATH ./test_single.sh ${T_NAME}") endif() ENDFOREACH(T) + +add_test(NAME leanpkgtest + WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/leanpkg/b" + COMMAND bash -c "PATH=${LEAN_BIN}:$PATH leanpkg build") diff --git a/stage0/src/stdlib.make.in b/stage0/src/stdlib.make.in index 89451f813f..1e41c5f291 100644 --- a/stage0/src/stdlib.make.in +++ b/stage0/src/stdlib.make.in @@ -7,6 +7,7 @@ LEANMAKE_OPTS=\ OUT="${LIB}"\ LIB_OUT="${LIB}/lean"\ OLEAN_OUT="${LIB}/lean"\ + BIN_OUT="${CMAKE_BINARY_DIR}/bin"\ LEAN_OPTS+="${LEAN_EXTRA_MAKE_OPTS} -Dinterpreter.prefer_native=false"\ LEANC_OPTS+="${LEANC_OPTS}"\ MORE_DEPS+="${PREV_STAGE}/bin/lean${CMAKE_EXECUTABLE_SUFFIX}"\ @@ -17,3 +18,4 @@ stdlib: +"${LEAN_BIN}/leanmake" lib PKG=Init $(LEANMAKE_OPTS) +"${LEAN_BIN}/leanmake" lib PKG=Std $(LEANMAKE_OPTS) +"${LEAN_BIN}/leanmake" lib PKG=Lean $(LEANMAKE_OPTS) + +"${LEAN_BIN}/leanmake" bin PKG=Leanpkg BIN_NAME=leanpkg $(LEANMAKE_OPTS) LINK_OPTS="${CMAKE_EXE_LINKER_FLAGS}" diff --git a/stage0/src/version.h.in b/stage0/src/version.h.in index 34fc743945..65ea409c0c 100644 --- a/stage0/src/version.h.in +++ b/stage0/src/version.h.in @@ -1,6 +1,8 @@ +#pragma once #define LEAN_VERSION_MAJOR @LEAN_VERSION_MAJOR@ #define LEAN_VERSION_MINOR @LEAN_VERSION_MINOR@ #define LEAN_VERSION_PATCH @LEAN_VERSION_PATCH@ +#define LEAN_VERSION_IS_RELEASE @LEAN_VERSION_IS_RELEASE@ // Additional version description like "nightly-2018-03-11" #define LEAN_SPECIAL_VERSION_DESC "@LEAN_SPECIAL_VERSION_DESC@" diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 30d4bca5d9..0715408e93 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/InsertionSort.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Format.c ./Init/Data/Format/Basic.c ./Init/Data/Format/Instances.c ./Init/Data/Format/Macro.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/OfScientific.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/Stream.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/NotationExtra.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Extra.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/Ipc.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/NameTrie.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/PrefixTree.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/AutoBound.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Deriving.c ./Lean/Elab/Deriving/BEq.c ./Lean/Elab/Deriving/Basic.c ./Lean/Elab/Deriving/DecEq.c ./Lean/Elab/Deriving/FromToJson.c ./Lean/Elab/Deriving/Inhabited.c ./Lean/Elab/Deriving/Repr.c ./Lean/Elab/Deriving/Util.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/Quotation/Util.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/GetConst.c ./Lean/Meta/Inductive.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/Basic.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Match/MatcherInfo.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/PPGoal.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/Constructor.c ./Lean/Meta/Tactic/Delta.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Simp.c ./Lean/Meta/Tactic/Simp/Basic.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/Transform.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/UnificationHint.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Attr.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Delaborator.c ./Lean/PrettyPrinter/Delaborator/Basic.c ./Lean/PrettyPrinter/Delaborator/Builtins.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/ScopedEnvExtension.c ./Lean/Server.c ./Lean/Server/AsyncList.c ./Lean/Server/FileSource.c ./Lean/Server/FileWorker.c ./Lean/Server/Snapshots.c ./Lean/Server/Utils.c ./Lean/Server/Watchdog.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/InsertionSort.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Format.c ./Init/Data/Format/Basic.c ./Init/Data/Format/Instances.c ./Init/Data/Format/Macro.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/OfScientific.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/Stream.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/NotationExtra.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Extra.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/Ipc.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/NameTrie.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/PrefixTree.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/AutoBound.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Deriving.c ./Lean/Elab/Deriving/BEq.c ./Lean/Elab/Deriving/Basic.c ./Lean/Elab/Deriving/DecEq.c ./Lean/Elab/Deriving/FromToJson.c ./Lean/Elab/Deriving/Inhabited.c ./Lean/Elab/Deriving/Repr.c ./Lean/Elab/Deriving/Util.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/Quotation/Util.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/GetConst.c ./Lean/Meta/Inductive.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/Basic.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Match/MatcherInfo.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/PPGoal.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/Constructor.c ./Lean/Meta/Tactic/Delta.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Simp.c ./Lean/Meta/Tactic/Simp/Main.c ./Lean/Meta/Tactic/Simp/SimpLemmas.c ./Lean/Meta/Tactic/Simp/Types.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/Transform.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/UnificationHint.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Attr.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Delaborator.c ./Lean/PrettyPrinter/Delaborator/Basic.c ./Lean/PrettyPrinter/Delaborator/Builtins.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/ScopedEnvExtension.c ./Lean/Server.c ./Lean/Server/AsyncList.c ./Lean/Server/FileSource.c ./Lean/Server/FileWorker.c ./Lean/Server/Snapshots.c ./Lean/Server/Utils.c ./Lean/Server/Watchdog.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Leanpkg.c ./Leanpkg/Git.c ./Leanpkg/LeanVersion.c ./Leanpkg/Manifest.c ./Leanpkg/Proc.c ./Leanpkg/Resolve.c ./Leanpkg/Toml.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Init/Meta.c b/stage0/stdlib/Init/Meta.c index 5642d354c2..1445752ba5 100644 --- a/stage0/stdlib/Init/Meta.c +++ b/stage0/stdlib/Init/Meta.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decode___boxed(lean_object lean_object* l_Lean_Syntax_identToAtom_match__1(lean_object*); lean_object* l_Substring_takeWhileAux___at___private_Init_Meta_0__Lean_Syntax_decodeNameLitAux___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_version_getMajor___boxed(lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeOctalLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString___closed__1; @@ -70,6 +71,7 @@ lean_object* l_Array_filterSepElemsM___rarg(lean_object*, lean_object*, lean_obj lean_object* l_Lean_instQuoteSubstring___closed__3; lean_object* l_Lean_Name_capitalize(lean_object*); lean_object* l_Lean_Syntax_isAtom___boxed(lean_object*); +lean_object* l_Lean_version_specialDesc___closed__1; lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst(lean_object*); lean_object* l_Lean_monadNameGeneratorLift(lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___rarg(lean_object*, lean_object*, lean_object*); @@ -124,6 +126,7 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux_match__2(lean_object*); lean_object* l_Lean_Syntax_setInfo_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_version_getSpecialDesc___boxed(lean_object*); lean_object* l_Lean_Syntax_mkApp_match__1(lean_object*); extern lean_object* l_Array_getEvenElems___rarg___closed__1; lean_object* l_Lean_Syntax_strLitToAtom_match__1(lean_object*); @@ -147,10 +150,12 @@ lean_object* l_Lean_mkIdentFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfo(lean_object*, lean_object*); lean_object* l_Lean_instQuoteBool___closed__1; uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_version_patch; extern lean_object* l_Lean_nameLitKind; lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit_loop_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux___boxed(lean_object*, lean_object*); lean_object* l_Lean_instQuoteBool___boxed(lean_object*); +lean_object* l_Lean_version_specialDesc; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkSep___boxed(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_109____spec__1(lean_object*, lean_object*); @@ -163,6 +168,7 @@ lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_capitalize_match__1(lean_object*); +lean_object* l_Lean_version_major___closed__1; lean_object* l_Lean_Syntax_isLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instQuoteSubstring___closed__1; lean_object* lean_string_utf8_next(lean_object*, lean_object*); @@ -178,7 +184,9 @@ lean_object* l_Lean_Syntax_mkApp(lean_object*, lean_object*); lean_object* l_Array_mapSepElems___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__6; lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_version_getMinor___boxed(lean_object*); lean_object* l_Lean_evalPrio___closed__1; +uint8_t l_Lean_version_isRelease___closed__1; lean_object* l_Lean_instQuoteBool___closed__5; lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeExp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isLit_x3f(lean_object*, lean_object*); @@ -190,6 +198,7 @@ lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_version_major; lean_object* l_Lean_Name_appendAfter_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfoAux_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -301,6 +310,7 @@ lean_object* l_Lean_termEvalPrio_x21_____closed__7; lean_object* l_Lean_mkCIdent(lean_object*); lean_object* l_Lean_mkOptionalNode_match__1(lean_object*); lean_object* l_Lean_Syntax_replaceInfo(lean_object*, lean_object*); +lean_object* l_Lean_version_getIsRelease___boxed(lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__2; lean_object* l_Lean_Syntax_isNameLit_x3f_match__1(lean_object*); @@ -315,6 +325,7 @@ lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterExp(lean_object lean_object* l_Lean_Syntax_findAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux_match__1(lean_object*); lean_object* l_Lean_mkOptionalNode(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_version_getPatch___boxed(lean_object*); lean_object* l_Nat_pred(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux(lean_object*); @@ -326,11 +337,14 @@ lean_object* l_Lean_evalOptPrec(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__4; lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailPos___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_version_patch___closed__1; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Name_toStringWithSep___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNone_match__1(lean_object*); lean_object* l_Array_filterSepElemsM(lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; +lean_object* l_Lean_version_getSpecialDesc(lean_object*); +lean_object* l_Lean_version_minor___closed__1; lean_object* l_Lean_Syntax_copyTailInfo___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -350,6 +364,7 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit(lean_object*); extern lean_object* l_term___x2b_x2b_____closed__2; lean_object* l_Lean_Syntax_getOptionalIdent_x3f_match__1(lean_object*); +lean_object* l_Lean_version_minor; lean_object* l_Lean_Syntax_decodeStrLit___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__1; lean_object* l_Lean_Name_appendIndexAfter_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -357,11 +372,13 @@ lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Array_mapSepEle lean_object* l_Lean_NameGenerator_namePrefix___default___closed__2; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isIdEndEscape(uint32_t); +lean_object* l___private_Init_Meta_0__Lean_version_getMajor(lean_object*); lean_object* l_Lean_Syntax_unsetTrailing_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_updateLast___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeNatLitVal_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_decodeCharLit(lean_object*); +uint8_t l_Lean_version_isRelease; lean_object* l_Lean_Syntax_decodeNatLitVal_x3f___closed__1; lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__1; uint8_t l_Char_isAlpha(uint32_t); @@ -400,8 +417,10 @@ lean_object* l_Lean_termEvalPrec_x21_____closed__6; lean_object* l_Lean_Name_instReprName___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar_match__6(lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteName_match__1(lean_object*); +uint8_t l_Lean_version_getIsRelease(lean_object*); lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); lean_object* l_Lean_termEvalPrio_x21_____closed__1; +lean_object* l___private_Init_Meta_0__Lean_version_getMinor(lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); lean_object* l_Lean_termEvalPrio_x21_____closed__2; lean_object* l_Lean_Syntax_isIdent_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -529,6 +548,7 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat(lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_version_getPatch(lean_object*); lean_object* l_Lean_Syntax_strLitToAtom_match__2(lean_object*); lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Syntax_getOptional_x3f___boxed(lean_object*); @@ -554,12 +574,12 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_2137____closed__4; lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_monadNameGeneratorLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4078_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4181_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4305_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4436_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4539_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4663_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4158_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4385_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4619_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4261_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4516_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4743_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStr___closed__1; lean_object* l_Lean_Syntax_decodeQuotedChar_match__5(lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -619,6 +639,132 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_replaceInfo___spec__1___box lean_object* l_Lean_Syntax_strLitToAtom_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* l_Lean_evalOptPrio_match__1(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_version_getMajor___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(LEAN_VERSION_MAJOR); +return x_2; +} +} +static lean_object* _init_l_Lean_version_major___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_box(LEAN_VERSION_MAJOR); +return x_2; +} +} +static lean_object* _init_l_Lean_version_major() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_version_major___closed__1; +return x_1; +} +} +lean_object* l___private_Init_Meta_0__Lean_version_getMinor___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(LEAN_VERSION_MINOR); +return x_2; +} +} +static lean_object* _init_l_Lean_version_minor___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_box(LEAN_VERSION_MINOR); +return x_2; +} +} +static lean_object* _init_l_Lean_version_minor() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_version_minor___closed__1; +return x_1; +} +} +lean_object* l___private_Init_Meta_0__Lean_version_getPatch___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(LEAN_VERSION_PATCH); +return x_2; +} +} +static lean_object* _init_l_Lean_version_patch___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_box(LEAN_VERSION_PATCH); +return x_2; +} +} +static lean_object* _init_l_Lean_version_patch() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_version_patch___closed__1; +return x_1; +} +} +lean_object* l_Lean_version_getIsRelease___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = LEAN_VERSION_IS_RELEASE; +x_3 = lean_box(x_2); +return x_3; +} +} +static uint8_t _init_l_Lean_version_isRelease___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; +x_1 = lean_box(0); +x_2 = LEAN_VERSION_IS_RELEASE; +return x_2; +} +} +static uint8_t _init_l_Lean_version_isRelease() { +_start: +{ +uint8_t x_1; +x_1 = l_Lean_version_isRelease___closed__1; +return x_1; +} +} +lean_object* l_Lean_version_getSpecialDesc___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_mk_string(LEAN_SPECIAL_VERSION_DESC); +return x_2; +} +} +static lean_object* _init_l_Lean_version_specialDesc___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_mk_string(LEAN_SPECIAL_VERSION_DESC); +return x_2; +} +} +static lean_object* _init_l_Lean_version_specialDesc() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_version_specialDesc___closed__1; +return x_1; +} +} uint8_t l_Lean_isGreek(uint32_t x_1) { _start: { @@ -8444,7 +8590,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Syntax_strLitToAtom___closed__1; x_2 = l_Lean_Syntax_strLitToAtom___closed__2; -x_3 = lean_unsigned_to_nat(573u); +x_3 = lean_unsigned_to_nat(600u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10281,7 +10427,7 @@ return x_75; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4078_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4158_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10416,7 +10562,7 @@ return x_40; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4181_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4261_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10635,7 +10781,7 @@ x_1 = l_Lean_termEvalPrec_x21_____closed__7; return x_1; } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4305_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4385_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11087,7 +11233,7 @@ return x_75; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4436_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4516_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11222,7 +11368,7 @@ return x_40; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4539_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4619_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11441,7 +11587,7 @@ x_1 = l_Lean_termEvalPrio_x21_____closed__7; return x_1; } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4663_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4743_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -13631,6 +13777,24 @@ _G_initialized = true; res = initialize_Init_Data_Array_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_version_major___closed__1 = _init_l_Lean_version_major___closed__1(); +lean_mark_persistent(l_Lean_version_major___closed__1); +l_Lean_version_major = _init_l_Lean_version_major(); +lean_mark_persistent(l_Lean_version_major); +l_Lean_version_minor___closed__1 = _init_l_Lean_version_minor___closed__1(); +lean_mark_persistent(l_Lean_version_minor___closed__1); +l_Lean_version_minor = _init_l_Lean_version_minor(); +lean_mark_persistent(l_Lean_version_minor); +l_Lean_version_patch___closed__1 = _init_l_Lean_version_patch___closed__1(); +lean_mark_persistent(l_Lean_version_patch___closed__1); +l_Lean_version_patch = _init_l_Lean_version_patch(); +lean_mark_persistent(l_Lean_version_patch); +l_Lean_version_isRelease___closed__1 = _init_l_Lean_version_isRelease___closed__1(); +l_Lean_version_isRelease = _init_l_Lean_version_isRelease(); +l_Lean_version_specialDesc___closed__1 = _init_l_Lean_version_specialDesc___closed__1(); +lean_mark_persistent(l_Lean_version_specialDesc___closed__1); +l_Lean_version_specialDesc = _init_l_Lean_version_specialDesc(); +lean_mark_persistent(l_Lean_version_specialDesc); l_Lean_idBeginEscape = _init_l_Lean_idBeginEscape(); l_Lean_idEndEscape = _init_l_Lean_idEndEscape(); l_Lean_Name_toStringWithSep___closed__1 = _init_l_Lean_Name_toStringWithSep___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 2a79912643..790b07447e 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -351,7 +351,7 @@ extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__1; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__5; -extern lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; +extern lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandBuiltinInitialize(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5119,7 +5119,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__3; -x_2 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; +x_2 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 28825abf18..d67d5f1f2a 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -25,7 +25,6 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Match_0__ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___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_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_getNumExplicitCtorParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__2(lean_object*); @@ -100,7 +99,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_expandMacros___spec__1___boxed(lea lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Lean_Elab_Term_CollectPatternVars_collect___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNoMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; lean_object* l_Lean_Elab_Term_finalizePatternDecls_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -114,6 +112,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__9; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__4(lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___rarg___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___spec__1___lambda__1___closed__5; @@ -137,7 +136,6 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmbiguous(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__2; lean_object* lean_local_ctx_erase(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,6 +169,7 @@ lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__4; lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1397____closed__2; +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmbiguous___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabMatch_match__5(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,7 +180,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mark lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___closed__1; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_instInhabitedContext___closed__1; -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processId_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_ToDepElimPattern_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_pushNewArg___closed__4; @@ -217,7 +216,6 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__5; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -290,7 +288,6 @@ lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_ob lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs_match__1(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__7; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -377,6 +374,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls__ lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern_match__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns_match__2(lean_object*); @@ -406,7 +404,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs___boxed(lea extern lean_object* l_myMacro____x40_Init_Notation___hyg_13073____closed__8; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; lean_object* l_Nat_repr(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); @@ -502,6 +499,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_pr lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___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_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_pushNewArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMVarSyntaxMVarId___boxed(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(lean_object*); @@ -521,6 +519,7 @@ lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_pos lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__4; lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f_match__4(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -554,7 +553,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls__ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1___closed__3; lean_object* l_Lean_Elab_Term_elabMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__10(lean_object*); -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -569,6 +568,7 @@ extern lean_object* l_Lean_Syntax_mkApp___closed__1; lean_object* l_Lean_Meta_mkEqRefl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_term_x5b___x5d___closed__5; lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmbiguous___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_State_newLocals___default; lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -639,12 +639,12 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__4; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1___boxed__const__1; -extern lean_object* l_Array_instToStringArray___rarg___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___closed__1; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processId_match__3(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_261____closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_State_vars___default; @@ -699,6 +699,7 @@ lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___closed__4; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_pushNewArg___closed__3; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); @@ -709,6 +710,7 @@ lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lea lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___boxed(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__12; lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2; lean_object* l_Lean_Expr_arrayLit_x3f(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; extern lean_object* l_Lean_Elab_Term_instInhabitedNamedArg; @@ -749,6 +751,7 @@ lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f_match__1___rarg(l lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_finalize___closed__2; +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_finalize___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__10; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_finalize___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -814,7 +817,7 @@ uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__13___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__5___lambda__2___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElaboratedLHS_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__3; @@ -851,7 +854,7 @@ lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1397_(lean_obj lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_paramDeclIdx___default; lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5686_(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunk(lean_object*); lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__14; @@ -23646,226 +23649,402 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object* x_1) { +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; } -else +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1() { +_start: { -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_8 = l_Nat_repr(x_7); -x_9 = l_Array_instToStringArray___rarg___closed__1; -x_10 = lean_string_append(x_9, x_8); -lean_dec(x_8); -x_11 = l_Lean_instInhabitedParserDescr___closed__1; -x_12 = lean_string_append(x_10, x_11); -x_13 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_5); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1___boxed), 9, 0); return x_1; } +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("redundant alternative"); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_3); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} 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; -x_14 = lean_ctor_get(x_1, 0); -x_15 = lean_ctor_get(x_1, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_1); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_14, x_16); -lean_dec(x_14); -x_18 = l_Nat_repr(x_17); -x_19 = l_Array_instToStringArray___rarg___closed__1; -x_20 = lean_string_append(x_19, x_18); +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +x_14 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1; +x_15 = l_List_elem___at_Lean_Occurrences_contains___spec__1(x_3, x_1); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_17 = lean_apply_9(x_14, x_3, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); lean_dec(x_18); -x_21 = l_Lean_instInhabitedParserDescr___closed__1; -x_22 = lean_string_append(x_20, x_21); -x_23 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_15); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); return x_24; } } -} -} -lean_object* l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(lean_object* x_1) { -_start: +else { -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 1); +lean_inc(x_25); +lean_dec(x_17); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +lean_dec(x_18); +x_2 = x_13; +x_3 = x_26; +x_10 = x_25; +goto _start; +} } else { -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = l_Lean_stringToMessageData(x_4); +uint8_t x_28; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -x_7 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_5); -lean_ctor_set(x_1, 1, x_7); -lean_ctor_set(x_1, 0, x_6); -return x_1; +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +return x_17; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +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; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_32 = lean_ctor_get(x_12, 0); +x_33 = lean_ctor_get(x_8, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_8, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_8, 2); +lean_inc(x_35); +x_36 = lean_ctor_get(x_8, 3); +lean_inc(x_36); +x_37 = lean_ctor_get(x_8, 4); +lean_inc(x_37); +x_38 = lean_ctor_get(x_8, 5); +lean_inc(x_38); +x_39 = l_Lean_replaceRef(x_32, x_36); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_40, 0, x_33); +lean_ctor_set(x_40, 1, x_34); +lean_ctor_set(x_40, 2, x_35); +lean_ctor_set(x_40, 3, x_39); +lean_ctor_set(x_40, 4, x_37); +lean_ctor_set(x_40, 5, x_38); +x_41 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4; +x_42 = 2; +x_43 = l_Lean_Elab_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__3(x_41, x_42, x_4, x_5, x_6, x_7, x_40, x_9, x_10); +lean_dec(x_40); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); lean_inc(x_9); lean_inc(x_8); -lean_dec(x_1); -x_10 = l_Lean_stringToMessageData(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_46 = lean_apply_9(x_14, x_3, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +uint8_t x_48; +lean_dec(x_9); lean_dec(x_8); -x_11 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_48 = !lean_is_exclusive(x_46); +if (x_48 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_6, 3); -x_10 = lean_ctor_get(x_2, 3); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -lean_dec(x_2); -lean_dec(x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_18); -return x_15; +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 0); +lean_dec(x_49); +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +lean_dec(x_47); +lean_ctor_set(x_46, 0, x_50); +return x_46; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_dec(x_46); +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +lean_dec(x_47); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +lean_dec(x_46); +x_55 = lean_ctor_get(x_47, 0); +lean_inc(x_55); +lean_dec(x_47); +x_2 = x_13; +x_3 = x_55; +x_10 = x_54; +goto _start; +} +} +else +{ +uint8_t x_57; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_57 = !lean_is_exclusive(x_46); +if (x_57 == 0) +{ +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_46, 0); +x_59 = lean_ctor_get(x_46, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_46); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +} +} +} +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +x_12 = l_Lean_Elab_Term_ignoreUnusedAlts(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_1, 2); +x_14 = l_List_isEmpty___rarg(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_13, x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_16); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); return x_22; } } -} -static lean_object* _init_l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string("unused alternatives: "); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2() { -_start: +uint8_t x_23; +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_7, 0); -x_11 = l_Lean_Elab_Term_ignoreUnusedAlts(x_10); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_1, 2); -lean_inc(x_12); -lean_dec(x_1); -x_13 = l_List_isEmpty___rarg(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_14 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_12); -x_15 = l_List_map___at_Lean_Elab_Term_reportMatcherResultErrors___spec__2(x_14); -x_16 = l_Lean_MessageData_ofList(x_15); -lean_dec(x_15); -x_17 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_KernelException_toMessageData___closed__15; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_21; +return x_16; } else { -lean_object* x_22; lean_object* x_23; -lean_dec(x_12); -lean_dec(x_3); -x_22 = lean_box(0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_9); -return x_23; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_16); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} } } else { -lean_object* x_24; lean_object* x_25; -lean_dec(x_3); -lean_dec(x_1); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_9); -return x_25; +lean_object* x_27; lean_object* x_28; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_10); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_10); +return x_30; } } } @@ -23886,94 +24065,106 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -x_10 = l_List_isEmpty___rarg(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +x_11 = l_List_isEmpty___rarg(x_10); +if (x_11 == 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; uint8_t x_17; -lean_dec(x_1); -x_11 = l_Lean_Meta_Match_counterExamplesToMessageData(x_9); -x_12 = l_Lean_Elab_Term_reportMatcherResultErrors___closed__2; -x_13 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_KernelException_toMessageData___closed__15; -x_15 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -return x_16; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_16); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -else -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_9); -x_21 = lean_box(0); -x_22 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_22; -} -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Term_reportMatcherResultErrors___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_dec(x_2); +x_12 = l_Lean_Meta_Match_counterExamplesToMessageData(x_10); +x_13 = l_Lean_Elab_Term_reportMatcherResultErrors___closed__2; +x_14 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_KernelException_toMessageData___closed__15; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +return x_17; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_17); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_10); +x_22 = lean_box(0); +x_23 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_2, x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); -return x_10; +return x_23; } } -lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; -x_9 = l_Lean_Elab_Term_reportMatcherResultErrors(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_10; +x_10 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_9; +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Term_reportMatcherResultErrors(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +return x_10; } } lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { @@ -25472,6 +25663,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); +lean_inc(x_45); lean_inc(x_47); lean_inc(x_41); x_52 = l_Lean_Meta_Match_mkMatcher(x_50, x_41, x_47, x_45, x_7, x_8, x_9, x_10, x_51); @@ -25501,9 +25693,15 @@ lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); lean_dec(x_57); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); lean_inc(x_5); lean_inc(x_53); -x_60 = l_Lean_Elab_Term_reportMatcherResultErrors(x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +x_60 = l_Lean_Elab_Term_reportMatcherResultErrors(x_45, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +lean_dec(x_45); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; @@ -25666,6 +25864,7 @@ else { uint8_t x_98; lean_dec(x_53); +lean_dec(x_45); lean_dec(x_39); lean_dec(x_16); lean_dec(x_10); @@ -25698,6 +25897,7 @@ else { uint8_t x_102; lean_dec(x_47); +lean_dec(x_45); lean_dec(x_41); lean_dec(x_39); lean_dec(x_16); @@ -31476,10 +31676,14 @@ lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5686__ res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5686_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1); -l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2); +l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1); +l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2); +l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3 = _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__3); +l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4 = _init_l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4); l_Lean_Elab_Term_reportMatcherResultErrors___closed__1 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___closed__1); l_Lean_Elab_Term_reportMatcherResultErrors___closed__2 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 3cae577517..508099f4fc 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -23,7 +24,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop_ lean_object* l_Lean_Meta_MatcherApp_addArg_match__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern_match__1(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___closed__1; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -102,9 +102,11 @@ lean_object* l_Lean_Meta_Match_Unify_isAltVar___boxed(lean_object*, lean_object* lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f_match__1___boxed(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_substCore___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor_match__5(lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2; lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___spec__2(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__7; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -112,7 +114,6 @@ lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__1(lean_object*); extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_548____closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__3(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___boxed(lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4___boxed(lean_object*, lean_object*); @@ -142,7 +143,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLi lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___boxed(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__3; -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2; lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__2(lean_object*); @@ -161,7 +161,6 @@ lean_object* l_Lean_throwError___at_Lean_Meta_Match_processInaccessibleAsCtor___ lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1___closed__2; -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1; uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern___spec__1(uint8_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar___boxed(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,6 +180,7 @@ uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(lean_object* lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___closed__1; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___at_Lean_Meta_Match_mkMatcher___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -212,10 +212,12 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__3; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_MatcherApp_addArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6139_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6309_(lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__8; lean_object* l_Lean_Meta_Match_generateMatcherCode___boxed(lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__2(lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable_match__1(lean_object*); @@ -226,6 +228,7 @@ uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_has lean_object* l_Std_mkHashSet___at_Lean_Meta_Match_State_used___default___spec__1(lean_object*); lean_object* l_Nat_foldRevM_loop___at_Lean_Meta_MatcherApp_addArg___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2; lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__3(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts(lean_object*); @@ -253,6 +256,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toExpr_visit(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,9 +264,11 @@ lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___lambda__1___boxed(lean_object**); lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__3(lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern(lean_object*); extern lean_object* l_Lean_Meta_evalNat_visit___closed__19; @@ -271,6 +277,7 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__6; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__2; uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__2(lean_object*); @@ -303,7 +310,6 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__4; lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -320,11 +326,13 @@ lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___closed__2 lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__1(lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg_match__1(lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__1; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__2___closed__1; lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__1(lean_object*, lean_object*); @@ -336,6 +344,7 @@ lean_object* l_Lean_Meta_Match_mkMatcher___lambda__2___closed__4; lean_object* l_Lean_Meta_Match_Unify_assign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_occurs_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__2(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_State_counterExamples___default; @@ -358,7 +367,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern lean_object* l_Nat_foldRevM_loop___at_Lean_Meta_MatcherApp_addArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isFirstPatternVar(lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3; uint8_t l_Lean_Meta_Match_Unify_occurs___lambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_488____closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -412,6 +420,7 @@ lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_ lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Match_Unify_assign___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_Match_mkMatcher___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__1(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__10; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__3; @@ -449,6 +458,7 @@ lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__2; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition___boxed(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); @@ -459,6 +469,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState___c lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_mkMinorType___boxed__const__1; lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___closed__1; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1(lean_object*); +extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___spec__1___boxed(lean_object*, lean_object*); @@ -483,6 +494,7 @@ lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst(lean_object*, lean_object* lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___boxed(lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); @@ -606,6 +618,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern_m lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__5; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -625,6 +638,7 @@ extern lean_object* l_Lean_Meta_isLevelDefEqAux___closed__5; lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -655,6 +669,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___boxe lean_object* l_Lean_Meta_Match_isCurrVarInductive_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive___closed__1; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4; lean_object* l_Lean_Meta_setMCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Match_mkMatcher___spec__2(size_t, size_t, lean_object*); @@ -674,7 +689,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVa extern lean_object* l_Lean_Meta_evalNat_match__1___rarg___closed__1; lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__1(lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159_(lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329_(lean_object*); extern lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t, lean_object*); extern lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8; @@ -18229,6 +18244,500 @@ lean_dec(x_1); return x_7; } } +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes_match__2___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("pattern"); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_17; +lean_dec(x_3); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_17 = lean_ctor_get(x_10, 4); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_dec(x_10); +x_18 = l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +x_12 = x_18; +x_13 = x_8; +goto block_16; +} +else +{ +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; uint8_t x_29; lean_object* x_30; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_10, 0); +lean_inc(x_20); +lean_dec(x_10); +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 2); +x_24 = lean_ctor_get(x_6, 3); +x_25 = lean_ctor_get(x_6, 4); +x_26 = lean_ctor_get(x_6, 5); +x_27 = l_Lean_replaceRef(x_20, x_24); +lean_dec(x_20); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +x_28 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +lean_ctor_set(x_28, 2, x_23); +lean_ctor_set(x_28, 3, x_27); +lean_ctor_set(x_28, 4, x_25); +lean_ctor_set(x_28, 5, x_26); +x_29 = 0; +lean_inc(x_7); +lean_inc(x_28); +lean_inc(x_5); +lean_inc(x_4); +x_30 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_29, x_19, x_4, x_5, x_28, x_7, x_8); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_7); +lean_inc(x_28); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_33 = l_Lean_Meta_inferType(x_1, x_4, x_5, x_28, x_7, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +lean_inc(x_7); +lean_inc(x_28); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_31); +x_36 = l_Lean_Meta_inferType(x_31, x_4, x_5, x_28, x_7, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +lean_inc(x_7); +lean_inc(x_28); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_37); +lean_inc(x_34); +x_39 = l_Lean_Meta_isExprDefEq(x_34, x_37, x_4, x_5, x_28, x_7, x_38); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_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_11); +lean_dec(x_1); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +lean_inc(x_7); +lean_inc(x_28); +lean_inc(x_5); +lean_inc(x_4); +x_43 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_37, x_34, x_4, x_5, x_28, x_7, x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_indentExpr(x_31); +x_47 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_44); +x_52 = l_Lean_KernelException_toMessageData___closed__15; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_53, x_4, x_5, x_28, x_7, x_45); +lean_dec(x_7); +lean_dec(x_28); +lean_dec(x_5); +lean_dec(x_4); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +return x_54; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_54); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_28); +x_59 = lean_ctor_get(x_39, 1); +lean_inc(x_59); +lean_dec(x_39); +x_60 = l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +x_12 = x_60; +x_13 = x_59; +goto block_16; +} +} +else +{ +uint8_t x_61; +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_39); +if (x_61 == 0) +{ +return x_39; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_39, 0); +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_39); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_36); +if (x_65 == 0) +{ +return x_36; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_36, 0); +x_67 = lean_ctor_get(x_36, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_36); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_33); +if (x_69 == 0) +{ +return x_33; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_33, 0); +x_71 = lean_ctor_get(x_33, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_33); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_30); +if (x_73 == 0) +{ +return x_30; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_30, 0); +x_75 = lean_ctor_get(x_30, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_30); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +block_16: +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_2 = x_11; +x_3 = x_14; +x_8 = x_13; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1___boxed), 6, 0); +return x_1; +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); +x_12 = lean_box(0); +x_13 = lean_alloc_closure((void*)(l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___boxed), 8, 3); +lean_closure_set(x_13, 0, x_10); +lean_closure_set(x_13, 1, x_11); +lean_closure_set(x_13, 2, x_12); +x_14 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_Match_withGoalOf___rarg(x_1, x_15, x_2, x_3, x_4, x_5, x_6); +return x_16; +} +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_9; +} +} +lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___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) { _start: { @@ -18342,7 +18851,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; -x_1 = lean_mk_string("non variable"); +x_1 = lean_mk_string("variable"); return x_1; } } @@ -18350,7 +18859,7 @@ static lean_object* _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_p _start: { lean_object* x_1; -x_1 = lean_mk_string("variable"); +x_1 = lean_mk_string("non variable"); return x_1; } } @@ -18403,996 +18912,922 @@ lean_inc(x_2); x_16 = l_Lean_Meta_Match_isCurrVarInductive(x_2, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_88; +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_106; x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_88 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(x_2); -if (x_88 == 0) +x_106 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(x_2); +if (x_106 == 0) { -uint8_t x_89; -x_89 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(x_2); -if (x_89 == 0) +uint8_t x_107; +x_107 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(x_2); +if (x_107 == 0) { -uint8_t x_90; -x_90 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(x_2); -if (x_90 == 0) +uint8_t x_108; +x_108 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(x_2); +if (x_108 == 0) { -uint8_t x_91; -x_91 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar(x_2); -if (x_91 == 0) +uint8_t x_109; +x_109 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar(x_2); +if (x_109 == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_dec(x_17); -x_92 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; -x_93 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_92, x_4, x_5, x_6, x_7, x_8, x_18); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -lean_dec(x_93); +x_110 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; +x_111 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_110, x_4, x_5, x_6, x_7, x_8, x_18); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_95 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable(x_2, x_5, x_6, x_7, x_8, x_94); -if (lean_obj_tag(x_95) == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_96, x_4, x_5, x_6, x_7, x_8, x_97); -return x_98; -} -else -{ -uint8_t x_99; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_99 = !lean_is_exclusive(x_95); -if (x_99 == 0) -{ -return x_95; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_95, 0); -x_101 = lean_ctor_get(x_95, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_95); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; -} -} -} -else -{ -uint8_t x_103; -x_103 = lean_unbox(x_17); -lean_dec(x_17); -if (x_103 == 0) -{ -uint8_t x_104; -x_104 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); -if (x_104 == 0) -{ -lean_object* x_105; -x_105 = lean_box(0); -x_19 = x_105; -goto block_87; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_106 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; -x_107 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_106, x_4, x_5, x_6, x_7, x_8, x_18); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_109 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_7, x_8, x_108); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_110, x_4, x_5, x_6, x_7, x_8, x_111); -return x_112; -} -else -{ -uint8_t x_113; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_113 = !lean_is_exclusive(x_109); -if (x_113 == 0) -{ -return x_109; -} -else +x_113 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable(x_2, x_5, x_6, x_7, x_8, x_112); +if (lean_obj_tag(x_113) == 0) { lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_109, 0); -x_115 = lean_ctor_get(x_109, 1); -lean_inc(x_115); +x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); -lean_dec(x_109); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_114, x_4, x_5, x_6, x_7, x_8, x_115); return x_116; } -} -} -} else { uint8_t x_117; -x_117 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition(x_2); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_117 = !lean_is_exclusive(x_113); if (x_117 == 0) { -uint8_t x_118; -x_118 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); -if (x_118 == 0) -{ -lean_object* x_119; -x_119 = lean_box(0); -x_19 = x_119; -goto block_87; +return x_113; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; -x_121 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_120, x_4, x_5, x_6, x_7, x_8, x_18); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -lean_dec(x_121); +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_113, 0); +x_119 = lean_ctor_get(x_113, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_113); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +} +else +{ +uint8_t x_121; +x_121 = lean_unbox(x_17); +lean_dec(x_17); +if (x_121 == 0) +{ +lean_object* x_122; +x_122 = lean_box(0); +x_19 = x_122; +goto block_105; +} +else +{ +uint8_t x_123; +x_123 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition(x_2); +if (x_123 == 0) +{ +lean_object* x_124; +x_124 = lean_box(0); +x_19 = x_124; +goto block_105; +} +else +{ +lean_object* x_125; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_123 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_7, x_8, x_122); -if (lean_obj_tag(x_123) == 0) +x_125 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(x_2, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec(x_123); -x_126 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_124, x_4, x_5, x_6, x_7, x_8, x_125); -return x_126; -} -else +uint8_t x_126; +x_126 = !lean_is_exclusive(x_125); +if (x_126 == 0) { -uint8_t x_127; +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_127 = lean_ctor_get(x_125, 0); +x_128 = lean_ctor_get(x_125, 1); +x_129 = lean_array_get_size(x_127); +x_130 = lean_unsigned_to_nat(0u); +x_131 = lean_nat_dec_lt(x_130, x_129); +if (x_131 == 0) +{ +lean_object* x_132; +lean_dec(x_129); +lean_dec(x_127); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -x_127 = !lean_is_exclusive(x_123); -if (x_127 == 0) -{ -return x_123; +x_132 = lean_box(0); +lean_ctor_set(x_125, 0, x_132); +return x_125; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_123, 0); -x_129 = lean_ctor_get(x_123, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_123); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; +uint8_t x_133; +x_133 = lean_nat_dec_le(x_129, x_129); +if (x_133 == 0) +{ +lean_object* x_134; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_134 = lean_box(0); +lean_ctor_set(x_125, 0, x_134); +return x_125; +} +else +{ +size_t x_135; size_t x_136; lean_object* x_137; lean_object* x_138; +lean_free_object(x_125); +x_135 = 0; +x_136 = lean_usize_of_nat(x_129); +lean_dec(x_129); +x_137 = lean_box(0); +x_138 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_127, x_135, x_136, x_137, x_4, x_5, x_6, x_7, x_8, x_128); +lean_dec(x_127); +return x_138; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_139 = lean_ctor_get(x_125, 0); +x_140 = lean_ctor_get(x_125, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_125); +x_141 = lean_array_get_size(x_139); +x_142 = lean_unsigned_to_nat(0u); +x_143 = lean_nat_dec_lt(x_142, x_141); +if (x_143 == 0) +{ +lean_object* x_144; lean_object* x_145; +lean_dec(x_141); +lean_dec(x_139); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_144 = lean_box(0); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_140); +return x_145; +} +else +{ +uint8_t x_146; +x_146 = lean_nat_dec_le(x_141, x_141); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; +lean_dec(x_141); +lean_dec(x_139); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_140); +return x_148; +} +else +{ +size_t x_149; size_t x_150; lean_object* x_151; lean_object* x_152; +x_149 = 0; +x_150 = lean_usize_of_nat(x_141); +lean_dec(x_141); +x_151 = lean_box(0); +x_152 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_139, x_149, x_150, x_151, x_4, x_5, x_6, x_7, x_8, x_140); +lean_dec(x_139); +return x_152; } } } } else { -lean_object* x_131; +uint8_t x_153; +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_153 = !lean_is_exclusive(x_125); +if (x_153 == 0) +{ +return x_125; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_125, 0); +x_155 = lean_ctor_get(x_125, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_125); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} +} +} +} +} +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_17); +x_157 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__3; +x_158 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_157, x_4, x_5, x_6, x_7, x_8, x_18); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern(x_2); +x_161 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_160, x_4, x_5, x_6, x_7, x_8, x_159); +return x_161; +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_17); +x_162 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__4; +x_163 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_162, x_4, x_5, x_6, x_7, x_8, x_18); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec(x_163); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_131 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(x_2, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_131) == 0) +x_165 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(x_2, x_5, x_6, x_7, x_8, x_164); +if (lean_obj_tag(x_165) == 0) { -uint8_t x_132; -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_166, x_4, x_5, x_6, x_7, x_8, x_167); +return x_168; +} +else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_133 = lean_ctor_get(x_131, 0); -x_134 = lean_ctor_get(x_131, 1); -x_135 = lean_array_get_size(x_133); -x_136 = lean_unsigned_to_nat(0u); -x_137 = lean_nat_dec_lt(x_136, x_135); -if (x_137 == 0) -{ -lean_object* x_138; -lean_dec(x_135); -lean_dec(x_133); +uint8_t x_169; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -x_138 = lean_box(0); -lean_ctor_set(x_131, 0, x_138); -return x_131; +x_169 = !lean_is_exclusive(x_165); +if (x_169 == 0) +{ +return x_165; } else { -uint8_t x_139; -x_139 = lean_nat_dec_le(x_135, x_135); -if (x_139 == 0) -{ -lean_object* x_140; -lean_dec(x_135); -lean_dec(x_133); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_140 = lean_box(0); -lean_ctor_set(x_131, 0, x_140); -return x_131; -} -else -{ -size_t x_141; size_t x_142; lean_object* x_143; lean_object* x_144; -lean_free_object(x_131); -x_141 = 0; -x_142 = lean_usize_of_nat(x_135); -lean_dec(x_135); -x_143 = lean_box(0); -x_144 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_133, x_141, x_142, x_143, x_4, x_5, x_6, x_7, x_8, x_134); -lean_dec(x_133); -return x_144; -} -} -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -x_145 = lean_ctor_get(x_131, 0); -x_146 = lean_ctor_get(x_131, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_131); -x_147 = lean_array_get_size(x_145); -x_148 = lean_unsigned_to_nat(0u); -x_149 = lean_nat_dec_lt(x_148, x_147); -if (x_149 == 0) -{ -lean_object* x_150; lean_object* x_151; -lean_dec(x_147); -lean_dec(x_145); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_150 = lean_box(0); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_146); -return x_151; -} -else -{ -uint8_t x_152; -x_152 = lean_nat_dec_le(x_147, x_147); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; -lean_dec(x_147); -lean_dec(x_145); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_153 = lean_box(0); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_146); -return x_154; -} -else -{ -size_t x_155; size_t x_156; lean_object* x_157; lean_object* x_158; -x_155 = 0; -x_156 = lean_usize_of_nat(x_147); -lean_dec(x_147); -x_157 = lean_box(0); -x_158 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_145, x_155, x_156, x_157, x_4, x_5, x_6, x_7, x_8, x_146); -lean_dec(x_145); -return x_158; -} -} -} -} -else -{ -uint8_t x_159; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_159 = !lean_is_exclusive(x_131); -if (x_159 == 0) -{ -return x_131; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_131, 0); -x_161 = lean_ctor_get(x_131, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_131); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; -} -} -} -} -} -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_17); -x_163 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__3; -x_164 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_163, x_4, x_5, x_6, x_7, x_8, x_18); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec(x_164); -x_166 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern(x_2); -x_167 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_166, x_4, x_5, x_6, x_7, x_8, x_165); -return x_167; -} -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_17); -x_168 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__4; -x_169 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_168, x_4, x_5, x_6, x_7, x_8, x_18); -x_170 = lean_ctor_get(x_169, 1); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_165, 0); +x_171 = lean_ctor_get(x_165, 1); +lean_inc(x_171); lean_inc(x_170); -lean_dec(x_169); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_171 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(x_2, x_5, x_6, x_7, x_8, x_170); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -lean_dec(x_171); -x_174 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_172, x_4, x_5, x_6, x_7, x_8, x_173); -return x_174; -} -else -{ -uint8_t x_175; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_175 = !lean_is_exclusive(x_171); -if (x_175 == 0) -{ -return x_171; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_176 = lean_ctor_get(x_171, 0); -x_177 = lean_ctor_get(x_171, 1); -lean_inc(x_177); -lean_inc(x_176); -lean_dec(x_171); -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -return x_178; +lean_dec(x_165); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +return x_172; } } } } else { -lean_object* x_179; +lean_object* x_173; lean_dec(x_17); -x_179 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf(x_2, x_4, x_5, x_6, x_7, x_8, x_18); -return x_179; +x_173 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf(x_2, x_4, x_5, x_6, x_7, x_8, x_18); +return x_173; } -block_87: +block_105: { uint8_t x_20; lean_dec(x_19); -x_20 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(x_2); +x_20 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); if (x_20 == 0) { uint8_t x_21; -x_21 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition(x_2); +x_21 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(x_2); if (x_21 == 0) { -lean_object* x_22; -x_22 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(x_2, x_5, x_6, x_7, x_8, x_18); -return x_22; -} -else +uint8_t x_22; +x_22 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition(x_2); +if (x_22 == 0) { lean_object* x_23; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_23 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit(x_2, x_5, x_6, x_7, x_8, x_18); +lean_inc(x_2); +x_23 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes(x_2, x_5, x_6, x_7, x_8, x_18); if (lean_obj_tag(x_23) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -x_27 = lean_array_get_size(x_25); -x_28 = lean_unsigned_to_nat(0u); -x_29 = lean_nat_dec_lt(x_28, x_27); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_30 = lean_box(0); -lean_ctor_set(x_23, 0, x_30); -return x_23; -} -else -{ -uint8_t x_31; -x_31 = lean_nat_dec_le(x_27, x_27); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_32 = lean_box(0); -lean_ctor_set(x_23, 0, x_32); -return x_23; -} -else -{ -size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; -lean_free_object(x_23); -x_33 = 0; -x_34 = lean_usize_of_nat(x_27); -lean_dec(x_27); -x_35 = lean_box(0); -x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_25, x_33, x_34, x_35, x_4, x_5, x_6, x_7, x_8, x_26); -lean_dec(x_25); -return x_36; -} -} -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_37 = lean_ctor_get(x_23, 0); -x_38 = lean_ctor_get(x_23, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); lean_dec(x_23); -x_39 = lean_array_get_size(x_37); -x_40 = lean_unsigned_to_nat(0u); -x_41 = lean_nat_dec_lt(x_40, x_39); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_39); -lean_dec(x_37); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_42 = lean_box(0); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_38); -return x_43; +x_25 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(x_2, x_5, x_6, x_7, x_8, x_24); +return x_25; } else { -uint8_t x_44; -x_44 = lean_nat_dec_le(x_39, x_39); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -lean_dec(x_39); -lean_dec(x_37); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_38); -return x_46; -} -else -{ -size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; -x_47 = 0; -x_48 = lean_usize_of_nat(x_39); -lean_dec(x_39); -x_49 = lean_box(0); -x_50 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_37, x_47, x_48, x_49, x_4, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_37); -return x_50; -} -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_51 = !lean_is_exclusive(x_23); -if (x_51 == 0) -{ -return x_23; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_23, 0); -x_53 = lean_ctor_get(x_23, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_23); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -else -{ -lean_object* x_55; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_55 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(x_2, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_55) == 0) -{ -uint8_t x_56; -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); -x_59 = lean_array_get_size(x_57); -x_60 = lean_unsigned_to_nat(0u); -x_61 = lean_nat_dec_lt(x_60, x_59); -if (x_61 == 0) -{ -lean_object* x_62; -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_62 = lean_box(0); -lean_ctor_set(x_55, 0, x_62); -return x_55; -} -else -{ -uint8_t x_63; -x_63 = lean_nat_dec_le(x_59, x_59); -if (x_63 == 0) -{ -lean_object* x_64; -lean_dec(x_59); -lean_dec(x_57); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_64 = lean_box(0); -lean_ctor_set(x_55, 0, x_64); -return x_55; -} -else -{ -size_t x_65; size_t x_66; lean_object* x_67; lean_object* x_68; -lean_free_object(x_55); -x_65 = 0; -x_66 = lean_usize_of_nat(x_59); -lean_dec(x_59); -x_67 = lean_box(0); -x_68 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_57, x_65, x_66, x_67, x_4, x_5, x_6, x_7, x_8, x_58); -lean_dec(x_57); -return x_68; -} -} -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_69 = lean_ctor_get(x_55, 0); -x_70 = lean_ctor_get(x_55, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_55); -x_71 = lean_array_get_size(x_69); -x_72 = lean_unsigned_to_nat(0u); -x_73 = lean_nat_dec_lt(x_72, x_71); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_70); -return x_75; -} -else -{ -uint8_t x_76; -x_76 = lean_nat_dec_le(x_71, x_71); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_77 = lean_box(0); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_70); -return x_78; -} -else -{ -size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; -x_79 = 0; -x_80 = lean_usize_of_nat(x_71); -lean_dec(x_71); -x_81 = lean_box(0); -x_82 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_69, x_79, x_80, x_81, x_4, x_5, x_6, x_7, x_8, x_70); -lean_dec(x_69); -return x_82; -} -} -} -} -else -{ -uint8_t x_83; -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_83 = !lean_is_exclusive(x_55); -if (x_83 == 0) -{ -return x_55; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_55, 0); -x_85 = lean_ctor_get(x_55, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_55); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -} -} -else -{ -uint8_t x_180; +uint8_t x_26; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_180 = !lean_is_exclusive(x_16); -if (x_180 == 0) +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +lean_object* x_30; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_30 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit(x_2, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +x_34 = lean_array_get_size(x_32); +x_35 = lean_unsigned_to_nat(0u); +x_36 = lean_nat_dec_lt(x_35, x_34); +if (x_36 == 0) +{ +lean_object* x_37; +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_37 = lean_box(0); +lean_ctor_set(x_30, 0, x_37); +return x_30; +} +else +{ +uint8_t x_38; +x_38 = lean_nat_dec_le(x_34, x_34); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_39 = lean_box(0); +lean_ctor_set(x_30, 0, x_39); +return x_30; +} +else +{ +size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; +lean_free_object(x_30); +x_40 = 0; +x_41 = lean_usize_of_nat(x_34); +lean_dec(x_34); +x_42 = lean_box(0); +x_43 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_32, x_40, x_41, x_42, x_4, x_5, x_6, x_7, x_8, x_33); +lean_dec(x_32); +return x_43; +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_44 = lean_ctor_get(x_30, 0); +x_45 = lean_ctor_get(x_30, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_30); +x_46 = lean_array_get_size(x_44); +x_47 = lean_unsigned_to_nat(0u); +x_48 = lean_nat_dec_lt(x_47, x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_46); +lean_dec(x_44); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +else +{ +uint8_t x_51; +x_51 = lean_nat_dec_le(x_46, x_46); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_46); +lean_dec(x_44); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_45); +return x_53; +} +else +{ +size_t x_54; size_t x_55; lean_object* x_56; lean_object* x_57; +x_54 = 0; +x_55 = lean_usize_of_nat(x_46); +lean_dec(x_46); +x_56 = lean_box(0); +x_57 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_44, x_54, x_55, x_56, x_4, x_5, x_6, x_7, x_8, x_45); +lean_dec(x_44); +return x_57; +} +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_58 = !lean_is_exclusive(x_30); +if (x_58 == 0) +{ +return x_30; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_30, 0); +x_60 = lean_ctor_get(x_30, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_30); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +else +{ +lean_object* x_62; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_62 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(x_2, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_62) == 0) +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_62, 1); +x_66 = lean_array_get_size(x_64); +x_67 = lean_unsigned_to_nat(0u); +x_68 = lean_nat_dec_lt(x_67, x_66); +if (x_68 == 0) +{ +lean_object* x_69; +lean_dec(x_66); +lean_dec(x_64); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_69 = lean_box(0); +lean_ctor_set(x_62, 0, x_69); +return x_62; +} +else +{ +uint8_t x_70; +x_70 = lean_nat_dec_le(x_66, x_66); +if (x_70 == 0) +{ +lean_object* x_71; +lean_dec(x_66); +lean_dec(x_64); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_71 = lean_box(0); +lean_ctor_set(x_62, 0, x_71); +return x_62; +} +else +{ +size_t x_72; size_t x_73; lean_object* x_74; lean_object* x_75; +lean_free_object(x_62); +x_72 = 0; +x_73 = lean_usize_of_nat(x_66); +lean_dec(x_66); +x_74 = lean_box(0); +x_75 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_64, x_72, x_73, x_74, x_4, x_5, x_6, x_7, x_8, x_65); +lean_dec(x_64); +return x_75; +} +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_76 = lean_ctor_get(x_62, 0); +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_62); +x_78 = lean_array_get_size(x_76); +x_79 = lean_unsigned_to_nat(0u); +x_80 = lean_nat_dec_lt(x_79, x_78); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_78); +lean_dec(x_76); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_81 = lean_box(0); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_77); +return x_82; +} +else +{ +uint8_t x_83; +x_83 = lean_nat_dec_le(x_78, x_78); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_78); +lean_dec(x_76); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_77); +return x_85; +} +else +{ +size_t x_86; size_t x_87; lean_object* x_88; lean_object* x_89; +x_86 = 0; +x_87 = lean_usize_of_nat(x_78); +lean_dec(x_78); +x_88 = lean_box(0); +x_89 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_76, x_86, x_87, x_88, x_4, x_5, x_6, x_7, x_8, x_77); +lean_dec(x_76); +return x_89; +} +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_90 = !lean_is_exclusive(x_62); +if (x_90 == 0) +{ +return x_62; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_62, 0); +x_92 = lean_ctor_get(x_62, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_62); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_94 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; +x_95 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_94, x_4, x_5, x_6, x_7, x_8, x_18); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_97 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_7, x_8, x_96); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_98, x_4, x_5, x_6, x_7, x_8, x_99); +return x_100; +} +else +{ +uint8_t x_101; +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_101 = !lean_is_exclusive(x_97); +if (x_101 == 0) +{ +return x_97; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_97, 0); +x_103 = lean_ctor_get(x_97, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_97); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +} +} +else +{ +uint8_t x_174; +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_174 = !lean_is_exclusive(x_16); +if (x_174 == 0) { return x_16; } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_16, 0); -x_182 = lean_ctor_get(x_16, 1); -lean_inc(x_182); -lean_inc(x_181); +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_16, 0); +x_176 = lean_ctor_get(x_16, 1); +lean_inc(x_176); +lean_inc(x_175); lean_dec(x_16); -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_181); -lean_ctor_set(x_183, 1, x_182); -return x_183; +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +return x_177; } } } else { -uint8_t x_184; +uint8_t x_178; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_184 = !lean_is_exclusive(x_14); -if (x_184 == 0) +x_178 = !lean_is_exclusive(x_14); +if (x_178 == 0) { return x_14; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_14, 0); -x_186 = lean_ctor_get(x_14, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_14, 0); +x_180 = lean_ctor_get(x_14, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_14); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +return x_181; +} +} +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_182 = lean_ctor_get(x_7, 0); +x_183 = lean_ctor_get(x_7, 2); +x_184 = lean_ctor_get(x_7, 3); +x_185 = lean_ctor_get(x_7, 4); +x_186 = lean_ctor_get(x_7, 5); lean_inc(x_186); lean_inc(x_185); -lean_dec(x_14); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; -} -} -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_188 = lean_ctor_get(x_7, 0); -x_189 = lean_ctor_get(x_7, 2); -x_190 = lean_ctor_get(x_7, 3); -x_191 = lean_ctor_get(x_7, 4); -x_192 = lean_ctor_get(x_7, 5); -lean_inc(x_192); -lean_inc(x_191); -lean_inc(x_190); -lean_inc(x_189); -lean_inc(x_188); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); lean_dec(x_7); -x_193 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_193, 0, x_188); -lean_ctor_set(x_193, 1, x_11); -lean_ctor_set(x_193, 2, x_189); -lean_ctor_set(x_193, 3, x_190); -lean_ctor_set(x_193, 4, x_191); -lean_ctor_set(x_193, 5, x_192); +x_187 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_187, 0, x_182); +lean_ctor_set(x_187, 1, x_11); +lean_ctor_set(x_187, 2, x_183); +lean_ctor_set(x_187, 3, x_184); +lean_ctor_set(x_187, 4, x_185); +lean_ctor_set(x_187, 5, x_186); lean_inc(x_8); -lean_inc(x_193); +lean_inc(x_187); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); -x_194 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState(x_2, x_5, x_6, x_193, x_8, x_9); -if (lean_obj_tag(x_194) == 0) +x_188 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState(x_2, x_5, x_6, x_187, x_8, x_9); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_195; lean_object* x_196; -x_195 = lean_ctor_get(x_194, 1); -lean_inc(x_195); -lean_dec(x_194); +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +lean_dec(x_188); lean_inc(x_8); -lean_inc(x_193); +lean_inc(x_187); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); -x_196 = l_Lean_Meta_Match_isCurrVarInductive(x_2, x_5, x_6, x_193, x_8, x_195); -if (lean_obj_tag(x_196) == 0) +x_190 = l_Lean_Meta_Match_isCurrVarInductive(x_2, x_5, x_6, x_187, x_8, x_189); +if (lean_obj_tag(x_190) == 0) { -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_244; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -x_244 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(x_2); -if (x_244 == 0) +lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_256; +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec(x_190); +x_256 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isDone(x_2); +if (x_256 == 0) { -uint8_t x_245; -x_245 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(x_2); -if (x_245 == 0) +uint8_t x_257; +x_257 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern(x_2); +if (x_257 == 0) { -uint8_t x_246; -x_246 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(x_2); -if (x_246 == 0) -{ -uint8_t x_247; -x_247 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar(x_2); -if (x_247 == 0) -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_197); -x_248 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; -x_249 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_248, x_4, x_5, x_6, x_193, x_8, x_198); -x_250 = lean_ctor_get(x_249, 1); -lean_inc(x_250); -lean_dec(x_249); -lean_inc(x_8); -lean_inc(x_193); -lean_inc(x_6); -lean_inc(x_5); -x_251 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable(x_2, x_5, x_6, x_193, x_8, x_250); -if (lean_obj_tag(x_251) == 0) -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); -x_254 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_252, x_4, x_5, x_6, x_193, x_8, x_253); -return x_254; -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_255 = lean_ctor_get(x_251, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_251, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_251)) { - lean_ctor_release(x_251, 0); - lean_ctor_release(x_251, 1); - x_257 = x_251; -} else { - lean_dec_ref(x_251); - x_257 = lean_box(0); -} -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(1, 2, 0); -} else { - x_258 = x_257; -} -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -return x_258; -} -} -else +uint8_t x_258; +x_258 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(x_2); +if (x_258 == 0) { uint8_t x_259; -x_259 = lean_unbox(x_197); -lean_dec(x_197); +x_259 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar(x_2); if (x_259 == 0) { -uint8_t x_260; -x_260 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); -if (x_260 == 0) -{ -lean_object* x_261; -x_261 = lean_box(0); -x_199 = x_261; -goto block_243; -} -else -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_262 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; -x_263 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_262, x_4, x_5, x_6, x_193, x_8, x_198); -x_264 = lean_ctor_get(x_263, 1); -lean_inc(x_264); -lean_dec(x_263); +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_191); +x_260 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; +x_261 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_260, x_4, x_5, x_6, x_187, x_8, x_192); +x_262 = lean_ctor_get(x_261, 1); +lean_inc(x_262); +lean_dec(x_261); lean_inc(x_8); -lean_inc(x_193); +lean_inc(x_187); lean_inc(x_6); lean_inc(x_5); -x_265 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_193, x_8, x_264); -if (lean_obj_tag(x_265) == 0) +x_263 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable(x_2, x_5, x_6, x_187, x_8, x_262); +if (lean_obj_tag(x_263) == 0) { -lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -lean_dec(x_265); -x_268 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_266, x_4, x_5, x_6, x_193, x_8, x_267); -return x_268; +lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_264 = lean_ctor_get(x_263, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_263, 1); +lean_inc(x_265); +lean_dec(x_263); +x_266 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_264, x_4, x_5, x_6, x_187, x_8, x_265); +return x_266; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec(x_193); +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_187); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -x_269 = lean_ctor_get(x_265, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_265, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_271 = x_265; +x_267 = lean_ctor_get(x_263, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_263, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_269 = x_263; } else { - lean_dec_ref(x_265); - x_271 = lean_box(0); + lean_dec_ref(x_263); + x_269 = lean_box(0); } -if (lean_is_scalar(x_271)) { - x_272 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_269)) { + x_270 = lean_alloc_ctor(1, 2, 0); } else { - x_272 = x_271; + x_270 = x_269; } -lean_ctor_set(x_272, 0, x_269); -lean_ctor_set(x_272, 1, x_270); -return x_272; +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; } } +else +{ +uint8_t x_271; +x_271 = lean_unbox(x_191); +lean_dec(x_191); +if (x_271 == 0) +{ +lean_object* x_272; +x_272 = lean_box(0); +x_193 = x_272; +goto block_255; } else { @@ -19400,557 +19835,599 @@ uint8_t x_273; x_273 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition(x_2); if (x_273 == 0) { -uint8_t x_274; -x_274 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); -if (x_274 == 0) +lean_object* x_274; +x_274 = lean_box(0); +x_193 = x_274; +goto block_255; +} +else { lean_object* x_275; -x_275 = lean_box(0); -x_199 = x_275; -goto block_243; -} -else -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; -x_276 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; -x_277 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_276, x_4, x_5, x_6, x_193, x_8, x_198); -x_278 = lean_ctor_get(x_277, 1); -lean_inc(x_278); -lean_dec(x_277); lean_inc(x_8); -lean_inc(x_193); +lean_inc(x_187); lean_inc(x_6); lean_inc(x_5); -x_279 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_193, x_8, x_278); -if (lean_obj_tag(x_279) == 0) +x_275 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(x_2, x_5, x_6, x_187, x_8, x_192); +if (lean_obj_tag(x_275) == 0) { -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -lean_dec(x_279); -x_282 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_280, x_4, x_5, x_6, x_193, x_8, x_281); -return x_282; +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_276 = lean_ctor_get(x_275, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_275, 1); +lean_inc(x_277); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_278 = x_275; +} else { + lean_dec_ref(x_275); + x_278 = lean_box(0); } -else +x_279 = lean_array_get_size(x_276); +x_280 = lean_unsigned_to_nat(0u); +x_281 = lean_nat_dec_lt(x_280, x_279); +if (x_281 == 0) { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_193); +lean_object* x_282; lean_object* x_283; +lean_dec(x_279); +lean_dec(x_276); +lean_dec(x_187); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -x_283 = lean_ctor_get(x_279, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_279, 1); -lean_inc(x_284); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_285 = x_279; +x_282 = lean_box(0); +if (lean_is_scalar(x_278)) { + x_283 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_279); - x_285 = lean_box(0); + x_283 = x_278; } -if (lean_is_scalar(x_285)) { - x_286 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_277); +return x_283; +} +else +{ +uint8_t x_284; +x_284 = lean_nat_dec_le(x_279, x_279); +if (x_284 == 0) +{ +lean_object* x_285; lean_object* x_286; +lean_dec(x_279); +lean_dec(x_276); +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_285 = lean_box(0); +if (lean_is_scalar(x_278)) { + x_286 = lean_alloc_ctor(0, 2, 0); } else { - x_286 = x_285; + x_286 = x_278; } -lean_ctor_set(x_286, 0, x_283); -lean_ctor_set(x_286, 1, x_284); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_277); return x_286; } +else +{ +size_t x_287; size_t x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_278); +x_287 = 0; +x_288 = lean_usize_of_nat(x_279); +lean_dec(x_279); +x_289 = lean_box(0); +x_290 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_276, x_287, x_288, x_289, x_4, x_5, x_6, x_187, x_8, x_277); +lean_dec(x_276); +return x_290; +} } } else { -lean_object* x_287; +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_291 = lean_ctor_get(x_275, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_275, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_293 = x_275; +} else { + lean_dec_ref(x_275); + x_293 = lean_box(0); +} +if (lean_is_scalar(x_293)) { + x_294 = lean_alloc_ctor(1, 2, 0); +} else { + x_294 = x_293; +} +lean_ctor_set(x_294, 0, x_291); +lean_ctor_set(x_294, 1, x_292); +return x_294; +} +} +} +} +} +else +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +lean_dec(x_191); +x_295 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__3; +x_296 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_295, x_4, x_5, x_6, x_187, x_8, x_192); +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); +x_298 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern(x_2); +x_299 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_298, x_4, x_5, x_6, x_187, x_8, x_297); +return x_299; +} +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +lean_dec(x_191); +x_300 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__4; +x_301 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_300, x_4, x_5, x_6, x_187, x_8, x_192); +x_302 = lean_ctor_get(x_301, 1); +lean_inc(x_302); +lean_dec(x_301); lean_inc(x_8); -lean_inc(x_193); +lean_inc(x_187); lean_inc(x_6); lean_inc(x_5); -x_287 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(x_2, x_5, x_6, x_193, x_8, x_198); -if (lean_obj_tag(x_287) == 0) +x_303 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(x_2, x_5, x_6, x_187, x_8, x_302); +if (lean_obj_tag(x_303) == 0) { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; -x_288 = lean_ctor_get(x_287, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_287, 1); -lean_inc(x_289); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_290 = x_287; -} else { - lean_dec_ref(x_287); - x_290 = lean_box(0); -} -x_291 = lean_array_get_size(x_288); -x_292 = lean_unsigned_to_nat(0u); -x_293 = lean_nat_dec_lt(x_292, x_291); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; -lean_dec(x_291); -lean_dec(x_288); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_294 = lean_box(0); -if (lean_is_scalar(x_290)) { - x_295 = lean_alloc_ctor(0, 2, 0); -} else { - x_295 = x_290; -} -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_289); -return x_295; -} -else -{ -uint8_t x_296; -x_296 = lean_nat_dec_le(x_291, x_291); -if (x_296 == 0) -{ -lean_object* x_297; lean_object* x_298; -lean_dec(x_291); -lean_dec(x_288); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_297 = lean_box(0); -if (lean_is_scalar(x_290)) { - x_298 = lean_alloc_ctor(0, 2, 0); -} else { - x_298 = x_290; -} -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_289); -return x_298; -} -else -{ -size_t x_299; size_t x_300; lean_object* x_301; lean_object* x_302; -lean_dec(x_290); -x_299 = 0; -x_300 = lean_usize_of_nat(x_291); -lean_dec(x_291); -x_301 = lean_box(0); -x_302 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_288, x_299, x_300, x_301, x_4, x_5, x_6, x_193, x_8, x_289); -lean_dec(x_288); -return x_302; -} -} -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_303 = lean_ctor_get(x_287, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_287, 1); +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_303, 0); lean_inc(x_304); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_305 = x_287; -} else { - lean_dec_ref(x_287); - x_305 = lean_box(0); -} -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(1, 2, 0); -} else { - x_306 = x_305; -} -lean_ctor_set(x_306, 0, x_303); -lean_ctor_set(x_306, 1, x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_304, x_4, x_5, x_6, x_187, x_8, x_305); return x_306; } +else +{ +lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_307 = lean_ctor_get(x_303, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_303, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_309 = x_303; +} else { + lean_dec_ref(x_303); + x_309 = lean_box(0); } +if (lean_is_scalar(x_309)) { + x_310 = lean_alloc_ctor(1, 2, 0); +} else { + x_310 = x_309; +} +lean_ctor_set(x_310, 0, x_307); +lean_ctor_set(x_310, 1, x_308); +return x_310; } } } else { -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -lean_dec(x_197); -x_307 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__3; -x_308 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_307, x_4, x_5, x_6, x_193, x_8, x_198); -x_309 = lean_ctor_get(x_308, 1); -lean_inc(x_309); -lean_dec(x_308); -x_310 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern(x_2); -x_311 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_310, x_4, x_5, x_6, x_193, x_8, x_309); +lean_object* x_311; +lean_dec(x_191); +x_311 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf(x_2, x_4, x_5, x_6, x_187, x_8, x_192); return x_311; } +block_255: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(x_2); +if (x_194 == 0) +{ +uint8_t x_195; +x_195 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(x_2); +if (x_195 == 0) +{ +uint8_t x_196; +x_196 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition(x_2); +if (x_196 == 0) +{ +lean_object* x_197; +lean_inc(x_8); +lean_inc(x_187); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_2); +x_197 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes(x_2, x_5, x_6, x_187, x_8, x_192); +if (lean_obj_tag(x_197) == 0) +{ +lean_object* x_198; lean_object* x_199; +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +lean_dec(x_197); +x_199 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(x_2, x_5, x_6, x_187, x_8, x_198); +return x_199; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_200 = lean_ctor_get(x_197, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_197, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_202 = x_197; +} else { + lean_dec_ref(x_197); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; +} +} +else +{ +lean_object* x_204; +lean_inc(x_8); +lean_inc(x_187); +lean_inc(x_6); +lean_inc(x_5); +x_204 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit(x_2, x_5, x_6, x_187, x_8, x_192); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; +} else { + lean_dec_ref(x_204); + x_207 = lean_box(0); +} +x_208 = lean_array_get_size(x_205); +x_209 = lean_unsigned_to_nat(0u); +x_210 = lean_nat_dec_lt(x_209, x_208); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; +lean_dec(x_208); +lean_dec(x_205); +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_211 = lean_box(0); +if (lean_is_scalar(x_207)) { + x_212 = lean_alloc_ctor(0, 2, 0); +} else { + x_212 = x_207; +} +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_206); +return x_212; +} +else +{ +uint8_t x_213; +x_213 = lean_nat_dec_le(x_208, x_208); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; +lean_dec(x_208); +lean_dec(x_205); +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_214 = lean_box(0); +if (lean_is_scalar(x_207)) { + x_215 = lean_alloc_ctor(0, 2, 0); +} else { + x_215 = x_207; +} +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_206); +return x_215; +} +else +{ +size_t x_216; size_t x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_207); +x_216 = 0; +x_217 = lean_usize_of_nat(x_208); +lean_dec(x_208); +x_218 = lean_box(0); +x_219 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_205, x_216, x_217, x_218, x_4, x_5, x_6, x_187, x_8, x_206); +lean_dec(x_205); +return x_219; +} +} +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_220 = lean_ctor_get(x_204, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_204, 1); +lean_inc(x_221); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_222 = x_204; +} else { + lean_dec_ref(x_204); + x_222 = lean_box(0); +} +if (lean_is_scalar(x_222)) { + x_223 = lean_alloc_ctor(1, 2, 0); +} else { + x_223 = x_222; +} +lean_ctor_set(x_223, 0, x_220); +lean_ctor_set(x_223, 1, x_221); +return x_223; +} +} +} +else +{ +lean_object* x_224; +lean_inc(x_8); +lean_inc(x_187); +lean_inc(x_6); +lean_inc(x_5); +x_224 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(x_2, x_5, x_6, x_187, x_8, x_192); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_227 = x_224; +} else { + lean_dec_ref(x_224); + x_227 = lean_box(0); +} +x_228 = lean_array_get_size(x_225); +x_229 = lean_unsigned_to_nat(0u); +x_230 = lean_nat_dec_lt(x_229, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +lean_dec(x_228); +lean_dec(x_225); +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_231 = lean_box(0); +if (lean_is_scalar(x_227)) { + x_232 = lean_alloc_ctor(0, 2, 0); +} else { + x_232 = x_227; +} +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_226); +return x_232; +} +else +{ +uint8_t x_233; +x_233 = lean_nat_dec_le(x_228, x_228); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +lean_dec(x_228); +lean_dec(x_225); +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_234 = lean_box(0); +if (lean_is_scalar(x_227)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_227; +} +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_226); +return x_235; +} +else +{ +size_t x_236; size_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_227); +x_236 = 0; +x_237 = lean_usize_of_nat(x_228); +lean_dec(x_228); +x_238 = lean_box(0); +x_239 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_225, x_236, x_237, x_238, x_4, x_5, x_6, x_187, x_8, x_226); +lean_dec(x_225); +return x_239; +} +} +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_240 = lean_ctor_get(x_224, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_224, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_242 = x_224; +} else { + lean_dec_ref(x_224); + x_242 = lean_box(0); +} +if (lean_is_scalar(x_242)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_242; +} +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_241); +return x_243; +} +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_244 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1; +x_245 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_244, x_4, x_5, x_6, x_187, x_8, x_192); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +lean_inc(x_8); +lean_inc(x_187); +lean_inc(x_6); +lean_inc(x_5); +x_247 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(x_2, x_5, x_6, x_187, x_8, x_246); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +x_250 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_248, x_4, x_5, x_6, x_187, x_8, x_249); +return x_250; +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_251 = lean_ctor_get(x_247, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_247, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_253 = x_247; +} else { + lean_dec_ref(x_247); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_253)) { + x_254 = lean_alloc_ctor(1, 2, 0); +} else { + x_254 = x_253; +} +lean_ctor_set(x_254, 0, x_251); +lean_ctor_set(x_254, 1, x_252); +return x_254; +} +} +} } else { lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -lean_dec(x_197); -x_312 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__4; -x_313 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceStep(x_312, x_4, x_5, x_6, x_193, x_8, x_198); -x_314 = lean_ctor_get(x_313, 1); -lean_inc(x_314); -lean_dec(x_313); -lean_inc(x_8); -lean_inc(x_193); -lean_inc(x_6); -lean_inc(x_5); -x_315 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(x_2, x_5, x_6, x_193, x_8, x_314); -if (lean_obj_tag(x_315) == 0) +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_312 = lean_ctor_get(x_190, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_190, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_314 = x_190; +} else { + lean_dec_ref(x_190); + x_314 = lean_box(0); +} +if (lean_is_scalar(x_314)) { + x_315 = lean_alloc_ctor(1, 2, 0); +} else { + x_315 = x_314; +} +lean_ctor_set(x_315, 0, x_312); +lean_ctor_set(x_315, 1, x_313); +return x_315; +} +} +else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_315, 0); +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_187); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_316 = lean_ctor_get(x_188, 0); lean_inc(x_316); -x_317 = lean_ctor_get(x_315, 1); +x_317 = lean_ctor_get(x_188, 1); lean_inc(x_317); -lean_dec(x_315); -x_318 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process(x_316, x_4, x_5, x_6, x_193, x_8, x_317); -return x_318; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_319 = lean_ctor_get(x_315, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_315, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_315)) { - lean_ctor_release(x_315, 0); - lean_ctor_release(x_315, 1); - x_321 = x_315; +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_318 = x_188; } else { - lean_dec_ref(x_315); - x_321 = lean_box(0); + lean_dec_ref(x_188); + x_318 = lean_box(0); } -if (lean_is_scalar(x_321)) { - x_322 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_318)) { + x_319 = lean_alloc_ctor(1, 2, 0); } else { - x_322 = x_321; + x_319 = x_318; } -lean_ctor_set(x_322, 0, x_319); -lean_ctor_set(x_322, 1, x_320); -return x_322; -} -} -} -else -{ -lean_object* x_323; -lean_dec(x_197); -x_323 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf(x_2, x_4, x_5, x_6, x_193, x_8, x_198); -return x_323; -} -block_243: -{ -uint8_t x_200; -lean_dec(x_199); -x_200 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(x_2); -if (x_200 == 0) -{ -uint8_t x_201; -x_201 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition(x_2); -if (x_201 == 0) -{ -lean_object* x_202; -x_202 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported(x_2, x_5, x_6, x_193, x_8, x_198); -return x_202; -} -else -{ -lean_object* x_203; -lean_inc(x_8); -lean_inc(x_193); -lean_inc(x_6); -lean_inc(x_5); -x_203 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit(x_2, x_5, x_6, x_193, x_8, x_198); -if (lean_obj_tag(x_203) == 0) -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; -} else { - lean_dec_ref(x_203); - x_206 = lean_box(0); -} -x_207 = lean_array_get_size(x_204); -x_208 = lean_unsigned_to_nat(0u); -x_209 = lean_nat_dec_lt(x_208, x_207); -if (x_209 == 0) -{ -lean_object* x_210; lean_object* x_211; -lean_dec(x_207); -lean_dec(x_204); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_210 = lean_box(0); -if (lean_is_scalar(x_206)) { - x_211 = lean_alloc_ctor(0, 2, 0); -} else { - x_211 = x_206; -} -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_205); -return x_211; -} -else -{ -uint8_t x_212; -x_212 = lean_nat_dec_le(x_207, x_207); -if (x_212 == 0) -{ -lean_object* x_213; lean_object* x_214; -lean_dec(x_207); -lean_dec(x_204); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_213 = lean_box(0); -if (lean_is_scalar(x_206)) { - x_214 = lean_alloc_ctor(0, 2, 0); -} else { - x_214 = x_206; -} -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_205); -return x_214; -} -else -{ -size_t x_215; size_t x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_206); -x_215 = 0; -x_216 = lean_usize_of_nat(x_207); -lean_dec(x_207); -x_217 = lean_box(0); -x_218 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_204, x_215, x_216, x_217, x_4, x_5, x_6, x_193, x_8, x_205); -lean_dec(x_204); -return x_218; -} -} -} -else -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_219 = lean_ctor_get(x_203, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_203, 1); -lean_inc(x_220); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_221 = x_203; -} else { - lean_dec_ref(x_203); - x_221 = lean_box(0); -} -if (lean_is_scalar(x_221)) { - x_222 = lean_alloc_ctor(1, 2, 0); -} else { - x_222 = x_221; -} -lean_ctor_set(x_222, 0, x_219); -lean_ctor_set(x_222, 1, x_220); -return x_222; -} -} -} -else -{ -lean_object* x_223; -lean_inc(x_8); -lean_inc(x_193); -lean_inc(x_6); -lean_inc(x_5); -x_223 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(x_2, x_5, x_6, x_193, x_8, x_198); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_226 = x_223; -} else { - lean_dec_ref(x_223); - x_226 = lean_box(0); -} -x_227 = lean_array_get_size(x_224); -x_228 = lean_unsigned_to_nat(0u); -x_229 = lean_nat_dec_lt(x_228, x_227); -if (x_229 == 0) -{ -lean_object* x_230; lean_object* x_231; -lean_dec(x_227); -lean_dec(x_224); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_230 = lean_box(0); -if (lean_is_scalar(x_226)) { - x_231 = lean_alloc_ctor(0, 2, 0); -} else { - x_231 = x_226; -} -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_225); -return x_231; -} -else -{ -uint8_t x_232; -x_232 = lean_nat_dec_le(x_227, x_227); -if (x_232 == 0) -{ -lean_object* x_233; lean_object* x_234; -lean_dec(x_227); -lean_dec(x_224); -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_233 = lean_box(0); -if (lean_is_scalar(x_226)) { - x_234 = lean_alloc_ctor(0, 2, 0); -} else { - x_234 = x_226; -} -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_225); -return x_234; -} -else -{ -size_t x_235; size_t x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_226); -x_235 = 0; -x_236 = lean_usize_of_nat(x_227); -lean_dec(x_227); -x_237 = lean_box(0); -x_238 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___spec__1(x_224, x_235, x_236, x_237, x_4, x_5, x_6, x_193, x_8, x_225); -lean_dec(x_224); -return x_238; -} -} -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_239 = lean_ctor_get(x_223, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_223, 1); -lean_inc(x_240); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_241 = x_223; -} else { - lean_dec_ref(x_223); - x_241 = lean_box(0); -} -if (lean_is_scalar(x_241)) { - x_242 = lean_alloc_ctor(1, 2, 0); -} else { - x_242 = x_241; -} -lean_ctor_set(x_242, 0, x_239); -lean_ctor_set(x_242, 1, x_240); -return x_242; -} -} -} -} -else -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_324 = lean_ctor_get(x_196, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_196, 1); -lean_inc(x_325); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_326 = x_196; -} else { - lean_dec_ref(x_196); - x_326 = lean_box(0); -} -if (lean_is_scalar(x_326)) { - x_327 = lean_alloc_ctor(1, 2, 0); -} else { - x_327 = x_326; -} -lean_ctor_set(x_327, 0, x_324); -lean_ctor_set(x_327, 1, x_325); -return x_327; -} -} -else -{ -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -lean_dec(x_193); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_328 = lean_ctor_get(x_194, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_194, 1); -lean_inc(x_329); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - x_330 = x_194; -} else { - lean_dec_ref(x_194); - x_330 = lean_box(0); -} -if (lean_is_scalar(x_330)) { - x_331 = lean_alloc_ctor(1, 2, 0); -} else { - x_331 = x_330; -} -lean_ctor_set(x_331, 0, x_328); -lean_ctor_set(x_331, 1, x_329); -return x_331; +lean_ctor_set(x_319, 0, x_316); +lean_ctor_set(x_319, 1, x_317); +return x_319; } } } @@ -20294,7 +20771,7 @@ lean_dec(x_2); return x_8; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1() { _start: { lean_object* x_1; @@ -20302,17 +20779,17 @@ x_1 = lean_mk_string("bootstrap"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3() { _start: { lean_object* x_1; @@ -20320,17 +20797,17 @@ x_1 = lean_mk_string("gen_matcher_code"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3; +x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5() { _start: { lean_object* x_1; @@ -20338,13 +20815,13 @@ x_1 = lean_mk_string("disable code generation for auxiliary matcher function"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_initFn____x40_Lean_Data_Options___hyg_488____closed__3; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1; -x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1; +x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -20352,12 +20829,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159_(lean_object* x_1) { +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4; -x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4; +x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6; x_4 = lean_register_option(x_2, x_3, x_1); return x_4; } @@ -20366,7 +20843,7 @@ uint8_t l_Lean_Meta_Match_generateMatcherCode(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4; x_3 = 1; x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3); return x_4; @@ -23810,7 +24287,7 @@ lean_dec(x_5); return x_11; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6139_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6309_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -24074,6 +24551,12 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___closed_ lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___closed__1); l_Lean_Meta_Match_isCurrVarInductive___closed__1 = _init_l_Lean_Meta_Match_isCurrVarInductive___closed__1(); lean_mark_persistent(l_Lean_Meta_Match_isCurrVarInductive___closed__1); +l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1 = _init_l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__1); +l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2 = _init_l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1___closed__2); +l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___closed__1); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__1); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2(); @@ -24088,19 +24571,19 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2 lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__1); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__2); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__3); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__4); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__5); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159____closed__6); -res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5159_(lean_io_mk_world()); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__1); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__2); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__3); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__4); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__5); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329____closed__6); +res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_5329_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1 = _init_l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1(); @@ -24161,7 +24644,7 @@ l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1 = _init_l_Lean_Meta_Matche lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1); l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2 = _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2(); lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6139_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_6309_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp.c b/stage0/stdlib/Lean/Meta/Tactic/Simp.c index b5eba2c78e..1b2d6294d3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Simp -// Imports: Init Lean.Meta.Tactic.Simp.Basic +// Imports: Init Lean.Meta.Tactic.Simp.SimpLemmas Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.Simp.Main #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -14,7 +14,9 @@ extern "C" { #endif lean_object* initialize_Init(lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Simp_Basic(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_SimpLemmas(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_Types(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_Main(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Meta_Tactic_Simp(lean_object* w) { lean_object * res; @@ -23,7 +25,13 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Simp_Basic(lean_io_mk_world()); +res = initialize_Lean_Meta_Tactic_Simp_SimpLemmas(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Simp_Types(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Simp_Main(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c new file mode 100644 index 0000000000..83449e6e5f --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -0,0 +1,33 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Simp.Main +// Imports: Init Lean.Meta.Tactic.Simp.Types +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_Types(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Meta_Tactic_Simp_Main(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Simp_Types(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Basic.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c similarity index 85% rename from stage0/stdlib/Lean/Meta/Tactic/Simp/Basic.c rename to stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c index ccdff6845e..87fb38dd67 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Basic.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c @@ -1,5 +1,5 @@ // Lean compiler output -// Module: Lean.Meta.Tactic.Simp.Basic +// Module: Lean.Meta.Tactic.Simp.SimpLemmas // Imports: Init Lean.ScopedEnvExtension Lean.Util.Recognizers Lean.Meta.Basic Lean.Meta.DiscrTree #include #if defined(__clang__) @@ -15,40 +15,34 @@ extern "C" { #endif lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpLemmaEntry___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpLemmaEntry___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__3(lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_whnf___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addSimpLemmaEntry(lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6; extern lean_object* l_Array_back___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpLemma___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpLemmaEntry___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpLemmaEntry___spec__10(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3; lean_object* l_Lean_Meta_instInhabitedSimpLemmas; -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1; uint8_t l_Array_contains___at_Lean_Meta_addSimpLemmaEntry___spec__11(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__3(lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpLemmaEntry___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); @@ -70,9 +64,9 @@ lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getSimpLemmas___s lean_object* l_Lean_Meta_instToFormatSimpLemma_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object*, lean_object*); extern lean_object* l_Lean_registerTagAttribute___closed__5; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6; lean_object* l_Lean_getAttrParamOptPrio(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getSimpLemmas(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5; lean_object* l_Lean_Meta_instToFormatSimpLemma(lean_object*); lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpLemmaEntry___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -80,28 +74,29 @@ extern lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux_ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Meta_addSimpLemmaEntry___spec__11___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_instToFormatSimpLemma___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__1(lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__5; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3; lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_addSimpLemmaEntry___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_root___default___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2; lean_object* l_Lean_Meta_simpExtension; lean_object* l_Lean_Meta_simpExtension___closed__2; extern lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__2; lean_object* l_Lean_Meta_SimpLemma_globalName_x3f___default; extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpLemmaEntry___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_instToFormatSimpLemma___closed__1; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1; extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpLemmaEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addSimpLemma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_DiscrTree_mkPathAux___spec__1(lean_object*); @@ -109,7 +104,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getSimpLemmas___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addSimpLemmaEntry___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addSimpLemma(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_addSimpLemma___spec__1(lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); @@ -117,37 +112,41 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__15; uint8_t l_Array_isEmpty___rarg(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4; lean_object* l_Lean_Meta_forallMetaTelescopeReducing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2(lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getSimpLemmas___rarg(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1; size_t l_USize_land(size_t, size_t); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instToFormatSimpLemma_match__1(lean_object*); lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359_(lean_object*); lean_object* l_Std_fmt___at_Lean_Level_PP_Result_format___spec__1(lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* l_Lean_Meta_instBEqSimpLemma___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_addSimpLemmaEntry___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpLemmaEntry___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2; lean_object* l_Lean_Meta_instInhabitedSimpLemma; uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5; lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpLemmaEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpExtension___closed__3; lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__2(lean_object*); extern lean_object* l_Lean_instInhabitedExpr___closed__1; lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpLemmaEntry___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__5; lean_object* l_Lean_Meta_getSimpLemmas___rarg___boxed(lean_object*, lean_object*); @@ -155,43 +154,44 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpLemmas_discrTree___default___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpLemmaEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpExtension___lambda__1(lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_ScopedEnvExtension_getState___rarg___closed__3; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2; extern lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__1; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4; extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__1(lean_object*); lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2; lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_addSimpLemmaEntry___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359_(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81_(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_simpExtension___lambda__1___boxed(lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4; +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2; lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Lean_Meta_simpExtension___closed__1; lean_object* l_Array_back___at_Lean_Meta_addSimpLemmaEntry___spec__14___boxed(lean_object*); lean_object* lean_usize_to_nat(size_t); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_addSimpLemmaEntry___spec__14(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2(lean_object*); uint8_t l_Lean_Meta_instBEqSimpLemma(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__2(lean_object*); size_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); lean_object* l_Lean_Meta_getSimpLemmas___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4; lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpLemmaEntry___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpLemmaEntry___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3; lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpLemma___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_SimpLemma_globalName_x3f___default() { _start: @@ -1687,7 +1687,7 @@ lean_dec(x_2); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1() { _start: { lean_object* x_1; @@ -1695,17 +1695,17 @@ x_1 = lean_mk_string("simpExt"); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3() { _start: { lean_object* x_1; @@ -1713,12 +1713,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_addSimpLemmaEntry), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3; x_3 = l_Lean_Meta_SimpLemmas_discrTree___default___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -1727,11 +1727,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4; x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); return x_3; } @@ -1791,7 +1791,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1819,15 +1819,15 @@ return x_9; } } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__1(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__1___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1860,15 +1860,15 @@ return x_11; } } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__2(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__2___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; @@ -1886,15 +1886,15 @@ x_7 = lean_apply_3(x_2, x_4, x_5, x_6); return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__3(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey_match__3___rarg), 2, 0); return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -1932,7 +1932,7 @@ return x_15; } } } -lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; @@ -1983,15 +1983,15 @@ return x_15; } } } -lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg), 6, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -1999,17 +1999,17 @@ x_1 = lean_mk_string("False"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3() { _start: { lean_object* x_1; @@ -2017,16 +2017,16 @@ x_1 = lean_mk_string("invalid 'simp', unexpected type"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3; +x_1 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -2050,7 +2050,7 @@ x_15 = l_Lean_Expr_isAppOfArity(x_9, x_13, x_14); if (x_15 == 0) { lean_object* x_16; uint8_t x_17; -x_16 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2; +x_16 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2; x_17 = l_Lean_Expr_isConstOf(x_9, x_16); if (x_17 == 0) { @@ -2120,7 +2120,7 @@ else 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_dec(x_8); x_31 = l_Lean_indentExpr(x_9); -x_32 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4; +x_32 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -2128,7 +2128,7 @@ x_34 = l_Lean_KernelException_toMessageData___closed__15; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_33); lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1(x_35, x_2, x_3, x_4, x_5, x_6); +x_36 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1(x_35, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -2162,15 +2162,15 @@ return x_42; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1), 6, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1), 6, 0); return x_1; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -2181,15 +2181,15 @@ x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallMetaTelescopeReducing___boxe lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_8); lean_closure_set(x_11, 2, x_10); -x_12 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1; +x_12 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1; x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(x_13, x_3, x_4, x_5, x_6, x_7); +x_14 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__2___rarg(x_13, x_3, x_4, x_5, x_6, x_7); return x_14; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1() { _start: { lean_object* x_1; @@ -2197,16 +2197,16 @@ x_1 = lean_mk_string("invalid 'simp', proposition expected"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1; +x_1 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; @@ -2243,7 +2243,7 @@ x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); lean_dec(x_10); x_14 = l_Lean_indentExpr(x_8); -x_15 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2; +x_15 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -2282,7 +2282,7 @@ x_24 = lean_ctor_get(x_10, 1); lean_inc(x_24); lean_dec(x_10); x_25 = lean_box(0); -x_26 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2(x_8, x_25, x_2, x_3, x_4, x_5, x_24); +x_26 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2(x_8, x_25, x_2, x_3, x_4, x_5, x_24); return x_26; } } @@ -2342,11 +2342,11 @@ return x_34; } } } -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -2354,11 +2354,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } @@ -2681,7 +2681,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_14); -x_15 = l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey(x_14, x_4, x_5, x_6, x_7, x_11); +x_15 = l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey(x_14, x_4, x_5, x_6, x_7, x_11); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; @@ -2808,7 +2808,7 @@ x_10 = l_Lean_Meta_addSimpLemma(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -2928,7 +2928,7 @@ return x_37; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1() { _start: { lean_object* x_1; @@ -2936,17 +2936,17 @@ x_1 = lean_mk_string("simp"); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3() { _start: { lean_object* x_1; @@ -2954,12 +2954,12 @@ x_1 = lean_mk_string("simplification lemma"); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3; x_3 = 0; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_1); @@ -2968,20 +2968,20 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5; x_3 = l_Lean_registerTagAttribute___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -2990,22 +2990,22 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); lean_dec(x_2); return x_8; } @@ -3124,7 +3124,7 @@ lean_object* initialize_Lean_Util_Recognizers(lean_object*); lean_object* initialize_Lean_Meta_Basic(lean_object*); lean_object* initialize_Lean_Meta_DiscrTree(lean_object*); static bool _G_initialized = false; -lean_object* initialize_Lean_Meta_Tactic_Simp_Basic(lean_object* w) { +lean_object* initialize_Lean_Meta_Tactic_Simp_SimpLemmas(lean_object* w) { lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; @@ -3159,52 +3159,52 @@ l_Lean_Meta_SimpLemmas_discrTree___default = _init_l_Lean_Meta_SimpLemmas_discrT lean_mark_persistent(l_Lean_Meta_SimpLemmas_discrTree___default); l_Lean_Meta_instInhabitedSimpLemmas = _init_l_Lean_Meta_instInhabitedSimpLemmas(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpLemmas); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81____closed__4); l_Lean_Meta_simpExtension___closed__1 = _init_l_Lean_Meta_simpExtension___closed__1(); lean_mark_persistent(l_Lean_Meta_simpExtension___closed__1); l_Lean_Meta_simpExtension___closed__2 = _init_l_Lean_Meta_simpExtension___closed__2(); lean_mark_persistent(l_Lean_Meta_simpExtension___closed__2); l_Lean_Meta_simpExtension___closed__3 = _init_l_Lean_Meta_simpExtension___closed__3(); lean_mark_persistent(l_Lean_Meta_simpExtension___closed__3); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_81_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_81_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_simpExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_simpExtension); lean_dec_ref(res); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__1); -l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Basic_0__Lean_Meta_mkSimpLemmaKey___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359____closed__6); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_Basic___hyg_359_(lean_io_mk_world()); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__3); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__1___closed__4); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___lambda__2___closed__1); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__1); +l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaKey___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359____closed__6); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_359_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c new file mode 100644 index 0000000000..a8b8477225 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c @@ -0,0 +1,320 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Simp.Types +// Imports: Init Lean.Meta.Tactic.Simp.SimpLemmas +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_Meta_Simp_State_cache___default; +lean_object* l_Lean_Meta_Simp_Methods_pre___default(lean_object*); +uint8_t l_Lean_Meta_Simp_Config_ctorEq___default; +uint8_t l_Lean_Meta_Simp_Config_memoize___default; +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Context_parent_x3f___default; +uint8_t l_Lean_Meta_Simp_Config_contextual___default; +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default___rarg(lean_object*); +uint8_t l_Lean_Meta_Simp_Config_singlePass___default; +lean_object* l_Lean_Meta_Simp_Config_maxSteps___default; +uint8_t l_Lean_Meta_Simp_Config_zeta___default; +lean_object* l_Lean_Meta_Simp_State_numSteps___default; +lean_object* l_Lean_Meta_Simp_Methods_pre___default___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_cache___default___spec__1(lean_object*); +lean_object* l_Lean_Meta_Simp_State_cache___default___closed__1; +lean_object* l_Lean_Meta_Simp_Methods_pre___default___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Methods_post___default(lean_object*); +uint8_t l_Lean_Meta_Simp_Config_eta___default; +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Methods_post___default___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Result_proof_x3f___default; +lean_object* l_Lean_Meta_Simp_Methods_post___default___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Meta_Simp_Config_beta___default; +uint8_t l_Lean_Meta_Simp_Config_proj___default; +lean_object* l_Lean_Meta_Simp_defaultMaxSteps; +static lean_object* _init_l_Lean_Meta_Simp_defaultMaxSteps() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(100000u); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_Result_proof_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_Config_maxSteps___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Simp_defaultMaxSteps; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_contextual___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_memoize___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_singlePass___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_zeta___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_beta___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_eta___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_proj___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Simp_Config_ctorEq___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_Context_parent_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_cache___default___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_State_cache___default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_State_cache___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Simp_State_cache___default___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_State_numSteps___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +lean_object* l_Lean_Meta_Simp_Methods_pre___default___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +lean_object* l_Lean_Meta_Simp_Methods_pre___default(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_Methods_pre___default___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_Methods_pre___default___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Simp_Methods_pre___default___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Meta_Simp_Methods_post___default___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +lean_object* l_Lean_Meta_Simp_Methods_post___default(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_Methods_post___default___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_Methods_post___default___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Simp_Methods_post___default___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +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; +} +} +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_Methods_discharge_x3f___default___rarg), 1, 0); +return x_9; +} +} +lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Simp_Methods_discharge_x3f___default(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_SimpLemmas(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Meta_Tactic_Simp_Types(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Simp_SimpLemmas(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Simp_defaultMaxSteps = _init_l_Lean_Meta_Simp_defaultMaxSteps(); +lean_mark_persistent(l_Lean_Meta_Simp_defaultMaxSteps); +l_Lean_Meta_Simp_Result_proof_x3f___default = _init_l_Lean_Meta_Simp_Result_proof_x3f___default(); +lean_mark_persistent(l_Lean_Meta_Simp_Result_proof_x3f___default); +l_Lean_Meta_Simp_Config_maxSteps___default = _init_l_Lean_Meta_Simp_Config_maxSteps___default(); +lean_mark_persistent(l_Lean_Meta_Simp_Config_maxSteps___default); +l_Lean_Meta_Simp_Config_contextual___default = _init_l_Lean_Meta_Simp_Config_contextual___default(); +l_Lean_Meta_Simp_Config_memoize___default = _init_l_Lean_Meta_Simp_Config_memoize___default(); +l_Lean_Meta_Simp_Config_singlePass___default = _init_l_Lean_Meta_Simp_Config_singlePass___default(); +l_Lean_Meta_Simp_Config_zeta___default = _init_l_Lean_Meta_Simp_Config_zeta___default(); +l_Lean_Meta_Simp_Config_beta___default = _init_l_Lean_Meta_Simp_Config_beta___default(); +l_Lean_Meta_Simp_Config_eta___default = _init_l_Lean_Meta_Simp_Config_eta___default(); +l_Lean_Meta_Simp_Config_proj___default = _init_l_Lean_Meta_Simp_Config_proj___default(); +l_Lean_Meta_Simp_Config_ctorEq___default = _init_l_Lean_Meta_Simp_Config_ctorEq___default(); +l_Lean_Meta_Simp_Context_parent_x3f___default = _init_l_Lean_Meta_Simp_Context_parent_x3f___default(); +lean_mark_persistent(l_Lean_Meta_Simp_Context_parent_x3f___default); +l_Lean_Meta_Simp_State_cache___default___closed__1 = _init_l_Lean_Meta_Simp_State_cache___default___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_State_cache___default___closed__1); +l_Lean_Meta_Simp_State_cache___default = _init_l_Lean_Meta_Simp_State_cache___default(); +lean_mark_persistent(l_Lean_Meta_Simp_State_cache___default); +l_Lean_Meta_Simp_State_numSteps___default = _init_l_Lean_Meta_Simp_State_numSteps___default(); +lean_mark_persistent(l_Lean_Meta_Simp_State_numSteps___default); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index b77ada0ba7..4fa8856bdd 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -60,6 +60,7 @@ lean_object* l_Lean_Parser_Term_binderType_parenthesizer___boxed(lean_object*, l lean_object* l_Lean_Parser_Term_decide___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_depArrow_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_macroLastArg_formatter___closed__1; lean_object* l_Lean_Parser_Term_have_formatter___closed__2; extern lean_object* l_Lean_mkRecName___closed__1; @@ -84,6 +85,7 @@ lean_object* l_Lean_Parser_Term_letIdLhs_formatter(lean_object*, lean_object*, l lean_object* l_Lean_Parser_darrow___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_quotedName___closed__4; lean_object* l_Lean_Parser_Term_emptyC_parenthesizer___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26; lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__6; lean_object* l_Lean_Parser_attrParser_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_app___elambda__1___closed__1; @@ -106,6 +108,7 @@ lean_object* l_Lean_Parser_Term_local___closed__2; lean_object* l_Lean_Parser_Term_proj_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letRecDecl_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letrec_formatter___closed__9; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_explicit_formatter(lean_object*); lean_object* l_Lean_Parser_Term_noindex___elambda__1___closed__7; @@ -114,7 +117,6 @@ lean_object* l_Lean_Parser_Term_char___closed__2; lean_object* l_Lean_Parser_Term_suffices___closed__1; lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_optEllipsis___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7; lean_object* l_Lean_Parser_Term_structInst___closed__10; lean_object* l_Lean_Parser_Term_fromTerm___closed__3; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__1; @@ -141,6 +143,7 @@ extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__11; lean_object* l_Lean_Parser_Term_optEllipsis___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__10; lean_object* l_Lean_Parser_Term_optIdent___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_nativeDecide___closed__6; lean_object* l_Lean_Parser_Term_typeOf___closed__3; @@ -159,6 +162,7 @@ extern lean_object* l_Lean_Syntax_isQuot_match__1___rarg___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_matchDiscr_quot(lean_object*); lean_object* l_Lean_Parser_Term_letRecDecl_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_binrel; lean_object* l_Lean_Parser_Term_explicit_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__5; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__8; @@ -334,6 +338,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_attributes_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_namedArgument___closed__5; lean_object* l_Lean_Parser_Term_app_formatter___closed__6; +lean_object* l_Lean_Parser_Term_binrel_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_pipeProj___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1_parenthesizer(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -354,6 +359,7 @@ lean_object* l_Lean_Parser_Term_structInstField_parenthesizer(lean_object*, lean lean_object* l___regBuiltin_Lean_Parser_Term_proj_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21_formatter___closed__2; lean_object* l_Lean_Parser_Term_scientific___closed__2; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_namedArgument_formatter___closed__6; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__13; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -409,7 +415,6 @@ lean_object* l_Lean_Parser_Term_match_parenthesizer(lean_object*, lean_object*, lean_object* l_Lean_Parser_Term_binderType___elambda__1___closed__2; extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__33; lean_object* l_Lean_Parser_Term_simpleBinder_parenthesizer___closed__2; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26; lean_object* l_Lean_Parser_Term_letIdLhs_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__16; lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__1; @@ -417,6 +422,7 @@ lean_object* l_Lean_Parser_Term_matchDiscr_quot___closed__7; lean_object* l_Lean_Parser_Term_cdot___closed__8; lean_object* l_Lean_Parser_Term_sort_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5; lean_object* l_Lean_Parser_Term_matchAlts___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letDecl_parenthesizer___closed__3; lean_object* l_Lean_Parser_sepBy_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -442,6 +448,7 @@ lean_object* l_Lean_Parser_Term_stateRefT_parenthesizer(lean_object*, lean_objec lean_object* l___regBuiltin_Lean_Parser_Term_nativeRefl_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3; lean_object* l_Lean_Parser_Term_letrec___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_matchDiscr_quot___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__8; @@ -508,6 +515,7 @@ lean_object* l_Lean_Parser_Term_forall_formatter___closed__5; lean_object* l_Lean_Parser_Term_noindex___elambda__1___closed__4; lean_object* l_Lean_Parser_Level_quot___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_doubleQuotedName_formatter___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed; lean_object* l_Lean_Parser_Term_suffices_formatter___closed__7; lean_object* l_Lean_Parser_Term_binderTactic___closed__7; @@ -567,6 +575,7 @@ lean_object* l_Lean_Parser_Term_explicitUniv_formatter___closed__7; lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_let_x2a___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_quotedName(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_letIdLhs___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_optIdent___closed__1; @@ -674,7 +683,6 @@ lean_object* l_Lean_Parser_Term_letRecDecl___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_assert___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_quotSeq_formatter___closed__4; lean_object* l_Lean_Parser_Term_local___closed__6; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10; lean_object* l_Lean_Parser_Term_attr_quot___closed__6; lean_object* l_Lean_Parser_Term_arrayRef___closed__4; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__2; @@ -706,7 +714,7 @@ lean_object* l_Lean_Parser_Term_decide; lean_object* l___regBuiltin_Lean_Parser_Term_subst_formatter___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_nomatch_parenthesizer(lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__13; lean_object* l_Lean_Parser_ParserState_mkTrailingNode(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_stateRefT_parenthesizer___closed__1; @@ -741,7 +749,6 @@ lean_object* l_Lean_Parser_Term_let_x2a___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_letRecDecl_formatter___closed__1; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_matchAlt_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12; lean_object* l_Lean_Parser_ppIndent_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_953____closed__9; lean_object* l_Lean_Parser_Term_syntheticHole_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -768,7 +775,6 @@ lean_object* l_Lean_Parser_Term_attr_quot_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_sorry_formatter___closed__2; lean_object* l_Lean_Parser_Term_hole_formatter___closed__2; lean_object* l_Lean_Parser_Term_borrowed_parenthesizer___closed__3; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_assert___elambda__1___closed__10; lean_object* l___regBuiltinParser_Lean_Parser_Term_let(lean_object*); @@ -789,9 +795,7 @@ lean_object* l_Lean_Parser_Term_hole___closed__5; lean_object* l_Lean_Parser_Term_optEllipsis___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_fun_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__4; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14; lean_object* l_Lean_Parser_Term_optType___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28; lean_object* l_Lean_Parser_Term_local___closed__4; lean_object* l_Lean_Parser_Term_funBinder; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__1; @@ -825,7 +829,6 @@ extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_642____c lean_object* l_Lean_Parser_Term_parser_x21_formatter___closed__2; lean_object* l_Lean_Parser_Term_funBinder_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__3; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5; extern lean_object* l_Lean_Parser_Tactic_have___closed__6; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_attr_quot___elambda__1___closed__9; @@ -851,6 +854,7 @@ lean_object* l_Lean_Parser_Term_emptyC_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_basicFun___closed__1; lean_object* l_Lean_Parser_Term_let_x21_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__4; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_panic_formatter(lean_object*); lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; @@ -902,7 +906,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_nativeRefl(lean_object*); lean_object* l_Lean_Parser_Term_matchDiscr_quot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedPattern_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3; lean_object* l_Lean_Parser_darrow_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_leadingNode_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -915,6 +918,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____close lean_object* l_Lean_Parser_Term_bracketedBinder_quot_formatter___closed__6; lean_object* l_Lean_Parser_Term_binderType(uint8_t); lean_object* l_Lean_Parser_Term_letDecl___closed__2; +lean_object* l_Lean_Parser_Term_binrel___closed__9; lean_object* l_Lean_Parser_Term_optIdent___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_ensureTypeOf_formatter___closed__1; @@ -981,6 +985,7 @@ lean_object* l_Lean_Parser_Term_paren___closed__7; lean_object* l_Lean_Parser_Term_unreachable___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_app_formatter___closed__1; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__6; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__7; lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkPrec_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchDiscr_quot___elambda__1(lean_object*, lean_object*); @@ -1001,6 +1006,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_typeOf_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_formatter___closed__1; lean_object* l_Lean_Parser_Term_explicit___closed__4; lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__6; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12; lean_object* l___regBuiltin_Lean_Parser_Term_let_formatter(lean_object*); lean_object* l_Lean_Parser_Term_cdot___closed__1; extern lean_object* l_Lean_Parser_fieldIdx___closed__4; @@ -1014,6 +1020,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_borrowed_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_tacticSeq_formatter___closed__2; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__13; extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28; lean_object* l___regBuiltinParser_Lean_Parser_Term_nativeDecide(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_ident_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_noindex___closed__1; @@ -1061,6 +1068,7 @@ lean_object* l_Lean_Parser_Term_attr_quot___elambda__1___closed__11; lean_object* l_Lean_Parser_tacticParser(lean_object*); lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_panic(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14; lean_object* l___regBuiltin_Lean_Parser_Term_sorry_formatter___closed__1; uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at_Lean_Parser_ParserState_hasError___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__14; @@ -1149,7 +1157,6 @@ lean_object* l_Lean_Parser_Term_cdot___closed__3; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_fun_formatter___closed__5; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__9; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6; lean_object* l_Lean_Parser_Term_typeSpec_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_quot_formatter___closed__1; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__8; @@ -1172,6 +1179,7 @@ lean_object* l_Lean_Parser_Term_tparser_x21_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_letrec_formatter___closed__6; lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_paren___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22; lean_object* l_Lean_Parser_Term_pipeProj___closed__6; lean_object* l_Lean_Parser_Term_letPatDecl___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern_parenthesizer___closed__1; @@ -1225,7 +1233,6 @@ lean_object* l_Lean_Parser_Tactic_quotSeq_formatter(lean_object*, lean_object*, lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_num___closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18; lean_object* l_Lean_Parser_Term_binderDefault; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__28; lean_object* l_Lean_Parser_Term_assert___closed__5; @@ -1266,6 +1273,7 @@ lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_seq1___elambda__1___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13; lean_object* l_Lean_Parser_Term_haveDecl___elambda__1___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_parser_x21(lean_object*); lean_object* l_Lean_Parser_Term_fromTerm___closed__1; @@ -1278,6 +1286,7 @@ lean_object* l_Lean_Parser_Term_anonymousCtor___closed__5; lean_object* l_Lean_Parser_Term_quotedName___closed__2; lean_object* l_Lean_Parser_Term_namedPattern; extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__3; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__9; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__11; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__3; @@ -1291,11 +1300,11 @@ lean_object* l_Lean_Parser_Term_arrow; lean_object* l___regBuiltin_Lean_Parser_Term_char_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_arrow___closed__4; lean_object* l_Lean_Parser_Term_arrayRef_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_namedArgument_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letrec___closed__2; lean_object* l_Lean_Parser_Term_letIdLhs___closed__5; +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__2; lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__1; lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__2; @@ -1308,6 +1317,7 @@ lean_object* l_Lean_Parser_Term_attributes___closed__3; lean_object* l_Lean_Parser_Term_matchAlt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInst_formatter___closed__2; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__14; +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_match___closed__6; lean_object* l_Lean_Parser_Term_scientific___closed__3; @@ -1317,6 +1327,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_stateRefT_formatter(lean_object*); extern lean_object* l_Lean_instToStringAttributeKind___closed__3; lean_object* l_Lean_Parser_Term_ensureExpectedType___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__9; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_tparser_x21_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_depArrow_parenthesizer___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_assert_parenthesizer___closed__1; @@ -1401,7 +1412,6 @@ lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_953____closed__1; lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16; lean_object* l_Lean_Parser_Term_decide_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__13; lean_object* l___regBuiltin_Lean_Parser_Term_let_parenthesizer(lean_object*); @@ -1410,6 +1420,7 @@ lean_object* l_Lean_Parser_Term_nativeRefl___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_binderTactic; lean_object* l_Lean_Parser_Tactic_seq1___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__8; lean_object* l___regBuiltinParser_Lean_Parser_Term_forall(lean_object*); @@ -1421,6 +1432,7 @@ lean_object* l_Lean_Parser_Term_bracketedBinder_parenthesizer___boxed(lean_objec lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_char_formatter(lean_object*); +lean_object* l_Lean_Parser_Term_binrel___closed__5; lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_paren_formatter___closed__2; extern lean_object* l_Lean_Parser_antiquotNestedExpr___closed__1; @@ -1482,6 +1494,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_nativeRefl_parenthesizer(lean_objec lean_object* l_Lean_Parser_Term_prop___closed__2; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_nativeDecide_formatter___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21; lean_object* l_Lean_Parser_Term_parenSpecial_formatter___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder_formatter___closed__8; lean_object* l_Lean_Parser_Term_explicitBinder___closed__7; @@ -1505,6 +1518,7 @@ lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__14; lean_object* l_Lean_Parser_Term_paren_formatter___closed__8; lean_object* l_Lean_Parser_Term_letPatDecl_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_binrel___closed__3; lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__3; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2; lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__1; @@ -1566,6 +1580,7 @@ lean_object* l_Lean_Parser_Term_stateRefT___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_macroDollarArg___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_nativeRefl___closed__6; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__4; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__12; lean_object* l_Lean_Parser_Term_stateRefT___closed__4; lean_object* l___regBuiltin_Lean_Parser_Level_quot_formatter___closed__1; @@ -1587,6 +1602,7 @@ lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_have_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_dynamicQuot___closed__12; +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__13; lean_object* l_Lean_Parser_Term_dynamicQuot_formatter___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_let_x21_parenthesizer___closed__1; @@ -1660,6 +1676,7 @@ lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_attributes___closed__6; lean_object* l_Lean_Parser_Term_assert___elambda__1___closed__6; extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__3; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__13; extern lean_object* l_Lean_Parser_nameLit; lean_object* l_Lean_Parser_Term_attr_quot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_node_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1675,7 +1692,6 @@ lean_object* l_Lean_Parser_Term_str___closed__3; lean_object* l_Lean_Parser_Term_syntheticHole___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_explicitUniv___closed__3; lean_object* l_Lean_Parser_Term_matchDiscr_quot_parenthesizer___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22; lean_object* l___regBuiltinParser_Lean_Parser_Term_inaccessible(lean_object*); lean_object* l_Lean_Parser_Term_cdot_formatter___closed__2; lean_object* l_Lean_Parser_Term_matchAltsWhereDecls___elambda__1___closed__4; @@ -1703,6 +1719,7 @@ lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__3; lean_object* l_Lean_Parser_Term_emptyC___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fun_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6; lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__2; lean_object* l_Lean_Parser_Term_macroDollarArg___elambda__1___closed__8; @@ -1854,6 +1871,7 @@ lean_object* l_Lean_Parser_Term_attributes; lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_let_x21_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_scoped___closed__3; +lean_object* l_Lean_Parser_Term_binrel___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_letIdDecl_formatter___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_dbgTrace_parenthesizer___closed__1; @@ -1880,6 +1898,7 @@ lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__9; lean_object* l_Lean_Parser_Term_scoped_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_ensureExpectedType_formatter___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__1; lean_object* l_Lean_Parser_Level_quot___closed__2; extern lean_object* l_Lean_Parser_maxPrec; @@ -1888,7 +1907,6 @@ lean_object* l_Lean_Parser_Term_namedArgument___elambda__1(lean_object*, lean_ob lean_object* l_Lean_Parser_Term_type_formatter___closed__2; lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_whereDecls_parenthesizer___closed__4; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_assert___elambda__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_local_formatter___closed__2; @@ -1916,7 +1934,6 @@ lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_num(lean_object*); lean_object* l_Lean_Parser_Term_app_formatter___closed__2; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13; lean_object* l_Lean_Parser_Tactic_quot___closed__6; lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__36; @@ -1991,6 +2008,8 @@ lean_object* l_Lean_Parser_Term_letPatDecl_formatter(lean_object*, lean_object*, lean_object* l_Lean_Parser_Term_depArrow___closed__5; lean_object* l_Lean_Parser_Term_binderDefault_formatter___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__4; lean_object* l_Lean_Parser_interpolatedStr(lean_object*); lean_object* l_Lean_Parser_Term_haveDecl_formatter___closed__6; @@ -2001,6 +2020,7 @@ lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_explicitBinder___boxed(lean_object*); lean_object* l_Lean_Parser_Term_dynamicQuot___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_doubleQuotedName_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__1; lean_object* l_Lean_Parser_Term_show___closed__5; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_simpleBinder_formatter___closed__2; @@ -2054,6 +2074,7 @@ lean_object* l_Lean_Parser_Term_match___closed__1; lean_object* l_Lean_Parser_Term_matchDiscr_quot___closed__8; lean_object* l_Lean_Parser_Term_sorry_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_nativeDecide___elambda__1___closed__7; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25; lean_object* l_Lean_Parser_Term_explicitUniv___closed__4; lean_object* l_Lean_Parser_Term_hole_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_nomatch_formatter___closed__2; @@ -2070,6 +2091,7 @@ lean_object* l_Lean_Parser_Term_panic_formatter___closed__4; lean_object* l_Lean_Parser_Term_suffices___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_suffices_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedArgument___closed__1; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__4; lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_letrec_formatter___closed__1; @@ -2166,7 +2188,6 @@ lean_object* l_Lean_Parser_Term_prop___closed__4; lean_object* l_Lean_Parser_Term_syntheticHole_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_forall_formatter___closed__8; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__6; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_scoped_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchDiscr_quot_parenthesizer___closed__6; @@ -2214,6 +2235,7 @@ lean_object* l_Lean_Parser_Term_attr_quot___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_local_formatter___closed__3; lean_object* l_Lean_Parser_Term_letRecDecl___closed__4; lean_object* l_Lean_Parser_Term_forall; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_typeOf_formatter(lean_object*); lean_object* l_Lean_Parser_Term_scoped___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__10; @@ -2225,6 +2247,7 @@ lean_object* l_Lean_Parser_Term_matchDiscr_formatter___closed__6; lean_object* l_Lean_Parser_Term_optExprPrecedence___closed__5; lean_object* l_Lean_Parser_Term_haveDecl_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_matchDiscr_quot___closed__4; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19; lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_let_x2a___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_match_formatter___closed__6; @@ -2239,9 +2262,11 @@ lean_object* l_Lean_Parser_Term_pipeProj_formatter___closed__2; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter(lean_object*); +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_funBinder_quot_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__1; lean_object* l_Lean_Parser_Term_namedPattern_formatter___closed__2; +lean_object* l_Lean_Parser_Term_binrel___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_explicitUniv_formatter(lean_object*); lean_object* l_Lean_Parser_Term_stateRefT___closed__1; lean_object* l_Lean_Parser_Term_typeAscription_formatter___closed__3; @@ -2255,6 +2280,7 @@ lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_typeAscription___closed__3; lean_object* l_Lean_Parser_Term_nativeRefl___elambda__1___closed__11; uint8_t l_Lean_Syntax_isAntiquot(lean_object*); +lean_object* l_Lean_Parser_Term_binrel___closed__2; lean_object* l_Lean_Parser_Term_pipeProj___closed__4; lean_object* l_Lean_Parser_Term_assert___closed__6; lean_object* l_Lean_Parser_Term_typeOf_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2345,6 +2371,7 @@ lean_object* l_Lean_Parser_Term_binderType_formatter(uint8_t, lean_object*, lean lean_object* l_Lean_Parser_Term_let_x2a_formatter___closed__6; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__7; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__4; lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__1; lean_object* l_Lean_Parser_Term_structInstField___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_borrowed_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2425,6 +2452,7 @@ lean_object* l_Lean_Parser_Term_macroDollarArg___closed__7; lean_object* l_Lean_Parser_Term_dynamicQuot___closed__6; lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__9; lean_object* l_Lean_Parser_sepBy1(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_instBinder___closed__2; lean_object* l_Lean_Parser_Term_letDecl___closed__1; lean_object* l_Lean_Parser_Term_ensureExpectedType___closed__5; @@ -2488,6 +2516,7 @@ lean_object* l_Lean_Parser_Term_let_x2a_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_let_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_forall_formatter___closed__6; lean_object* l_Lean_Parser_Term_attr_quot___elambda__1___closed__6; +lean_object* l___regBuiltinParser_Lean_Parser_Term_binrel(lean_object*); lean_object* l_Lean_Parser_charLit___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_formatter___closed__8; lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; @@ -2643,7 +2672,6 @@ lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_4____closed__3; lean_object* l_Lean_Parser_Term_sort___closed__6; lean_object* l_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__7; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2; lean_object* l_Lean_Parser_Term_simpleBinder_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_decide_formatter___closed__2; @@ -2705,7 +2733,6 @@ lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1(lean_object*, lean_object* lean_object* l_Lean_Parser_Tactic_quotSeq_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_inaccessible_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_syntheticHole_formatter___closed__4; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25; lean_object* l_Lean_Parser_Term_matchDiscr_quot___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_ensureTypeOf_parenthesizer___closed__2; @@ -2782,6 +2809,7 @@ lean_object* l_Lean_Parser_Term_paren___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_syntheticHole_formatter___closed__2; lean_object* l_Lean_Parser_Term_letIdLhs___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_nativeDecide_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Term_noindex_formatter(lean_object*); lean_object* l_Lean_Parser_Term_suffices_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__4; @@ -2831,6 +2859,7 @@ lean_object* l_Lean_Parser_Term_have___closed__1; lean_object* l_Lean_Parser_darrow___closed__2; lean_object* l_Lean_Parser_Term_typeSpec___closed__5; lean_object* l_Lean_Parser_Term_optExprPrecedence_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_binrel_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_matchDiscr_formatter___closed__3; lean_object* l_Lean_Parser_Term_structInstField___closed__6; lean_object* l_Lean_Parser_Term_show___elambda__1(lean_object*, lean_object*); @@ -2842,6 +2871,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_hole_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_local_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_ensureTypeOf_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__10; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8; lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_funBinder_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_haveAssign___closed__4; @@ -2857,6 +2887,7 @@ lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__6; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__9; lean_object* l_Lean_Parser_Term_tparser_x21___closed__7; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__5; +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__5; lean_object* l_Lean_Parser_Term_typeSpec___closed__3; lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_letrec___elambda__1___closed__4; @@ -2880,6 +2911,7 @@ lean_object* l_Lean_Parser_Term_app_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_paren___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_suffices_formatter___closed__1; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__3; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__19; lean_object* l_Lean_Parser_Tactic_tacticSeq; lean_object* l_Lean_Parser_Term_namedArgument_parenthesizer___closed__2; @@ -2919,7 +2951,6 @@ lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__1; lean_object* l_Lean_Parser_Term_have___closed__4; lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_parenthesizer(lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19; lean_object* l_Lean_Parser_Term_pipeProj___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_fromTerm_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_quot___closed__7; @@ -2971,9 +3002,10 @@ lean_object* l_Lean_Parser_Term_local_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_fromTerm___closed__6; lean_object* l_Lean_Parser_Term_type; lean_object* l_Lean_Parser_Term_app___elambda__1___closed__9; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1; +lean_object* l_Lean_Parser_Term_binrel_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let_x2a; lean_object* l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Term_binrel___closed__7; lean_object* l_Lean_Parser_Term_pipeProj___closed__2; lean_object* l_Lean_Parser_Term_hole___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_quot_formatter___closed__1; @@ -3048,6 +3080,7 @@ lean_object* l_Lean_Parser_Term_ensureExpectedType_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_let_x21___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstField___closed__5; extern lean_object* l_Lean_Parser_optional_formatter___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11; lean_object* l_Lean_Parser_Term_scoped___closed__4; lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__7; lean_object* l_Lean_Parser_Term_matchDiscr_formatter___closed__2; @@ -3063,6 +3096,7 @@ lean_object* l_Lean_Parser_Term_haveAssign_formatter___closed__4; lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_stateRefT_parenthesizer___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_cdot_formatter(lean_object*); lean_object* l_Lean_Parser_Term_explicit_formatter___closed__3; extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Attr___hyg_23____closed__3; @@ -3081,6 +3115,7 @@ lean_object* l_Lean_Parser_Term_attributes_formatter___closed__5; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__11; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_261____closed__1; lean_object* l_Lean_Parser_Term_subst___closed__2; +lean_object* l_Lean_Parser_Term_binrel___closed__4; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__31; lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__10; lean_object* l_Lean_Parser_Term_implicitBinder_formatter___closed__1; @@ -3108,6 +3143,7 @@ lean_object* l_Lean_Parser_Term_optEllipsis___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_typeSpec___closed__4; lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_noindex_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_binrel___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_forall_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented_parenthesizer___closed__3; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__12; @@ -3123,6 +3159,7 @@ lean_object* l_Lean_Parser_Term_attrInstance_formatter___closed__1; lean_object* l_Lean_Parser_Term_matchDiscr_quot; lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_simpleBinderWithoutType___closed__2; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_letrec___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_letRecDecl_parenthesizer___closed__3; @@ -3154,6 +3191,7 @@ lean_object* l_Lean_Parser_Term_local___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_unreachable___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_funBinder___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_syntheticHole_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_Term_binrel_formatter___closed__3; lean_object* l_Lean_Parser_Term_type_formatter___closed__3; lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__2; lean_object* l_String_trim(lean_object*); @@ -3223,6 +3261,7 @@ lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_basicFun_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_macroDollarArg_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_nativeDecide_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_formatter(lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21___closed__1; lean_object* l_Lean_Parser_Term_proj_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__18; @@ -3234,7 +3273,6 @@ lean_object* l_Lean_Parser_Term_explicitBinder___closed__4; lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_structInst_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_optIdent_parenthesizer___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4; lean_object* l_Lean_Parser_Term_let_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_quot___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_match_formatter___closed__1; @@ -3280,7 +3318,6 @@ lean_object* l_Lean_Parser_Term_unreachable_formatter___closed__1; lean_object* l_Lean_Parser_Term_matchAlt_formatter___closed__2; extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_953____closed__7; lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__13; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInst_formatter___closed__20; lean_object* l_Lean_Parser_Term_structInstField_parenthesizer___closed__4; @@ -3310,11 +3347,11 @@ lean_object* l_Lean_Parser_Tactic_quotSeq_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__5; extern lean_object* l_Lean_Parser_mkAntiquot___closed__6; +lean_object* l_Lean_Parser_Term_binrel_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_attr_quot___closed__2; extern lean_object* l_Lean_Parser_Tactic_intro___closed__2; lean_object* l_Lean_Parser_Tactic_quotSeq___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8; lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__5; @@ -3391,7 +3428,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_stateRefT(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_ensureExpectedType_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_let_x2a___closed__4; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__15; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17; extern lean_object* l_Lean_Parser_Level_paren_formatter___closed__4; lean_object* l_Lean_Parser_Term_matchAlt_formatter___closed__1; lean_object* l_Lean_Parser_checkColGtFn(lean_object*, lean_object*, lean_object*); @@ -3418,6 +3454,7 @@ lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__2; lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__12; lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__10; +lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_funBinder___closed__4; lean_object* l_Lean_Parser_Term_letRecDecls_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_stateRefT___elambda__1___closed__6; @@ -3547,6 +3584,7 @@ lean_object* l_Lean_Parser_Term_scientific___elambda__1(lean_object*, lean_objec lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__1; extern lean_object* l_Lean_Parser_mkAntiquot___closed__8; lean_object* l_Lean_Parser_Term_attr_quot___closed__8; +lean_object* l_Lean_Parser_Term_binrel_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_funBinder_quot_formatter___closed__7; lean_object* l_Lean_Parser_Term_typeOf___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___closed__2; @@ -3580,7 +3618,6 @@ lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_suffices; lean_object* l_Lean_Parser_Term_forall_formatter___closed__2; lean_object* l_Lean_Parser_Term_binderDefault_formatter___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__9; lean_object* l_Lean_Parser_Term_attrInstance___elambda__1___closed__5; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___closed__1; @@ -3664,6 +3701,7 @@ lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__4; lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_Lean_Parser_Term_bracketedBinder_formatter(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_binrel_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_let_x21_formatter___closed__2; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; @@ -3674,7 +3712,7 @@ lean_object* l_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; lean_object* l_Lean_Parser_checkWsBefore___elambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_show_parenthesizer___closed__1; lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_4_(lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761_(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802_(lean_object*); lean_object* l_Lean_Parser_Term_parenSpecial_formatter___closed__3; lean_object* l_Lean_Parser_Term_noindex___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_doubleQuotedName___closed__7; @@ -3695,7 +3733,6 @@ lean_object* l_Lean_Parser_Term_parenSpecial___closed__4; lean_object* l_Lean_Parser_Term_doubleQuotedName_formatter___closed__5; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_macroDollarArg_parenthesizer___closed__2; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27; lean_object* l_Lean_Parser_Term_dbgTrace___closed__7; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__9; extern lean_object* l_Lean_Parser_Tactic_let_x21___closed__3; @@ -3725,6 +3762,7 @@ lean_object* l_Lean_Parser_Tactic_quotSeq___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__9; lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__5; lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16964____closed__1; lean_object* l_Lean_Parser_Term_byTactic___closed__2; lean_object* l_Lean_Parser_Term_attrKind___closed__5; @@ -3773,6 +3811,7 @@ lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_app___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAltsWhereDecls___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_binrel_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__8; extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__1; @@ -3836,6 +3875,7 @@ lean_object* l_Lean_Parser_Term_let_x2a___closed__1; lean_object* l_Lean_Parser_Term_instBinder___closed__6; lean_object* l_Lean_Parser_Term_dynamicQuot___closed__2; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_parenthesizer___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9; extern lean_object* l_Lean_Parser_strLit; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__4; lean_object* l_Lean_Parser_many1(lean_object*); @@ -3892,6 +3932,7 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; extern lean_object* l_Lean_Parser_Tactic_letrec___closed__5; lean_object* l_Lean_Parser_Term_hole___closed__1; +lean_object* l_Lean_Parser_Term_binrel___closed__6; lean_object* l_Lean_Parser_Term_letrec_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_attrInstance_formatter___closed__5; lean_object* l_Lean_Parser_Term_fromTerm_formatter___closed__2; @@ -3942,6 +3983,7 @@ lean_object* l_Lean_Parser_Term_bracketedBinder_quot_formatter___closed__2; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal_parenthesizer___closed__11; lean_object* l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27; lean_object* l_Lean_Parser_Term_optEllipsis_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_matchDiscr_quot_formatter___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder_formatter___closed__5; @@ -34881,6 +34923,464 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binrel"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_2137____closed__2; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_explicit___elambda__1___closed__6; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_2, 0, x_1); +lean_closure_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_ident___closed__1; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__5; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binrel!"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__7; +x_2 = l_String_trim(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__8; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__9; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_tokenWithAntiquotFn), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__10; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__6; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__11; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___elambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__10; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__12; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_Term_binrel___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; +x_3 = l_Lean_Parser_Term_binrel___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = l_Lean_Parser_Term_binrel___elambda__1___closed__13; +x_6 = 1; +x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); +return x_7; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_explicit___closed__1; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_inc(x_2); +x_3 = l_Lean_Parser_andthenInfo(x_2, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ident; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_binrel___closed__1; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__8; +x_2 = l_Lean_Parser_symbolInfo(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel___closed__3; +x_2 = l_Lean_Parser_Term_binrel___closed__2; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_binrel___closed__4; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Term_binrel___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_binrel___closed__6; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_binrel___elambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel___closed__7; +x_2 = l_Lean_Parser_Term_binrel___closed__8; +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_Parser_Term_binrel() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_binrel___closed__9; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_binrel(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = l_term___u2218_____closed__6; +x_3 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Term_binrel; +x_6 = lean_unsigned_to_nat(1000u); +x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); +return x_7; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_binrel___elambda__1___closed__3; +x_3 = 1; +x_4 = lean_box(x_3); +x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +lean_closure_set(x_5, 2, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__7; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_2, 0, x_1); +lean_closure_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Parser_Term_ident_formatter___closed__1; +x_2 = l_Lean_Parser_Term_binrel_formatter___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binrel_formatter___closed__2; +x_2 = l_Lean_Parser_Term_binrel_formatter___closed__4; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_formatter___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Term_binrel_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); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_binrel_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Term_binrel_formatter___closed__1; +x_7 = l_Lean_Parser_Term_binrel_formatter___closed__6; +x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_binrel_formatter), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_formatter(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_formatterAttribute; +x_3 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__3; +x_2 = 1; +x_3 = lean_box(x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_explicit_parenthesizer___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_2, 0, x_1); +lean_closure_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Parser_Term_ident_parenthesizer___closed__1; +x_2 = l_Lean_Parser_Term_binrel_parenthesizer___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__1; +x_2 = l_Lean_Parser_Term_binrel_parenthesizer___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Term_binrel_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); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_binrel_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Term_binrel_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Term_binrel_parenthesizer___closed__5; +x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_binrel_parenthesizer), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; +x_3 = l_Lean_Parser_Term_binrel___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} static lean_object* _init_l_Lean_Parser_Term_typeOf___elambda__1___closed__1() { _start: { @@ -46845,7 +47345,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -46855,7 +47355,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -46865,7 +47365,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -46875,7 +47375,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -46885,7 +47385,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -46895,7 +47395,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -46905,7 +47405,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -46915,7 +47415,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8() { _start: { lean_object* x_1; lean_object* x_2; @@ -46925,7 +47425,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -46935,7 +47435,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -46945,7 +47445,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11() { _start: { lean_object* x_1; lean_object* x_2; @@ -46955,7 +47455,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12() { _start: { lean_object* x_1; lean_object* x_2; @@ -46965,7 +47465,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13() { _start: { lean_object* x_1; lean_object* x_2; @@ -46975,7 +47475,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -46985,7 +47485,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -46995,7 +47495,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -47005,7 +47505,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -47015,7 +47515,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18() { _start: { lean_object* x_1; lean_object* x_2; @@ -47025,7 +47525,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -47035,7 +47535,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20() { _start: { lean_object* x_1; lean_object* x_2; @@ -47045,7 +47545,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21() { _start: { lean_object* x_1; lean_object* x_2; @@ -47055,7 +47555,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22() { _start: { lean_object* x_1; lean_object* x_2; @@ -47065,7 +47565,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23() { _start: { lean_object* x_1; lean_object* x_2; @@ -47075,7 +47575,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24() { _start: { lean_object* x_1; lean_object* x_2; @@ -47085,7 +47585,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25() { _start: { lean_object* x_1; lean_object* x_2; @@ -47095,7 +47595,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26() { _start: { lean_object* x_1; lean_object* x_2; @@ -47105,7 +47605,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27() { _start: { lean_object* x_1; lean_object* x_2; @@ -47115,7 +47615,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -47125,13 +47625,13 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761_(lean_object* x_1) { +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Parser_parserAliasesRef; x_3 = l_Lean_Parser_Tactic_let___closed__3; -x_4 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1; +x_4 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1; x_5 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -47140,7 +47640,7 @@ x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); x_7 = l_Lean_PrettyPrinter_Formatter_formatterAliasesRef; -x_8 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2; +x_8 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2; x_9 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_3, x_8, x_6); if (lean_obj_tag(x_9) == 0) { @@ -47149,7 +47649,7 @@ x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef; -x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3; +x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3; x_13 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_3, x_12, x_10); if (lean_obj_tag(x_13) == 0) { @@ -47158,7 +47658,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); x_15 = l_Lean_Parser_Tactic_have___closed__6; -x_16 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4; +x_16 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4; x_17 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_15, x_16, x_14); if (lean_obj_tag(x_17) == 0) { @@ -47166,7 +47666,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); -x_19 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5; +x_19 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5; x_20 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_15, x_19, x_18); if (lean_obj_tag(x_20) == 0) { @@ -47174,7 +47674,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6; +x_22 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6; x_23 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_15, x_22, x_21); if (lean_obj_tag(x_23) == 0) { @@ -47183,7 +47683,7 @@ x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); x_25 = l_Lean_Parser_Tactic_suffices___closed__6; -x_26 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7; +x_26 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7; x_27 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_25, x_26, x_24); if (lean_obj_tag(x_27) == 0) { @@ -47191,7 +47691,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8; +x_29 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8; x_30 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_25, x_29, x_28); if (lean_obj_tag(x_30) == 0) { @@ -47199,7 +47699,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); -x_32 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9; +x_32 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9; x_33 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_25, x_32, x_31); if (lean_obj_tag(x_33) == 0) { @@ -47208,7 +47708,7 @@ x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); x_35 = l_Lean_Parser_Tactic_letrec___closed__11; -x_36 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10; +x_36 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10; x_37 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_35, x_36, x_34); if (lean_obj_tag(x_37) == 0) { @@ -47216,7 +47716,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11; +x_39 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11; x_40 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_35, x_39, x_38); if (lean_obj_tag(x_40) == 0) { @@ -47224,7 +47724,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12; +x_42 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12; x_43 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_35, x_42, x_41); if (lean_obj_tag(x_43) == 0) { @@ -47233,7 +47733,7 @@ x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); x_45 = l_Lean_Parser_Tactic_inductionAlt___closed__9; -x_46 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13; +x_46 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13; x_47 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_45, x_46, x_44); if (lean_obj_tag(x_47) == 0) { @@ -47241,7 +47741,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); lean_dec(x_47); -x_49 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14; +x_49 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14; x_50 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_45, x_49, x_48); if (lean_obj_tag(x_50) == 0) { @@ -47249,7 +47749,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec(x_50); -x_52 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15; +x_52 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15; x_53 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_45, x_52, x_51); if (lean_obj_tag(x_53) == 0) { @@ -47258,7 +47758,7 @@ x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); lean_dec(x_53); x_55 = l_Lean_Parser_Tactic_inductionAlt___closed__12; -x_56 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16; +x_56 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16; x_57 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_55, x_56, x_54); if (lean_obj_tag(x_57) == 0) { @@ -47266,7 +47766,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec(x_57); -x_59 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17; +x_59 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17; x_60 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_55, x_59, x_58); if (lean_obj_tag(x_60) == 0) { @@ -47274,7 +47774,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); lean_dec(x_60); -x_62 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18; +x_62 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18; x_63 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_55, x_62, x_61); if (lean_obj_tag(x_63) == 0) { @@ -47282,8 +47782,8 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); lean_dec(x_63); -x_65 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19; -x_66 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20; +x_65 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19; +x_66 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20; x_67 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_65, x_66, x_64); if (lean_obj_tag(x_67) == 0) { @@ -47291,7 +47791,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); lean_dec(x_67); -x_69 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21; +x_69 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21; x_70 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_65, x_69, x_68); if (lean_obj_tag(x_70) == 0) { @@ -47299,7 +47799,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); lean_dec(x_70); -x_72 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22; +x_72 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22; x_73 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_65, x_72, x_71); if (lean_obj_tag(x_73) == 0) { @@ -47308,7 +47808,7 @@ x_74 = lean_ctor_get(x_73, 1); lean_inc(x_74); lean_dec(x_73); x_75 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__12; -x_76 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23; +x_76 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23; x_77 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_75, x_76, x_74); if (lean_obj_tag(x_77) == 0) { @@ -47316,7 +47816,7 @@ lean_object* x_78; lean_object* x_79; lean_object* x_80; x_78 = lean_ctor_get(x_77, 1); lean_inc(x_78); lean_dec(x_77); -x_79 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24; +x_79 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24; x_80 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_75, x_79, x_78); if (lean_obj_tag(x_80) == 0) { @@ -47324,7 +47824,7 @@ lean_object* x_81; lean_object* x_82; lean_object* x_83; x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); lean_dec(x_80); -x_82 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25; +x_82 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25; x_83 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_75, x_82, x_81); if (lean_obj_tag(x_83) == 0) { @@ -47333,7 +47833,7 @@ x_84 = lean_ctor_get(x_83, 1); lean_inc(x_84); lean_dec(x_83); x_85 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__4; -x_86 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26; +x_86 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26; x_87 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_85, x_86, x_84); if (lean_obj_tag(x_87) == 0) { @@ -47341,7 +47841,7 @@ lean_object* x_88; lean_object* x_89; lean_object* x_90; x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); lean_dec(x_87); -x_89 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27; +x_89 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27; x_90 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_85, x_89, x_88); if (lean_obj_tag(x_90) == 0) { @@ -47349,7 +47849,7 @@ lean_object* x_91; lean_object* x_92; lean_object* x_93; x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec(x_90); -x_92 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28; +x_92 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28; x_93 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_85, x_92, x_91); return x_93; } @@ -52668,6 +53168,87 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_noindex_parenthesizer___clo res = l___regBuiltin_Lean_Parser_Term_noindex_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Term_binrel___elambda__1___closed__1 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__1); +l_Lean_Parser_Term_binrel___elambda__1___closed__2 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__2); +l_Lean_Parser_Term_binrel___elambda__1___closed__3 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__3); +l_Lean_Parser_Term_binrel___elambda__1___closed__4 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__4); +l_Lean_Parser_Term_binrel___elambda__1___closed__5 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__5); +l_Lean_Parser_Term_binrel___elambda__1___closed__6 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__6); +l_Lean_Parser_Term_binrel___elambda__1___closed__7 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__7); +l_Lean_Parser_Term_binrel___elambda__1___closed__8 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__8); +l_Lean_Parser_Term_binrel___elambda__1___closed__9 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__9); +l_Lean_Parser_Term_binrel___elambda__1___closed__10 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__10(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__10); +l_Lean_Parser_Term_binrel___elambda__1___closed__11 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__11(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__11); +l_Lean_Parser_Term_binrel___elambda__1___closed__12 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__12); +l_Lean_Parser_Term_binrel___elambda__1___closed__13 = _init_l_Lean_Parser_Term_binrel___elambda__1___closed__13(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___elambda__1___closed__13); +l_Lean_Parser_Term_binrel___closed__1 = _init_l_Lean_Parser_Term_binrel___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__1); +l_Lean_Parser_Term_binrel___closed__2 = _init_l_Lean_Parser_Term_binrel___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__2); +l_Lean_Parser_Term_binrel___closed__3 = _init_l_Lean_Parser_Term_binrel___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__3); +l_Lean_Parser_Term_binrel___closed__4 = _init_l_Lean_Parser_Term_binrel___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__4); +l_Lean_Parser_Term_binrel___closed__5 = _init_l_Lean_Parser_Term_binrel___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__5); +l_Lean_Parser_Term_binrel___closed__6 = _init_l_Lean_Parser_Term_binrel___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__6); +l_Lean_Parser_Term_binrel___closed__7 = _init_l_Lean_Parser_Term_binrel___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__7); +l_Lean_Parser_Term_binrel___closed__8 = _init_l_Lean_Parser_Term_binrel___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__8); +l_Lean_Parser_Term_binrel___closed__9 = _init_l_Lean_Parser_Term_binrel___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_binrel___closed__9); +l_Lean_Parser_Term_binrel = _init_l_Lean_Parser_Term_binrel(); +lean_mark_persistent(l_Lean_Parser_Term_binrel); +res = l___regBuiltinParser_Lean_Parser_Term_binrel(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_binrel_formatter___closed__1 = _init_l_Lean_Parser_Term_binrel_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__1); +l_Lean_Parser_Term_binrel_formatter___closed__2 = _init_l_Lean_Parser_Term_binrel_formatter___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__2); +l_Lean_Parser_Term_binrel_formatter___closed__3 = _init_l_Lean_Parser_Term_binrel_formatter___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__3); +l_Lean_Parser_Term_binrel_formatter___closed__4 = _init_l_Lean_Parser_Term_binrel_formatter___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__4); +l_Lean_Parser_Term_binrel_formatter___closed__5 = _init_l_Lean_Parser_Term_binrel_formatter___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__5); +l_Lean_Parser_Term_binrel_formatter___closed__6 = _init_l_Lean_Parser_Term_binrel_formatter___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_formatter___closed__6); +l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1); +res = l___regBuiltin_Lean_Parser_Term_binrel_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_binrel_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_parenthesizer___closed__1); +l_Lean_Parser_Term_binrel_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_parenthesizer___closed__2); +l_Lean_Parser_Term_binrel_parenthesizer___closed__3 = _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_parenthesizer___closed__3); +l_Lean_Parser_Term_binrel_parenthesizer___closed__4 = _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_parenthesizer___closed__4); +l_Lean_Parser_Term_binrel_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_binrel_parenthesizer___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binrel_parenthesizer___closed__5); +l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer___closed__1); +res = l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_typeOf___elambda__1___closed__1 = _init_l_Lean_Parser_Term_typeOf___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_typeOf___elambda__1___closed__1); l_Lean_Parser_Term_typeOf___elambda__1___closed__2 = _init_l_Lean_Parser_Term_typeOf___elambda__1___closed__2(); @@ -54510,63 +55091,63 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Level_quot_parenthesizer___close res = l___regBuiltin_Lean_Parser_Level_quot_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__1); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__2); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__3); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__4); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__5); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__6); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__7); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__8); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__9); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__10); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__11); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__12); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__13); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__14); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__15); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__16); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__17); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__18); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__19); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__20); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__21); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__22); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__23); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__24); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__25); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__26); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__27); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761____closed__28); -res = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3761_(lean_io_mk_world()); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__1); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__2); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__3); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__4); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__5); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__6); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__7); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__8); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__9); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__10); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__11); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__12); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__13); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__14); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__15); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__16); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__17); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__18); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__19); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__20); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__21); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__22); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__23); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__24); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__25); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__26); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__27); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802____closed__28); +res = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3802_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Parser/Transform.c b/stage0/stdlib/Lean/Parser/Transform.c new file mode 100644 index 0000000000..61631c5c42 --- /dev/null +++ b/stage0/stdlib/Lean/Parser/Transform.c @@ -0,0 +1,1586 @@ +// Lean compiler output +// Module: Lean.Parser.Transform +// Imports: Init Lean.Parser.Basic +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); +lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); +lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_removeParen_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__1(lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedSourceInfo___closed__1; +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedSyntax; +lean_object* l_Lean_Syntax_manyToSepBy(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getNumArgs(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__2(lean_object*); +extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +lean_object* l_Lean_Syntax_removeParen(lean_object*); +uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_Lean_Syntax_getTailInfo(lean_object*); +extern lean_object* l_prec_x28___x29___closed__7; +lean_object* l_Lean_Syntax_manyToSepBy_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Syntax_removeParen_match__1(lean_object*); +lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__2___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_manyToSepBy_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_manyToSepBy_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_3, 1); +x_8 = lean_nat_dec_le(x_7, x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_4, x_9); +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; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_4, x_11); +lean_dec(x_4); +x_13 = l_Lean_instInhabitedSyntax; +x_14 = lean_array_get(x_13, x_2, x_5); +x_15 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_6); +x_16 = l_Lean_Syntax_getTailInfo(x_15); +if (lean_obj_tag(x_16) == 0) +{ +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_dec(x_15); +x_17 = l_Lean_instInhabitedSourceInfo___closed__1; +lean_inc(x_1); +x_18 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_1); +x_19 = lean_array_push(x_6, x_18); +x_20 = lean_array_push(x_19, x_14); +x_21 = lean_ctor_get(x_3, 2); +x_22 = lean_nat_add(x_5, x_21); +lean_dec(x_5); +x_4 = x_12; +x_5 = x_22; +x_6 = x_20; +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_24 = lean_ctor_get(x_16, 0); +lean_inc(x_24); +lean_dec(x_16); +x_25 = lean_array_get_size(x_6); +x_26 = lean_nat_sub(x_25, x_11); +lean_dec(x_25); +x_27 = lean_array_set(x_6, x_26, x_15); +lean_dec(x_26); +lean_inc(x_1); +x_28 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_1); +x_29 = lean_array_push(x_27, x_28); +x_30 = lean_array_push(x_29, x_14); +x_31 = lean_ctor_get(x_3, 2); +x_32 = lean_nat_add(x_5, x_31); +lean_dec(x_5); +x_4 = x_12; +x_5 = x_32; +x_6 = x_30; +goto _start; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_9 = lean_ctor_get(x_1, 1); +lean_dec(x_9); +x_10 = lean_ctor_get(x_1, 0); +lean_dec(x_10); +x_11 = l_Lean_instInhabitedSyntax; +x_12 = lean_array_get(x_11, x_4, x_6); +x_13 = l_Lean_mkOptionalNode___closed__2; +x_14 = lean_array_push(x_13, x_12); +x_15 = lean_unsigned_to_nat(1u); +lean_inc(x_5); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_5); +lean_ctor_set(x_16, 2, x_15); +x_17 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_2, x_4, x_16, x_5, x_15, x_14); +lean_dec(x_16); +lean_dec(x_4); +lean_ctor_set(x_1, 1, x_17); +return x_1; +} +else +{ +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_dec(x_1); +x_18 = l_Lean_instInhabitedSyntax; +x_19 = lean_array_get(x_18, x_4, x_6); +x_20 = l_Lean_mkOptionalNode___closed__2; +x_21 = lean_array_push(x_20, x_19); +x_22 = lean_unsigned_to_nat(1u); +lean_inc(x_5); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_5); +lean_ctor_set(x_23, 2, x_22); +x_24 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_2, x_4, x_23, x_5, x_22, x_21); +lean_dec(x_23); +lean_dec(x_4); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_3); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_dec(x_2); +return x_1; +} +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Syntax_removeParen_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_5, 2); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +lean_dec(x_3); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_5, 2); +lean_dec(x_10); +x_11 = lean_ctor_get(x_5, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_5, 0); +lean_dec(x_12); +x_13 = !lean_is_exclusive(x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_dec(x_14); +lean_ctor_set(x_5, 0, x_8); +x_15 = lean_apply_2(x_4, x_1, x_2); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +lean_ctor_set(x_5, 0, x_8); +x_17 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_apply_2(x_4, x_17, x_2); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_5); +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_20 = x_1; +} else { + lean_dec_ref(x_1); + x_20 = lean_box(0); +} +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_7); +lean_ctor_set(x_21, 2, x_8); +if (lean_is_scalar(x_20)) { + x_22 = lean_alloc_ctor(2, 2, 0); +} else { + x_22 = x_20; +} +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +x_23 = lean_apply_2(x_4, x_22, x_2); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_8, 0); +lean_inc(x_25); +x_26 = l_prec_x28___x29___closed__7; +x_27 = lean_string_dec_eq(x_24, x_26); +lean_dec(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +x_28 = lean_apply_2(x_4, x_1, x_2); +return x_28; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_1); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_1, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_1, 0); +lean_dec(x_31); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_32; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +lean_ctor_set(x_1, 1, x_26); +x_32 = lean_apply_2(x_4, x_1, x_2); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_5); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_5, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_5, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_5, 0); +lean_dec(x_38); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_2); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_2, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_33, 2); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +lean_dec(x_25); +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_33); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_33, 2); +lean_dec(x_44); +x_45 = lean_ctor_get(x_33, 1); +lean_dec(x_45); +x_46 = lean_ctor_get(x_33, 0); +lean_dec(x_46); +lean_ctor_set(x_33, 2, x_8); +lean_ctor_set(x_33, 0, x_42); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_33); +lean_ctor_set(x_5, 2, x_42); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_42); +lean_ctor_set(x_2, 0, x_5); +x_47 = lean_apply_2(x_4, x_1, x_2); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_33); +x_48 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_39); +lean_ctor_set(x_48, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_48); +lean_ctor_set(x_5, 2, x_42); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_42); +lean_ctor_set(x_2, 0, x_5); +x_49 = lean_apply_2(x_4, x_1, x_2); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; +lean_free_object(x_2); +lean_free_object(x_5); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_50 = lean_ctor_get(x_42, 0); +lean_inc(x_50); +lean_dec(x_42); +x_51 = lean_apply_3(x_3, x_25, x_33, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_2); +x_52 = lean_ctor_get(x_33, 2); +lean_inc(x_52); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_53 = x_33; +} else { + lean_dec_ref(x_33); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 3, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_39); +lean_ctor_set(x_54, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_54); +lean_ctor_set(x_5, 2, x_52); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_52); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_5); +x_56 = lean_apply_2(x_4, x_1, x_55); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_free_object(x_5); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_57 = lean_ctor_get(x_52, 0); +lean_inc(x_57); +lean_dec(x_52); +x_58 = lean_apply_3(x_3, x_25, x_33, x_57); +return x_58; +} +} +} +else +{ +uint8_t x_59; +lean_dec(x_39); +lean_free_object(x_5); +lean_dec(x_25); +lean_dec(x_3); +x_59 = !lean_is_exclusive(x_33); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_33, 2); +lean_dec(x_60); +x_61 = lean_ctor_get(x_33, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_33, 0); +lean_dec(x_62); +lean_ctor_set(x_33, 2, x_8); +lean_ctor_set(x_33, 1, x_7); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_33); +x_63 = lean_apply_2(x_4, x_1, x_2); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_33); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_34); +lean_ctor_set(x_64, 1, x_7); +lean_ctor_set(x_64, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_64); +x_65 = lean_apply_2(x_4, x_1, x_2); +return x_65; +} +} +} +else +{ +lean_object* x_66; +lean_dec(x_5); +x_66 = lean_ctor_get(x_33, 1); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_67 = x_2; +} else { + lean_dec_ref(x_2); + x_67 = lean_box(0); +} +x_68 = lean_ctor_get(x_33, 2); +lean_inc(x_68); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_69 = x_33; +} else { + lean_dec_ref(x_33); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 3, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_66); +lean_ctor_set(x_70, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_70); +x_71 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_66); +lean_ctor_set(x_71, 2, x_68); +if (lean_is_scalar(x_67)) { + x_72 = lean_alloc_ctor(1, 1, 0); +} else { + x_72 = x_67; +} +lean_ctor_set(x_72, 0, x_71); +x_73 = lean_apply_2(x_4, x_1, x_72); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_67); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_74 = lean_ctor_get(x_68, 0); +lean_inc(x_74); +lean_dec(x_68); +x_75 = lean_apply_3(x_3, x_25, x_33, x_74); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_66); +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_76 = x_33; +} else { + lean_dec_ref(x_33); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(0, 3, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_34); +lean_ctor_set(x_77, 1, x_7); +lean_ctor_set(x_77, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_77); +x_78 = lean_apply_2(x_4, x_1, x_2); +return x_78; +} +} +} +else +{ +lean_object* x_79; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +lean_ctor_set(x_1, 1, x_26); +x_79 = lean_apply_2(x_4, x_1, x_2); +return x_79; +} +} +} +else +{ +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +x_80 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_26); +x_81 = lean_apply_2(x_4, x_80, x_2); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_2, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + x_84 = x_5; +} else { + lean_dec_ref(x_5); + x_84 = lean_box(0); +} +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_86 = x_2; +} else { + lean_dec_ref(x_2); + x_86 = lean_box(0); +} +x_87 = lean_ctor_get(x_82, 2); +lean_inc(x_87); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_88 = x_82; +} else { + lean_dec_ref(x_82); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 3, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_85); +lean_ctor_set(x_89, 2, x_8); +x_90 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_26); +if (lean_is_scalar(x_84)) { + x_91 = lean_alloc_ctor(0, 3, 0); +} else { + x_91 = x_84; +} +lean_ctor_set(x_91, 0, x_87); +lean_ctor_set(x_91, 1, x_85); +lean_ctor_set(x_91, 2, x_87); +if (lean_is_scalar(x_86)) { + x_92 = lean_alloc_ctor(1, 1, 0); +} else { + x_92 = x_86; +} +lean_ctor_set(x_92, 0, x_91); +x_93 = lean_apply_2(x_4, x_90, x_92); +return x_93; +} +else +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_86); +lean_dec(x_84); +lean_dec(x_8); +lean_dec(x_4); +x_94 = lean_ctor_get(x_87, 0); +lean_inc(x_94); +lean_dec(x_87); +x_95 = lean_apply_3(x_3, x_25, x_82, x_94); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_96 = x_82; +} else { + lean_dec_ref(x_82); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 3, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_83); +lean_ctor_set(x_97, 1, x_7); +lean_ctor_set(x_97, 2, x_8); +x_98 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_26); +x_99 = lean_apply_2(x_4, x_98, x_2); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +x_100 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_100, 0, x_5); +lean_ctor_set(x_100, 1, x_26); +x_101 = lean_apply_2(x_4, x_100, x_2); +return x_101; +} +} +} +} +} +} +else +{ +lean_object* x_102; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_102 = lean_apply_2(x_4, x_1, x_2); +return x_102; +} +} +else +{ +lean_object* x_103; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_103 = lean_apply_2(x_4, x_1, x_2); +return x_103; +} +} +else +{ +lean_object* x_104; +lean_dec(x_3); +x_104 = lean_apply_2(x_4, x_1, x_2); +return x_104; +} +} +} +lean_object* l_Lean_Syntax_removeParen_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_removeParen_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Syntax_removeParen(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_5 = lean_name_eq(x_2, x_4); +if (x_5 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +else +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +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; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 1); +lean_dec(x_7); +x_8 = lean_ctor_get(x_1, 0); +lean_dec(x_8); +lean_inc(x_3); +x_9 = l_Lean_instInhabitedSyntax; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_array_get(x_9, x_3, x_10); +x_12 = l_Lean_Syntax_getNumArgs(x_11); +x_13 = lean_unsigned_to_nat(2u); +x_14 = lean_nat_dec_eq(x_12, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_dec(x_11); +lean_dec(x_3); +return x_1; +} +else +{ +lean_object* x_15; uint8_t x_16; +x_15 = l_Lean_Syntax_getArg(x_11, x_10); +x_16 = l_Lean_Syntax_isNone(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_11); +lean_dec(x_3); +return x_1; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_Syntax_getArg(x_11, x_17); +lean_dec(x_11); +x_19 = lean_array_get(x_9, x_3, x_13); +lean_dec(x_3); +if (lean_obj_tag(x_19) == 2) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Syntax_getTailInfo(x_18); +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_20, 2); +lean_inc(x_25); +lean_dec(x_20); +if (lean_obj_tag(x_25) == 0) +{ +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_18); +return x_1; +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_prec_x28___x29___closed__7; +x_28 = lean_string_dec_eq(x_21, x_27); +lean_dec(x_21); +if (x_28 == 0) +{ +lean_dec(x_26); +lean_dec(x_22); +lean_dec(x_18); +return x_1; +} +else +{ +if (lean_obj_tag(x_22) == 0) +{ +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_22, 0); +lean_inc(x_29); +lean_dec(x_22); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 2); +x_34 = lean_ctor_get(x_29, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_29, 0); +lean_dec(x_35); +if (lean_obj_tag(x_33) == 0) +{ +lean_free_object(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +uint8_t x_36; +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 2); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_string_utf8_extract(x_38, x_39, x_40); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +x_42 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_43 = lean_string_append(x_41, x_42); +x_44 = !lean_is_exclusive(x_26); +if (x_44 == 0) +{ +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; +x_45 = lean_ctor_get(x_26, 0); +x_46 = lean_ctor_get(x_26, 1); +x_47 = lean_ctor_get(x_26, 2); +x_48 = lean_string_utf8_extract(x_45, x_46, x_47); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +x_49 = lean_string_append(x_43, x_48); +lean_dec(x_48); +x_50 = lean_string_utf8_byte_size(x_49); +lean_ctor_set(x_26, 2, x_50); +lean_ctor_set(x_26, 1, x_17); +lean_ctor_set(x_26, 0, x_49); +lean_ctor_set(x_33, 0, x_26); +x_51 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_51; +} +else +{ +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; +x_52 = lean_ctor_get(x_26, 0); +x_53 = lean_ctor_get(x_26, 1); +x_54 = lean_ctor_get(x_26, 2); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_26); +x_55 = lean_string_utf8_extract(x_52, x_53, x_54); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_52); +x_56 = lean_string_append(x_43, x_55); +lean_dec(x_55); +x_57 = lean_string_utf8_byte_size(x_56); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_17); +lean_ctor_set(x_58, 2, x_57); +lean_ctor_set(x_33, 0, x_58); +x_59 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 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; +x_60 = lean_ctor_get(x_33, 0); +lean_inc(x_60); +lean_dec(x_33); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_60, 2); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_string_utf8_extract(x_61, x_62, x_63); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +x_65 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_66 = lean_string_append(x_64, x_65); +x_67 = lean_ctor_get(x_26, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_26, 1); +lean_inc(x_68); +x_69 = lean_ctor_get(x_26, 2); +lean_inc(x_69); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + x_70 = x_26; +} else { + lean_dec_ref(x_26); + x_70 = lean_box(0); +} +x_71 = lean_string_utf8_extract(x_67, x_68, x_69); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_67); +x_72 = lean_string_append(x_66, x_71); +lean_dec(x_71); +x_73 = lean_string_utf8_byte_size(x_72); +if (lean_is_scalar(x_70)) { + x_74 = lean_alloc_ctor(0, 3, 0); +} else { + x_74 = x_70; +} +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_17); +lean_ctor_set(x_74, 2, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_29, 2, x_75); +x_76 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_76; +} +} +} +else +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_29, 2); +lean_inc(x_77); +lean_dec(x_29); +if (lean_obj_tag(x_77) == 0) +{ +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_1); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_78, 2); +lean_inc(x_82); +lean_dec(x_78); +x_83 = lean_string_utf8_extract(x_80, x_81, x_82); +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_80); +x_84 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_85 = lean_string_append(x_83, x_84); +x_86 = lean_ctor_get(x_26, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_26, 1); +lean_inc(x_87); +x_88 = lean_ctor_get(x_26, 2); +lean_inc(x_88); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + x_89 = x_26; +} else { + lean_dec_ref(x_26); + x_89 = lean_box(0); +} +x_90 = lean_string_utf8_extract(x_86, x_87, x_88); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_86); +x_91 = lean_string_append(x_85, x_90); +lean_dec(x_90); +x_92 = lean_string_utf8_byte_size(x_91); +if (lean_is_scalar(x_89)) { + x_93 = lean_alloc_ctor(0, 3, 0); +} else { + x_93 = x_89; +} +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_17); +lean_ctor_set(x_93, 2, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(1, 1, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +x_95 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_95, 0, x_30); +lean_ctor_set(x_95, 1, x_31); +lean_ctor_set(x_95, 2, x_94); +x_96 = l_Lean_Syntax_setTailInfo(x_18, x_95); +return x_96; +} +} +} +else +{ +lean_dec(x_31); +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +} +} +} +} +else +{ +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_19); +lean_dec(x_18); +return x_1; +} +} +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_dec(x_1); +lean_inc(x_3); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_2); +lean_ctor_set(x_97, 1, x_3); +x_98 = l_Lean_instInhabitedSyntax; +x_99 = lean_unsigned_to_nat(1u); +x_100 = lean_array_get(x_98, x_3, x_99); +x_101 = l_Lean_Syntax_getNumArgs(x_100); +x_102 = lean_unsigned_to_nat(2u); +x_103 = lean_nat_dec_eq(x_101, x_102); +lean_dec(x_101); +if (x_103 == 0) +{ +lean_dec(x_100); +lean_dec(x_3); +return x_97; +} +else +{ +lean_object* x_104; uint8_t x_105; +x_104 = l_Lean_Syntax_getArg(x_100, x_99); +x_105 = l_Lean_Syntax_isNone(x_104); +lean_dec(x_104); +if (x_105 == 0) +{ +lean_dec(x_100); +lean_dec(x_3); +return x_97; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_unsigned_to_nat(0u); +x_107 = l_Lean_Syntax_getArg(x_100, x_106); +lean_dec(x_100); +x_108 = lean_array_get(x_98, x_3, x_102); +lean_dec(x_3); +if (lean_obj_tag(x_108) == 2) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Lean_Syntax_getTailInfo(x_107); +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; +x_113 = lean_ctor_get(x_109, 1); +lean_inc(x_113); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; +x_114 = lean_ctor_get(x_109, 2); +lean_inc(x_114); +lean_dec(x_109); +if (lean_obj_tag(x_114) == 0) +{ +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_107); +return x_97; +} +else +{ +lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +lean_dec(x_114); +x_116 = l_prec_x28___x29___closed__7; +x_117 = lean_string_dec_eq(x_110, x_116); +lean_dec(x_110); +if (x_117 == 0) +{ +lean_dec(x_115); +lean_dec(x_111); +lean_dec(x_107); +return x_97; +} +else +{ +if (lean_obj_tag(x_111) == 0) +{ +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +else +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_111, 0); +lean_inc(x_118); +lean_dec(x_111); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_118, 2); +lean_inc(x_121); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + lean_ctor_release(x_118, 2); + x_122 = x_118; +} else { + lean_dec_ref(x_118); + x_122 = lean_box(0); +} +if (lean_obj_tag(x_121) == 0) +{ +lean_dec(x_122); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_97); +x_123 = lean_ctor_get(x_121, 0); +lean_inc(x_123); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + x_124 = x_121; +} else { + lean_dec_ref(x_121); + x_124 = lean_box(0); +} +x_125 = lean_ctor_get(x_123, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_123, 2); +lean_inc(x_127); +lean_dec(x_123); +x_128 = lean_string_utf8_extract(x_125, x_126, x_127); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +x_129 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_130 = lean_string_append(x_128, x_129); +x_131 = lean_ctor_get(x_115, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_115, 1); +lean_inc(x_132); +x_133 = lean_ctor_get(x_115, 2); +lean_inc(x_133); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + lean_ctor_release(x_115, 2); + x_134 = x_115; +} else { + lean_dec_ref(x_115); + x_134 = lean_box(0); +} +x_135 = lean_string_utf8_extract(x_131, x_132, x_133); +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_131); +x_136 = lean_string_append(x_130, x_135); +lean_dec(x_135); +x_137 = lean_string_utf8_byte_size(x_136); +if (lean_is_scalar(x_134)) { + x_138 = lean_alloc_ctor(0, 3, 0); +} else { + x_138 = x_134; +} +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_106); +lean_ctor_set(x_138, 2, x_137); +if (lean_is_scalar(x_124)) { + x_139 = lean_alloc_ctor(1, 1, 0); +} else { + x_139 = x_124; +} +lean_ctor_set(x_139, 0, x_138); +if (lean_is_scalar(x_122)) { + x_140 = lean_alloc_ctor(0, 3, 0); +} else { + x_140 = x_122; +} +lean_ctor_set(x_140, 0, x_119); +lean_ctor_set(x_140, 1, x_120); +lean_ctor_set(x_140, 2, x_139); +x_141 = l_Lean_Syntax_setTailInfo(x_107, x_140); +return x_141; +} +} +else +{ +lean_dec(x_120); +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_119); +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +} +} +} +} +else +{ +lean_dec(x_113); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_112); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_108); +lean_dec(x_107); +return x_97; +} +} +} +} +} +} +else +{ +return x_1; +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Basic(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Parser_Transform(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Parser_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg.c b/stage0/stdlib/Leanpkg.c new file mode 100644 index 0000000000..78342e9e68 --- /dev/null +++ b/stage0/stdlib/Leanpkg.c @@ -0,0 +1,3160 @@ +// Lean compiler output +// Module: Leanpkg +// Imports: Init Leanpkg.Resolve Leanpkg.Git +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Leanpkg_build___closed__1; +lean_object* lean_string_push(lean_object*, uint32_t); +lean_object* l_Leanpkg_init(lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg(lean_object*, uint8_t, lean_object*); +lean_object* l_Leanpkg_writeManifest(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_readManifest___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3; +extern lean_object* l_String_instInhabitedString; +extern lean_object* l_Leanpkg_gitParseRevision___closed__5; +lean_object* l_List_map___at_Leanpkg_configure___spec__2___closed__1; +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_main___closed__3; +lean_object* l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_is_dir(lean_object*, lean_object*); +lean_object* _lean_main(lean_object*, lean_object*); +lean_object* l_Leanpkg_readManifest(lean_object*); +lean_object* lean_io_prim_handle_put_str(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_configure(lean_object*); +extern lean_object* l_Array_empty___closed__1; +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l_List_map___at_Leanpkg_configure___spec__2(lean_object*); +lean_object* l_Leanpkg_execCmd(lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__12; +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__1(lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Leanpkg_readManifest___closed__3; +lean_object* l_Leanpkg_initPkg___closed__11; +lean_object* l_Leanpkg_usage; +extern lean_object* l_Leanpkg_gitParseRevision___closed__1; +lean_object* l_Leanpkg_main___closed__2; +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__8; +lean_object* l_Leanpkg_build(lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__1; +lean_object* l_Leanpkg_initPkg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_usage___closed__3; +lean_object* l_Leanpkg_build_match__1(lean_object*); +lean_object* l_Leanpkg_initPkg___closed__9; +uint8_t l_instDecidableNot___rarg(uint8_t); +lean_object* l_Leanpkg_initPkg___closed__4; +lean_object* l_Leanpkg_readManifest___closed__4; +lean_object* l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(lean_object*, lean_object*); +lean_object* l_IO_FS_Handle_mk___at_Lean_Parser_testParseFile___spec__2(lean_object*, uint8_t, uint8_t, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__2; +lean_object* l_IO_FS_Handle_putStr___at_Leanpkg_writeManifest___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_String_capitalize(lean_object*); +lean_object* l_Leanpkg_readManifest___closed__1; +extern lean_object* l_Leanpkg_uiLeanVersionString; +lean_object* l_Leanpkg_build_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_solveDeps(lean_object*, lean_object*); +lean_object* l_IO_FS_Handle_putStr___at_Leanpkg_writeManifest___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_repr(lean_object*); +lean_object* l_Leanpkg_initPkg___closed__6; +extern lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_507____closed__1; +lean_object* l_Leanpkg_initGitignoreContents; +extern lean_object* l_Leanpkg_leanpkgTomlFn; +lean_object* l_Leanpkg_readManifest___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_readManifest___closed__2; +extern lean_object* l_Leanpkg_leanVersionString___closed__3; +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore(lean_object*); +lean_object* l_Leanpkg_build___closed__2; +lean_object* l_Leanpkg_initPkg___closed__13; +lean_object* l_Leanpkg_Manifest_fromFile(lean_object*, lean_object*); +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__2(lean_object*); +lean_object* l_Leanpkg_build___closed__4; +extern lean_object* l_Leanpkg_materialize___lambda__1___closed__2; +lean_object* lean_init_search_path(lean_object*, lean_object*); +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1; +lean_object* l_main_match__1(lean_object*); +lean_object* l_Leanpkg_splitCmdlineArgs_match__1(lean_object*); +lean_object* l_Leanpkg_constructPath(lean_object*, lean_object*); +lean_object* l_Leanpkg_splitCmdlineArgs_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Option_get_x21___rarg___closed__4; +extern lean_object* l_Lean_Syntax_mkApp___closed__1; +lean_object* l_String_intercalate(lean_object*, lean_object*); +lean_object* l_main_match__1___rarg(lean_object*, lean_object*); +extern lean_object* l_List_partition___rarg___closed__1; +lean_object* l_Leanpkg_usage___closed__4; +extern uint32_t l_System_FilePath_searchPathSeparator; +lean_object* l_Leanpkg_configure___closed__2; +lean_object* l_Leanpkg_splitCmdlineArgs(lean_object*, lean_object*); +lean_object* l_Leanpkg_initGitignoreContents___closed__1; +lean_object* l_Leanpkg_writeManifest___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__5; +lean_object* l_Leanpkg_initPkg___closed__14; +lean_object* l_Leanpkg_main_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__15; +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Leanpkg_main_match__1(lean_object*); +extern lean_object* l_Leanpkg_leanVersionString; +lean_object* l_Leanpkg_build___closed__3; +lean_object* l_Leanpkg_usage___closed__2; +lean_object* l_Leanpkg_initPkg___closed__7; +lean_object* l_Leanpkg_splitCmdlineArgs_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_configure___closed__1; +lean_object* l_Leanpkg_main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_main___closed__1; +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_initPkg___closed__3; +lean_object* l_Leanpkg_usage___closed__1; +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1; +lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2; +uint8_t l_Leanpkg_initPkg___closed__10; +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Leanpkg_Manifest_effectivePath(lean_object*); +extern lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; +lean_object* l_Leanpkg_main_match__1___rarg___closed__2; +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4; +lean_object* l_Leanpkg_main_match__1___rarg___closed__1; +extern lean_object* l_Leanpkg_gitParseRevision___closed__9; +lean_object* l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_upstreamGitBranch; +lean_object* l_Leanpkg_splitCmdlineArgs_match__2(lean_object*); +lean_object* l_Leanpkg_main___closed__4; +lean_object* l_Lean_Syntax_reprint(lean_object*); +extern lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l_Leanpkg_readManifest___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +static lean_object* _init_l_Leanpkg_readManifest___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nWARNING: Lean version mismatch: installed version is "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_readManifest___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_readManifest___closed__1; +x_2 = l_Leanpkg_leanVersionString; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_readManifest___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", but package requires "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_readManifest___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_readManifest___closed__2; +x_2 = l_Leanpkg_readManifest___closed__3; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* l_Leanpkg_readManifest(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Leanpkg_leanpkgTomlFn; +x_3 = l_Leanpkg_Manifest_fromFile(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_5, 2); +lean_inc(x_7); +x_8 = l_Leanpkg_leanVersionString; +x_9 = lean_string_dec_eq(x_7, x_8); +x_10 = l_instDecidableNot___rarg(x_9); +if (x_10 == 0) +{ +lean_dec(x_7); +return x_3; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_free_object(x_3); +x_11 = l_Leanpkg_readManifest___closed__4; +x_12 = lean_string_append(x_11, x_7); +lean_dec(x_7); +x_13 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; +x_14 = lean_string_append(x_12, x_13); +x_15 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_14, x_6); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_5); +return x_15; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_5); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; +x_24 = lean_ctor_get(x_3, 0); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_3); +x_26 = lean_ctor_get(x_24, 2); +lean_inc(x_26); +x_27 = l_Leanpkg_leanVersionString; +x_28 = lean_string_dec_eq(x_26, x_27); +x_29 = l_instDecidableNot___rarg(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_25); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = l_Leanpkg_readManifest___closed__4; +x_32 = lean_string_append(x_31, x_26); +lean_dec(x_26); +x_33 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; +x_34 = lean_string_append(x_32, x_33); +x_35 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_34, x_25); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_24); +x_39 = lean_ctor_get(x_35, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_41 = x_35; +} else { + lean_dec_ref(x_35); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +else +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_3); +if (x_43 == 0) +{ +return x_3; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_3, 0); +x_45 = lean_ctor_get(x_3, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_3); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} +lean_object* l_Leanpkg_readManifest___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_readManifest___lambda__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_IO_FS_Handle_putStr___at_Leanpkg_writeManifest___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_io_prim_handle_put_str(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = 1; +x_5 = 0; +x_6 = l_IO_FS_Handle_mk___at_Lean_Parser_testParseFile___spec__2(x_1, x_4, x_5, x_3); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_io_prim_handle_put_str(x_7, x_2, x_8); +lean_dec(x_7); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_6); +if (x_10 == 0) +{ +return x_6; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_6); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +lean_object* l_Leanpkg_writeManifest(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Syntax_reprint(x_1); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_String_instInhabitedString; +x_6 = l_Option_get_x21___rarg___closed__4; +x_7 = lean_panic_fn(x_5, x_6); +x_8 = l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(x_2, x_7, x_3); +lean_dec(x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(x_2, x_9, x_3); +lean_dec(x_9); +return x_10; +} +} +} +lean_object* l_IO_FS_Handle_putStr___at_Leanpkg_writeManifest___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_IO_FS_Handle_putStr___at_Leanpkg_writeManifest___spec__2(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Leanpkg_writeManifest___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_writeManifest(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("./."); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("build"); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkOptionalNode___closed__2; +x_2 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("leanpkg"); +return x_1; +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +lean_dec(x_2); +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1; +x_8 = lean_string_dec_eq(x_5, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +x_10 = l_Leanpkg_gitParseRevision___closed__1; +x_11 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4; +x_12 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3; +x_13 = l_Array_empty___closed__1; +x_14 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_11); +lean_ctor_set(x_14, 2, x_12); +lean_ctor_set(x_14, 3, x_9); +lean_ctor_set(x_14, 4, x_13); +x_15 = l_Leanpkg_execCmd(x_14, x_3); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_box(0); +x_1 = x_6; +x_2 = x_17; +x_3 = x_16; +goto _start; +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_15); +if (x_19 == 0) +{ +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +else +{ +lean_object* x_23; +x_23 = lean_box(0); +x_1 = x_6; +x_2 = x_23; +goto _start; +} +} +} +} +static lean_object* _init_l_List_map___at_Leanpkg_configure___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("/build"); +return x_1; +} +} +lean_object* l_List_map___at_Leanpkg_configure___spec__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_List_map___at_Leanpkg_configure___spec__2___closed__1; +x_7 = lean_string_append(x_4, x_6); +x_8 = l_List_map___at_Leanpkg_configure___spec__2(x_5); +lean_ctor_set(x_1, 1, x_8); +lean_ctor_set(x_1, 0, x_7); +return x_1; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_List_map___at_Leanpkg_configure___spec__2___closed__1; +x_12 = lean_string_append(x_9, x_11); +x_13 = l_List_map___at_Leanpkg_configure___spec__2(x_10); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +static lean_object* _init_l_Leanpkg_configure___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("configuring "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_configure___closed__2() { +_start: +{ +lean_object* x_1; uint32_t x_2; lean_object* x_3; +x_1 = l_Lean_instInhabitedParserDescr___closed__1; +x_2 = l_System_FilePath_searchPathSeparator; +x_3 = lean_string_push(x_1, x_2); +return x_3; +} +} +lean_object* l_Leanpkg_configure(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_readManifest(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = l_Leanpkg_configure___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_11, x_4); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Leanpkg_solveDeps(x_3, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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_17 = l_Leanpkg_constructPath(x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_box(0); +x_21 = l_List_forIn_loop___at_Leanpkg_configure___spec__1(x_18, x_20, x_19); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = l_List_map___at_Leanpkg_configure___spec__2(x_18); +x_25 = l_Leanpkg_configure___closed__2; +x_26 = l_String_intercalate(x_25, x_24); +lean_ctor_set(x_21, 0, x_26); +return x_21; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_dec(x_21); +x_28 = l_List_map___at_Leanpkg_configure___spec__2(x_18); +x_29 = l_Leanpkg_configure___closed__2; +x_30 = l_String_intercalate(x_29, x_28); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_18); +x_32 = !lean_is_exclusive(x_21); +if (x_32 == 0) +{ +return x_21; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_21); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_17); +if (x_36 == 0) +{ +return x_17; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_17, 0); +x_38 = lean_ctor_get(x_17, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_17); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_14); +if (x_40 == 0) +{ +return x_14; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_14, 0); +x_42 = lean_ctor_get(x_14, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_14); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_12); +if (x_44 == 0) +{ +return x_12; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_12, 0); +x_46 = lean_ctor_get(x_12, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_12); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_2); +if (x_48 == 0) +{ +return x_2; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_2, 0); +x_50 = lean_ctor_get(x_2, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_2); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_configure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_forIn_loop___at_Leanpkg_configure___spec__1(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Leanpkg_build_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Leanpkg_build_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_build_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_build___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("LEAN_PATH="); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_build___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("LEAN_OPTS="); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_build___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("leanmake"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_build___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("-T"); +return x_1; +} +} +lean_object* l_Leanpkg_build(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Leanpkg_readManifest(x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Leanpkg_configure(x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_4, 3); +lean_inc(x_9); +x_10 = l_Leanpkg_build___closed__1; +x_11 = lean_string_append(x_10, x_7); +lean_dec(x_7); +x_12 = l_Lean_instInhabitedParserDescr___closed__1; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Leanpkg_Manifest_effectivePath(x_4); +lean_dec(x_4); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +if (lean_obj_tag(x_9) == 0) +{ +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; +x_16 = lean_box(0); +x_17 = l_List_append___rarg(x_16, x_1); +x_18 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_19 = l_String_intercalate(x_18, x_17); +x_20 = l_Leanpkg_build___closed__2; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +x_22 = lean_string_append(x_21, x_12); +x_23 = l_Lean_Syntax_mkApp___closed__1; +x_24 = lean_array_push(x_23, x_22); +x_25 = lean_array_push(x_24, x_13); +x_26 = l_Leanpkg_gitParseRevision___closed__1; +x_27 = l_Leanpkg_build___closed__3; +x_28 = l_Array_empty___closed__1; +x_29 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_29, 0, x_26); +lean_ctor_set(x_29, 1, x_27); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_15); +lean_ctor_set(x_29, 4, x_28); +x_30 = l_Leanpkg_execCmd(x_29, x_8); +return x_30; +} +else +{ +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; +x_31 = lean_ctor_get(x_9, 0); +lean_inc(x_31); +lean_dec(x_9); +x_32 = l_Nat_repr(x_31); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Leanpkg_build___closed__4; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_List_append___rarg(x_36, x_1); +x_38 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_39 = l_String_intercalate(x_38, x_37); +x_40 = l_Leanpkg_build___closed__2; +x_41 = lean_string_append(x_40, x_39); +lean_dec(x_39); +x_42 = lean_string_append(x_41, x_12); +x_43 = l_Lean_Syntax_mkApp___closed__1; +x_44 = lean_array_push(x_43, x_42); +x_45 = lean_array_push(x_44, x_13); +x_46 = l_Leanpkg_gitParseRevision___closed__1; +x_47 = l_Leanpkg_build___closed__3; +x_48 = l_Array_empty___closed__1; +x_49 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +lean_ctor_set(x_49, 2, x_45); +lean_ctor_set(x_49, 3, x_15); +lean_ctor_set(x_49, 4, x_48); +x_50 = l_Leanpkg_execCmd(x_49, x_8); +return x_50; +} +} +else +{ +uint8_t x_51; +lean_dec(x_4); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_6); +if (x_51 == 0) +{ +return x_6; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_6, 0); +x_53 = lean_ctor_get(x_6, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_6); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_3); +if (x_55 == 0) +{ +return x_3; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_3, 0); +x_57 = lean_ctor_get(x_3, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_3); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +} +static lean_object* _init_l_Leanpkg_initGitignoreContents___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("/build\n"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initGitignoreContents() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_initGitignoreContents___closed__1; +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("[package]\nname = \""); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\"\nversion = \"0.1\"\n"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(".lean"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("def main : IO Unit :=\n IO.println \"Hello, world!\"\n"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(".gitignore"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(".git"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Syntax_mkApp___closed__1; +x_2 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_507____closed__1; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_initPkg___closed__7; +x_2 = l_Leanpkg_gitParseRevision___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = lean_box(0); +x_2 = l_Leanpkg_gitParseRevision___closed__1; +x_3 = l_Leanpkg_gitParseRevision___closed__9; +x_4 = l_Leanpkg_initPkg___closed__8; +x_5 = l_Array_empty___closed__1; +x_6 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_5); +return x_6; +} +} +static uint8_t _init_l_Leanpkg_initPkg___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; +x_1 = l_Leanpkg_upstreamGitBranch; +x_2 = l_Leanpkg_leanVersionString___closed__3; +x_3 = lean_string_dec_eq(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("-B"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_materialize___lambda__1___closed__2; +x_2 = l_Leanpkg_initPkg___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_initPkg___closed__12; +x_2 = l_Leanpkg_upstreamGitBranch; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = lean_box(0); +x_2 = l_Leanpkg_gitParseRevision___closed__1; +x_3 = l_Leanpkg_gitParseRevision___closed__9; +x_4 = l_Leanpkg_initPkg___closed__13; +x_5 = l_Array_empty___closed__1; +x_6 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_5); +return x_6; +} +} +static lean_object* _init_l_Leanpkg_initPkg___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("WARNING: failed to initialize git repository"); +return x_1; +} +} +lean_object* l_Leanpkg_initPkg(lean_object* x_1, uint8_t 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; +x_4 = l_Leanpkg_initPkg___closed__1; +x_5 = lean_string_append(x_4, x_1); +x_6 = l_Leanpkg_initPkg___closed__2; +x_7 = lean_string_append(x_5, x_6); +x_8 = l_Leanpkg_leanpkgTomlFn; +x_9 = l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(x_8, x_7, x_3); +lean_dec(x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_String_capitalize(x_1); +x_12 = l_Lean_instInhabitedParserDescr___closed__1; +x_13 = lean_string_append(x_12, x_11); +lean_dec(x_11); +x_14 = l_Leanpkg_initPkg___closed__3; +x_15 = lean_string_append(x_13, x_14); +x_16 = l_Leanpkg_initPkg___closed__4; +x_17 = l_IO_FS_writeFile___at_Leanpkg_writeManifest___spec__1(x_15, x_16, x_10); +lean_dec(x_15); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Leanpkg_initPkg___closed__5; +x_20 = 3; +x_21 = 0; +x_22 = l_IO_FS_Handle_mk___at_Lean_Parser_testParseFile___spec__2(x_19, x_20, x_21, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Leanpkg_initGitignoreContents; +x_26 = lean_io_prim_handle_put_str(x_23, x_25, x_24); +lean_dec(x_23); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l_Leanpkg_initPkg___closed__6; +x_29 = lean_io_is_dir(x_28, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; uint8_t x_31; +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; lean_object* x_34; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = l_Leanpkg_initPkg___closed__9; +x_34 = l_Leanpkg_execCmd(x_33, x_32); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_34, 1); +x_37 = lean_ctor_get(x_34, 0); +lean_dec(x_37); +x_38 = l_Leanpkg_initPkg___closed__10; +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_free_object(x_34); +x_39 = l_Leanpkg_initPkg___closed__14; +x_40 = l_Leanpkg_execCmd(x_39, x_36); +if (lean_obj_tag(x_40) == 0) +{ +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l_Leanpkg_initPkg___closed__15; +x_43 = l_IO_println___at_Lean_instEval___spec__1(x_42, x_41); +return x_43; +} +} +else +{ +lean_object* x_44; +x_44 = lean_box(0); +lean_ctor_set(x_34, 0, x_44); +return x_34; +} +} +else +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_34, 1); +lean_inc(x_45); +lean_dec(x_34); +x_46 = l_Leanpkg_initPkg___closed__10; +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = l_Leanpkg_initPkg___closed__14; +x_48 = l_Leanpkg_execCmd(x_47, x_45); +if (lean_obj_tag(x_48) == 0) +{ +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_Leanpkg_initPkg___closed__15; +x_51 = l_IO_println___at_Lean_instEval___spec__1(x_50, x_49); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_45); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_34, 1); +lean_inc(x_54); +lean_dec(x_34); +x_55 = l_Leanpkg_initPkg___closed__15; +x_56 = l_IO_println___at_Lean_instEval___spec__1(x_55, x_54); +return x_56; +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_29); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_29, 0); +lean_dec(x_58); +x_59 = lean_box(0); +lean_ctor_set(x_29, 0, x_59); +return x_29; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_29, 1); +lean_inc(x_60); +lean_dec(x_29); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +} +} +else +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_29); +if (x_63 == 0) +{ +return x_29; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_29, 0); +x_65 = lean_ctor_get(x_29, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_29); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +else +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_26); +if (x_67 == 0) +{ +return x_26; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_26, 0); +x_69 = lean_ctor_get(x_26, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_26); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else +{ +uint8_t x_71; +x_71 = !lean_is_exclusive(x_22); +if (x_71 == 0) +{ +return x_22; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_22, 0); +x_73 = lean_ctor_get(x_22, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_22); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +x_75 = !lean_is_exclusive(x_17); +if (x_75 == 0) +{ +return x_17; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_17, 0); +x_77 = lean_ctor_get(x_17, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_17); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_9); +if (x_79 == 0) +{ +return x_9; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_9, 0); +x_81 = lean_ctor_get(x_9, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_9); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +} +lean_object* l_Leanpkg_initPkg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_2); +lean_dec(x_2); +x_5 = l_Leanpkg_initPkg(x_1, x_4, x_3); +return x_5; +} +} +lean_object* l_Leanpkg_init(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = 0; +x_4 = l_Leanpkg_initPkg(x_1, x_3, x_2); +return x_4; +} +} +static lean_object* _init_l_Leanpkg_usage___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean package manager, version "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_usage___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_usage___closed__1; +x_2 = l_Leanpkg_uiLeanVersionString; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_usage___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\n\nUsage: leanpkg \n\nconfigure download dependencies\nbuild [-- ] download dependencies and build *.olean files\ninit create a Lean package in the current directory\n\nSee `leanpkg help ` for more information on a specific command."); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_usage___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_usage___closed__2; +x_2 = l_Leanpkg_usage___closed__3; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_usage() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_usage___closed__4; +return x_1; +} +} +static lean_object* _init_l_Leanpkg_main_match__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("configure"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_main_match__1___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("help"); +return x_1; +} +} +lean_object* l_Leanpkg_main_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; uint8_t x_13; +x_12 = l_Leanpkg_main_match__1___rarg___closed__1; +x_13 = lean_string_dec_eq(x_1, x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +lean_dec(x_4); +x_14 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2; +x_15 = lean_string_dec_eq(x_1, x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +lean_dec(x_5); +x_16 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_507____closed__1; +x_17 = lean_string_dec_eq(x_1, x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_6); +x_18 = l_Leanpkg_main_match__1___rarg___closed__2; +x_19 = lean_string_dec_eq(x_1, x_18); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_20 = lean_apply_3(x_11, x_1, x_2, x_3); +return x_20; +} +else +{ +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_21; +lean_dec(x_11); +x_21 = lean_apply_1(x_10, x_3); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_10); +x_22 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_2, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_2, 1); +lean_inc(x_24); +x_25 = lean_string_dec_eq(x_23, x_12); +if (x_25 == 0) +{ +uint8_t x_26; +lean_dec(x_7); +x_26 = lean_string_dec_eq(x_23, x_14); +if (x_26 == 0) +{ +uint8_t x_27; +lean_dec(x_8); +x_27 = lean_string_dec_eq(x_23, x_16); +lean_dec(x_23); +if (x_27 == 0) +{ +lean_dec(x_24); +lean_dec(x_9); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_28; +lean_dec(x_11); +x_28 = lean_apply_1(x_10, x_2); +return x_28; +} +else +{ +lean_object* x_29; +lean_dec(x_10); +x_29 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_29; +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_2); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_2, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_2, 0); +lean_dec(x_32); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_free_object(x_2); +lean_dec(x_11); +x_33 = lean_box(0); +x_34 = lean_apply_1(x_9, x_33); +return x_34; +} +else +{ +lean_object* x_35; +lean_dec(x_9); +lean_ctor_set(x_2, 0, x_16); +x_35 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_35; +} +} +else +{ +lean_dec(x_9); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_36; +lean_dec(x_11); +lean_ctor_set(x_2, 0, x_16); +x_36 = lean_apply_1(x_10, x_2); +return x_36; +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_ctor_set(x_2, 0, x_16); +x_37 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_37; +} +} +} +else +{ +lean_dec(x_2); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_11); +x_38 = lean_box(0); +x_39 = lean_apply_1(x_9, x_38); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_9); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_16); +lean_ctor_set(x_40, 1, x_24); +x_41 = lean_apply_3(x_11, x_18, x_40, x_3); +return x_41; +} +} +else +{ +lean_dec(x_9); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_11); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_16); +lean_ctor_set(x_42, 1, x_24); +x_43 = lean_apply_1(x_10, x_42); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_10); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_16); +lean_ctor_set(x_44, 1, x_24); +x_45 = lean_apply_3(x_11, x_18, x_44, x_3); +return x_45; +} +} +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_23); +lean_dec(x_9); +x_46 = !lean_is_exclusive(x_2); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_2, 1); +lean_dec(x_47); +x_48 = lean_ctor_get(x_2, 0); +lean_dec(x_48); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_free_object(x_2); +lean_dec(x_11); +x_49 = lean_box(0); +x_50 = lean_apply_1(x_8, x_49); +return x_50; +} +else +{ +lean_object* x_51; +lean_dec(x_8); +lean_ctor_set(x_2, 0, x_14); +x_51 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_51; +} +} +else +{ +lean_dec(x_8); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_52; +lean_dec(x_11); +lean_ctor_set(x_2, 0, x_14); +x_52 = lean_apply_1(x_10, x_2); +return x_52; +} +else +{ +lean_object* x_53; +lean_dec(x_10); +lean_ctor_set(x_2, 0, x_14); +x_53 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_53; +} +} +} +else +{ +lean_dec(x_2); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_11); +x_54 = lean_box(0); +x_55 = lean_apply_1(x_8, x_54); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_8); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_14); +lean_ctor_set(x_56, 1, x_24); +x_57 = lean_apply_3(x_11, x_18, x_56, x_3); +return x_57; +} +} +else +{ +lean_dec(x_8); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_11); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_14); +lean_ctor_set(x_58, 1, x_24); +x_59 = lean_apply_1(x_10, x_58); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_10); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_14); +lean_ctor_set(x_60, 1, x_24); +x_61 = lean_apply_3(x_11, x_18, x_60, x_3); +return x_61; +} +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_23); +lean_dec(x_9); +lean_dec(x_8); +x_62 = !lean_is_exclusive(x_2); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_2, 1); +lean_dec(x_63); +x_64 = lean_ctor_get(x_2, 0); +lean_dec(x_64); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_free_object(x_2); +lean_dec(x_11); +x_65 = lean_box(0); +x_66 = lean_apply_1(x_7, x_65); +return x_66; +} +else +{ +lean_object* x_67; +lean_dec(x_7); +lean_ctor_set(x_2, 0, x_12); +x_67 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_67; +} +} +else +{ +lean_dec(x_7); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_68; +lean_dec(x_11); +lean_ctor_set(x_2, 0, x_12); +x_68 = lean_apply_1(x_10, x_2); +return x_68; +} +else +{ +lean_object* x_69; +lean_dec(x_10); +lean_ctor_set(x_2, 0, x_12); +x_69 = lean_apply_3(x_11, x_18, x_2, x_3); +return x_69; +} +} +} +else +{ +lean_dec(x_2); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_10); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_11); +x_70 = lean_box(0); +x_71 = lean_apply_1(x_7, x_70); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_7); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_12); +lean_ctor_set(x_72, 1, x_24); +x_73 = lean_apply_3(x_11, x_18, x_72, x_3); +return x_73; +} +} +else +{ +lean_dec(x_7); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_11); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_12); +lean_ctor_set(x_74, 1, x_24); +x_75 = lean_apply_1(x_10, x_74); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; +lean_dec(x_10); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_12); +lean_ctor_set(x_76, 1, x_24); +x_77 = lean_apply_3(x_11, x_18, x_76, x_3); +return x_77; +} +} +} +} +} +} +} +else +{ +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_78; +lean_dec(x_6); +x_78 = lean_apply_3(x_11, x_16, x_2, x_3); +return x_78; +} +else +{ +lean_object* x_79; +x_79 = lean_ctor_get(x_2, 1); +lean_inc(x_79); +if (lean_obj_tag(x_79) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_11); +x_80 = lean_ctor_get(x_2, 0); +lean_inc(x_80); +lean_dec(x_2); +x_81 = lean_apply_1(x_6, x_80); +return x_81; +} +else +{ +lean_object* x_82; +lean_dec(x_6); +x_82 = lean_apply_3(x_11, x_16, x_2, x_3); +return x_82; +} +} +else +{ +lean_object* x_83; +lean_dec(x_79); +lean_dec(x_6); +x_83 = lean_apply_3(x_11, x_16, x_2, x_3); +return x_83; +} +} +} +} +else +{ +lean_object* x_84; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_84 = lean_apply_2(x_5, x_2, x_3); +return x_84; +} +} +else +{ +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_1); +if (lean_obj_tag(x_2) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_11); +x_85 = lean_box(0); +x_86 = lean_apply_1(x_4, x_85); +return x_86; +} +else +{ +lean_object* x_87; +lean_dec(x_4); +x_87 = lean_apply_3(x_11, x_12, x_2, x_3); +return x_87; +} +} +else +{ +lean_object* x_88; +lean_dec(x_4); +x_88 = lean_apply_3(x_11, x_12, x_2, x_3); +return x_88; +} +} +} +} +lean_object* l_Leanpkg_main_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_main_match__1___rarg), 11, 0); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_main___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Leanpkg_usage; +x_2 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_main___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Create a new Lean package in the current directory\n\nUsage:\n leanpkg init \n\nThis command creates a new Lean package with the given name in the current\ndirectory."); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_main___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("download dependencies and build *.olean files\n\nUsage:\n leanpkg build [-- ]\n\nThis command invokes `Leanpkg configure` followed by\n`Leanmake `, building the package's Lean files as well as\n(transitively) imported files of dependencies. If defined, the `package.timeout`\nconfiguration value is passed to Lean via its `-T` parameter."); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_main___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Download dependencies\n\nUsage:\n leanpkg configure\n\nThis command sets up the `build/deps` directory.\n\nFor each (transitive) git dependency, the specified commit is checked out\ninto a sub-directory of `build/deps`. If there are dependencies on multiple\nversions of the same package, the version materialized is undefined. No copy\nis made of local dependencies."); +return x_1; +} +} +lean_object* l_Leanpkg_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = l_Leanpkg_main_match__1___rarg___closed__1; +x_6 = lean_string_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2; +x_8 = lean_string_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_507____closed__1; +x_10 = lean_string_dec_eq(x_1, x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Leanpkg_main_match__1___rarg___closed__2; +x_12 = lean_string_dec_eq(x_1, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +lean_dec(x_2); +x_13 = l_Leanpkg_main___closed__1; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_4); +return x_14; +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_Leanpkg_usage; +x_16 = l_IO_println___at_Lean_instEval___spec__1(x_15, x_4); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_3); +x_17 = l_Leanpkg_main___closed__1; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_2, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_2, 1); +lean_inc(x_20); +lean_dec(x_2); +x_21 = lean_string_dec_eq(x_19, x_5); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = lean_string_dec_eq(x_19, x_7); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = lean_string_dec_eq(x_19, x_9); +lean_dec(x_19); +if (x_23 == 0) +{ +lean_dec(x_20); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = l_Leanpkg_usage; +x_25 = l_IO_println___at_Lean_instEval___spec__1(x_24, x_4); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_3); +x_26 = l_Leanpkg_main___closed__1; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_4); +return x_27; +} +} +else +{ +if (lean_obj_tag(x_20) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = l_Leanpkg_main___closed__2; +x_29 = l_IO_println___at_Lean_instEval___spec__1(x_28, x_4); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_3); +x_30 = l_Leanpkg_main___closed__1; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_4); +return x_31; +} +} +else +{ +lean_dec(x_20); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Leanpkg_usage; +x_33 = l_IO_println___at_Lean_instEval___spec__1(x_32, x_4); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_3); +x_34 = l_Leanpkg_main___closed__1; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_4); +return x_35; +} +} +} +} +else +{ +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = l_Leanpkg_main___closed__3; +x_37 = l_IO_println___at_Lean_instEval___spec__1(x_36, x_4); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_3); +x_38 = l_Leanpkg_main___closed__1; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_4); +return x_39; +} +} +else +{ +lean_dec(x_20); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = l_Leanpkg_usage; +x_41 = l_IO_println___at_Lean_instEval___spec__1(x_40, x_4); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_3); +x_42 = l_Leanpkg_main___closed__1; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_4); +return x_43; +} +} +} +} +else +{ +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = l_Leanpkg_main___closed__4; +x_45 = l_IO_println___at_Lean_instEval___spec__1(x_44, x_4); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_3); +x_46 = l_Leanpkg_main___closed__1; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_4); +return x_47; +} +} +else +{ +lean_dec(x_20); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = l_Leanpkg_usage; +x_49 = l_IO_println___at_Lean_instEval___spec__1(x_48, x_4); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Leanpkg_main___closed__1; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_4); +return x_51; +} +} +} +} +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_3); +x_52 = l_Leanpkg_main___closed__1; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_4); +return x_53; +} +else +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_2, 1); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_2, 0); +lean_inc(x_55); +lean_dec(x_2); +x_56 = 0; +x_57 = l_Leanpkg_initPkg(x_55, x_56, x_4); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_3); +lean_dec(x_2); +x_58 = l_Leanpkg_main___closed__1; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_4); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_54); +lean_dec(x_3); +lean_dec(x_2); +x_60 = l_Leanpkg_main___closed__1; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_4); +return x_61; +} +} +} +} +else +{ +lean_object* x_62; +lean_dec(x_2); +x_62 = l_Leanpkg_build(x_3, x_4); +return x_62; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_63; +x_63 = l_Leanpkg_configure(x_4); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +x_66 = lean_box(0); +lean_ctor_set(x_63, 0, x_66); +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_dec(x_63); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +else +{ +uint8_t x_70; +x_70 = !lean_is_exclusive(x_63); +if (x_70 == 0) +{ +return x_63; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_63, 0); +x_72 = lean_ctor_get(x_63, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_63); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +else +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_3); +x_74 = l_Leanpkg_main___closed__1; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_4); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; +lean_dec(x_3); +lean_dec(x_2); +x_76 = l_Leanpkg_main___closed__1; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_4); +return x_77; +} +} +} +} +lean_object* l_Leanpkg_main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Leanpkg_main(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore_match__2___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("--"); +return x_1; +} +} +lean_object* l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_List_partition___rarg___closed__1; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1; +x_7 = lean_string_dec_eq(x_4, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore(x_5); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_8, 0); +lean_ctor_set(x_1, 1, x_10); +lean_ctor_set(x_8, 0, x_1); +return x_8; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_8); +lean_ctor_set(x_1, 1, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; +lean_free_object(x_1); +lean_dec(x_4); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_5); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_1, 0); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_1); +x_18 = l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1; +x_19 = lean_string_dec_eq(x_16, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore(x_17); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_23 = x_20; +} else { + lean_dec_ref(x_20); + x_23 = lean_box(0); +} +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_16); +lean_ctor_set(x_24, 1, x_21); +if (lean_is_scalar(x_23)) { + x_25 = lean_alloc_ctor(0, 2, 0); +} else { + x_25 = x_23; +} +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_16); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_17); +return x_27; +} +} +} +} +} +lean_object* l_Leanpkg_splitCmdlineArgs_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_splitCmdlineArgs_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_splitCmdlineArgs_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Leanpkg_splitCmdlineArgs_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_2(x_4, x_10, x_7); +return x_11; +} +} +} +} +lean_object* l_Leanpkg_splitCmdlineArgs_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_splitCmdlineArgs_match__2___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_splitCmdlineArgs(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Leanpkg_main___closed__1; +x_4 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = l_List_partition___rarg___closed__1; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore(x_5); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_2); +return x_14; +} +else +{ +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_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_10); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_2); +return x_19; +} +} +} +} +} +lean_object* l_main_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_main_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_main_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* _lean_main(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(0); +x_4 = lean_init_search_path(x_3, x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Leanpkg_splitCmdlineArgs(x_1, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +lean_dec(x_8); +x_13 = l_Leanpkg_main(x_10, x_11, x_12, x_9); +lean_dec(x_10); +return x_13; +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_6); +if (x_14 == 0) +{ +return x_6; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_6, 0); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_6); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_4); +if (x_18 == 0) +{ +return x_4; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_4, 0); +x_20 = lean_ctor_get(x_4, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_4); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Leanpkg_Resolve(lean_object*); +lean_object* initialize_Leanpkg_Git(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Resolve(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Git(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_readManifest___closed__1 = _init_l_Leanpkg_readManifest___closed__1(); +lean_mark_persistent(l_Leanpkg_readManifest___closed__1); +l_Leanpkg_readManifest___closed__2 = _init_l_Leanpkg_readManifest___closed__2(); +lean_mark_persistent(l_Leanpkg_readManifest___closed__2); +l_Leanpkg_readManifest___closed__3 = _init_l_Leanpkg_readManifest___closed__3(); +lean_mark_persistent(l_Leanpkg_readManifest___closed__3); +l_Leanpkg_readManifest___closed__4 = _init_l_Leanpkg_readManifest___closed__4(); +lean_mark_persistent(l_Leanpkg_readManifest___closed__4); +l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1 = _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__1); +l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2 = _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__2); +l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3 = _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__3); +l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4 = _init_l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_configure___spec__1___closed__4); +l_List_map___at_Leanpkg_configure___spec__2___closed__1 = _init_l_List_map___at_Leanpkg_configure___spec__2___closed__1(); +lean_mark_persistent(l_List_map___at_Leanpkg_configure___spec__2___closed__1); +l_Leanpkg_configure___closed__1 = _init_l_Leanpkg_configure___closed__1(); +lean_mark_persistent(l_Leanpkg_configure___closed__1); +l_Leanpkg_configure___closed__2 = _init_l_Leanpkg_configure___closed__2(); +lean_mark_persistent(l_Leanpkg_configure___closed__2); +l_Leanpkg_build___closed__1 = _init_l_Leanpkg_build___closed__1(); +lean_mark_persistent(l_Leanpkg_build___closed__1); +l_Leanpkg_build___closed__2 = _init_l_Leanpkg_build___closed__2(); +lean_mark_persistent(l_Leanpkg_build___closed__2); +l_Leanpkg_build___closed__3 = _init_l_Leanpkg_build___closed__3(); +lean_mark_persistent(l_Leanpkg_build___closed__3); +l_Leanpkg_build___closed__4 = _init_l_Leanpkg_build___closed__4(); +lean_mark_persistent(l_Leanpkg_build___closed__4); +l_Leanpkg_initGitignoreContents___closed__1 = _init_l_Leanpkg_initGitignoreContents___closed__1(); +lean_mark_persistent(l_Leanpkg_initGitignoreContents___closed__1); +l_Leanpkg_initGitignoreContents = _init_l_Leanpkg_initGitignoreContents(); +lean_mark_persistent(l_Leanpkg_initGitignoreContents); +l_Leanpkg_initPkg___closed__1 = _init_l_Leanpkg_initPkg___closed__1(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__1); +l_Leanpkg_initPkg___closed__2 = _init_l_Leanpkg_initPkg___closed__2(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__2); +l_Leanpkg_initPkg___closed__3 = _init_l_Leanpkg_initPkg___closed__3(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__3); +l_Leanpkg_initPkg___closed__4 = _init_l_Leanpkg_initPkg___closed__4(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__4); +l_Leanpkg_initPkg___closed__5 = _init_l_Leanpkg_initPkg___closed__5(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__5); +l_Leanpkg_initPkg___closed__6 = _init_l_Leanpkg_initPkg___closed__6(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__6); +l_Leanpkg_initPkg___closed__7 = _init_l_Leanpkg_initPkg___closed__7(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__7); +l_Leanpkg_initPkg___closed__8 = _init_l_Leanpkg_initPkg___closed__8(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__8); +l_Leanpkg_initPkg___closed__9 = _init_l_Leanpkg_initPkg___closed__9(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__9); +l_Leanpkg_initPkg___closed__10 = _init_l_Leanpkg_initPkg___closed__10(); +l_Leanpkg_initPkg___closed__11 = _init_l_Leanpkg_initPkg___closed__11(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__11); +l_Leanpkg_initPkg___closed__12 = _init_l_Leanpkg_initPkg___closed__12(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__12); +l_Leanpkg_initPkg___closed__13 = _init_l_Leanpkg_initPkg___closed__13(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__13); +l_Leanpkg_initPkg___closed__14 = _init_l_Leanpkg_initPkg___closed__14(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__14); +l_Leanpkg_initPkg___closed__15 = _init_l_Leanpkg_initPkg___closed__15(); +lean_mark_persistent(l_Leanpkg_initPkg___closed__15); +l_Leanpkg_usage___closed__1 = _init_l_Leanpkg_usage___closed__1(); +lean_mark_persistent(l_Leanpkg_usage___closed__1); +l_Leanpkg_usage___closed__2 = _init_l_Leanpkg_usage___closed__2(); +lean_mark_persistent(l_Leanpkg_usage___closed__2); +l_Leanpkg_usage___closed__3 = _init_l_Leanpkg_usage___closed__3(); +lean_mark_persistent(l_Leanpkg_usage___closed__3); +l_Leanpkg_usage___closed__4 = _init_l_Leanpkg_usage___closed__4(); +lean_mark_persistent(l_Leanpkg_usage___closed__4); +l_Leanpkg_usage = _init_l_Leanpkg_usage(); +lean_mark_persistent(l_Leanpkg_usage); +l_Leanpkg_main_match__1___rarg___closed__1 = _init_l_Leanpkg_main_match__1___rarg___closed__1(); +lean_mark_persistent(l_Leanpkg_main_match__1___rarg___closed__1); +l_Leanpkg_main_match__1___rarg___closed__2 = _init_l_Leanpkg_main_match__1___rarg___closed__2(); +lean_mark_persistent(l_Leanpkg_main_match__1___rarg___closed__2); +l_Leanpkg_main___closed__1 = _init_l_Leanpkg_main___closed__1(); +lean_mark_persistent(l_Leanpkg_main___closed__1); +l_Leanpkg_main___closed__2 = _init_l_Leanpkg_main___closed__2(); +lean_mark_persistent(l_Leanpkg_main___closed__2); +l_Leanpkg_main___closed__3 = _init_l_Leanpkg_main___closed__3(); +lean_mark_persistent(l_Leanpkg_main___closed__3); +l_Leanpkg_main___closed__4 = _init_l_Leanpkg_main___closed__4(); +lean_mark_persistent(l_Leanpkg_main___closed__4); +l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1 = _init_l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1(); +lean_mark_persistent(l___private_Leanpkg_0__Leanpkg_splitCmdlineArgsCore___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +void lean_initialize(); + + #if defined(WIN32) || defined(_WIN32) + #include + #endif + + int main(int argc, char ** argv) { + #if defined(WIN32) || defined(_WIN32) + SetErrorMode(SEM_FAILCRITICALERRORS); + #endif + lean_object* in; lean_object* res; +lean_initialize(); +res = initialize_Leanpkg(lean_io_mk_world()); +lean_io_mark_end_initialization(); +if (lean_io_result_is_ok(res)) { +lean_dec_ref(res); +lean_init_task_manager(); +in = lean_box(0); +int i = argc; +while (i > 1) { + lean_object* n; + i--; + n = lean_alloc_ctor(1,2,0); lean_ctor_set(n, 0, lean_mk_string(argv[i])); lean_ctor_set(n, 1, in); + in = n; +} +res = _lean_main(in, lean_io_mk_world()); +} +if (lean_io_result_is_ok(res)) { + int ret = lean_unbox(lean_io_result_get_value(res)); + lean_dec_ref(res); + return ret; +} else { + lean_io_result_show_error(res); + lean_dec_ref(res); + return 1; +} +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/Git.c b/stage0/stdlib/Leanpkg/Git.c new file mode 100644 index 0000000000..e31167d6a5 --- /dev/null +++ b/stage0/stdlib/Leanpkg/Git.c @@ -0,0 +1,629 @@ +// Lean compiler output +// Module: Leanpkg.Git +// Imports: Init Leanpkg.LeanVersion +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Leanpkg_gitdefaultRevision___boxed(lean_object*); +lean_object* l_Leanpkg_gitParseOriginRevision(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_gitParseRevision___closed__5; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Leanpkg_gitParseRevision(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_gitParseRevision___closed__6; +lean_object* l_Leanpkg_gitdefaultRevision_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_upstreamGitBranch___closed__2; +extern lean_object* l_Array_empty___closed__1; +lean_object* l_Leanpkg_gitParseRevision___closed__2; +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Leanpkg_gitParseRevision___closed__3; +lean_object* l_Leanpkg_gitParseRevision___closed__1; +lean_object* l_Leanpkg_gitLatestOriginRevision___closed__2; +lean_object* l_Leanpkg_gitdefaultRevision_match__1(lean_object*); +lean_object* l_Leanpkg_gitLatestOriginRevision___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_gitLatestOriginRevision___closed__1; +lean_object* l_Leanpkg_gitRevisionExists___closed__1; +lean_object* l_Leanpkg_gitParseOriginRevision___closed__1; +lean_object* l_Leanpkg_gitParseRevision___closed__7; +lean_object* l_Leanpkg_upstreamGitBranch___closed__1; +lean_object* l_Leanpkg_gitParseOriginRevision___closed__3; +lean_object* l_Leanpkg_gitRevisionExists(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_leanVersionString___closed__3; +lean_object* l_Leanpkg_gitParseRevision___closed__8; +lean_object* l_IO_Process_run(lean_object*, lean_object*); +lean_object* l_Leanpkg_gitParseRevision___closed__4; +extern uint8_t l_Lean_version_isRelease; +lean_object* l_Leanpkg_gitParseOriginRevision___closed__2; +lean_object* l_Leanpkg_upstreamGitBranch___closed__3; +lean_object* l_Leanpkg_gitHeadRevision(lean_object*, lean_object*); +lean_object* l_Leanpkg_gitLatestOriginRevision(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_leanVersionStringCore; +lean_object* l_String_trim(lean_object*); +lean_object* l_Leanpkg_gitdefaultRevision(lean_object*); +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Leanpkg_gitHeadRevision___closed__1; +lean_object* l_Leanpkg_gitParseRevision___closed__9; +lean_object* l_Leanpkg_upstreamGitBranch; +static lean_object* _init_l_Leanpkg_upstreamGitBranch___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean-"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_upstreamGitBranch___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_upstreamGitBranch___closed__1; +x_2 = l_Leanpkg_leanVersionStringCore; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_upstreamGitBranch___closed__3() { +_start: +{ +uint8_t x_1; +x_1 = l_Lean_version_isRelease; +if (x_1 == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_leanVersionString___closed__3; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Leanpkg_upstreamGitBranch___closed__2; +return x_3; +} +} +} +static lean_object* _init_l_Leanpkg_upstreamGitBranch() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_upstreamGitBranch___closed__3; +return x_1; +} +} +lean_object* l_Leanpkg_gitdefaultRevision_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Leanpkg_gitdefaultRevision_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_gitdefaultRevision_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_gitdefaultRevision(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_upstreamGitBranch; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +return x_3; +} +} +} +lean_object* l_Leanpkg_gitdefaultRevision___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_gitdefaultRevision(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(0, 0, 3); +lean_ctor_set_uint8(x_2, 0, x_1); +lean_ctor_set_uint8(x_2, 1, x_1); +lean_ctor_set_uint8(x_2, 2, x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(4u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rev-parse"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_gitParseRevision___closed__2; +x_2 = l_Leanpkg_gitParseRevision___closed__3; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("-q"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_gitParseRevision___closed__4; +x_2 = l_Leanpkg_gitParseRevision___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("--verify"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_gitParseRevision___closed__6; +x_2 = l_Leanpkg_gitParseRevision___closed__7; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_gitParseRevision___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("git"); +return x_1; +} +} +lean_object* l_Leanpkg_gitParseRevision(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; +x_4 = l_Leanpkg_gitParseRevision___closed__8; +x_5 = lean_array_push(x_4, x_2); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_1); +x_7 = l_Leanpkg_gitParseRevision___closed__1; +x_8 = l_Leanpkg_gitParseRevision___closed__9; +x_9 = l_Array_empty___closed__1; +x_10 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_10, 0, x_7); +lean_ctor_set(x_10, 1, x_8); +lean_ctor_set(x_10, 2, x_5); +lean_ctor_set(x_10, 3, x_6); +lean_ctor_set(x_10, 4, x_9); +x_11 = l_IO_Process_run(x_10, x_3); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +x_14 = l_String_trim(x_13); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = l_String_trim(x_15); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_11); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Leanpkg_gitHeadRevision___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("HEAD"); +return x_1; +} +} +lean_object* l_Leanpkg_gitHeadRevision(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Leanpkg_gitHeadRevision___closed__1; +x_4 = l_Leanpkg_gitParseRevision(x_1, x_3, x_2); +return x_4; +} +} +static lean_object* _init_l_Leanpkg_gitParseOriginRevision___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("origin/"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitParseOriginRevision___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("cannot find revision "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitParseOriginRevision___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" in repository "); +return x_1; +} +} +lean_object* l_Leanpkg_gitParseOriginRevision(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; +x_4 = l_Leanpkg_gitParseOriginRevision___closed__1; +x_5 = lean_string_append(x_4, x_2); +x_6 = l_Leanpkg_gitParseOriginRevision___closed__2; +x_7 = lean_string_append(x_6, x_2); +x_8 = l_Leanpkg_gitParseOriginRevision___closed__3; +x_9 = lean_string_append(x_7, x_8); +x_10 = lean_string_append(x_9, x_1); +x_11 = l_Lean_instInhabitedParserDescr___closed__1; +x_12 = lean_string_append(x_10, x_11); +x_13 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_13, 0, x_12); +lean_inc(x_1); +x_14 = l_Leanpkg_gitParseRevision(x_1, x_5, x_3); +if (lean_obj_tag(x_14) == 0) +{ +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Leanpkg_gitParseRevision(x_1, x_2, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_dec(x_13); +return x_16; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +} +static lean_object* _init_l_Leanpkg_gitLatestOriginRevision___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("fetch"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_gitLatestOriginRevision___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkOptionalNode___closed__2; +x_2 = l_Leanpkg_gitLatestOriginRevision___closed__1; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* l_Leanpkg_gitLatestOriginRevision(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_inc(x_1); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_1); +x_5 = l_Leanpkg_gitParseRevision___closed__1; +x_6 = l_Leanpkg_gitParseRevision___closed__9; +x_7 = l_Leanpkg_gitLatestOriginRevision___closed__2; +x_8 = l_Array_empty___closed__1; +x_9 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_6); +lean_ctor_set(x_9, 2, x_7); +lean_ctor_set(x_9, 3, x_4); +lean_ctor_set(x_9, 4, x_8); +x_10 = l_IO_Process_run(x_9, x_3); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Leanpkg_gitdefaultRevision(x_2); +x_13 = l_Leanpkg_gitParseOriginRevision(x_1, x_12, x_11); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +lean_object* l_Leanpkg_gitLatestOriginRevision___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_gitLatestOriginRevision(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l_Leanpkg_gitRevisionExists___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("^{commit}"); +return x_1; +} +} +lean_object* l_Leanpkg_gitRevisionExists(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; +x_4 = l_Leanpkg_gitRevisionExists___closed__1; +x_5 = lean_string_append(x_2, x_4); +x_6 = l_Leanpkg_gitParseRevision(x_1, x_5, x_3); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 0); +lean_dec(x_8); +x_9 = 1; +x_10 = lean_box(x_9); +lean_ctor_set(x_6, 0, x_10); +return x_6; +} +else +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_dec(x_6); +x_12 = 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_11); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_6); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_6, 0); +lean_dec(x_16); +x_17 = 0; +x_18 = lean_box(x_17); +lean_ctor_set_tag(x_6, 0); +lean_ctor_set(x_6, 0, x_18); +return x_6; +} +else +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_6, 1); +lean_inc(x_19); +lean_dec(x_6); +x_20 = 0; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Leanpkg_LeanVersion(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_Git(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_LeanVersion(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_upstreamGitBranch___closed__1 = _init_l_Leanpkg_upstreamGitBranch___closed__1(); +lean_mark_persistent(l_Leanpkg_upstreamGitBranch___closed__1); +l_Leanpkg_upstreamGitBranch___closed__2 = _init_l_Leanpkg_upstreamGitBranch___closed__2(); +lean_mark_persistent(l_Leanpkg_upstreamGitBranch___closed__2); +l_Leanpkg_upstreamGitBranch___closed__3 = _init_l_Leanpkg_upstreamGitBranch___closed__3(); +lean_mark_persistent(l_Leanpkg_upstreamGitBranch___closed__3); +l_Leanpkg_upstreamGitBranch = _init_l_Leanpkg_upstreamGitBranch(); +lean_mark_persistent(l_Leanpkg_upstreamGitBranch); +l_Leanpkg_gitParseRevision___closed__1 = _init_l_Leanpkg_gitParseRevision___closed__1(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__1); +l_Leanpkg_gitParseRevision___closed__2 = _init_l_Leanpkg_gitParseRevision___closed__2(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__2); +l_Leanpkg_gitParseRevision___closed__3 = _init_l_Leanpkg_gitParseRevision___closed__3(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__3); +l_Leanpkg_gitParseRevision___closed__4 = _init_l_Leanpkg_gitParseRevision___closed__4(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__4); +l_Leanpkg_gitParseRevision___closed__5 = _init_l_Leanpkg_gitParseRevision___closed__5(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__5); +l_Leanpkg_gitParseRevision___closed__6 = _init_l_Leanpkg_gitParseRevision___closed__6(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__6); +l_Leanpkg_gitParseRevision___closed__7 = _init_l_Leanpkg_gitParseRevision___closed__7(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__7); +l_Leanpkg_gitParseRevision___closed__8 = _init_l_Leanpkg_gitParseRevision___closed__8(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__8); +l_Leanpkg_gitParseRevision___closed__9 = _init_l_Leanpkg_gitParseRevision___closed__9(); +lean_mark_persistent(l_Leanpkg_gitParseRevision___closed__9); +l_Leanpkg_gitHeadRevision___closed__1 = _init_l_Leanpkg_gitHeadRevision___closed__1(); +lean_mark_persistent(l_Leanpkg_gitHeadRevision___closed__1); +l_Leanpkg_gitParseOriginRevision___closed__1 = _init_l_Leanpkg_gitParseOriginRevision___closed__1(); +lean_mark_persistent(l_Leanpkg_gitParseOriginRevision___closed__1); +l_Leanpkg_gitParseOriginRevision___closed__2 = _init_l_Leanpkg_gitParseOriginRevision___closed__2(); +lean_mark_persistent(l_Leanpkg_gitParseOriginRevision___closed__2); +l_Leanpkg_gitParseOriginRevision___closed__3 = _init_l_Leanpkg_gitParseOriginRevision___closed__3(); +lean_mark_persistent(l_Leanpkg_gitParseOriginRevision___closed__3); +l_Leanpkg_gitLatestOriginRevision___closed__1 = _init_l_Leanpkg_gitLatestOriginRevision___closed__1(); +lean_mark_persistent(l_Leanpkg_gitLatestOriginRevision___closed__1); +l_Leanpkg_gitLatestOriginRevision___closed__2 = _init_l_Leanpkg_gitLatestOriginRevision___closed__2(); +lean_mark_persistent(l_Leanpkg_gitLatestOriginRevision___closed__2); +l_Leanpkg_gitRevisionExists___closed__1 = _init_l_Leanpkg_gitRevisionExists___closed__1(); +lean_mark_persistent(l_Leanpkg_gitRevisionExists___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/LeanVersion.c b/stage0/stdlib/Leanpkg/LeanVersion.c new file mode 100644 index 0000000000..054dfd17f9 --- /dev/null +++ b/stage0/stdlib/Leanpkg/LeanVersion.c @@ -0,0 +1,384 @@ +// Lean compiler output +// Module: Leanpkg.LeanVersion +// Imports: Init +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_Leanpkg_leanVersionStringCore___closed__2; +lean_object* l_Leanpkg_leanVersionStringCore___closed__9; +lean_object* l_Leanpkg_leanVersionString___closed__4; +lean_object* l_Leanpkg_leanVersionStringCore___closed__8; +lean_object* l_Leanpkg_leanVersionStringCore___closed__6; +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Leanpkg_leanVersionStringCore___closed__4; +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Leanpkg_leanVersionStringCore___closed__5; +uint8_t l_Leanpkg_leanVersionString___closed__2; +extern lean_object* l_Lean_version_patch; +extern lean_object* l_Lean_version_specialDesc; +extern lean_object* l_Lean_version_major; +uint8_t l_instDecidableNot___rarg(uint8_t); +lean_object* l_Leanpkg_leanVersionString___closed__6; +uint8_t l_Leanpkg_leanVersionString___closed__1; +lean_object* l_Leanpkg_uiLeanVersionString; +lean_object* l_Leanpkg_leanVersionString___closed__8; +lean_object* l_Nat_repr(lean_object*); +lean_object* l_Leanpkg_leanVersionString___closed__5; +lean_object* l_Leanpkg_leanVersionStringCore___closed__1; +lean_object* l_Leanpkg_uiLeanVersionString___closed__5; +lean_object* l_Leanpkg_leanVersionString___closed__3; +lean_object* l_Leanpkg_leanVersionStringCore___closed__3; +lean_object* l_Leanpkg_uiLeanVersionString___closed__3; +extern lean_object* l_Lean_version_minor; +extern uint8_t l_Lean_version_isRelease; +lean_object* l_Leanpkg_leanVersionString___closed__7; +lean_object* l_Leanpkg_leanVersionString; +lean_object* l_Leanpkg_uiLeanVersionString___closed__2; +lean_object* l_Leanpkg_leanVersionStringCore; +extern lean_object* l_prec_x28___x29___closed__7; +lean_object* l_Leanpkg_leanVersionStringCore___closed__7; +lean_object* l_Leanpkg_uiLeanVersionString___closed__1; +lean_object* l_Leanpkg_uiLeanVersionString___closed__4; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_version_major; +x_2 = l_Nat_repr(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_instInhabitedParserDescr___closed__1; +x_2 = l_Leanpkg_leanVersionStringCore___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionStringCore___closed__2; +x_2 = l_Lean_Name_toString___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_version_minor; +x_2 = l_Nat_repr(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionStringCore___closed__3; +x_2 = l_Leanpkg_leanVersionStringCore___closed__4; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionStringCore___closed__5; +x_2 = l_Lean_Name_toString___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_version_patch; +x_2 = l_Nat_repr(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionStringCore___closed__6; +x_2 = l_Leanpkg_leanVersionStringCore___closed__7; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionStringCore___closed__8; +x_2 = l_Lean_instInhabitedParserDescr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionStringCore() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_leanVersionStringCore___closed__9; +return x_1; +} +} +static uint8_t _init_l_Leanpkg_leanVersionString___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; +x_1 = l_Lean_version_specialDesc; +x_2 = l_Lean_instInhabitedParserDescr___closed__1; +x_3 = lean_string_dec_eq(x_1, x_2); +return x_3; +} +} +static uint8_t _init_l_Leanpkg_leanVersionString___closed__2() { +_start: +{ +uint8_t x_1; uint8_t x_2; +x_1 = l_Leanpkg_leanVersionString___closed__1; +x_2 = l_instDecidableNot___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("master"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__4() { +_start: +{ +uint8_t x_1; +x_1 = l_Leanpkg_leanVersionString___closed__2; +if (x_1 == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_leanVersionString___closed__3; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Lean_version_specialDesc; +return x_3; +} +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("leanprover/lean:"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionString___closed__5; +x_2 = l_Leanpkg_leanVersionStringCore; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_leanVersionString___closed__6; +x_2 = l_Lean_instInhabitedParserDescr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanVersionString___closed__8() { +_start: +{ +uint8_t x_1; +x_1 = l_Lean_version_isRelease; +if (x_1 == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_leanVersionString___closed__4; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Leanpkg_leanVersionString___closed__7; +return x_3; +} +} +} +static lean_object* _init_l_Leanpkg_leanVersionString() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_leanVersionString___closed__8; +return x_1; +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("master ("); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_uiLeanVersionString___closed__1; +x_2 = l_Leanpkg_leanVersionStringCore; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_uiLeanVersionString___closed__2; +x_2 = l_prec_x28___x29___closed__7; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString___closed__4() { +_start: +{ +uint8_t x_1; +x_1 = l_Leanpkg_leanVersionString___closed__2; +if (x_1 == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_uiLeanVersionString___closed__3; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Lean_version_specialDesc; +return x_3; +} +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString___closed__5() { +_start: +{ +uint8_t x_1; +x_1 = l_Lean_version_isRelease; +if (x_1 == 0) +{ +lean_object* x_2; +x_2 = l_Leanpkg_uiLeanVersionString___closed__4; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Leanpkg_leanVersionStringCore; +return x_3; +} +} +} +static lean_object* _init_l_Leanpkg_uiLeanVersionString() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_uiLeanVersionString___closed__5; +return x_1; +} +} +lean_object* initialize_Init(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_LeanVersion(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_leanVersionStringCore___closed__1 = _init_l_Leanpkg_leanVersionStringCore___closed__1(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__1); +l_Leanpkg_leanVersionStringCore___closed__2 = _init_l_Leanpkg_leanVersionStringCore___closed__2(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__2); +l_Leanpkg_leanVersionStringCore___closed__3 = _init_l_Leanpkg_leanVersionStringCore___closed__3(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__3); +l_Leanpkg_leanVersionStringCore___closed__4 = _init_l_Leanpkg_leanVersionStringCore___closed__4(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__4); +l_Leanpkg_leanVersionStringCore___closed__5 = _init_l_Leanpkg_leanVersionStringCore___closed__5(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__5); +l_Leanpkg_leanVersionStringCore___closed__6 = _init_l_Leanpkg_leanVersionStringCore___closed__6(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__6); +l_Leanpkg_leanVersionStringCore___closed__7 = _init_l_Leanpkg_leanVersionStringCore___closed__7(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__7); +l_Leanpkg_leanVersionStringCore___closed__8 = _init_l_Leanpkg_leanVersionStringCore___closed__8(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__8); +l_Leanpkg_leanVersionStringCore___closed__9 = _init_l_Leanpkg_leanVersionStringCore___closed__9(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore___closed__9); +l_Leanpkg_leanVersionStringCore = _init_l_Leanpkg_leanVersionStringCore(); +lean_mark_persistent(l_Leanpkg_leanVersionStringCore); +l_Leanpkg_leanVersionString___closed__1 = _init_l_Leanpkg_leanVersionString___closed__1(); +l_Leanpkg_leanVersionString___closed__2 = _init_l_Leanpkg_leanVersionString___closed__2(); +l_Leanpkg_leanVersionString___closed__3 = _init_l_Leanpkg_leanVersionString___closed__3(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__3); +l_Leanpkg_leanVersionString___closed__4 = _init_l_Leanpkg_leanVersionString___closed__4(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__4); +l_Leanpkg_leanVersionString___closed__5 = _init_l_Leanpkg_leanVersionString___closed__5(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__5); +l_Leanpkg_leanVersionString___closed__6 = _init_l_Leanpkg_leanVersionString___closed__6(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__6); +l_Leanpkg_leanVersionString___closed__7 = _init_l_Leanpkg_leanVersionString___closed__7(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__7); +l_Leanpkg_leanVersionString___closed__8 = _init_l_Leanpkg_leanVersionString___closed__8(); +lean_mark_persistent(l_Leanpkg_leanVersionString___closed__8); +l_Leanpkg_leanVersionString = _init_l_Leanpkg_leanVersionString(); +lean_mark_persistent(l_Leanpkg_leanVersionString); +l_Leanpkg_uiLeanVersionString___closed__1 = _init_l_Leanpkg_uiLeanVersionString___closed__1(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString___closed__1); +l_Leanpkg_uiLeanVersionString___closed__2 = _init_l_Leanpkg_uiLeanVersionString___closed__2(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString___closed__2); +l_Leanpkg_uiLeanVersionString___closed__3 = _init_l_Leanpkg_uiLeanVersionString___closed__3(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString___closed__3); +l_Leanpkg_uiLeanVersionString___closed__4 = _init_l_Leanpkg_uiLeanVersionString___closed__4(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString___closed__4); +l_Leanpkg_uiLeanVersionString___closed__5 = _init_l_Leanpkg_uiLeanVersionString___closed__5(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString___closed__5); +l_Leanpkg_uiLeanVersionString = _init_l_Leanpkg_uiLeanVersionString(); +lean_mark_persistent(l_Leanpkg_uiLeanVersionString); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/Manifest.c b/stage0/stdlib/Leanpkg/Manifest.c new file mode 100644 index 0000000000..5c5466afbc --- /dev/null +++ b/stage0/stdlib/Leanpkg/Manifest.c @@ -0,0 +1,2307 @@ +// Lean compiler output +// Module: Leanpkg.Manifest +// Imports: Init Leanpkg.Toml Leanpkg.LeanVersion +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Leanpkg_Manifest_fromToml___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_Toml_parse(lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml___closed__3; +lean_object* l_Leanpkg_Manifest_fromToml_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__1(lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_leanVersion___default; +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Leanpkg_Manifest_fromToml___closed__3; +lean_object* l_Leanpkg_Manifest_fromToml_match__6___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__7(lean_object*); +lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1; +lean_object* l_Leanpkg_Source_toToml_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___boxed(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___closed__1; +lean_object* l_Leanpkg_Manifest_fromToml(lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__3(lean_object*); +lean_object* l_Leanpkg_Source_fromToml___closed__2; +lean_object* l_Toml_Value_lookup(lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml___boxed(lean_object*); +lean_object* l_Leanpkg_Manifest_effectivePath___boxed(lean_object*); +lean_object* l_Leanpkg_Source_fromToml___closed__1; +extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__15; +lean_object* l_Leanpkg_Manifest_fromFile_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__6(lean_object*); +lean_object* l_Leanpkg_Source_toToml(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__2(lean_object*); +lean_object* l_Leanpkg_leanpkgTomlFn; +lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___closed__2; +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___closed__2; +lean_object* l_Leanpkg_Manifest_timeout___default; +lean_object* l_Leanpkg_Manifest_fromFile___boxed(lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___closed__1; +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromFile(lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromFile___closed__1; +lean_object* l_Leanpkg_Manifest_fromToml_match__4(lean_object*); +lean_object* l_IO_FS_readFile___at_Lean_Parser_testParseFile___spec__1(lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml___closed__4; +lean_object* l_Leanpkg_Manifest_fromToml_match__5(lean_object*); +lean_object* l_Leanpkg_Manifest_fromFile_match__1(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__5___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_leanVersionString; +lean_object* l_Leanpkg_Source_fromToml_match__4(lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_toToml_match__1(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__2(lean_object*); +lean_object* l_Leanpkg_leanpkgTomlFn___closed__1; +lean_object* l_Leanpkg_Manifest_effectivePath(lean_object*); +extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_488____closed__6; +lean_object* l_Leanpkg_Source_toToml___boxed(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_path___default; +lean_object* l_Leanpkg_Source_fromToml_match__1(lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_fromToml_match__7___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Manifest_dependencies___default; +lean_object* l_Leanpkg_Manifest_fromToml_match__3(lean_object*); +lean_object* l_Leanpkg_Source_fromToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Source_fromToml_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Source_fromToml_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_3); +x_10 = lean_apply_1(x_4, x_1); +return x_10; +} +} +} +} +lean_object* l_Leanpkg_Source_fromToml_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__2___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Source_fromToml_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Source_fromToml_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Source_fromToml_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Source_fromToml_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_fromToml_match__4___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_Source_fromToml___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rev"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Source_fromToml___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("branch"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Source_fromToml___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("path"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Source_fromToml___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("git"); +return x_1; +} +} +lean_object* l_Leanpkg_Source_fromToml(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_79 = l_Leanpkg_Source_fromToml___closed__3; +x_80 = l_Toml_Value_lookup(x_1, x_79); +x_81 = l_Leanpkg_Source_fromToml___closed__4; +x_82 = l_Toml_Value_lookup(x_1, x_81); +if (lean_obj_tag(x_80) == 0) +{ +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; +x_83 = lean_box(0); +return x_83; +} +else +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_box(0); +x_2 = x_85; +x_3 = x_84; +goto block_78; +} +} +else +{ +uint8_t x_86; +x_86 = !lean_is_exclusive(x_80); +if (x_86 == 0) +{ +lean_object* x_87; +x_87 = lean_ctor_get(x_80, 0); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_89, 0, x_88); +if (lean_obj_tag(x_82) == 0) +{ +lean_ctor_set(x_80, 0, x_89); +return x_80; +} +else +{ +uint8_t x_90; +lean_free_object(x_80); +x_90 = !lean_is_exclusive(x_82); +if (x_90 == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_82, 0); +lean_ctor_set(x_82, 0, x_89); +x_2 = x_82; +x_3 = x_91; +goto block_78; +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_82, 0); +lean_inc(x_92); +lean_dec(x_82); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_89); +x_2 = x_93; +x_3 = x_92; +goto block_78; +} +} +} +else +{ +lean_free_object(x_80); +lean_dec(x_87); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_94; +x_94 = lean_box(0); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_82, 0); +lean_inc(x_95); +lean_dec(x_82); +x_96 = lean_box(0); +x_2 = x_96; +x_3 = x_95; +goto block_78; +} +} +} +else +{ +lean_object* x_97; +x_97 = lean_ctor_get(x_80, 0); +lean_inc(x_97); +lean_dec(x_80); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +lean_dec(x_97); +x_99 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_99, 0, x_98); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_100; +x_100 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_100, 0, x_99); +return x_100; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_82, 0); +lean_inc(x_101); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + x_102 = x_82; +} else { + lean_dec_ref(x_82); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 1, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_99); +x_2 = x_103; +x_3 = x_101; +goto block_78; +} +} +else +{ +lean_dec(x_97); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_104; +x_104 = lean_box(0); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_82, 0); +lean_inc(x_105); +lean_dec(x_82); +x_106 = lean_box(0); +x_2 = x_106; +x_3 = x_105; +goto block_78; +} +} +} +} +block_78: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = l_Leanpkg_Source_fromToml___closed__1; +x_6 = l_Toml_Value_lookup(x_1, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +x_7 = lean_box(0); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_2); +if (x_8 == 0) +{ +return x_2; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_6, 0); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Leanpkg_Source_fromToml___closed__2; +x_15 = l_Toml_Value_lookup(x_1, x_14); +if (lean_obj_tag(x_15) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_17, 0, x_4); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 2, x_16); +lean_ctor_set(x_6, 0, x_17); +return x_6; +} +else +{ +uint8_t x_18; +lean_dec(x_13); +lean_free_object(x_6); +lean_dec(x_4); +x_18 = !lean_is_exclusive(x_2); +if (x_18 == 0) +{ +return x_2; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_2, 0); +lean_inc(x_19); +lean_dec(x_2); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +return x_20; +} +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_15, 0); +if (lean_obj_tag(x_22) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec(x_22); +lean_ctor_set(x_15, 0, x_23); +x_24 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_24, 0, x_4); +lean_ctor_set(x_24, 1, x_13); +lean_ctor_set(x_24, 2, x_15); +lean_ctor_set(x_6, 0, x_24); +return x_6; +} +else +{ +uint8_t x_25; +lean_free_object(x_15); +lean_dec(x_22); +lean_dec(x_13); +lean_free_object(x_6); +lean_dec(x_4); +x_25 = !lean_is_exclusive(x_2); +if (x_25 == 0) +{ +return x_2; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_2, 0); +lean_inc(x_26); +lean_dec(x_2); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +return x_27; +} +} +} +else +{ +lean_free_object(x_15); +lean_dec(x_22); +lean_dec(x_13); +lean_free_object(x_6); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_28; +x_28 = lean_box(0); +return x_28; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_2); +if (x_29 == 0) +{ +return x_2; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_2, 0); +lean_inc(x_30); +lean_dec(x_2); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +return x_31; +} +} +} +} +else +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_15, 0); +lean_inc(x_32); +lean_dec(x_15); +if (lean_obj_tag(x_32) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_35 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_35, 0, x_4); +lean_ctor_set(x_35, 1, x_13); +lean_ctor_set(x_35, 2, x_34); +lean_ctor_set(x_6, 0, x_35); +return x_6; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_32); +lean_dec(x_13); +lean_free_object(x_6); +lean_dec(x_4); +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_37 = x_2; +} else { + lean_dec_ref(x_2); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 1, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_36); +return x_38; +} +} +else +{ +lean_dec(x_32); +lean_dec(x_13); +lean_free_object(x_6); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_39; +x_39 = lean_box(0); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_2, 0); +lean_inc(x_40); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_41 = x_2; +} else { + lean_dec_ref(x_2); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 1, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_40); +return x_42; +} +} +} +} +} +else +{ +lean_free_object(x_6); +lean_dec(x_12); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_43; +x_43 = lean_box(0); +return x_43; +} +else +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_2); +if (x_44 == 0) +{ +return x_2; +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_2, 0); +lean_inc(x_45); +lean_dec(x_2); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +return x_46; +} +} +} +} +else +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_6, 0); +lean_inc(x_47); +lean_dec(x_6); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l_Leanpkg_Source_fromToml___closed__2; +x_50 = l_Toml_Value_lookup(x_1, x_49); +if (lean_obj_tag(x_50) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_52, 0, x_4); +lean_ctor_set(x_52, 1, x_48); +lean_ctor_set(x_52, 2, x_51); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_48); +lean_dec(x_4); +x_54 = lean_ctor_get(x_2, 0); +lean_inc(x_54); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_55 = x_2; +} else { + lean_dec_ref(x_2); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 1, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_54); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 0); +lean_inc(x_57); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + x_58 = x_50; +} else { + lean_dec_ref(x_50); + x_58 = lean_box(0); +} +if (lean_obj_tag(x_57) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +lean_dec(x_57); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(1, 1, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_59); +x_61 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_61, 0, x_4); +lean_ctor_set(x_61, 1, x_48); +lean_ctor_set(x_61, 2, x_60); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_48); +lean_dec(x_4); +x_63 = lean_ctor_get(x_2, 0); +lean_inc(x_63); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_64 = x_2; +} else { + lean_dec_ref(x_2); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 1, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_63); +return x_65; +} +} +else +{ +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_48); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_66; +x_66 = lean_box(0); +return x_66; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_2, 0); +lean_inc(x_67); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_68 = x_2; +} else { + lean_dec_ref(x_2); + x_68 = lean_box(0); +} +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(1, 1, 0); +} else { + x_69 = x_68; +} +lean_ctor_set(x_69, 0, x_67); +return x_69; +} +} +} +} +else +{ +lean_dec(x_47); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_70; +x_70 = lean_box(0); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_2, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_72 = x_2; +} else { + lean_dec_ref(x_2); + x_72 = lean_box(0); +} +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 1, 0); +} else { + x_73 = x_72; +} +lean_ctor_set(x_73, 0, x_71); +return x_73; +} +} +} +} +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_74; +x_74 = lean_box(0); +return x_74; +} +else +{ +uint8_t x_75; +x_75 = !lean_is_exclusive(x_2); +if (x_75 == 0) +{ +return x_2; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_2, 0); +lean_inc(x_76); +lean_dec(x_2); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +return x_77; +} +} +} +} +} +} +lean_object* l_Leanpkg_Source_fromToml___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_Source_fromToml(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_Source_toToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_apply_2(x_3, x_8, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_ctor_get(x_7, 0); +lean_inc(x_13); +lean_dec(x_7); +x_14 = lean_apply_3(x_4, x_11, x_12, x_13); +return x_14; +} +} +} +} +lean_object* l_Leanpkg_Source_toToml_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Source_toToml_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Source_toToml(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Leanpkg_Source_fromToml___closed__3; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; +} +else +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_1, 2); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_12, 0, x_10); +x_13 = l_Leanpkg_Source_fromToml___closed__4; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_11); +x_16 = l_Leanpkg_Source_fromToml___closed__1; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_21, 0, x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 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_22 = lean_ctor_get(x_1, 0); +x_23 = lean_ctor_get(x_1, 1); +x_24 = lean_ctor_get(x_9, 0); +lean_inc(x_22); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_22); +x_26 = l_Leanpkg_Source_fromToml___closed__4; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +lean_inc(x_24); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_24); +x_29 = l_Leanpkg_Source_fromToml___closed__2; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +lean_inc(x_23); +x_31 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_31, 0, x_23); +x_32 = l_Leanpkg_Source_fromToml___closed__1; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_38, 0, x_37); +return x_38; +} +} +} +} +lean_object* l_Leanpkg_Source_toToml___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_Source_toToml(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_Manifest_leanVersion___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_leanVersionString; +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_timeout___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_path___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_dependencies___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +lean_object* l_Leanpkg_Manifest_effectivePath(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = l_Lean_Name_toString___closed__1; +return x_3; +} +else +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +return x_4; +} +} +} +lean_object* l_Leanpkg_Manifest_effectivePath___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_Manifest_effectivePath(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_3, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_1(x_2, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_2); +x_10 = lean_apply_1(x_4, x_1); +return x_10; +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_3, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 1) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_1(x_2, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_2); +x_10 = lean_apply_1(x_4, x_1); +return x_10; +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__2___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_3, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_1(x_2, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_2); +x_10 = lean_apply_1(x_4, x_1); +return x_10; +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__3___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__6___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml_match__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromToml_match__7___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1() { +_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; +} +} +lean_object* l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +x_8 = l_Leanpkg_Source_fromToml(x_7); +lean_dec(x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +lean_dec(x_6); +lean_free_object(x_1); +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_6); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_5); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +lean_dec(x_11); +lean_free_object(x_1); +x_13 = lean_box(0); +return x_13; +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_12, 0); +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_11); +lean_ctor_set(x_12, 0, x_1); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_1, 1, x_16); +lean_ctor_set(x_1, 0, x_11); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_1); +return x_17; +} +} +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_1, 0); +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_1); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = l_Leanpkg_Source_fromToml(x_21); +lean_dec(x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +lean_dec(x_20); +lean_dec(x_19); +x_23 = lean_box(0); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_19); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +lean_dec(x_25); +x_27 = lean_box(0); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_28); +if (lean_is_scalar(x_29)) { + x_31 = lean_alloc_ctor(1, 1, 0); +} else { + x_31 = x_29; +} +lean_ctor_set(x_31, 0, x_30); +return x_31; +} +} +} +} +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("dependencies"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_Leanpkg_Manifest_fromToml___lambda__1___closed__1; +x_8 = l_Toml_Value_lookup(x_1, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = l_Leanpkg_Manifest_fromToml___lambda__1___closed__2; +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_10 = lean_box(0); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_13, 0, x_2); +lean_ctor_set(x_13, 1, x_3); +lean_ctor_set(x_13, 2, x_4); +lean_ctor_set(x_13, 3, x_5); +lean_ctor_set(x_13, 4, x_6); +lean_ctor_set(x_13, 5, x_12); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 0); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_3); +lean_ctor_set(x_15, 2, x_4); +lean_ctor_set(x_15, 3, x_5); +lean_ctor_set(x_15, 4, x_6); +lean_ctor_set(x_15, 5, x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_8, 0); +lean_inc(x_17); +lean_dec(x_8); +if (lean_obj_tag(x_17) == 3) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_box(0); +return x_20; +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_23, 0, x_2); +lean_ctor_set(x_23, 1, x_3); +lean_ctor_set(x_23, 2, x_4); +lean_ctor_set(x_23, 3, x_5); +lean_ctor_set(x_23, 4, x_6); +lean_ctor_set(x_23, 5, x_22); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_2); +lean_ctor_set(x_25, 1, x_3); +lean_ctor_set(x_25, 2, x_4); +lean_ctor_set(x_25, 3, x_5); +lean_ctor_set(x_25, 4, x_6); +lean_ctor_set(x_25, 5, x_24); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_box(0); +return x_27; +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_Leanpkg_Source_fromToml___closed__3; +x_8 = l_Toml_Value_lookup(x_5, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_9); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_8, 0); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +lean_ctor_set(x_8, 0, x_13); +x_14 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_8); +return x_14; +} +else +{ +lean_object* x_15; +lean_free_object(x_8); +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_box(0); +return x_15; +} +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +lean_dec(x_8); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_6, x_18); +return x_19; +} +else +{ +lean_object* x_20; +lean_dec(x_16); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_box(0); +return x_20; +} +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Lean_initFn____x40_Lean_Data_Options___hyg_488____closed__6; +x_7 = l_Toml_Value_lookup(x_4, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_box(0); +x_9 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_8); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_7, 0); +if (lean_obj_tag(x_11) == 1) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +lean_ctor_set(x_7, 0, x_12); +x_13 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_7); +return x_13; +} +else +{ +lean_object* x_14; +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_14 = lean_box(0); +return x_14; +} +} +else +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +lean_dec(x_7); +if (lean_obj_tag(x_15) == 1) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +x_18 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_5, x_4, x_17); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_box(0); +return x_19; +} +} +} +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("package"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("version"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromToml___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("lean_version"); +return x_1; +} +} +lean_object* l_Leanpkg_Manifest_fromToml(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Leanpkg_Manifest_fromToml___closed__1; +x_3 = l_Toml_Value_lookup(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__15; +x_7 = l_Toml_Value_lookup(x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Leanpkg_Manifest_fromToml___closed__2; +x_12 = l_Toml_Value_lookup(x_5, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_5); +x_13 = lean_box(0); +return x_13; +} +else +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Leanpkg_Manifest_fromToml___closed__3; +x_17 = l_Toml_Value_lookup(x_5, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = l_Leanpkg_leanVersionString; +x_19 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_10, x_15, x_5, x_18); +lean_dec(x_5); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +lean_dec(x_17); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_10, x_15, x_5, x_21); +lean_dec(x_5); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_20); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_5); +x_23 = lean_box(0); +return x_23; +} +} +} +else +{ +lean_object* x_24; +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_5); +x_24 = lean_box(0); +return x_24; +} +} +} +else +{ +lean_object* x_25; +lean_dec(x_9); +lean_dec(x_5); +x_25 = lean_box(0); +return x_25; +} +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Leanpkg_Manifest_fromToml___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Leanpkg_Manifest_fromToml___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Leanpkg_Manifest_fromToml___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Leanpkg_Manifest_fromToml___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Leanpkg_Manifest_fromToml___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_Manifest_fromToml(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_Manifest_fromFile_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Leanpkg_Manifest_fromFile_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Manifest_fromFile_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_Manifest_fromFile___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("cannot read manifest from "); +return x_1; +} +} +lean_object* l_Leanpkg_Manifest_fromFile(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_IO_FS_readFile___at_Lean_Parser_testParseFile___spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Toml_parse(x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +x_9 = l_Leanpkg_Manifest_fromToml(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = l_Leanpkg_Manifest_fromFile___closed__1; +x_11 = lean_string_append(x_10, x_1); +x_12 = l_Lean_instInhabitedParserDescr___closed__1; +x_13 = lean_string_append(x_11, x_12); +x_14 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set_tag(x_6, 1); +lean_ctor_set(x_6, 0, x_14); +return x_6; +} +else +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +lean_ctor_set(x_6, 0, x_15); +return x_6; +} +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_6, 0); +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_6); +x_18 = l_Leanpkg_Manifest_fromToml(x_16); +lean_dec(x_16); +if (lean_obj_tag(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; +x_19 = l_Leanpkg_Manifest_fromFile___closed__1; +x_20 = lean_string_append(x_19, x_1); +x_21 = l_Lean_instInhabitedParserDescr___closed__1; +x_22 = lean_string_append(x_20, x_21); +x_23 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_17); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_18, 0); +lean_inc(x_25); +lean_dec(x_18); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_17); +return x_26; +} +} +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_6); +if (x_27 == 0) +{ +return x_6; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_6, 0); +x_29 = lean_ctor_get(x_6, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_6); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_3); +if (x_31 == 0) +{ +return x_3; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_3, 0); +x_33 = lean_ctor_get(x_3, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_3); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +lean_object* l_Leanpkg_Manifest_fromFile___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Leanpkg_Manifest_fromFile(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_leanpkgTomlFn___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("leanpkg.toml"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_leanpkgTomlFn() { +_start: +{ +lean_object* x_1; +x_1 = l_Leanpkg_leanpkgTomlFn___closed__1; +return x_1; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Leanpkg_Toml(lean_object*); +lean_object* initialize_Leanpkg_LeanVersion(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_Manifest(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Toml(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_LeanVersion(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_Source_fromToml___closed__1 = _init_l_Leanpkg_Source_fromToml___closed__1(); +lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__1); +l_Leanpkg_Source_fromToml___closed__2 = _init_l_Leanpkg_Source_fromToml___closed__2(); +lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__2); +l_Leanpkg_Source_fromToml___closed__3 = _init_l_Leanpkg_Source_fromToml___closed__3(); +lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__3); +l_Leanpkg_Source_fromToml___closed__4 = _init_l_Leanpkg_Source_fromToml___closed__4(); +lean_mark_persistent(l_Leanpkg_Source_fromToml___closed__4); +l_Leanpkg_Manifest_leanVersion___default = _init_l_Leanpkg_Manifest_leanVersion___default(); +lean_mark_persistent(l_Leanpkg_Manifest_leanVersion___default); +l_Leanpkg_Manifest_timeout___default = _init_l_Leanpkg_Manifest_timeout___default(); +lean_mark_persistent(l_Leanpkg_Manifest_timeout___default); +l_Leanpkg_Manifest_path___default = _init_l_Leanpkg_Manifest_path___default(); +lean_mark_persistent(l_Leanpkg_Manifest_path___default); +l_Leanpkg_Manifest_dependencies___default = _init_l_Leanpkg_Manifest_dependencies___default(); +lean_mark_persistent(l_Leanpkg_Manifest_dependencies___default); +l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1 = _init_l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1(); +lean_mark_persistent(l_List_mapM___at_Leanpkg_Manifest_fromToml___spec__1___closed__1); +l_Leanpkg_Manifest_fromToml___lambda__1___closed__1 = _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__1(); +lean_mark_persistent(l_Leanpkg_Manifest_fromToml___lambda__1___closed__1); +l_Leanpkg_Manifest_fromToml___lambda__1___closed__2 = _init_l_Leanpkg_Manifest_fromToml___lambda__1___closed__2(); +lean_mark_persistent(l_Leanpkg_Manifest_fromToml___lambda__1___closed__2); +l_Leanpkg_Manifest_fromToml___closed__1 = _init_l_Leanpkg_Manifest_fromToml___closed__1(); +lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__1); +l_Leanpkg_Manifest_fromToml___closed__2 = _init_l_Leanpkg_Manifest_fromToml___closed__2(); +lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__2); +l_Leanpkg_Manifest_fromToml___closed__3 = _init_l_Leanpkg_Manifest_fromToml___closed__3(); +lean_mark_persistent(l_Leanpkg_Manifest_fromToml___closed__3); +l_Leanpkg_Manifest_fromFile___closed__1 = _init_l_Leanpkg_Manifest_fromFile___closed__1(); +lean_mark_persistent(l_Leanpkg_Manifest_fromFile___closed__1); +l_Leanpkg_leanpkgTomlFn___closed__1 = _init_l_Leanpkg_leanpkgTomlFn___closed__1(); +lean_mark_persistent(l_Leanpkg_leanpkgTomlFn___closed__1); +l_Leanpkg_leanpkgTomlFn = _init_l_Leanpkg_leanpkgTomlFn(); +lean_mark_persistent(l_Leanpkg_leanpkgTomlFn); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/Proc.c b/stage0/stdlib/Leanpkg/Proc.c new file mode 100644 index 0000000000..2990bbef0e --- /dev/null +++ b/stage0/stdlib/Leanpkg/Proc.c @@ -0,0 +1,459 @@ +// Lean compiler output +// Module: Leanpkg.Proc +// Imports: Init +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_List_map___at_Leanpkg_execCmd___spec__1(lean_object*); +lean_object* l_List_foldl___at_String_join___spec__1(lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Leanpkg_execCmd(lean_object*, lean_object*); +lean_object* l_Leanpkg_execCmd_match__1(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* lean_io_process_spawn(lean_object*, lean_object*); +lean_object* l_Leanpkg_execCmd_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_execCmd___closed__2; +lean_object* l_Nat_repr(lean_object*); +lean_object* l_Leanpkg_execCmd___closed__1; +lean_object* lean_array_to_list(lean_object*, lean_object*); +extern lean_object* l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3; +lean_object* l_Leanpkg_execCmd___closed__3; +uint8_t l_UInt32_decEq(uint32_t, uint32_t); +lean_object* l_String_intercalate(lean_object*, lean_object*); +lean_object* l_Leanpkg_execCmd_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_execCmd_match__2(lean_object*); +lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); +lean_object* lean_uint32_to_nat(uint32_t); +extern lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +lean_object* l_Leanpkg_execCmd_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_execCmd_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_execCmd_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Leanpkg_execCmd_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Leanpkg_execCmd_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_execCmd_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_List_map___at_Leanpkg_execCmd___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_List_map___at_Leanpkg_execCmd___spec__1(x_5); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +lean_dec(x_4); +x_9 = l_Lean_instInhabitedParserDescr___closed__1; +x_10 = lean_string_append(x_9, x_7); +lean_dec(x_7); +x_11 = l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3; +x_12 = lean_string_append(x_10, x_11); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_string_append(x_12, x_9); +x_14 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_15 = lean_string_append(x_13, x_14); +lean_ctor_set(x_1, 1, x_6); +lean_ctor_set(x_1, 0, x_15); +return x_1; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +lean_dec(x_8); +x_17 = lean_string_append(x_12, x_16); +lean_dec(x_16); +x_18 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_19 = lean_string_append(x_17, x_18); +lean_ctor_set(x_1, 1, x_6); +lean_ctor_set(x_1, 0, x_19); +return x_1; +} +} +else +{ +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; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = l_List_map___at_Leanpkg_execCmd___spec__1(x_21); +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = l_Lean_instInhabitedParserDescr___closed__1; +x_26 = lean_string_append(x_25, x_23); +lean_dec(x_23); +x_27 = l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3; +x_28 = lean_string_append(x_26, x_27); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_string_append(x_28, x_25); +x_30 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_31 = lean_string_append(x_29, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_22); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_24, 0); +lean_inc(x_33); +lean_dec(x_24); +x_34 = lean_string_append(x_28, x_33); +lean_dec(x_33); +x_35 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_36 = lean_string_append(x_34, x_35); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_22); +return x_37; +} +} +} +} +} +static lean_object* _init_l_Leanpkg_execCmd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("> "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_execCmd___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("external command exited with status "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_execCmd___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" # in directory "); +return x_1; +} +} +lean_object* l_Leanpkg_execCmd(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 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_66; +x_3 = lean_ctor_get(x_1, 4); +lean_inc(x_3); +x_4 = lean_array_to_list(lean_box(0), x_3); +x_5 = l_List_map___at_Leanpkg_execCmd___spec__1(x_4); +x_6 = l_Lean_instInhabitedParserDescr___closed__1; +x_7 = l_List_foldl___at_String_join___spec__1(x_6, x_5); +lean_dec(x_5); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 2); +lean_inc(x_9); +x_10 = lean_array_to_list(lean_box(0), x_9); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_10); +x_12 = l___private_Init_Data_Format_Basic_0__Std_Format_be___closed__1; +x_13 = l_String_intercalate(x_12, x_11); +x_14 = l_Leanpkg_execCmd___closed__1; +x_15 = lean_string_append(x_14, x_7); +lean_dec(x_7); +x_66 = lean_ctor_get(x_1, 3); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) +{ +x_16 = x_13; +goto block_65; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +lean_dec(x_66); +x_68 = l_Leanpkg_execCmd___closed__3; +x_69 = lean_string_append(x_13, x_68); +x_70 = lean_string_append(x_69, x_67); +lean_dec(x_67); +x_16 = x_70; +goto block_65; +} +block_65: +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_string_append(x_15, x_16); +lean_dec(x_16); +x_18 = l_IO_println___at_Lean_instEval___spec__1(x_17, x_2); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +lean_inc(x_1); +x_20 = lean_io_process_spawn(x_1, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_io_process_child_wait(x_23, x_21, x_22); +lean_dec(x_21); +lean_dec(x_23); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; uint32_t x_27; uint32_t x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_24, 0); +x_27 = 0; +x_28 = lean_unbox_uint32(x_26); +x_29 = x_28 == x_27; +if (x_29 == 0) +{ +uint32_t 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; +x_30 = lean_unbox_uint32(x_26); +lean_dec(x_26); +x_31 = lean_uint32_to_nat(x_30); +x_32 = l_Nat_repr(x_31); +x_33 = l_Leanpkg_execCmd___closed__2; +x_34 = lean_string_append(x_33, x_32); +lean_dec(x_32); +x_35 = lean_string_append(x_34, x_6); +x_36 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set_tag(x_24, 1); +lean_ctor_set(x_24, 0, x_36); +return x_24; +} +else +{ +lean_object* x_37; +lean_dec(x_26); +x_37 = lean_box(0); +lean_ctor_set(x_24, 0, x_37); +return x_24; +} +} +else +{ +lean_object* x_38; lean_object* x_39; uint32_t x_40; uint32_t x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_24, 0); +x_39 = lean_ctor_get(x_24, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_24); +x_40 = 0; +x_41 = lean_unbox_uint32(x_38); +x_42 = x_41 == x_40; +if (x_42 == 0) +{ +uint32_t 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; +x_43 = lean_unbox_uint32(x_38); +lean_dec(x_38); +x_44 = lean_uint32_to_nat(x_43); +x_45 = l_Nat_repr(x_44); +x_46 = l_Leanpkg_execCmd___closed__2; +x_47 = lean_string_append(x_46, x_45); +lean_dec(x_45); +x_48 = lean_string_append(x_47, x_6); +x_49 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_39); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_38); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_39); +return x_52; +} +} +} +else +{ +uint8_t x_53; +x_53 = !lean_is_exclusive(x_24); +if (x_53 == 0) +{ +return x_24; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_24, 0); +x_55 = lean_ctor_get(x_24, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_24); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_20); +if (x_57 == 0) +{ +return x_20; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_20, 0); +x_59 = lean_ctor_get(x_20, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_20); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_18); +if (x_61 == 0) +{ +return x_18; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_18, 0); +x_63 = lean_ctor_get(x_18, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_18); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +} +} +lean_object* initialize_Init(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_Proc(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_execCmd___closed__1 = _init_l_Leanpkg_execCmd___closed__1(); +lean_mark_persistent(l_Leanpkg_execCmd___closed__1); +l_Leanpkg_execCmd___closed__2 = _init_l_Leanpkg_execCmd___closed__2(); +lean_mark_persistent(l_Leanpkg_execCmd___closed__2); +l_Leanpkg_execCmd___closed__3 = _init_l_Leanpkg_execCmd___closed__3(); +lean_mark_persistent(l_Leanpkg_execCmd___closed__3); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/Resolve.c b/stage0/stdlib/Leanpkg/Resolve.c new file mode 100644 index 0000000000..113260668c --- /dev/null +++ b/stage0/stdlib/Leanpkg/Resolve.c @@ -0,0 +1,2840 @@ +// Lean compiler output +// Module: Leanpkg.Resolve +// Imports: Init Leanpkg.Manifest Leanpkg.Proc Leanpkg.Git +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_List_reverse___rarg(lean_object*); +extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_Leanpkg_gitParseOriginRevision(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolveDir___boxed(lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath_match__1(lean_object*); +extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; +lean_object* l_Leanpkg_resolvedPath(lean_object*, lean_object*, lean_object*); +extern lean_object* l_String_instInhabitedString; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__35; +lean_object* l_Leanpkg_solveDepsCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Leanpkg_Assignment_contains(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolveDir___closed__1; +lean_object* l_List_lookup___at_Leanpkg_Assignment_contains___spec__1___boxed(lean_object*, lean_object*); +lean_object* lean_io_is_dir(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolveDir(lean_object*, lean_object*); +extern lean_object* l_Array_empty___closed__1; +lean_object* l_Leanpkg_solveDepsCore_match__1(lean_object*); +lean_object* l_Leanpkg_solveDepsCore_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_solveDeps_match__1___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Leanpkg_materialize___closed__7; +lean_object* l_Leanpkg_execCmd(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Leanpkg_constructPath_match__1(lean_object*); +lean_object* l_Leanpkg_constructPath_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_notYetAssigned___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Assignment_fold_match__1(lean_object*); +lean_object* l_Leanpkg_Assignment_fold_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___lambda__1___closed__4; +uint8_t l_Leanpkg_notYetAssigned___closed__1; +extern lean_object* l_Leanpkg_gitParseRevision___closed__1; +extern lean_object* l_Leanpkg_gitLatestOriginRevision___closed__2; +lean_object* l_Leanpkg_materialize_match__2(lean_object*); +lean_object* l_Leanpkg_resolvedPath___closed__4; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_List_mapM___at_Leanpkg_constructPath___spec__1(lean_object*, lean_object*); +uint8_t l_instDecidableNot___rarg(uint8_t); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3; +lean_object* l_Leanpkg_materialize___closed__6; +lean_object* l_IO_print___at_IO_println___spec__1(lean_object*, lean_object*); +lean_object* l_instInhabited___rarg(lean_object*, lean_object*); +lean_object* l_Leanpkg_constructPathCore___rarg(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Leanpkg_Assignment_fold___spec__1(lean_object*); +lean_object* l_Leanpkg_solveDeps(lean_object*, lean_object*); +extern lean_object* l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +lean_object* l_Leanpkg_solveDepsCore___closed__2; +lean_object* l_Leanpkg_solveDeps_match__1(lean_object*); +lean_object* l_Leanpkg_solveDepsCore___closed__1; +lean_object* l_Leanpkg_Assignment_insert(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_leanpkgTomlFn; +lean_object* l_List_lookup___at_Leanpkg_Assignment_contains___spec__1(lean_object*, lean_object*); +lean_object* l_Leanpkg_gitRevisionExists(lean_object*, lean_object*, lean_object*); +uint32_t lean_string_utf8_get(lean_object*, lean_object*); +extern lean_object* l_instMonadEST___closed__1; +lean_object* l_Leanpkg_constructPathCore___boxed(lean_object*); +lean_object* l_Leanpkg_notYetAssigned(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_Assignment_fold___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___closed__5; +lean_object* l_Leanpkg_Manifest_fromFile(lean_object*, lean_object*); +lean_object* l_Leanpkg_constructPathCore(lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__9; +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___lambda__1___closed__2; +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2; +lean_object* l_IO_isDir___at_Leanpkg_materialize___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_constructPath(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___closed__8; +lean_object* l_Leanpkg_solveDepsCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath___closed__5; +uint8_t l_UInt32_decEq(uint32_t, uint32_t); +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAuxM___at_Leanpkg_solveDepsCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath___closed__3; +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath___closed__2; +lean_object* l_Leanpkg_resolvedPath___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath___closed__1; +lean_object* l_List_forM___at_Leanpkg_solveDepsCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_resolvedPath_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___closed__3; +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1; +lean_object* l_Leanpkg_solveDepsCore_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Leanpkg_Assignment_fold___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___lambda__1___closed__3; +lean_object* l_Leanpkg_Assignment_empty; +lean_object* l_Leanpkg_Assignment_contains___boxed(lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___closed__2; +lean_object* l_StateT_instMonadStateT___rarg(lean_object*); +uint8_t l_Leanpkg_notYetAssigned___closed__2; +extern lean_object* l_prec_x28___x29___closed__7; +lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); +lean_object* l_IO_isDir___at_Leanpkg_materialize___spec__1___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_leanpkgTomlFn___closed__1; +lean_object* l_Leanpkg_materialize___closed__4; +lean_object* l_Leanpkg_Manifest_effectivePath(lean_object*); +lean_object* l_Leanpkg_materialize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Leanpkg_gitParseRevision___closed__9; +lean_object* l_Leanpkg_materialize_match__1(lean_object*); +lean_object* l_Leanpkg_materialize___lambda__1___closed__1; +lean_object* l_Leanpkg_materialize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Leanpkg_materialize___closed__1; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l_Leanpkg_Assignment_fold(lean_object*); +static lean_object* _init_l_Leanpkg_Assignment_empty() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +lean_object* l_List_lookup___at_Leanpkg_Assignment_contains___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = lean_string_dec_eq(x_1, x_6); +if (x_8 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_10; +lean_inc(x_7); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_7); +return x_10; +} +} +} +} +uint8_t l_Leanpkg_Assignment_contains(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_List_lookup___at_Leanpkg_Assignment_contains___spec__1(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +uint8_t x_5; +lean_dec(x_3); +x_5 = 1; +return x_5; +} +} +} +lean_object* l_List_lookup___at_Leanpkg_Assignment_contains___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_List_lookup___at_Leanpkg_Assignment_contains___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Leanpkg_Assignment_contains___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Leanpkg_Assignment_contains(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Leanpkg_Assignment_insert(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Leanpkg_Assignment_contains(x_1, x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_1); +return x_6; +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +} +} +lean_object* l_Leanpkg_Assignment_fold_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_Assignment_fold_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Assignment_fold_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_foldl___at_Leanpkg_Assignment_fold___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +lean_inc(x_1); +x_8 = lean_apply_3(x_1, x_2, x_6, x_7); +x_2 = x_8; +x_3 = x_5; +goto _start; +} +} +} +lean_object* l_List_foldl___at_Leanpkg_Assignment_fold___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Leanpkg_Assignment_fold___spec__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_Assignment_fold___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_foldl___at_Leanpkg_Assignment_fold___spec__1___rarg(x_2, x_1, x_3); +return x_4; +} +} +lean_object* l_Leanpkg_Assignment_fold(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_Assignment_fold___rarg), 3, 0); +return x_2; +} +} +static uint8_t _init_l_Leanpkg_notYetAssigned___closed__1() { +_start: +{ +uint8_t x_1; uint8_t x_2; +x_1 = 0; +x_2 = l_instDecidableNot___rarg(x_1); +return x_2; +} +} +static uint8_t _init_l_Leanpkg_notYetAssigned___closed__2() { +_start: +{ +uint8_t x_1; uint8_t x_2; +x_1 = 1; +x_2 = l_instDecidableNot___rarg(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_notYetAssigned(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Leanpkg_Assignment_contains(x_2, x_1); +if (x_4 == 0) +{ +uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Leanpkg_notYetAssigned___closed__1; +x_6 = lean_box(x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_3); +return x_8; +} +else +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = l_Leanpkg_notYetAssigned___closed__2; +x_10 = lean_box(x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_2); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +} +lean_object* l_Leanpkg_notYetAssigned___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_notYetAssigned(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Leanpkg_resolvedPath_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Leanpkg_resolvedPath_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_resolvedPath_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_resolvedPath___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_instMonadEST___closed__1; +x_2 = l_StateT_instMonadStateT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Leanpkg_resolvedPath___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_resolvedPath___closed__1; +x_2 = l_String_instInhabitedString; +x_3 = l_instInhabited___rarg(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_resolvedPath___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Leanpkg.Resolve"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_resolvedPath___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Leanpkg.resolvedPath"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_resolvedPath___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Leanpkg_resolvedPath___closed__3; +x_2 = l_Leanpkg_resolvedPath___closed__4; +x_3 = lean_unsigned_to_nat(34u); +x_4 = lean_unsigned_to_nat(44u); +x_5 = l_Lean_Syntax_strLitToAtom___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Leanpkg_resolvedPath(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_lookup___at_Leanpkg_Assignment_contains___spec__1(x_1, x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Leanpkg_resolvedPath___closed__2; +x_6 = l_Leanpkg_resolvedPath___closed__5; +x_7 = lean_panic_fn(x_5, x_6); +x_8 = lean_apply_2(x_7, x_2, x_3); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_2); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_3); +return x_11; +} +} +} +lean_object* l_Leanpkg_resolvedPath___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_resolvedPath(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l_Leanpkg_resolveDir___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("/"); +return x_1; +} +} +lean_object* l_Leanpkg_resolveDir(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint32_t x_4; uint32_t x_5; uint8_t x_6; +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_string_utf8_get(x_1, x_3); +x_5 = 47; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Leanpkg_resolveDir___closed__1; +x_8 = lean_string_append(x_2, x_7); +x_9 = lean_string_append(x_8, x_1); +return x_9; +} +else +{ +lean_dec(x_2); +lean_inc(x_1); +return x_1; +} +} +} +lean_object* l_Leanpkg_resolveDir___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Leanpkg_resolveDir(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Leanpkg_materialize_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_3(x_3, x_6, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Leanpkg_materialize_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_materialize_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_materialize_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Leanpkg_materialize_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_materialize_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_IO_isDir___at_Leanpkg_materialize___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_io_is_dir(x_1, x_3); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +lean_ctor_set(x_4, 0, x_7); +return x_4; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_4); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_2); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +else +{ +uint8_t x_12; +lean_dec(x_2); +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +return x_4; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_4, 0); +x_14 = lean_ctor_get(x_4, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_4); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +static lean_object* _init_l_Leanpkg_materialize___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("checkout"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Syntax_mkAntiquotNode___closed__9; +x_2 = l_Leanpkg_materialize___lambda__1___closed__1; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_materialize___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("--detach"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Leanpkg_materialize___lambda__1___closed__2; +x_2 = l_Leanpkg_materialize___lambda__1___closed__3; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* l_Leanpkg_materialize___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +lean_inc(x_1); +x_7 = l_Leanpkg_gitParseOriginRevision(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +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; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Leanpkg_materialize___lambda__1___closed__4; +x_11 = lean_array_push(x_10, x_8); +lean_inc(x_1); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = l_Leanpkg_gitParseRevision___closed__1; +x_14 = l_Leanpkg_gitParseRevision___closed__9; +x_15 = l_Array_empty___closed__1; +x_16 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_16, 2, x_11); +lean_ctor_set(x_16, 3, x_12); +lean_ctor_set(x_16, 4, x_15); +x_17 = l_Leanpkg_execCmd(x_16, x_9); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +x_20 = l_Leanpkg_Assignment_insert(x_5, x_3, x_1); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +lean_ctor_set(x_17, 0, x_22); +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +x_24 = l_Leanpkg_Assignment_insert(x_5, x_3, x_1); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_7); +if (x_32 == 0) +{ +return x_7; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_7); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(": using local path "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("build/deps/"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(": cloning "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" to "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("clone"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Syntax_mkAntiquotNode___closed__9; +x_2 = l_Leanpkg_materialize___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(": trying to update "); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_materialize___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" to revision "); +return x_1; +} +} +lean_object* l_Leanpkg_materialize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Leanpkg_resolveDir(x_6, x_1); +lean_dec(x_6); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_dec(x_2); +x_9 = l_Lean_instInhabitedParserDescr___closed__1; +x_10 = lean_string_append(x_9, x_8); +x_11 = l_Leanpkg_materialize___closed__1; +x_12 = lean_string_append(x_10, x_11); +x_13 = lean_string_append(x_12, x_7); +x_14 = lean_string_append(x_13, x_9); +x_15 = l_IO_println___at_Lean_instEval___spec__1(x_14, x_4); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = l_Leanpkg_Assignment_insert(x_3, x_8, x_7); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +lean_ctor_set(x_15, 0, x_20); +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_dec(x_15); +x_22 = l_Leanpkg_Assignment_insert(x_3, x_8, x_7); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_26 = !lean_is_exclusive(x_15); +if (x_26 == 0) +{ +return x_15; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_15, 0); +x_28 = lean_ctor_get(x_15, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_15); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +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_dec(x_1); +x_30 = lean_ctor_get(x_5, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_5, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_5, 2); +lean_inc(x_32); +lean_dec(x_5); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +lean_dec(x_2); +x_34 = l_Leanpkg_materialize___closed__2; +x_35 = lean_string_append(x_34, x_33); +x_36 = l_IO_isDir___at_Leanpkg_materialize___spec__1(x_35, x_3, x_4); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +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; 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_dec(x_32); +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = lean_ctor_get(x_37, 1); +lean_inc(x_41); +lean_dec(x_37); +x_42 = l_Lean_instInhabitedParserDescr___closed__1; +x_43 = lean_string_append(x_42, x_33); +x_44 = l_Leanpkg_materialize___closed__3; +x_45 = lean_string_append(x_43, x_44); +x_46 = lean_string_append(x_45, x_30); +x_47 = l_Leanpkg_materialize___closed__4; +x_48 = lean_string_append(x_46, x_47); +x_49 = lean_string_append(x_48, x_35); +x_50 = lean_string_append(x_49, x_42); +x_51 = l_IO_println___at_Lean_instEval___spec__1(x_50, x_40); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = l_Leanpkg_materialize___closed__6; +x_54 = lean_array_push(x_53, x_30); +lean_inc(x_35); +x_55 = lean_array_push(x_54, x_35); +x_56 = lean_box(0); +x_57 = l_Leanpkg_gitParseRevision___closed__1; +x_58 = l_Leanpkg_gitParseRevision___closed__9; +x_59 = l_Array_empty___closed__1; +x_60 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +lean_ctor_set(x_60, 2, x_55); +lean_ctor_set(x_60, 3, x_56); +lean_ctor_set(x_60, 4, x_59); +x_61 = l_Leanpkg_execCmd(x_60, x_52); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Leanpkg_materialize___lambda__1(x_35, x_31, x_33, x_62, x_41, x_63); +lean_dec(x_62); +return x_64; +} +else +{ +uint8_t x_65; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_31); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) +{ +return x_61; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_61, 0); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_61); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_30); +x_69 = !lean_is_exclusive(x_51); +if (x_69 == 0) +{ +return x_51; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_51, 0); +x_71 = lean_ctor_get(x_51, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_51); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +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_dec(x_30); +x_73 = lean_ctor_get(x_36, 1); +lean_inc(x_73); +lean_dec(x_36); +x_74 = lean_ctor_get(x_37, 1); +lean_inc(x_74); +lean_dec(x_37); +x_75 = l_Lean_instInhabitedParserDescr___closed__1; +x_76 = lean_string_append(x_75, x_33); +x_77 = l_Leanpkg_materialize___closed__7; +x_78 = lean_string_append(x_76, x_77); +x_79 = lean_string_append(x_78, x_35); +x_80 = l_Leanpkg_materialize___closed__8; +x_81 = lean_string_append(x_79, x_80); +x_82 = lean_string_append(x_81, x_31); +x_83 = lean_string_append(x_82, x_75); +x_84 = l_IO_print___at_IO_println___spec__1(x_83, x_73); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +if (lean_obj_tag(x_32) == 0) +{ +x_86 = x_75; +goto block_121; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_32, 0); +lean_inc(x_122); +lean_dec(x_32); +x_123 = l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__35; +x_124 = lean_string_append(x_123, x_122); +lean_dec(x_122); +x_86 = x_124; +goto block_121; +} +block_121: +{ +lean_object* x_87; +x_87 = l_IO_println___at_Lean_instEval___spec__1(x_86, x_85); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +lean_inc(x_31); +lean_inc(x_35); +x_89 = l_Leanpkg_gitParseOriginRevision(x_35, x_31, x_88); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +lean_inc(x_35); +x_92 = l_Leanpkg_gitRevisionExists(x_35, x_90, x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_unbox(x_93); +lean_dec(x_93); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec(x_92); +lean_inc(x_35); +x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_35); +x_97 = l_Leanpkg_gitParseRevision___closed__1; +x_98 = l_Leanpkg_gitParseRevision___closed__9; +x_99 = l_Leanpkg_gitLatestOriginRevision___closed__2; +x_100 = l_Array_empty___closed__1; +x_101 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_101, 0, x_97); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set(x_101, 2, x_99); +lean_ctor_set(x_101, 3, x_96); +lean_ctor_set(x_101, 4, x_100); +x_102 = l_Leanpkg_execCmd(x_101, x_95); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = l_Leanpkg_materialize___lambda__1(x_35, x_31, x_33, x_103, x_74, x_104); +lean_dec(x_103); +return x_105; +} +else +{ +uint8_t x_106; +lean_dec(x_74); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_31); +x_106 = !lean_is_exclusive(x_102); +if (x_106 == 0) +{ +return x_102; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_102, 0); +x_108 = lean_ctor_get(x_102, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_102); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_92, 1); +lean_inc(x_110); +lean_dec(x_92); +x_111 = lean_box(0); +x_112 = l_Leanpkg_materialize___lambda__1(x_35, x_31, x_33, x_111, x_74, x_110); +return x_112; +} +} +else +{ +uint8_t x_113; +lean_dec(x_74); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_31); +x_113 = !lean_is_exclusive(x_89); +if (x_113 == 0) +{ +return x_89; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_89, 0); +x_115 = lean_ctor_get(x_89, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_89); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +uint8_t x_117; +lean_dec(x_74); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_31); +x_117 = !lean_is_exclusive(x_87); +if (x_117 == 0) +{ +return x_87; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_87, 0); +x_119 = lean_ctor_get(x_87, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_87); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +} +} +else +{ +uint8_t x_125; +lean_dec(x_74); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +x_125 = !lean_is_exclusive(x_84); +if (x_125 == 0) +{ +return x_84; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_84, 0); +x_127 = lean_ctor_get(x_84, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_84); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +} +} +else +{ +uint8_t x_129; +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +x_129 = !lean_is_exclusive(x_36); +if (x_129 == 0) +{ +return x_36; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_36, 0); +x_131 = lean_ctor_get(x_36, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_36); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; +} +} +} +} +} +lean_object* l_IO_isDir___at_Leanpkg_materialize___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_IO_isDir___at_Leanpkg_materialize___spec__1(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Leanpkg_materialize___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Leanpkg_materialize___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_7; +} +} +lean_object* l_Leanpkg_solveDepsCore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_eq(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_sub(x_1, x_6); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_2, x_9); +return x_10; +} +} +} +lean_object* l_Leanpkg_solveDepsCore_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_solveDepsCore_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Leanpkg_solveDepsCore_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Leanpkg_solveDepsCore_match__1___rarg(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_List_filterAuxM___at_Leanpkg_solveDepsCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_1); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +x_11 = l_Leanpkg_notYetAssigned(x_10, x_3, x_4); +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_free_object(x_1); +lean_dec(x_8); +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_1 = x_9; +x_3 = x_16; +x_4 = x_15; +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_dec(x_12); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_9; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_2 = x_19; +lean_object* _tmp_3 = x_18; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_4 = _tmp_3; +} +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; uint8_t x_27; +x_21 = lean_ctor_get(x_1, 0); +x_22 = lean_ctor_get(x_1, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_1); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = l_Leanpkg_notYetAssigned(x_23, x_3, x_4); +lean_dec(x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_1 = x_22; +x_3 = x_29; +x_4 = x_28; +goto _start; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_dec(x_24); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_21); +lean_ctor_set(x_33, 1, x_2); +x_1 = x_22; +x_2 = x_33; +x_3 = x_32; +x_4 = x_31; +goto _start; +} +} +} +} +} +lean_object* l_List_forM___at_Leanpkg_solveDepsCore___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_dec(x_2); +lean_inc(x_1); +x_10 = l_Leanpkg_materialize(x_1, x_8, x_3, x_4); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_2 = x_9; +x_3 = x_13; +x_4 = x_12; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_9); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Leanpkg_solveDepsCore(x_1, x_2, x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +lean_dec(x_11); +x_12 = l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +lean_ctor_set(x_9, 0, x_12); +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +lean_ctor_set(x_7, 0, x_15); +return x_7; +} +} +else +{ +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; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_19 = x_16; +} else { + lean_dec_ref(x_16); + x_19 = lean_box(0); +} +x_20 = l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; +if (lean_is_scalar(x_19)) { + x_21 = lean_alloc_ctor(0, 2, 0); +} else { + x_21 = x_19; +} +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_17); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_7); +if (x_23 == 0) +{ +return x_7; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_7, 0); +x_25 = lean_ctor_get(x_7, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_7); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" (in "); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(") depends on "); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", but resolved dependency has name "); +return x_1; +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___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) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_5); +lean_ctor_set(x_8, 1, x_6); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Leanpkg_resolvedPath(x_12, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = l_Leanpkg_resolveDir___closed__1; +lean_inc(x_16); +x_19 = lean_string_append(x_16, x_18); +x_20 = l_Leanpkg_leanpkgTomlFn___closed__1; +x_21 = lean_string_append(x_19, x_20); +x_22 = l_Leanpkg_Manifest_fromFile(x_21, x_15); +lean_dec(x_21); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +x_27 = lean_string_dec_eq(x_26, x_12); +if (x_27 == 0) +{ +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_dec(x_24); +lean_dec(x_17); +lean_dec(x_5); +x_28 = lean_ctor_get(x_2, 0); +lean_inc(x_28); +lean_dec(x_2); +x_29 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1; +x_30 = lean_string_append(x_28, x_29); +x_31 = lean_string_append(x_30, x_1); +x_32 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2; +x_33 = lean_string_append(x_31, x_32); +x_34 = lean_string_append(x_33, x_26); +lean_dec(x_26); +x_35 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3; +x_36 = lean_string_append(x_34, x_35); +x_37 = lean_string_append(x_36, x_12); +x_38 = lean_string_append(x_37, x_29); +x_39 = lean_string_append(x_38, x_16); +lean_dec(x_16); +x_40 = l_prec_x28___x29___closed__7; +x_41 = lean_string_append(x_39, x_40); +x_42 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set_tag(x_22, 1); +lean_ctor_set(x_22, 0, x_42); +return x_22; +} +else +{ +lean_object* x_43; +lean_dec(x_26); +lean_free_object(x_22); +x_43 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1(x_16, x_24, x_3, x_5, x_17, x_25); +lean_dec(x_5); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +lean_dec(x_2); +x_46 = !lean_is_exclusive(x_43); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_43, 0); +lean_dec(x_47); +x_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_44, 0); +lean_dec(x_49); +x_50 = lean_ctor_get(x_45, 0); +lean_inc(x_50); +lean_dec(x_45); +lean_ctor_set(x_44, 0, x_50); +return x_43; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_ctor_get(x_45, 0); +lean_inc(x_52); +lean_dec(x_45); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +lean_ctor_set(x_43, 0, x_53); +return x_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; +x_54 = lean_ctor_get(x_43, 1); +lean_inc(x_54); +lean_dec(x_43); +x_55 = lean_ctor_get(x_44, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_56 = x_44; +} else { + lean_dec_ref(x_44); + x_56 = lean_box(0); +} +x_57 = lean_ctor_get(x_45, 0); +lean_inc(x_57); +lean_dec(x_45); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_56; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_54); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_43, 1); +lean_inc(x_60); +lean_dec(x_43); +x_61 = lean_ctor_get(x_44, 1); +lean_inc(x_61); +lean_dec(x_44); +x_62 = lean_ctor_get(x_45, 0); +lean_inc(x_62); +lean_dec(x_45); +x_4 = x_11; +x_5 = x_62; +x_6 = x_61; +x_7 = x_60; +goto _start; +} +} +else +{ +uint8_t x_64; +lean_dec(x_2); +x_64 = !lean_is_exclusive(x_43); +if (x_64 == 0) +{ +return x_43; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_43, 0); +x_66 = lean_ctor_get(x_43, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_43); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_22, 0); +x_69 = lean_ctor_get(x_22, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_22); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +x_71 = lean_string_dec_eq(x_70, x_12); +if (x_71 == 0) +{ +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_dec(x_68); +lean_dec(x_17); +lean_dec(x_5); +x_72 = lean_ctor_get(x_2, 0); +lean_inc(x_72); +lean_dec(x_2); +x_73 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1; +x_74 = lean_string_append(x_72, x_73); +x_75 = lean_string_append(x_74, x_1); +x_76 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2; +x_77 = lean_string_append(x_75, x_76); +x_78 = lean_string_append(x_77, x_70); +lean_dec(x_70); +x_79 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3; +x_80 = lean_string_append(x_78, x_79); +x_81 = lean_string_append(x_80, x_12); +x_82 = lean_string_append(x_81, x_73); +x_83 = lean_string_append(x_82, x_16); +lean_dec(x_16); +x_84 = l_prec_x28___x29___closed__7; +x_85 = lean_string_append(x_83, x_84); +x_86 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_86, 0, x_85); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_69); +return x_87; +} +else +{ +lean_object* x_88; +lean_dec(x_70); +x_88 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1(x_16, x_68, x_3, x_5, x_17, x_69); +lean_dec(x_5); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_2); +x_91 = lean_ctor_get(x_88, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_92 = x_88; +} else { + lean_dec_ref(x_88); + x_92 = lean_box(0); +} +x_93 = lean_ctor_get(x_89, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_94 = x_89; +} else { + lean_dec_ref(x_89); + x_94 = lean_box(0); +} +x_95 = lean_ctor_get(x_90, 0); +lean_inc(x_95); +lean_dec(x_90); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_93); +if (lean_is_scalar(x_92)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_92; +} +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_91); +return x_97; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_88, 1); +lean_inc(x_98); +lean_dec(x_88); +x_99 = lean_ctor_get(x_89, 1); +lean_inc(x_99); +lean_dec(x_89); +x_100 = lean_ctor_get(x_90, 0); +lean_inc(x_100); +lean_dec(x_90); +x_4 = x_11; +x_5 = x_100; +x_6 = x_99; +x_7 = x_98; +goto _start; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_2); +x_102 = lean_ctor_get(x_88, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_88, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_104 = x_88; +} else { + lean_dec_ref(x_88); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +} +else +{ +uint8_t x_106; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); +lean_dec(x_2); +x_106 = !lean_is_exclusive(x_22); +if (x_106 == 0) +{ +return x_22; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_22, 0); +x_108 = lean_ctor_get(x_22, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_22); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_5); +lean_dec(x_2); +x_110 = !lean_is_exclusive(x_13); +if (x_110 == 0) +{ +return x_13; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_13, 0); +x_112 = lean_ctor_get(x_13, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_13); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +} +} +static lean_object* _init_l_Leanpkg_solveDepsCore___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("maximum dependency resolution depth reached"); +return x_1; +} +} +static lean_object* _init_l_Leanpkg_solveDepsCore___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Leanpkg_solveDepsCore___closed__1; +x_2 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Leanpkg_solveDepsCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_3, x_6); +if (x_7 == 0) +{ +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; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_3, x_8); +x_10 = lean_ctor_get(x_2, 5); +lean_inc(x_10); +x_11 = lean_box(0); +x_12 = l_List_filterAuxM___at_Leanpkg_solveDepsCore___spec__1(x_10, x_11, x_4, x_5); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = l_List_reverse___rarg(x_15); +lean_inc(x_17); +lean_inc(x_1); +x_18 = l_List_forM___at_Leanpkg_solveDepsCore___spec__2(x_1, x_17, x_16, x_14); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_box(0); +x_23 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3(x_1, x_2, x_9, x_17, x_22, x_21, x_20); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_1); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_23, 0); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_23, 0, x_29); +return x_23; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_34 = x_30; +} else { + lean_dec_ref(x_30); + x_34 = lean_box(0); +} +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_34; +} +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +else +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_23); +if (x_37 == 0) +{ +return x_23; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_23); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_18); +if (x_41 == 0) +{ +return x_18; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_18, 0); +x_43 = lean_ctor_get(x_18, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_18); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_45 = l_Leanpkg_solveDepsCore___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_5); +return x_46; +} +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_List_forIn_loop___at_Leanpkg_solveDepsCore___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) { +_start: +{ +lean_object* x_8; +x_8 = l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Leanpkg_solveDepsCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Leanpkg_solveDepsCore(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +lean_object* l_Leanpkg_solveDeps_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_solveDeps_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_solveDeps_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Leanpkg_solveDeps(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = l_Leanpkg_Assignment_empty; +x_5 = l_Lean_Name_toString___closed__1; +x_6 = l_Leanpkg_Assignment_insert(x_4, x_3, x_5); +x_7 = lean_unsigned_to_nat(1024u); +x_8 = l_Leanpkg_solveDepsCore(x_5, x_1, x_7, x_6, x_2); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +return x_8; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_8, 0); +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_8); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l_Leanpkg_constructPathCore___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = l_Leanpkg_resolveDir___closed__1; +x_4 = lean_string_append(x_1, x_3); +x_5 = l_Leanpkg_leanpkgTomlFn; +lean_inc(x_4); +x_6 = lean_string_append(x_4, x_5); +x_7 = l_Leanpkg_Manifest_fromFile(x_6, x_2); +lean_dec(x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = l_Leanpkg_Manifest_effectivePath(x_9); +lean_dec(x_9); +x_11 = lean_string_append(x_4, x_10); +lean_dec(x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_7, 0); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_7); +x_14 = l_Leanpkg_Manifest_effectivePath(x_12); +lean_dec(x_12); +x_15 = lean_string_append(x_4, x_14); +lean_dec(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +uint8_t x_17; +lean_dec(x_4); +x_17 = !lean_is_exclusive(x_7); +if (x_17 == 0) +{ +return x_7; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_7, 0); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_7); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +lean_object* l_Leanpkg_constructPathCore(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_constructPathCore___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Leanpkg_constructPathCore___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Leanpkg_constructPathCore(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Leanpkg_constructPath_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Leanpkg_constructPath_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Leanpkg_constructPath_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_mapM___at_Leanpkg_constructPath___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(0); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Leanpkg_constructPathCore___rarg(x_8, x_2); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_List_mapM___at_Leanpkg_constructPath___spec__1(x_7, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_ctor_set(x_1, 1, x_14); +lean_ctor_set(x_1, 0, x_10); +lean_ctor_set(x_12, 0, x_1); +return x_12; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 0); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_10); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +lean_dec(x_10); +lean_free_object(x_1); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +return x_12; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_12, 0); +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_12); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_free_object(x_1); +lean_dec(x_7); +x_22 = !lean_is_exclusive(x_9); +if (x_22 == 0) +{ +return x_9; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_9, 0); +x_24 = lean_ctor_get(x_9, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_9); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_1, 0); +x_27 = lean_ctor_get(x_1, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_1); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Leanpkg_constructPathCore___rarg(x_28, x_2); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_List_mapM___at_Leanpkg_constructPath___spec__1(x_27, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_33); +if (lean_is_scalar(x_35)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_35; +} +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_30); +x_38 = lean_ctor_get(x_32, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_40 = x_32; +} else { + lean_dec_ref(x_32); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 2, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_27); +x_42 = lean_ctor_get(x_29, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_29, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_44 = x_29; +} else { + lean_dec_ref(x_29); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +} +} +} +lean_object* l_Leanpkg_constructPath(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_List_reverse___rarg(x_1); +x_4 = l_List_mapM___at_Leanpkg_constructPath___spec__1(x_3, x_2); +return x_4; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Leanpkg_Manifest(lean_object*); +lean_object* initialize_Leanpkg_Proc(lean_object*); +lean_object* initialize_Leanpkg_Git(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_Resolve(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Manifest(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Proc(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Leanpkg_Git(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Leanpkg_Assignment_empty = _init_l_Leanpkg_Assignment_empty(); +lean_mark_persistent(l_Leanpkg_Assignment_empty); +l_Leanpkg_notYetAssigned___closed__1 = _init_l_Leanpkg_notYetAssigned___closed__1(); +l_Leanpkg_notYetAssigned___closed__2 = _init_l_Leanpkg_notYetAssigned___closed__2(); +l_Leanpkg_resolvedPath___closed__1 = _init_l_Leanpkg_resolvedPath___closed__1(); +lean_mark_persistent(l_Leanpkg_resolvedPath___closed__1); +l_Leanpkg_resolvedPath___closed__2 = _init_l_Leanpkg_resolvedPath___closed__2(); +lean_mark_persistent(l_Leanpkg_resolvedPath___closed__2); +l_Leanpkg_resolvedPath___closed__3 = _init_l_Leanpkg_resolvedPath___closed__3(); +lean_mark_persistent(l_Leanpkg_resolvedPath___closed__3); +l_Leanpkg_resolvedPath___closed__4 = _init_l_Leanpkg_resolvedPath___closed__4(); +lean_mark_persistent(l_Leanpkg_resolvedPath___closed__4); +l_Leanpkg_resolvedPath___closed__5 = _init_l_Leanpkg_resolvedPath___closed__5(); +lean_mark_persistent(l_Leanpkg_resolvedPath___closed__5); +l_Leanpkg_resolveDir___closed__1 = _init_l_Leanpkg_resolveDir___closed__1(); +lean_mark_persistent(l_Leanpkg_resolveDir___closed__1); +l_Leanpkg_materialize___lambda__1___closed__1 = _init_l_Leanpkg_materialize___lambda__1___closed__1(); +lean_mark_persistent(l_Leanpkg_materialize___lambda__1___closed__1); +l_Leanpkg_materialize___lambda__1___closed__2 = _init_l_Leanpkg_materialize___lambda__1___closed__2(); +lean_mark_persistent(l_Leanpkg_materialize___lambda__1___closed__2); +l_Leanpkg_materialize___lambda__1___closed__3 = _init_l_Leanpkg_materialize___lambda__1___closed__3(); +lean_mark_persistent(l_Leanpkg_materialize___lambda__1___closed__3); +l_Leanpkg_materialize___lambda__1___closed__4 = _init_l_Leanpkg_materialize___lambda__1___closed__4(); +lean_mark_persistent(l_Leanpkg_materialize___lambda__1___closed__4); +l_Leanpkg_materialize___closed__1 = _init_l_Leanpkg_materialize___closed__1(); +lean_mark_persistent(l_Leanpkg_materialize___closed__1); +l_Leanpkg_materialize___closed__2 = _init_l_Leanpkg_materialize___closed__2(); +lean_mark_persistent(l_Leanpkg_materialize___closed__2); +l_Leanpkg_materialize___closed__3 = _init_l_Leanpkg_materialize___closed__3(); +lean_mark_persistent(l_Leanpkg_materialize___closed__3); +l_Leanpkg_materialize___closed__4 = _init_l_Leanpkg_materialize___closed__4(); +lean_mark_persistent(l_Leanpkg_materialize___closed__4); +l_Leanpkg_materialize___closed__5 = _init_l_Leanpkg_materialize___closed__5(); +lean_mark_persistent(l_Leanpkg_materialize___closed__5); +l_Leanpkg_materialize___closed__6 = _init_l_Leanpkg_materialize___closed__6(); +lean_mark_persistent(l_Leanpkg_materialize___closed__6); +l_Leanpkg_materialize___closed__7 = _init_l_Leanpkg_materialize___closed__7(); +lean_mark_persistent(l_Leanpkg_materialize___closed__7); +l_Leanpkg_materialize___closed__8 = _init_l_Leanpkg_materialize___closed__8(); +lean_mark_persistent(l_Leanpkg_materialize___closed__8); +l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1 = _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__1); +l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2 = _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__2); +l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3 = _init_l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at_Leanpkg_solveDepsCore___spec__3___closed__3); +l_Leanpkg_solveDepsCore___closed__1 = _init_l_Leanpkg_solveDepsCore___closed__1(); +lean_mark_persistent(l_Leanpkg_solveDepsCore___closed__1); +l_Leanpkg_solveDepsCore___closed__2 = _init_l_Leanpkg_solveDepsCore___closed__2(); +lean_mark_persistent(l_Leanpkg_solveDepsCore___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Leanpkg/Toml.c b/stage0/stdlib/Leanpkg/Toml.c new file mode 100644 index 0000000000..5bf270a754 --- /dev/null +++ b/stage0/stdlib/Leanpkg/Toml.c @@ -0,0 +1,3196 @@ +// Lean compiler output +// Module: Leanpkg.Toml +// Imports: Init Lean.Parser +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Toml_file_x27; +extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_List_lookup___at_Toml_Value_lookup___spec__1(lean_object*, lean_object*); +lean_object* l_Toml_fileCat_quot___closed__8; +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); +lean_object* l_Toml_keyVal___closed__1; +lean_object* l_Toml_ofSyntax_match__3(lean_object*); +lean_object* l_Toml_parse(lean_object*, lean_object*); +lean_object* l_Toml_ofSyntax___lambda__1(lean_object*, lean_object*); +extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; +lean_object* l_Toml_valTrue___closed__4; +extern lean_object* l_String_instInhabitedString; +lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*); +lean_object* l_Lean_Parser_mkParserContext(lean_object*, lean_object*); +lean_object* l_Toml_keyVal___closed__4; +lean_object* l_Toml_ofSyntax_toKey___closed__3; +lean_object* l_Toml_inlineTable; +lean_object* l_Toml_table___closed__4; +lean_object* l_Toml_keyVal___closed__2; +lean_object* l_Toml_key___closed__1; +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Toml_table___closed__2; +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Toml_val_quot___closed__6; +lean_object* l_Toml_fileCat_quot___closed__4; +lean_object* l_Toml_fileCat_quot; +lean_object* l_Toml_keyCat_quot___closed__5; +lean_object* l_Toml_keyCat_quot___closed__3; +lean_object* l_Toml_fileCat_quot___closed__2; +lean_object* l_Toml_ofSyntax_toTable___boxed(lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Toml_inlineTable___closed__1; +lean_object* l_Toml_ofSyntax___closed__2; +extern lean_object* l_Lean_identKind___closed__2; +lean_object* l_Toml_ofSyntax___closed__1; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4(size_t, size_t, lean_object*); +lean_object* l_Toml_inlineTable___closed__2; +lean_object* l_Toml_file___closed__4; +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_val_quot; +extern lean_object* l_Array_empty___closed__1; +extern lean_object* l_Lean_Parser_parserExtension; +lean_object* l_Toml_table___closed__1; +lean_object* l_Toml_ofSyntax_toTable(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); +lean_object* l_Toml_ofSyntax___closed__4; +extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Lean_Parser_mkParserState(lean_object*); +lean_object* l_Toml_keyVal___closed__5; +extern lean_object* l_instInhabitedNat; +lean_object* l_Toml_bareKey___closed__1; +lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); +lean_object* l_Toml_ofSyntax_match__2___rarg(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_1202____closed__6; +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +extern lean_object* l_Array_getEvenElems___rarg___closed__1; +lean_object* l_Toml_parse___closed__4; +lean_object* l_Toml_keyCat_quot___closed__7; +lean_object* l_Toml_valTrue___closed__1; +lean_object* l_Toml_valTrue___closed__2; +lean_object* l_Toml_val____2___closed__3; +lean_object* l_Toml_val_quot___closed__5; +lean_object* l_List_lookup___at_Toml_Value_lookup___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Toml_valFalse; +lean_object* l_Toml_Value_lookup_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Toml_val____2; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3(size_t, size_t, lean_object*); +lean_object* l_Toml_instInhabitedValue; +lean_object* l_Toml_ofSyntax___closed__5; +lean_object* l_Toml_val_quot___closed__3; +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Toml_parse___closed__1; +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at_Lean_Parser_ParserState_hasError___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); +lean_object* l_Toml_inlineTable___closed__3; +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Parser_isParserCategory___spec__1(lean_object*, lean_object*); +lean_object* l_Toml_keyCat_quot; +lean_object* l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_ofSyntax_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Toml_val__; +lean_object* l_Toml_inlineTable___closed__5; +lean_object* l_Toml_ofSyntax___closed__3; +lean_object* l_Toml_keyVal___closed__3; +lean_object* l_Toml_val_____closed__3; +extern lean_object* l_term___x3d_____closed__4; +lean_object* l_Toml_Value_lookup(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +extern lean_object* l_term_x5b___x5d___closed__10; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Toml_table___closed__6; +lean_object* l_Toml_parse___closed__2; +lean_object* l_Toml_valFalse___closed__3; +lean_object* l_Toml_val_quot___closed__7; +lean_object* l_Toml_ofSyntax(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_numLitKind; +lean_object* l_ReaderT_bind___at_Lean_Unhygienic_instMonadQuotationUnhygienic___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_key___closed__2; +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Toml_table; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_990____closed__4; +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Toml_file___closed__3; +lean_object* l_Toml_ofSyntax_match__3___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_prec_x28___x29___closed__8; +lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); +lean_object* l_Toml_key___closed__3; +lean_object* l_Toml_inlineTable___closed__7; +lean_object* l_Toml_ofSyntax_match__6___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_strLitKind___closed__2; +lean_object* l_Toml_ofSyntax_toKey(lean_object*); +lean_object* l_Toml_key_x27; +lean_object* l_Toml_fileCat_quot___closed__1; +lean_object* l_Lean_Syntax_getId(lean_object*); +extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_261____closed__22; +lean_object* l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_to_list(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_ParserState_mkEOIError___closed__1; +extern lean_object* l_Lean_numLitKind___closed__2; +lean_object* l_Toml_instInhabitedValue___closed__1; +lean_object* l_Toml_ofSyntax_match__2(lean_object*); +lean_object* l_Toml_val____1___closed__1; +lean_object* l_Toml_keyCat_quot___closed__1; +lean_object* l_Toml_val_____closed__4; +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_whitespace(lean_object*, lean_object*); +lean_object* l_Toml_val____1___closed__2; +lean_object* l_Toml_ofSyntax_match__5___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; +lean_object* l_Toml_keyCat_quot___closed__2; +extern lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__1; +lean_object* l_Toml_file; +extern lean_object* l_termDepIfThenElse___closed__9; +size_t lean_usize_of_nat(lean_object*); +lean_object* l_Toml_ofSyntax_match__6(lean_object*); +extern lean_object* l_Lean_Level_PP_Result_quote___closed__1; +lean_object* l_Toml_valTrue___closed__7; +lean_object* l_Toml_table___closed__7; +extern lean_object* l_rawNatLit___closed__7; +extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l_Toml_valFalse___closed__4; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_1202____closed__7; +lean_object* l_Lean_Parser_compileParserDescr_visit(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_val_____closed__2; +lean_object* lean_import_modules(lean_object*, lean_object*, uint32_t, lean_object*); +lean_object* l_Toml_parse___closed__5; +extern lean_object* l_Option_get_x21___rarg___closed__4; +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_Toml_fileCat_quot___closed__3; +lean_object* l_Toml_parse___closed__3; +lean_object* l_Toml_table___closed__3; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10(size_t, size_t, lean_object*); +lean_object* l_Toml_val____1; +lean_object* l_Toml_bareKey___closed__2; +lean_object* l_Toml_ofSyntax_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Toml_valFalse___closed__5; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_inlineTable___closed__6; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Toml_fileCat_quot___closed__7; +lean_object* l_Toml_table___closed__5; +lean_object* l_Toml_Value_lookup_match__1(lean_object*); +lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l_Toml_ofSyntax_toKey___closed__1; +lean_object* l_Toml_ofSyntax___lambda__2(lean_object*, lean_object*); +lean_object* l_Toml_valTrue; +lean_object* l_Toml_ofSyntax_toKey___closed__2; +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Toml_ofSyntax_match__4(lean_object*); +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__1(lean_object*, lean_object*); +extern lean_object* l_term_x5b___x5d___closed__6; +lean_object* l_Toml_val_____closed__1; +lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x5b___x5d___closed__4; +lean_object* l_Toml_bareKey___closed__3; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8(size_t, size_t, lean_object*); +lean_object* l_Toml_ofSyntax_match__5(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9(size_t, size_t, lean_object*); +lean_object* l_Toml_valTrue___closed__6; +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_ParserState_toErrorMsg(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l_Toml_key; +lean_object* l_Toml_Value_lookup___boxed(lean_object*, lean_object*); +lean_object* l_Toml_valFalse___closed__2; +lean_object* l_Toml_inlineTable___closed__4; +lean_object* l_Toml_valFalse___closed__1; +lean_object* l_Toml_file___closed__1; +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Toml_val_quot___closed__8; +lean_object* l_Toml_file___closed__2; +lean_object* l_Toml_fileCat_quot___closed__5; +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__6(lean_object*, lean_object*); +lean_object* l_Toml_val____2___closed__1; +lean_object* l_Toml_bareKey; +lean_object* l_Toml_ofSyntax_match__1(lean_object*); +lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_val_quot___closed__4; +lean_object* l_Toml_fileCat_quot___closed__6; +lean_object* l_Toml_inlineTable___closed__8; +lean_object* l_Toml_valTrue___closed__3; +uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); +lean_object* l_Toml_val_quot___closed__2; +lean_object* l_Toml_valTrue___closed__5; +lean_object* l_Toml_keyCat_quot___closed__6; +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Toml_keyVal; +lean_object* l_Toml_val____2___closed__2; +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); +extern lean_object* l_addParenHeuristic___closed__1; +lean_object* l_Toml_keyCat_quot___closed__4; +lean_object* l_Toml_val_quot___closed__1; +lean_object* l_Toml_ofSyntax___closed__6; +extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__8; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l_Toml_keyCat_quot___closed__8; +lean_object* l_Toml_key___closed__4; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Toml_val____1___closed__3; +static lean_object* _init_l_Toml_instInhabitedValue___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_instInhabitedParserDescr___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_instInhabitedValue() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_instInhabitedValue___closed__1; +return x_1; +} +} +lean_object* l_Toml_Value_lookup_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_3, x_5, x_2); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_apply_2(x_4, x_1, x_2); +return x_7; +} +} +} +lean_object* l_Toml_Value_lookup_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_Value_lookup_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_List_lookup___at_Toml_Value_lookup___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = lean_string_dec_eq(x_1, x_6); +if (x_8 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_10; +lean_inc(x_7); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_7); +return x_10; +} +} +} +} +lean_object* l_Toml_Value_lookup(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_List_lookup___at_Toml_Value_lookup___spec__1(x_2, x_3); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +} +} +lean_object* l_List_lookup___at_Toml_Value_lookup___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_List_lookup___at_Toml_Value_lookup___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Toml_Value_lookup___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Toml_Value_lookup(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +static lean_object* _init_l_Toml_val_quot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`(val|"); +return x_1; +} +} +static lean_object* _init_l_Toml_val_quot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_val_quot___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_val_quot___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("val"); +return x_1; +} +} +static lean_object* _init_l_Toml_val_quot___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_val_quot___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_val_quot___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_val_quot___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(7, 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_Toml_val_quot___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_val_quot___closed__5; +x_3 = l_prec_x28___x29___closed__8; +x_4 = lean_alloc_ctor(2, 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_Toml_val_quot___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_val_quot___closed__2; +x_3 = l_Toml_val_quot___closed__6; +x_4 = lean_alloc_ctor(2, 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_Toml_val_quot___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Toml_val_quot___closed__7; +x_4 = lean_alloc_ctor(3, 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_Toml_val_quot() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_val_quot___closed__8; +return x_1; +} +} +static lean_object* _init_l_Toml_valTrue___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Toml"); +return x_1; +} +} +static lean_object* _init_l_Toml_valTrue___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_valTrue___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_valTrue___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("valTrue"); +return x_1; +} +} +static lean_object* _init_l_Toml_valTrue___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_valTrue___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_valTrue___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("True"); +return x_1; +} +} +static lean_object* _init_l_Toml_valTrue___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_valTrue___closed__5; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_valTrue___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_valTrue___closed__4; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Toml_valTrue___closed__6; +x_4 = lean_alloc_ctor(3, 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_Toml_valTrue() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_valTrue___closed__7; +return x_1; +} +} +static lean_object* _init_l_Toml_valFalse___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("valFalse"); +return x_1; +} +} +static lean_object* _init_l_Toml_valFalse___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_valFalse___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_valFalse___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("False"); +return x_1; +} +} +static lean_object* _init_l_Toml_valFalse___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_valFalse___closed__3; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_valFalse___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_valFalse___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Toml_valFalse___closed__4; +x_4 = lean_alloc_ctor(3, 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_Toml_valFalse() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_valFalse___closed__5; +return x_1; +} +} +static lean_object* _init_l_Toml_val_____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("val_"); +return x_1; +} +} +static lean_object* _init_l_Toml_val_____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_val_____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_val_____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_866____closed__8; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_val_____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_val_____closed__2; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l_Toml_val_____closed__3; +x_4 = lean_alloc_ctor(3, 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_Toml_val__() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_val_____closed__4; +return x_1; +} +} +static lean_object* _init_l_Toml_val____1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("val__1"); +return x_1; +} +} +static lean_object* _init_l_Toml_val____1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_val____1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_val____1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_val____1___closed__2; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l_rawNatLit___closed__7; +x_4 = lean_alloc_ctor(3, 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_Toml_val____1() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_val____1___closed__3; +return x_1; +} +} +static lean_object* _init_l_Toml_bareKey___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("bareKey"); +return x_1; +} +} +static lean_object* _init_l_Toml_bareKey___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_bareKey___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_bareKey___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_bareKey___closed__1; +x_2 = l_Toml_bareKey___closed__2; +x_3 = l_termDepIfThenElse___closed__9; +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_Toml_bareKey() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_bareKey___closed__3; +return x_1; +} +} +static lean_object* _init_l_Toml_key___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("key"); +return x_1; +} +} +static lean_object* _init_l_Toml_key___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_key___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_key___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_myMacro____x40_Init_Notation___hyg_1202____closed__6; +x_2 = l_Toml_bareKey; +x_3 = l_Toml_val_____closed__3; +x_4 = lean_alloc_ctor(2, 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_Toml_key___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_key___closed__1; +x_2 = l_Toml_key___closed__2; +x_3 = l_Toml_key___closed__3; +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_Toml_key() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_key___closed__4; +return x_1; +} +} +static lean_object* _init_l_Toml_keyCat_quot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`(keyCat|"); +return x_1; +} +} +static lean_object* _init_l_Toml_keyCat_quot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_keyCat_quot___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_keyCat_quot___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("keyCat"); +return x_1; +} +} +static lean_object* _init_l_Toml_keyCat_quot___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_keyCat_quot___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_keyCat_quot___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_keyCat_quot___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(7, 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_Toml_keyCat_quot___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_keyCat_quot___closed__5; +x_3 = l_prec_x28___x29___closed__8; +x_4 = lean_alloc_ctor(2, 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_Toml_keyCat_quot___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_keyCat_quot___closed__2; +x_3 = l_Toml_keyCat_quot___closed__6; +x_4 = lean_alloc_ctor(2, 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_Toml_keyCat_quot___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Toml_keyCat_quot___closed__7; +x_4 = lean_alloc_ctor(3, 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_Toml_keyCat_quot() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_keyCat_quot___closed__8; +return x_1; +} +} +static lean_object* _init_l_Toml_key_x27() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_key; +return x_1; +} +} +static lean_object* _init_l_Toml_keyVal___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("keyVal"); +return x_1; +} +} +static lean_object* _init_l_Toml_keyVal___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_keyVal___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_keyVal___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_key; +x_3 = l_term___x3d_____closed__4; +x_4 = lean_alloc_ctor(2, 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_Toml_keyVal___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_keyVal___closed__3; +x_3 = l_Toml_val_quot___closed__5; +x_4 = lean_alloc_ctor(2, 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_Toml_keyVal___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_keyVal___closed__1; +x_2 = l_Toml_keyVal___closed__2; +x_3 = l_Toml_keyVal___closed__4; +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_Toml_keyVal() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_keyVal___closed__5; +return x_1; +} +} +static lean_object* _init_l_Toml_table___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("table"); +return x_1; +} +} +static lean_object* _init_l_Toml_table___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_table___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_table___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_term_x5b___x5d___closed__4; +x_3 = l_Toml_key; +x_4 = lean_alloc_ctor(2, 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_Toml_table___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_table___closed__3; +x_3 = l_term_x5b___x5d___closed__10; +x_4 = lean_alloc_ctor(2, 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_Toml_table___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_990____closed__4; +x_2 = l_Toml_keyVal; +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_Toml_table___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_table___closed__4; +x_3 = l_Toml_table___closed__5; +x_4 = lean_alloc_ctor(2, 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_Toml_table___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_table___closed__1; +x_2 = l_Toml_table___closed__2; +x_3 = l_Toml_table___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_Toml_table() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_table___closed__7; +return x_1; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("inlineTable"); +return x_1; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_inlineTable___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_addParenHeuristic___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_1 = l_Toml_keyVal; +x_2 = l_myMacro____x40_Init_Notation___hyg_1202____closed__7; +x_3 = l_term_x5b___x5d___closed__6; +x_4 = 0; +x_5 = lean_alloc_ctor(10, 3, 1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); +return x_5; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_inlineTable___closed__3; +x_3 = l_Toml_inlineTable___closed__4; +x_4 = lean_alloc_ctor(2, 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_Toml_inlineTable___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_261____closed__22; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_inlineTable___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_inlineTable___closed__5; +x_3 = l_Toml_inlineTable___closed__6; +x_4 = lean_alloc_ctor(2, 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_Toml_inlineTable___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_inlineTable___closed__1; +x_2 = l_Toml_inlineTable___closed__2; +x_3 = l_Toml_inlineTable___closed__7; +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_Toml_inlineTable() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_inlineTable___closed__8; +return x_1; +} +} +static lean_object* _init_l_Toml_val____2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("val__2"); +return x_1; +} +} +static lean_object* _init_l_Toml_val____2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_val____2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_val____2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_val____2___closed__2; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l_Toml_inlineTable; +x_4 = lean_alloc_ctor(3, 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_Toml_val____2() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_val____2___closed__3; +return x_1; +} +} +static lean_object* _init_l_Toml_file___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("file"); +return x_1; +} +} +static lean_object* _init_l_Toml_file___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_valTrue___closed__2; +x_2 = l_Toml_file___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_file___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_990____closed__4; +x_2 = l_Toml_table; +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_Toml_file___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Toml_file___closed__1; +x_2 = l_Toml_file___closed__2; +x_3 = l_Toml_file___closed__3; +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_Toml_file() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_file___closed__4; +return x_1; +} +} +static lean_object* _init_l_Toml_fileCat_quot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`(fileCat|"); +return x_1; +} +} +static lean_object* _init_l_Toml_fileCat_quot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_fileCat_quot___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_fileCat_quot___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("fileCat"); +return x_1; +} +} +static lean_object* _init_l_Toml_fileCat_quot___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_fileCat_quot___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_fileCat_quot___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_fileCat_quot___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(7, 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_Toml_fileCat_quot___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_fileCat_quot___closed__5; +x_3 = l_prec_x28___x29___closed__8; +x_4 = lean_alloc_ctor(2, 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_Toml_fileCat_quot___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Toml_fileCat_quot___closed__2; +x_3 = l_Toml_fileCat_quot___closed__6; +x_4 = lean_alloc_ctor(2, 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_Toml_fileCat_quot___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Toml_fileCat_quot___closed__7; +x_4 = lean_alloc_ctor(3, 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_Toml_fileCat_quot() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_fileCat_quot___closed__8; +return x_1; +} +} +static lean_object* _init_l_Toml_file_x27() { +_start: +{ +lean_object* x_1; +x_1 = l_Toml_file; +return x_1; +} +} +lean_object* l_Toml_ofSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Toml_ofSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Toml_ofSyntax_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Toml_ofSyntax_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Toml_ofSyntax_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Toml_ofSyntax_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Toml_ofSyntax_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Toml_ofSyntax_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Toml_ofSyntax_match__5___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Toml_ofSyntax_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__5___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Toml_ofSyntax_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Toml_ofSyntax_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax_match__6___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Toml_ofSyntax_toKey___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Leanpkg.Toml"); +return x_1; +} +} +static lean_object* _init_l_Toml_ofSyntax_toKey___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Toml.ofSyntax.toKey"); +return x_1; +} +} +static lean_object* _init_l_Toml_ofSyntax_toKey___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Toml_ofSyntax_toKey___closed__1; +x_2 = l_Toml_ofSyntax_toKey___closed__2; +x_3 = lean_unsigned_to_nat(51u); +x_4 = lean_unsigned_to_nat(33u); +x_5 = l_Lean_Syntax_strLitToAtom___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Toml_ofSyntax_toKey(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Toml_key___closed__2; +lean_inc(x_1); +x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_1); +x_4 = l_String_instInhabitedString; +x_5 = l_Toml_ofSyntax_toKey___closed__3; +x_6 = lean_panic_fn(x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Lean_Syntax_getArg(x_1, x_7); +lean_dec(x_1); +x_9 = l_Toml_bareKey___closed__2; +lean_inc(x_8); +x_10 = l_Lean_Syntax_isOfKind(x_8, x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_strLitKind___closed__2; +lean_inc(x_8); +x_12 = l_Lean_Syntax_isOfKind(x_8, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +x_13 = l_String_instInhabitedString; +x_14 = l_Toml_ofSyntax_toKey___closed__3; +x_15 = lean_panic_fn(x_13, x_14); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = l_Lean_Syntax_isStrLit_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = l_String_instInhabitedString; +x_18 = l_Option_get_x21___rarg___closed__4; +x_19 = lean_panic_fn(x_17, x_18); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +return x_20; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = l_Lean_Syntax_getArg(x_8, x_7); +lean_dec(x_8); +x_22 = l_Lean_identKind___closed__2; +lean_inc(x_21); +x_23 = l_Lean_Syntax_isOfKind(x_21, x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_21); +x_24 = l_String_instInhabitedString; +x_25 = l_Toml_ofSyntax_toKey___closed__3; +x_26 = lean_panic_fn(x_24, x_25); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = l_Lean_Syntax_getId(x_21); +lean_dec(x_21); +x_28 = l_Lean_Name_toString___closed__1; +x_29 = l_Lean_Name_toStringWithSep(x_28, x_27); +return x_29; +} +} +} +} +} +lean_object* l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_dec(x_3); +return x_4; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_1, x_3); +x_8 = lean_array_get_size(x_2); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_7); +lean_dec(x_3); +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_13 = l_Toml_ofSyntax_toKey(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +x_15 = lean_array_push(x_4, x_14); +x_3 = x_12; +x_4 = x_15; +goto _start; +} +} +} +} +lean_object* l_Toml_ofSyntax_toTable(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Array_empty___closed__1; +x_5 = l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1(x_1, x_2, x_3, x_4); +x_6 = lean_array_to_list(lean_box(0), x_5); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +lean_object* l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_zipWithAux___at_Toml_ofSyntax_toTable___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Toml_ofSyntax_toTable___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Toml_ofSyntax_toTable(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_3, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_3, x_11); +lean_dec(x_3); +x_13 = lean_array_fget(x_1, x_4); +lean_inc(x_2); +x_14 = lean_apply_1(x_2, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_18 = lean_array_push(x_5, x_16); +x_3 = x_12; +x_4 = x_17; +x_5 = x_18; +goto _start; +} +} +else +{ +lean_object* x_20; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_5); +return x_20; +} +} +} +} +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_empty___closed__1; +x_6 = l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_myMacro____x40_Init_Notation___hyg_1202____closed__7; +x_14 = l_Lean_Syntax_SepArray_ofElems(x_13, x_12); +lean_dec(x_12); +x_15 = x_14; +x_16 = lean_array_uset(x_8, x_2, x_15); +x_2 = x_11; +x_3 = x_16; +goto _start; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +x_13 = x_12; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_11; +x_3 = x_14; +goto _start; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_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; +x_7 = l_Toml_inlineTable___closed__1; +x_8 = lean_name_mk_string(x_1, x_7); +x_9 = l_addParenHeuristic___closed__1; +lean_inc(x_4); +x_10 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Array_empty___closed__1; +x_12 = lean_array_push(x_11, x_10); +x_13 = l_Array_appendCore___rarg(x_11, x_2); +x_14 = l_Lean_nullKind___closed__2; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_array_push(x_12, x_15); +x_17 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_261____closed__22; +x_18 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_18, 0, x_4); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_array_push(x_16, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_array_push(x_11, x_20); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_3); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_6); +return x_23; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 < x_3; +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = x_5; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; +x_8 = lean_array_uget(x_5, x_4); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_array_uset(x_5, x_4, x_9); +x_11 = x_8; +lean_inc(x_2); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1___boxed), 6, 3); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_11); +lean_closure_set(x_12, 2, x_2); +x_13 = l_Lean_Level_PP_Result_quote___closed__1; +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Unhygienic_instMonadQuotationUnhygienic___spec__2___rarg), 4, 2); +lean_closure_set(x_14, 0, x_13); +lean_closure_set(x_14, 1, x_12); +x_15 = l_Lean_Unhygienic_run___rarg(x_14); +x_16 = l_Toml_ofSyntax(x_15); +x_17 = 1; +x_18 = x_4 + x_17; +x_19 = x_16; +x_20 = lean_array_uset(x_10, x_4, x_19); +x_4 = x_18; +x_5 = x_20; +goto _start; +} +} +} +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_3, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_3, x_11); +lean_dec(x_3); +x_13 = lean_array_fget(x_1, x_4); +lean_inc(x_2); +x_14 = lean_apply_1(x_2, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_18 = lean_array_push(x_5, x_16); +x_3 = x_12; +x_4 = x_17; +x_5 = x_18; +goto _start; +} +} +else +{ +lean_object* x_20; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_5); +return x_20; +} +} +} +} +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_empty___closed__1; +x_6 = l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = x_12; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_11; +x_3 = x_14; +goto _start; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +x_13 = x_12; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_11; +x_3 = x_14; +goto _start; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = l_Toml_ofSyntax(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +} +} +lean_object* l_Toml_ofSyntax___lambda__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_Toml_table___closed__1; +x_4 = lean_name_mk_string(x_1, x_3); +lean_inc(x_2); +x_5 = l_Lean_Syntax_isOfKind(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_unsigned_to_nat(1u); +x_8 = l_Lean_Syntax_getArg(x_2, x_7); +x_9 = lean_unsigned_to_nat(3u); +x_10 = l_Lean_Syntax_getArg(x_2, x_9); +lean_dec(x_2); +x_11 = l_Lean_Syntax_getArgs(x_10); +lean_dec(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +} +lean_object* l_Toml_ofSyntax___lambda__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Toml_keyVal___closed__1; +lean_inc(x_1); +x_4 = lean_name_mk_string(x_1, x_3); +lean_inc(x_2); +x_5 = l_Lean_Syntax_isOfKind(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Lean_Syntax_getArg(x_2, x_7); +x_9 = l_Toml_key___closed__1; +x_10 = lean_name_mk_string(x_1, x_9); +lean_inc(x_8); +x_11 = l_Lean_Syntax_isOfKind(x_8, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +lean_dec(x_2); +x_12 = lean_box(0); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_unsigned_to_nat(2u); +x_14 = l_Lean_Syntax_getArg(x_2, x_13); +lean_dec(x_2); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Toml.ofSyntax"); +return x_1; +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Toml_ofSyntax_toKey___closed__1; +x_2 = l_Toml_ofSyntax___closed__1; +x_3 = lean_unsigned_to_nat(46u); +x_4 = lean_unsigned_to_nat(11u); +x_5 = l_Lean_Syntax_strLitToAtom___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_valTrue___closed__2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax___lambda__1), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Toml_valTrue___closed__2; +x_2 = lean_alloc_closure((void*)(l_Toml_ofSyntax___lambda__2), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__5() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(2, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Toml_ofSyntax___closed__6() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(2, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Toml_ofSyntax(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Toml_valTrue___closed__4; +lean_inc(x_1); +x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); +if (x_3 == 0) +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Toml_valFalse___closed__2; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Toml_val_____closed__2; +lean_inc(x_1); +x_7 = l_Lean_Syntax_isOfKind(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Toml_val____1___closed__2; +lean_inc(x_1); +x_9 = l_Lean_Syntax_isOfKind(x_1, x_8); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = l_Toml_val____2___closed__2; +lean_inc(x_1); +x_11 = l_Lean_Syntax_isOfKind(x_1, x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = l_Toml_file___closed__2; +lean_inc(x_1); +x_13 = l_Lean_Syntax_isOfKind(x_1, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = l_Toml_instInhabitedValue; +x_15 = l_Toml_ofSyntax___closed__2; +x_16 = lean_panic_fn(x_14, x_15); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_Syntax_getArg(x_1, x_17); +lean_dec(x_1); +x_19 = l_Lean_Syntax_getArgs(x_18); +lean_dec(x_18); +x_20 = l_Toml_ofSyntax___closed__3; +x_21 = l_Array_sequenceMap___at_Toml_ofSyntax___spec__1(x_19, x_20); +lean_dec(x_19); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = l_Toml_instInhabitedValue; +x_23 = l_Toml_ofSyntax___closed__2; +x_24 = lean_panic_fn(x_22, x_23); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; size_t x_27; size_t 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; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_array_get_size(x_25); +x_27 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_28 = 0; +x_29 = x_25; +lean_inc(x_29); +x_30 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3(x_27, x_28, x_29); +x_31 = x_30; +x_32 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4(x_27, x_28, x_29); +x_33 = x_32; +x_34 = lean_array_get_size(x_31); +x_35 = lean_usize_of_nat(x_34); +lean_dec(x_34); +x_36 = x_31; +x_37 = l_Toml_valTrue___closed__2; +x_38 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5(x_37, x_10, x_35, x_28, x_36); +x_39 = x_38; +x_40 = l_Toml_ofSyntax_toTable(x_33, x_39); +lean_dec(x_39); +lean_dec(x_33); +return x_40; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_unsigned_to_nat(0u); +x_42 = l_Lean_Syntax_getArg(x_1, x_41); +lean_dec(x_1); +x_43 = l_Toml_inlineTable___closed__2; +lean_inc(x_42); +x_44 = l_Lean_Syntax_isOfKind(x_42, x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_42); +x_45 = l_Toml_instInhabitedValue; +x_46 = l_Toml_ofSyntax___closed__2; +x_47 = lean_panic_fn(x_45, x_46); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; +x_48 = lean_unsigned_to_nat(1u); +x_49 = l_Lean_Syntax_getArg(x_42, x_48); +lean_dec(x_42); +x_50 = l_Lean_Syntax_getArgs(x_49); +lean_dec(x_49); +x_51 = lean_array_get_size(x_50); +x_52 = lean_nat_dec_lt(x_41, x_51); +if (x_52 == 0) +{ +lean_object* x_75; +lean_dec(x_51); +lean_dec(x_50); +x_75 = l_Array_empty___closed__1; +x_53 = x_75; +goto block_74; +} +else +{ +uint8_t x_76; +x_76 = lean_nat_dec_le(x_51, x_51); +if (x_76 == 0) +{ +lean_object* x_77; +lean_dec(x_51); +lean_dec(x_50); +x_77 = l_Array_empty___closed__1; +x_53 = x_77; +goto block_74; +} +else +{ +size_t x_78; size_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = 0; +x_79 = lean_usize_of_nat(x_51); +lean_dec(x_51); +x_80 = l_Array_getEvenElems___rarg___closed__1; +x_81 = l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(x_50, x_78, x_79, x_80); +lean_dec(x_50); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); +x_53 = x_82; +goto block_74; +} +} +block_74: +{ +lean_object* x_54; lean_object* x_55; +x_54 = l_Toml_ofSyntax___closed__4; +x_55 = l_Array_sequenceMap___at_Toml_ofSyntax___spec__6(x_53, x_54); +lean_dec(x_53); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = l_Toml_instInhabitedValue; +x_57 = l_Toml_ofSyntax___closed__2; +x_58 = lean_panic_fn(x_56, x_57); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; size_t x_61; size_t 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; size_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_59 = lean_ctor_get(x_55, 0); +lean_inc(x_59); +lean_dec(x_55); +x_60 = lean_array_get_size(x_59); +x_61 = lean_usize_of_nat(x_60); +lean_dec(x_60); +x_62 = 0; +x_63 = x_59; +lean_inc(x_63); +x_64 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8(x_61, x_62, x_63); +x_65 = x_64; +x_66 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9(x_61, x_62, x_63); +x_67 = x_66; +x_68 = lean_array_get_size(x_65); +x_69 = lean_usize_of_nat(x_68); +lean_dec(x_68); +x_70 = x_65; +x_71 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10(x_69, x_62, x_70); +x_72 = x_71; +x_73 = l_Toml_ofSyntax_toTable(x_67, x_72); +lean_dec(x_72); +lean_dec(x_67); +return x_73; +} +} +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_unsigned_to_nat(0u); +x_84 = l_Lean_Syntax_getArg(x_1, x_83); +lean_dec(x_1); +x_85 = l_Lean_numLitKind___closed__2; +lean_inc(x_84); +x_86 = l_Lean_Syntax_isOfKind(x_84, x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_84); +x_87 = l_Toml_instInhabitedValue; +x_88 = l_Toml_ofSyntax___closed__2; +x_89 = lean_panic_fn(x_87, x_88); +return x_89; +} +else +{ +lean_object* x_90; lean_object* x_91; +x_90 = l_Lean_numLitKind; +x_91 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_90, x_84); +lean_dec(x_84); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = l_instInhabitedNat; +x_93 = l_Option_get_x21___rarg___closed__4; +x_94 = lean_panic_fn(x_92, x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_91, 0); +lean_inc(x_96); +lean_dec(x_91); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_96); +return x_97; +} +} +} +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = lean_unsigned_to_nat(0u); +x_99 = l_Lean_Syntax_getArg(x_1, x_98); +lean_dec(x_1); +x_100 = l_Lean_strLitKind___closed__2; +lean_inc(x_99); +x_101 = l_Lean_Syntax_isOfKind(x_99, x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_99); +x_102 = l_Toml_instInhabitedValue; +x_103 = l_Toml_ofSyntax___closed__2; +x_104 = lean_panic_fn(x_102, x_103); +return x_104; +} +else +{ +lean_object* x_105; +x_105 = l_Lean_Syntax_isStrLit_x3f(x_99); +lean_dec(x_99); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_106 = l_String_instInhabitedString; +x_107 = l_Option_get_x21___rarg___closed__4; +x_108 = lean_panic_fn(x_106, x_107); +x_109 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_109, 0, x_108); +return x_109; +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_105, 0); +lean_inc(x_110); +lean_dec(x_105); +x_111 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_111, 0, x_110); +return x_111; +} +} +} +} +else +{ +lean_object* x_112; +lean_dec(x_1); +x_112 = l_Toml_ofSyntax___closed__5; +return x_112; +} +} +else +{ +lean_object* x_113; +lean_dec(x_1); +x_113 = l_Toml_ofSyntax___closed__6; +return x_113; +} +} +} +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Array_sequenceMap___at_Toml_ofSyntax___spec__1(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__3(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__4(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__5(x_1, x_2, x_6, x_7, x_5); +return x_8; +} +} +lean_object* l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_sequenceMap_loop___at_Toml_ofSyntax___spec__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_sequenceMap___at_Toml_ofSyntax___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Array_sequenceMap___at_Toml_ofSyntax___spec__6(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__8(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__9(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Toml_ofSyntax___spec__10(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Toml_parse___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Leanpkg"); +return x_1; +} +} +static lean_object* _init_l_Toml_parse___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_parse___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_parse___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Toml_parse___closed__2; +x_2 = l_Toml_valTrue___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_parse___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Toml_parse___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Toml_parse___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Toml_parse___closed__4; +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_Toml_parse(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint32_t x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_box(0); +x_4 = 0; +x_5 = l_Toml_parse___closed__5; +x_6 = lean_import_modules(x_5, x_3, x_4, x_2); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Parser_parserExtension; +x_10 = l_Lean_ScopedEnvExtension_getState___at_Lean_Parser_isParserCategory___spec__1(x_9, x_7); +x_11 = lean_ctor_get(x_10, 2); +lean_inc(x_11); +lean_dec(x_10); +lean_inc(x_7); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_3); +x_13 = l_Toml_file; +x_14 = l_Lean_Parser_compileParserDescr_visit(x_11, x_13, x_12, x_8); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +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; uint8_t x_28; +x_16 = lean_ctor_get(x_14, 0); +x_17 = l_Lean_instInhabitedParserDescr___closed__1; +lean_inc(x_1); +x_18 = l_Lean_Parser_mkInputContext(x_1, x_17); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_3); +lean_ctor_set(x_20, 2, x_19); +lean_ctor_set(x_20, 3, x_3); +x_21 = l_Lean_Parser_mkParserContext(x_18, x_20); +x_22 = l_Lean_Parser_mkParserState(x_1); +x_23 = l_Lean_Parser_whitespace(x_21, x_22); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_dec(x_16); +lean_inc(x_21); +x_25 = lean_apply_2(x_24, x_21, x_23); +x_26 = lean_ctor_get(x_25, 3); +lean_inc(x_26); +x_27 = lean_box(0); +x_28 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at_Lean_Parser_ParserState_hasError___spec__1(x_26, x_27); +lean_dec(x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_1); +x_29 = l_Lean_Parser_ParserState_toErrorMsg(x_21, x_25); +x_30 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 0, x_30); +return x_14; +} +else +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +x_32 = lean_string_utf8_at_end(x_1, x_31); +lean_dec(x_31); +lean_dec(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = l_Lean_Parser_ParserState_mkEOIError___closed__1; +x_34 = l_Lean_Parser_ParserState_mkError(x_25, x_33); +x_35 = l_Lean_Parser_ParserState_toErrorMsg(x_21, x_34); +x_36 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 0, x_36); +return x_14; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_21); +x_37 = lean_ctor_get(x_25, 0); +lean_inc(x_37); +lean_dec(x_25); +x_38 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_37); +lean_dec(x_37); +x_39 = l_Toml_ofSyntax(x_38); +lean_ctor_set(x_14, 0, x_39); +return x_14; +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 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; uint8_t x_53; +x_40 = lean_ctor_get(x_14, 0); +x_41 = lean_ctor_get(x_14, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_14); +x_42 = l_Lean_instInhabitedParserDescr___closed__1; +lean_inc(x_1); +x_43 = l_Lean_Parser_mkInputContext(x_1, x_42); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_45, 0, x_7); +lean_ctor_set(x_45, 1, x_3); +lean_ctor_set(x_45, 2, x_44); +lean_ctor_set(x_45, 3, x_3); +x_46 = l_Lean_Parser_mkParserContext(x_43, x_45); +x_47 = l_Lean_Parser_mkParserState(x_1); +x_48 = l_Lean_Parser_whitespace(x_46, x_47); +x_49 = lean_ctor_get(x_40, 1); +lean_inc(x_49); +lean_dec(x_40); +lean_inc(x_46); +x_50 = lean_apply_2(x_49, x_46, x_48); +x_51 = lean_ctor_get(x_50, 3); +lean_inc(x_51); +x_52 = lean_box(0); +x_53 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at_Lean_Parser_ParserState_hasError___spec__1(x_51, x_52); +lean_dec(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_1); +x_54 = l_Lean_Parser_ParserState_toErrorMsg(x_46, x_50); +x_55 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_41); +return x_56; +} +else +{ +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +x_58 = lean_string_utf8_at_end(x_1, x_57); +lean_dec(x_57); +lean_dec(x_1); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = l_Lean_Parser_ParserState_mkEOIError___closed__1; +x_60 = l_Lean_Parser_ParserState_mkError(x_50, x_59); +x_61 = l_Lean_Parser_ParserState_toErrorMsg(x_46, x_60); +x_62 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_41); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_46); +x_64 = lean_ctor_get(x_50, 0); +lean_inc(x_64); +lean_dec(x_50); +x_65 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_64); +lean_dec(x_64); +x_66 = l_Toml_ofSyntax(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_41); +return x_67; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_7); +lean_dec(x_1); +x_68 = !lean_is_exclusive(x_14); +if (x_68 == 0) +{ +return x_14; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_14, 0); +x_70 = lean_ctor_get(x_14, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_14); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +uint8_t x_72; +lean_dec(x_1); +x_72 = !lean_is_exclusive(x_6); +if (x_72 == 0) +{ +return x_6; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_6, 0); +x_74 = lean_ctor_get(x_6, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_6); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Leanpkg_Toml(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Parser(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Toml_instInhabitedValue___closed__1 = _init_l_Toml_instInhabitedValue___closed__1(); +lean_mark_persistent(l_Toml_instInhabitedValue___closed__1); +l_Toml_instInhabitedValue = _init_l_Toml_instInhabitedValue(); +lean_mark_persistent(l_Toml_instInhabitedValue); +l_Toml_val_quot___closed__1 = _init_l_Toml_val_quot___closed__1(); +lean_mark_persistent(l_Toml_val_quot___closed__1); +l_Toml_val_quot___closed__2 = _init_l_Toml_val_quot___closed__2(); +lean_mark_persistent(l_Toml_val_quot___closed__2); +l_Toml_val_quot___closed__3 = _init_l_Toml_val_quot___closed__3(); +lean_mark_persistent(l_Toml_val_quot___closed__3); +l_Toml_val_quot___closed__4 = _init_l_Toml_val_quot___closed__4(); +lean_mark_persistent(l_Toml_val_quot___closed__4); +l_Toml_val_quot___closed__5 = _init_l_Toml_val_quot___closed__5(); +lean_mark_persistent(l_Toml_val_quot___closed__5); +l_Toml_val_quot___closed__6 = _init_l_Toml_val_quot___closed__6(); +lean_mark_persistent(l_Toml_val_quot___closed__6); +l_Toml_val_quot___closed__7 = _init_l_Toml_val_quot___closed__7(); +lean_mark_persistent(l_Toml_val_quot___closed__7); +l_Toml_val_quot___closed__8 = _init_l_Toml_val_quot___closed__8(); +lean_mark_persistent(l_Toml_val_quot___closed__8); +l_Toml_val_quot = _init_l_Toml_val_quot(); +lean_mark_persistent(l_Toml_val_quot); +l_Toml_valTrue___closed__1 = _init_l_Toml_valTrue___closed__1(); +lean_mark_persistent(l_Toml_valTrue___closed__1); +l_Toml_valTrue___closed__2 = _init_l_Toml_valTrue___closed__2(); +lean_mark_persistent(l_Toml_valTrue___closed__2); +l_Toml_valTrue___closed__3 = _init_l_Toml_valTrue___closed__3(); +lean_mark_persistent(l_Toml_valTrue___closed__3); +l_Toml_valTrue___closed__4 = _init_l_Toml_valTrue___closed__4(); +lean_mark_persistent(l_Toml_valTrue___closed__4); +l_Toml_valTrue___closed__5 = _init_l_Toml_valTrue___closed__5(); +lean_mark_persistent(l_Toml_valTrue___closed__5); +l_Toml_valTrue___closed__6 = _init_l_Toml_valTrue___closed__6(); +lean_mark_persistent(l_Toml_valTrue___closed__6); +l_Toml_valTrue___closed__7 = _init_l_Toml_valTrue___closed__7(); +lean_mark_persistent(l_Toml_valTrue___closed__7); +l_Toml_valTrue = _init_l_Toml_valTrue(); +lean_mark_persistent(l_Toml_valTrue); +l_Toml_valFalse___closed__1 = _init_l_Toml_valFalse___closed__1(); +lean_mark_persistent(l_Toml_valFalse___closed__1); +l_Toml_valFalse___closed__2 = _init_l_Toml_valFalse___closed__2(); +lean_mark_persistent(l_Toml_valFalse___closed__2); +l_Toml_valFalse___closed__3 = _init_l_Toml_valFalse___closed__3(); +lean_mark_persistent(l_Toml_valFalse___closed__3); +l_Toml_valFalse___closed__4 = _init_l_Toml_valFalse___closed__4(); +lean_mark_persistent(l_Toml_valFalse___closed__4); +l_Toml_valFalse___closed__5 = _init_l_Toml_valFalse___closed__5(); +lean_mark_persistent(l_Toml_valFalse___closed__5); +l_Toml_valFalse = _init_l_Toml_valFalse(); +lean_mark_persistent(l_Toml_valFalse); +l_Toml_val_____closed__1 = _init_l_Toml_val_____closed__1(); +lean_mark_persistent(l_Toml_val_____closed__1); +l_Toml_val_____closed__2 = _init_l_Toml_val_____closed__2(); +lean_mark_persistent(l_Toml_val_____closed__2); +l_Toml_val_____closed__3 = _init_l_Toml_val_____closed__3(); +lean_mark_persistent(l_Toml_val_____closed__3); +l_Toml_val_____closed__4 = _init_l_Toml_val_____closed__4(); +lean_mark_persistent(l_Toml_val_____closed__4); +l_Toml_val__ = _init_l_Toml_val__(); +lean_mark_persistent(l_Toml_val__); +l_Toml_val____1___closed__1 = _init_l_Toml_val____1___closed__1(); +lean_mark_persistent(l_Toml_val____1___closed__1); +l_Toml_val____1___closed__2 = _init_l_Toml_val____1___closed__2(); +lean_mark_persistent(l_Toml_val____1___closed__2); +l_Toml_val____1___closed__3 = _init_l_Toml_val____1___closed__3(); +lean_mark_persistent(l_Toml_val____1___closed__3); +l_Toml_val____1 = _init_l_Toml_val____1(); +lean_mark_persistent(l_Toml_val____1); +l_Toml_bareKey___closed__1 = _init_l_Toml_bareKey___closed__1(); +lean_mark_persistent(l_Toml_bareKey___closed__1); +l_Toml_bareKey___closed__2 = _init_l_Toml_bareKey___closed__2(); +lean_mark_persistent(l_Toml_bareKey___closed__2); +l_Toml_bareKey___closed__3 = _init_l_Toml_bareKey___closed__3(); +lean_mark_persistent(l_Toml_bareKey___closed__3); +l_Toml_bareKey = _init_l_Toml_bareKey(); +lean_mark_persistent(l_Toml_bareKey); +l_Toml_key___closed__1 = _init_l_Toml_key___closed__1(); +lean_mark_persistent(l_Toml_key___closed__1); +l_Toml_key___closed__2 = _init_l_Toml_key___closed__2(); +lean_mark_persistent(l_Toml_key___closed__2); +l_Toml_key___closed__3 = _init_l_Toml_key___closed__3(); +lean_mark_persistent(l_Toml_key___closed__3); +l_Toml_key___closed__4 = _init_l_Toml_key___closed__4(); +lean_mark_persistent(l_Toml_key___closed__4); +l_Toml_key = _init_l_Toml_key(); +lean_mark_persistent(l_Toml_key); +l_Toml_keyCat_quot___closed__1 = _init_l_Toml_keyCat_quot___closed__1(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__1); +l_Toml_keyCat_quot___closed__2 = _init_l_Toml_keyCat_quot___closed__2(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__2); +l_Toml_keyCat_quot___closed__3 = _init_l_Toml_keyCat_quot___closed__3(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__3); +l_Toml_keyCat_quot___closed__4 = _init_l_Toml_keyCat_quot___closed__4(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__4); +l_Toml_keyCat_quot___closed__5 = _init_l_Toml_keyCat_quot___closed__5(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__5); +l_Toml_keyCat_quot___closed__6 = _init_l_Toml_keyCat_quot___closed__6(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__6); +l_Toml_keyCat_quot___closed__7 = _init_l_Toml_keyCat_quot___closed__7(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__7); +l_Toml_keyCat_quot___closed__8 = _init_l_Toml_keyCat_quot___closed__8(); +lean_mark_persistent(l_Toml_keyCat_quot___closed__8); +l_Toml_keyCat_quot = _init_l_Toml_keyCat_quot(); +lean_mark_persistent(l_Toml_keyCat_quot); +l_Toml_key_x27 = _init_l_Toml_key_x27(); +lean_mark_persistent(l_Toml_key_x27); +l_Toml_keyVal___closed__1 = _init_l_Toml_keyVal___closed__1(); +lean_mark_persistent(l_Toml_keyVal___closed__1); +l_Toml_keyVal___closed__2 = _init_l_Toml_keyVal___closed__2(); +lean_mark_persistent(l_Toml_keyVal___closed__2); +l_Toml_keyVal___closed__3 = _init_l_Toml_keyVal___closed__3(); +lean_mark_persistent(l_Toml_keyVal___closed__3); +l_Toml_keyVal___closed__4 = _init_l_Toml_keyVal___closed__4(); +lean_mark_persistent(l_Toml_keyVal___closed__4); +l_Toml_keyVal___closed__5 = _init_l_Toml_keyVal___closed__5(); +lean_mark_persistent(l_Toml_keyVal___closed__5); +l_Toml_keyVal = _init_l_Toml_keyVal(); +lean_mark_persistent(l_Toml_keyVal); +l_Toml_table___closed__1 = _init_l_Toml_table___closed__1(); +lean_mark_persistent(l_Toml_table___closed__1); +l_Toml_table___closed__2 = _init_l_Toml_table___closed__2(); +lean_mark_persistent(l_Toml_table___closed__2); +l_Toml_table___closed__3 = _init_l_Toml_table___closed__3(); +lean_mark_persistent(l_Toml_table___closed__3); +l_Toml_table___closed__4 = _init_l_Toml_table___closed__4(); +lean_mark_persistent(l_Toml_table___closed__4); +l_Toml_table___closed__5 = _init_l_Toml_table___closed__5(); +lean_mark_persistent(l_Toml_table___closed__5); +l_Toml_table___closed__6 = _init_l_Toml_table___closed__6(); +lean_mark_persistent(l_Toml_table___closed__6); +l_Toml_table___closed__7 = _init_l_Toml_table___closed__7(); +lean_mark_persistent(l_Toml_table___closed__7); +l_Toml_table = _init_l_Toml_table(); +lean_mark_persistent(l_Toml_table); +l_Toml_inlineTable___closed__1 = _init_l_Toml_inlineTable___closed__1(); +lean_mark_persistent(l_Toml_inlineTable___closed__1); +l_Toml_inlineTable___closed__2 = _init_l_Toml_inlineTable___closed__2(); +lean_mark_persistent(l_Toml_inlineTable___closed__2); +l_Toml_inlineTable___closed__3 = _init_l_Toml_inlineTable___closed__3(); +lean_mark_persistent(l_Toml_inlineTable___closed__3); +l_Toml_inlineTable___closed__4 = _init_l_Toml_inlineTable___closed__4(); +lean_mark_persistent(l_Toml_inlineTable___closed__4); +l_Toml_inlineTable___closed__5 = _init_l_Toml_inlineTable___closed__5(); +lean_mark_persistent(l_Toml_inlineTable___closed__5); +l_Toml_inlineTable___closed__6 = _init_l_Toml_inlineTable___closed__6(); +lean_mark_persistent(l_Toml_inlineTable___closed__6); +l_Toml_inlineTable___closed__7 = _init_l_Toml_inlineTable___closed__7(); +lean_mark_persistent(l_Toml_inlineTable___closed__7); +l_Toml_inlineTable___closed__8 = _init_l_Toml_inlineTable___closed__8(); +lean_mark_persistent(l_Toml_inlineTable___closed__8); +l_Toml_inlineTable = _init_l_Toml_inlineTable(); +lean_mark_persistent(l_Toml_inlineTable); +l_Toml_val____2___closed__1 = _init_l_Toml_val____2___closed__1(); +lean_mark_persistent(l_Toml_val____2___closed__1); +l_Toml_val____2___closed__2 = _init_l_Toml_val____2___closed__2(); +lean_mark_persistent(l_Toml_val____2___closed__2); +l_Toml_val____2___closed__3 = _init_l_Toml_val____2___closed__3(); +lean_mark_persistent(l_Toml_val____2___closed__3); +l_Toml_val____2 = _init_l_Toml_val____2(); +lean_mark_persistent(l_Toml_val____2); +l_Toml_file___closed__1 = _init_l_Toml_file___closed__1(); +lean_mark_persistent(l_Toml_file___closed__1); +l_Toml_file___closed__2 = _init_l_Toml_file___closed__2(); +lean_mark_persistent(l_Toml_file___closed__2); +l_Toml_file___closed__3 = _init_l_Toml_file___closed__3(); +lean_mark_persistent(l_Toml_file___closed__3); +l_Toml_file___closed__4 = _init_l_Toml_file___closed__4(); +lean_mark_persistent(l_Toml_file___closed__4); +l_Toml_file = _init_l_Toml_file(); +lean_mark_persistent(l_Toml_file); +l_Toml_fileCat_quot___closed__1 = _init_l_Toml_fileCat_quot___closed__1(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__1); +l_Toml_fileCat_quot___closed__2 = _init_l_Toml_fileCat_quot___closed__2(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__2); +l_Toml_fileCat_quot___closed__3 = _init_l_Toml_fileCat_quot___closed__3(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__3); +l_Toml_fileCat_quot___closed__4 = _init_l_Toml_fileCat_quot___closed__4(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__4); +l_Toml_fileCat_quot___closed__5 = _init_l_Toml_fileCat_quot___closed__5(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__5); +l_Toml_fileCat_quot___closed__6 = _init_l_Toml_fileCat_quot___closed__6(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__6); +l_Toml_fileCat_quot___closed__7 = _init_l_Toml_fileCat_quot___closed__7(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__7); +l_Toml_fileCat_quot___closed__8 = _init_l_Toml_fileCat_quot___closed__8(); +lean_mark_persistent(l_Toml_fileCat_quot___closed__8); +l_Toml_fileCat_quot = _init_l_Toml_fileCat_quot(); +lean_mark_persistent(l_Toml_fileCat_quot); +l_Toml_file_x27 = _init_l_Toml_file_x27(); +lean_mark_persistent(l_Toml_file_x27); +l_Toml_ofSyntax_toKey___closed__1 = _init_l_Toml_ofSyntax_toKey___closed__1(); +lean_mark_persistent(l_Toml_ofSyntax_toKey___closed__1); +l_Toml_ofSyntax_toKey___closed__2 = _init_l_Toml_ofSyntax_toKey___closed__2(); +lean_mark_persistent(l_Toml_ofSyntax_toKey___closed__2); +l_Toml_ofSyntax_toKey___closed__3 = _init_l_Toml_ofSyntax_toKey___closed__3(); +lean_mark_persistent(l_Toml_ofSyntax_toKey___closed__3); +l_Toml_ofSyntax___closed__1 = _init_l_Toml_ofSyntax___closed__1(); +lean_mark_persistent(l_Toml_ofSyntax___closed__1); +l_Toml_ofSyntax___closed__2 = _init_l_Toml_ofSyntax___closed__2(); +lean_mark_persistent(l_Toml_ofSyntax___closed__2); +l_Toml_ofSyntax___closed__3 = _init_l_Toml_ofSyntax___closed__3(); +lean_mark_persistent(l_Toml_ofSyntax___closed__3); +l_Toml_ofSyntax___closed__4 = _init_l_Toml_ofSyntax___closed__4(); +lean_mark_persistent(l_Toml_ofSyntax___closed__4); +l_Toml_ofSyntax___closed__5 = _init_l_Toml_ofSyntax___closed__5(); +lean_mark_persistent(l_Toml_ofSyntax___closed__5); +l_Toml_ofSyntax___closed__6 = _init_l_Toml_ofSyntax___closed__6(); +lean_mark_persistent(l_Toml_ofSyntax___closed__6); +l_Toml_parse___closed__1 = _init_l_Toml_parse___closed__1(); +lean_mark_persistent(l_Toml_parse___closed__1); +l_Toml_parse___closed__2 = _init_l_Toml_parse___closed__2(); +lean_mark_persistent(l_Toml_parse___closed__2); +l_Toml_parse___closed__3 = _init_l_Toml_parse___closed__3(); +lean_mark_persistent(l_Toml_parse___closed__3); +l_Toml_parse___closed__4 = _init_l_Toml_parse___closed__4(); +lean_mark_persistent(l_Toml_parse___closed__4); +l_Toml_parse___closed__5 = _init_l_Toml_parse___closed__5(); +lean_mark_persistent(l_Toml_parse___closed__5); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif