diff --git a/stage0/src/Init/Prelude.lean b/stage0/src/Init/Prelude.lean index b9343f4bdd..9ae195c2ee 100644 --- a/stage0/src/Init/Prelude.lean +++ b/stage0/src/Init/Prelude.lean @@ -3244,6 +3244,9 @@ def USize.toUInt64 (u : USize) : UInt64 where @[extern "lean_uint64_mix_hash"] opaque mixHash (u₁ u₂ : UInt64) : UInt64 +instance [Hashable α] {p : α → Prop} : Hashable (Subtype p) where + hash a := hash a.val + /-- A opaque string hash function. -/ @[extern "lean_string_hash"] protected opaque String.hash (s : @& String) : UInt64 diff --git a/stage0/src/Lean/Compiler/LCNF/Basic.lean b/stage0/src/Lean/Compiler/LCNF/Basic.lean index b4fa52c357..59c125ff96 100644 --- a/stage0/src/Lean/Compiler/LCNF/Basic.lean +++ b/stage0/src/Lean/Compiler/LCNF/Basic.lean @@ -20,7 +20,7 @@ structure Param where fvarId : FVarId binderName : Name type : Expr - deriving Inhabited + deriving Inhabited, BEq def Param.toExpr (p : Param) : Expr := .fvar p.fvarId @@ -36,7 +36,7 @@ structure LetDecl where type : Expr value : Expr pure : Bool - deriving Inhabited + deriving Inhabited, BEq structure FunDeclCore (Code : Type) where fvarId : FVarId @@ -70,6 +70,62 @@ abbrev Alt := AltCore Code abbrev FunDecl := FunDeclCore Code abbrev Cases := CasesCore Code +inductive CodeDecl where + | let (decl : LetDecl) + | fun (decl : FunDecl) + | jp (decl : FunDecl) + deriving Inhabited + +def CodeDecl.fvarId : CodeDecl → FVarId + | .let decl | .fun decl | .jp decl => decl.fvarId + +def CodeDecl.isPure : CodeDecl → Bool + | .let decl => decl.pure + | .fun .. | .jp .. => true + +mutual + private unsafe def eqImp (c₁ c₂ : Code) : Bool := + if ptrEq c₁ c₂ then + true + else match c₁, c₂ with + | .let d₁ k₁, .let d₂ k₂ => d₁ == d₂ && eqImp k₁ k₂ + | .fun d₁ k₁, .fun d₂ k₂ + | .jp d₁ k₁, .jp d₂ k₂ => eqFunDecl d₁ d₂ && eqImp k₁ k₂ + | .cases c₁, .cases c₂ => eqCases c₁ c₂ + | .jmp j₁ as₁, .jmp j₂ as₂ => j₁ == j₂ && as₁ == as₂ + | .return r₁, .return r₂ => r₁ == r₂ + | .unreach t₁, .unreach t₂ => t₁ == t₂ + | _, _ => false + + private unsafe def eqFunDecl (d₁ d₂ : FunDecl) : Bool := + if ptrEq d₁ d₂ then + true + else + d₁.fvarId == d₂.fvarId && d₁.binderName == d₂.binderName && + d₁.params == d₂.params && d₁.type == d₂.type && + eqImp d₁.value d₂.value + + private unsafe def eqCases (c₁ c₂ : Cases) : Bool := + c₁.resultType == c₂.resultType && c₁.discr == c₂.discr && + c₁.typeName == c₂.typeName && c₁.alts.isEqv c₂.alts eqAlt + + private unsafe def eqAlt (a₁ a₂ : Alt) : Bool := + match a₁, a₂ with + | .default k₁, .default k₂ => eqImp k₁ k₂ + | .alt c₁ ps₁ k₁, .alt c₂ ps₂ k₂ => c₁ == c₂ && ps₁ == ps₂ && eqImp k₁ k₂ + | _, _ => false +end + +@[implementedBy eqImp] protected opaque Code.beq : Code → Code → Bool + +instance : BEq Code where + beq := Code.beq + +@[implementedBy eqFunDecl] protected opaque FunDecl.beq : FunDecl → FunDecl → Bool + +instance : BEq FunDecl where + beq := FunDecl.beq + def AltCore.getCode : Alt → Code | .default k => k | .alt _ _ k => k @@ -186,6 +242,15 @@ to be updated. -/ @[implementedBy updateFunDeclCoreImp] opaque FunDeclCore.updateCore (decl: FunDecl) (type : Expr) (params : Array Param) (value : Code) : FunDecl +def CasesCore.extractAlt! (cases : Cases) (ctorName : Name) : Alt × Cases := + let found (i : Nat) := (cases.alts[i]!, { cases with alts := cases.alts.eraseIdx i }) + if let some i := cases.alts.findIdx? fun | .alt ctorName' .. => ctorName == ctorName' | _ => false then + found i + else if let some i := cases.alts.findIdx? fun | .default _ => true | _ => false then + found i + else + unreachable! + def Code.isDecl : Code → Bool | .let .. | .fun .. | .jp .. => true | _ => false diff --git a/stage0/src/Lean/Compiler/LCNF/Check.lean b/stage0/src/Lean/Compiler/LCNF/Check.lean index 1a108e7a20..cc388bb543 100644 --- a/stage0/src/Lean/Compiler/LCNF/Check.lean +++ b/stage0/src/Lean/Compiler/LCNF/Check.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Compiler.LCNF.InferType +import Lean.Compiler.LCNF.PrettyPrinter namespace Lean.Compiler.LCNF @@ -90,11 +91,24 @@ def checkJpInScope (jp : FVarId) : CheckM Unit := do -/ throwError "invalid jump to out of scope join point" +def checkParam (param : Param) : CheckM Unit := do + let localDecl ← getLocalDecl param.fvarId + unless localDecl.type == param.type do + throwError "LCNF parameter mismatch at `{param.binderName}`, type in local context{indentExpr localDecl.type}\nexpected{indentExpr param.type}" + +def checkParams (params : Array Param) : CheckM Unit := + params.forM checkParam + def checkLetDecl (letDecl : LetDecl) : CheckM Unit := do checkExpr letDecl.value let valueType ← inferType letDecl.value unless compatibleTypes letDecl.type valueType do throwError "type mismatch at `{letDecl.binderName}`, value has type{indentExpr valueType}\nbut is expected to have type{indentExpr letDecl.type}" + let localDecl ← getLocalDecl letDecl.fvarId + unless localDecl.type == letDecl.type do + throwError "LCNF let declaration mismatch at `{letDecl.binderName}`, type in local context{indentExpr localDecl.type}\nexpected{indentExpr letDecl.type}" + unless localDecl.value == letDecl.value do + throwError "LCNF let declaration mismatch at `{letDecl.binderName}`, value in local context{indentExpr localDecl.value}\nexpected{indentExpr letDecl.value}" def addFVarId (fvarId : FVarId) : CheckM Unit := do if (← get).all.contains fvarId then @@ -117,27 +131,35 @@ def addFVarId (fvarId : FVarId) : CheckM Unit := do mutual partial def checkFunDeclCore (declName : Name) (type : Expr) (params : Array Param) (value : Code) : CheckM Unit := do + checkParams params let valueType ← withParams params do mkForallParams params (← check value) unless compatibleTypes type valueType do throwError "type mismatch at `{declName}`, value has type{indentExpr valueType}\nbut is expected to have type{indentExpr type}" -partial def checkFunDecl (funDecl : FunDecl) : CheckM Unit := +partial def checkFunDecl (funDecl : FunDecl) : CheckM Unit := do checkFunDeclCore funDecl.binderName funDecl.type funDecl.params funDecl.value + let localDecl ← getLocalDecl funDecl.fvarId + unless localDecl.type == funDecl.type do + throwError "LCNF local function declaration mismatch at `{funDecl.binderName}`, type in local context{indentExpr localDecl.type}\nexpected{indentExpr funDecl.type}" + unless (← getFunDecl funDecl.fvarId) == funDecl do + throwError "LCNF local function declaration mismatch at `{funDecl.binderName}`, declaration in local context does match" partial def checkCases (c : Cases) : CheckM Expr := do let mut ctorNames : NameSet := {} let mut hasDefault := false checkFVar c.discr let discrType ← inferFVarType c.discr - let .const declName _ := discrType.headBeta.getAppFn | throwError "unexpected LCNF discriminant type {discrType}" - unless c.typeName == declName do - throwError "invalid LCNF `{c.typeName}.casesOn`, discriminant has type{indentExpr discrType}" + unless discrType.isAnyType do + let .const declName _ := discrType.headBeta.getAppFn | throwError "unexpected LCNF discriminant type {discrType}" + unless c.typeName == declName do + throwError "invalid LCNF `{c.typeName}.casesOn`, discriminant has type{indentExpr discrType}" for alt in c.alts do let type ← match alt with | .default k => hasDefault := true; check k | .alt ctorName params k => + checkParams params if ctorNames.contains ctorName then throwError "invalid LCNF `cases`, alternative `{ctorName}` occurs more than once" ctorNames := ctorNames.insert ctorName @@ -180,4 +202,41 @@ end Check def Decl.check (decl : Decl) : CompilerM Unit := do Check.run do Check.checkFunDeclCore decl.name decl.type decl.params decl.value +/-- +Check whether every local declaration in the local context is used in one of given `decls`. +-/ +partial def checkDeadLocalDecls (decls : Array Decl) : CompilerM Unit := do + let (_, s) := visitDecls decls |>.run {} + (← get).lctx.localDecls.forM fun fvarId decl => + unless s.contains fvarId do + throwError "LCNF local context contains unused local variable declaration `{decl.userName}`" +where + visitFVar (fvarId : FVarId) : StateM FVarIdHashSet Unit := + modify (·.insert fvarId) + + visitParam (param : Param) : StateM FVarIdHashSet Unit := do + visitFVar param.fvarId + + visitParams (params : Array Param) : StateM FVarIdHashSet Unit := do + params.forM visitParam + + visitCode (code : Code) : StateM FVarIdHashSet Unit := do + match code with + | .jmp .. | .return .. | .unreach .. => return () + | .let decl k => visitFVar decl.fvarId; visitCode k + | .fun decl k | .jp decl k => + visitFVar decl.fvarId; visitParams decl.params; visitCode decl.value + visitCode k + | .cases c => c.alts.forM fun alt => do + match alt with + | .default k => visitCode k + | .alt _ ps k => visitParams ps; visitCode k + + visitDecl (decl : Decl) : StateM FVarIdHashSet Unit := do + visitParams decl.params + visitCode decl.value + + visitDecls (decls : Array Decl) : StateM FVarIdHashSet Unit := + decls.forM visitDecl + end Lean.Compiler.LCNF diff --git a/stage0/src/Lean/Compiler/LCNF/CompilerM.lean b/stage0/src/Lean/Compiler/LCNF/CompilerM.lean index 4eb1f9ba49..df9558f403 100644 --- a/stage0/src/Lean/Compiler/LCNF/CompilerM.lean +++ b/stage0/src/Lean/Compiler/LCNF/CompilerM.lean @@ -45,8 +45,14 @@ def getFunDecl (fvarId : FVarId) : CompilerM FunDecl := do @[inline] def modifyLCtx (f : LCtx → LCtx) : CompilerM Unit := do modify fun s => { s with lctx := f s.lctx } -def eraseFVar (fvarId : FVarId) : CompilerM Unit := do - modifyLCtx fun lctx => lctx.erase fvarId +def eraseFVar (fvarId : FVarId) (recursive := true) : CompilerM Unit := do + modifyLCtx fun lctx => lctx.erase fvarId recursive + +def eraseFVarsAt (code : Code) : CompilerM Unit := do + modifyLCtx fun lctx => lctx.eraseFVarsAt code + +def eraseParams (params : Array Param) : CompilerM Unit := + params.forM (eraseFVar ·.fvarId) /-- A free variable substitution. @@ -223,6 +229,9 @@ private unsafe def updateLetDeclImp (decl : LetDecl) (type : Expr) (value : Expr @[implementedBy updateLetDeclImp] opaque LetDecl.update (decl : LetDecl) (type : Expr) (value : Expr) : CompilerM LetDecl +def LetDecl.updateValue (decl : LetDecl) (value : Expr) : CompilerM LetDecl := + decl.update decl.type value + private unsafe def updateFunDeclImp (decl: FunDecl) (type : Expr) (params : Array Param) (value : Code) : CompilerM FunDecl := do if ptrEq type decl.type && ptrEq params decl.params && ptrEq value decl.value then return decl diff --git a/stage0/src/Lean/Compiler/LCNF/LCtx.lean b/stage0/src/Lean/Compiler/LCNF/LCtx.lean index bd2382fca3..b79c7bd31a 100644 --- a/stage0/src/Lean/Compiler/LCNF/LCtx.lean +++ b/stage0/src/Lean/Compiler/LCNF/LCtx.lean @@ -34,21 +34,38 @@ def LCtx.eraseLocal (fvarId : FVarId) : LCtx → LCtx let localDecls := localDecls.erase fvarId { localDecls, funDecls } -partial def LCtx.erase (fvarId : FVarId) : LCtx → LCtx +partial def LCtx.erase (fvarId : FVarId) (lctx : LCtx) (recursive := true) : LCtx := + match lctx with | { localDecls, funDecls } => let localDecls := localDecls.erase fvarId match funDecls.find? fvarId with | none => { localDecls, funDecls } | some funDecl => let funDecls := funDecls.erase fvarId - go funDecl.value { localDecls, funDecls } + if recursive then + go funDecl.value <| goParams funDecl.params { localDecls, funDecls } + else + { localDecls, funDecls } where + goParams (params : Array Param) (lctx : LCtx) : LCtx := + params.foldl (init := lctx) fun lctx p => lctx.erase p.fvarId + + goAlts (alts : Array Alt) (lctx : LCtx) : LCtx := + alts.foldl (init := lctx) fun lctx alt => + match alt with + | .default k => go k lctx + | .alt _ ps k => go k <| goParams ps lctx + go (code : Code) (lctx : LCtx) : LCtx := match code with | .let decl k => go k <| lctx.eraseLocal decl.fvarId | .jp decl k | .fun decl k => go k <| lctx.erase decl.fvarId + | .cases c => goAlts c.alts lctx | _ => lctx +def LCtx.eraseFVarsAt (c : Code) (lctx : LCtx) : LCtx := + LCtx.erase.go c lctx + /-- Convert a LCNF local context into a regular Lean local context. -/ diff --git a/stage0/src/Lean/Compiler/LCNF/Main.lean b/stage0/src/Lean/Compiler/LCNF/Main.lean index d441afb04a..b679c9a1a2 100644 --- a/stage0/src/Lean/Compiler/LCNF/Main.lean +++ b/stage0/src/Lean/Compiler/LCNF/Main.lean @@ -49,6 +49,8 @@ def checkpoint (stepName : Name) (decls : Array Decl) : CompilerM Unit := do Lean.addTrace clsName m!"size: {decl.size}\n{← ppDecl decl}" if compiler.check.get (← getOptions) then decl.check + if compiler.check.get (← getOptions) then + checkDeadLocalDecls decls namespace PassManager diff --git a/stage0/src/Lean/Compiler/LCNF/Simp.lean b/stage0/src/Lean/Compiler/LCNF/Simp.lean index 0d90e3111d..756ca041b1 100644 --- a/stage0/src/Lean/Compiler/LCNF/Simp.lean +++ b/stage0/src/Lean/Compiler/LCNF/Simp.lean @@ -101,7 +101,7 @@ structure Context where structure State where /-- - Free variable substitution. We use it to implement inlining are removing redundant variables `let _x.i := _x.j` + Free variable substitution. We use it to implement inlining and removing redundant variables `let _x.i := _x.j` -/ subst : FVarSubst := {} /-- @@ -234,63 +234,180 @@ where | .jp .. | .jmp .. => false | .return .. | .unreach .. => true -def betaReduce (params : Array Param) (code : Code) (args : Array Expr) : SimpM Code := do +def betaReduce (params : Array Param) (code : Code) (args : Array Expr) (mustInline := false) : SimpM Code := do -- TODO: add necessary casts to `args` let mut subst := {} for param in params, arg in args do subst := subst.insert param.fvarId arg let code ← code.internalize subst - updateFunDeclInfo code + updateFunDeclInfo code mustInline return code - /-- - If `e` is an application that can be inlined, inline it. +/-- +If `e` is an application that can be inlined, inline it. - `k?` is the optional "continuation" for `e`, and it may contain loose bound variables - that need to instantiated with `xs`. That is, if `k? = some k`, then `k.instantiateRev xs` - is an expression without loose bound variables. - -/ - partial def inlineApp? (letDecl : LetDecl) (k : Code) : SimpM (Option Code) := do - if k matches .unreach .. then return some k - let e := letDecl.value - let some info ← inlineCandidate? e | return none - markSimplified - let args := e.getAppArgs - let numArgs := args.size - trace[Compiler.simp.inline] "inlining {e}" - let code ← betaReduce info.params info.value args[:info.arity] - let fvarId := letDecl.fvarId - if k.isReturnOf fvarId && numArgs == info.arity then - /- Easy case, the continuation `k` is just returning the result of the application. -/ - return code - else if oneExitPointQuick code then - /- - `code` has only one exit point, thus we can attach the continuation directly there, - and simplify the result. - -/ - code.bind fun fvarId' => do - /- fvarId' is the result of the computation -/ - if numArgs > info.arity then - let decl ← mkAuxLetDecl (mkAppN (.fvar fvarId') args[info.arity:]) - let k ← replaceFVar k fvarId decl.fvarId - return .let decl k - else - replaceFVar k fvarId fvarId' - else - /- - `code` has multiple exit points, and the continuation is non-trivial - Thus, we create an auxiliary join point. - -/ - let jpParam ← mkAuxParam (← inferType (mkAppN e.getAppFn args[:info.arity])) - let jpValue ← if numArgs > info.arity then - let decl ← mkAuxLetDecl (mkAppN (.fvar jpParam.fvarId) args[info.arity:]) +`k?` is the optional "continuation" for `e`, and it may contain loose bound variables +that need to instantiated with `xs`. That is, if `k? = some k`, then `k.instantiateRev xs` +is an expression without loose bound variables. +-/ +partial def inlineApp? (letDecl : LetDecl) (k : Code) : SimpM (Option Code) := do + if k matches .unreach .. then return some k + let e := letDecl.value + let some info ← inlineCandidate? e | return none + markSimplified + let args := e.getAppArgs + let numArgs := args.size + trace[Compiler.simp.inline] "inlining {e}" + let code ← betaReduce info.params info.value args[:info.arity] + let fvarId := letDecl.fvarId + if k.isReturnOf fvarId && numArgs == info.arity then + /- Easy case, the continuation `k` is just returning the result of the application. -/ + return code + else if oneExitPointQuick code then + /- + `code` has only one exit point, thus we can attach the continuation directly there, + and simplify the result. + -/ + code.bind fun fvarId' => do + /- fvarId' is the result of the computation -/ + if numArgs > info.arity then + let decl ← mkAuxLetDecl (mkAppN (.fvar fvarId') args[info.arity:]) let k ← replaceFVar k fvarId decl.fvarId - pure <| .let decl k + return .let decl k else - replaceFVar k fvarId jpParam.fvarId - let jpDecl ← mkAuxJpDecl #[jpParam] jpValue - let code ← code.bind fun fvarId => return .jmp jpDecl.fvarId #[.fvar fvarId] - return Code.jp jpDecl code + replaceFVar k fvarId fvarId' + else + /- + `code` has multiple exit points, and the continuation is non-trivial + Thus, we create an auxiliary join point. + -/ + let jpParam ← mkAuxParam (← inferType (mkAppN e.getAppFn args[:info.arity])) + let jpValue ← if numArgs > info.arity then + let decl ← mkAuxLetDecl (mkAppN (.fvar jpParam.fvarId) args[info.arity:]) + let k ← replaceFVar k fvarId decl.fvarId + pure <| .let decl k + else + replaceFVar k fvarId jpParam.fvarId + let jpDecl ← mkAuxJpDecl #[jpParam] jpValue + let code ← code.bind fun fvarId => return .jmp jpDecl.fvarId #[.fvar fvarId] + return Code.jp jpDecl code + +/-- +Try to inline a join point. +-/ +partial def inlineJp? (fvarId : FVarId) (args : Array Expr) : SimpM (Option Code) := do + let some decl ← LCNF.findFunDecl? fvarId | return none + unless (← shouldInlineLocal decl) do return none + betaReduce decl.params decl.value args + +def markUsedFVar (fvarId : FVarId) : SimpM Unit := + modify fun s => { s with used := s.used.insert fvarId } + +def markUsedExpr (e : Expr) : SimpM Unit := + modify fun s => { s with used := collectLocalDecls s.used e } + +def markUsedLetDecl (letDecl : LetDecl) : SimpM Unit := + markUsedExpr letDecl.value + +mutual +partial def markUsedCode (code : Code) : SimpM Unit := do + match code with + | .let decl k => markUsedLetDecl decl; markUsedCode k + | .jp decl k | .fun decl k => markUsedFunDecl decl; markUsedCode k + | .return fvarId => markUsedFVar fvarId + | .unreach .. => return () + | .jmp fvarId args => markUsedFVar fvarId; args.forM markUsedExpr + | .cases c => markUsedFVar c.discr; c.alts.forM fun alt => markUsedCode alt.getCode + +partial def markUsedFunDecl (funDecl : FunDecl) : SimpM Unit := + markUsedCode funDecl.value +end + +def isUsed (fvarId : FVarId) : SimpM Bool := + return (← get).used.contains fvarId + +def attachCodeDecls (decls : Array CodeDecl) (code : Code) : SimpM Code := do + go decls.size code +where + go (i : Nat) (code : Code) : SimpM Code := do + if i > 0 then + let decl := decls[i-1]! + if decl.isPure || (← isUsed decl.fvarId) then + match decl with + | .let decl => markUsedLetDecl decl; go (i-1) (.let decl code) + | .fun decl => markUsedFunDecl decl; go (i-1) (.fun decl code) + | .jp decl => markUsedFunDecl decl; go (i-1) (.jp decl code) + else + eraseFVar decl.fvarId + go (i-1) code + else + return code + +def eraseCodeDecls (decls : Array CodeDecl) : SimpM Unit := do + decls.forM fun decl => eraseFVar decl.fvarId + +/-- +Auxiliary function for projecting "type class dictionary access". +That is, we are trying to extract one of the type class instance elements. +Remark: We do not consider parent instances to be elements. +For example, suppose `e` is `_x_4.1`, and we have +``` +_x_2 : Monad (ReaderT Bool (ExceptT String Id)) := @ReaderT.Monad Bool (ExceptT String Id) _x_1 +_x_3 : Applicative (ReaderT Bool (ExceptT String Id)) := _x_2.1 +_x_4 : Functor (ReaderT Bool (ExceptT String Id)) := _x_3.1 +``` +Then, we will expand `_x_4.1` since it corresponds to the `Functor` `map` element, +and its type is not a type class, but is of the form +``` +{α β : Type u} → (α → β) → ... +``` +In the example above, the compiler should not expand `_x_3.1` or `_x_2.1` because they are +type class applications: `Functor` and `Applicative` respectively. +By eagerly expanding them, we may produce inefficient and bloated code. +For example, we may be using `_x_3.1` to invoke a function that expects a `Functor` instance. +By expanding `_x_3.1` we will be just expanding the code that creates this instance. + +TODO: explain result +-/ +partial def inlineProjInst? (e : Expr) : SimpM (Option (Array CodeDecl × FVarId)) := do + let .proj _ i s := e | return none + let sType ← inferType s + unless (← isClass? sType).isSome do return none + let eType ← inferType e + unless (← isClass? eType).isNone do return none + let (fvarId?, decls) ← visit s [i] |>.run |>.run #[] + if let some fvarId := fvarId? then + return some (decls, fvarId) + else + eraseCodeDecls decls + return none +where + visit (e : Expr) (projs : List Nat) : OptionT (StateRefT (Array CodeDecl) SimpM) FVarId := do + let e ← findExpr e + if let .proj _ i s := e then + visit s (i :: projs) + else if let some (ctorVal, ctorArgs) := e.constructorApp? (← getEnv) then + let i :: projs := projs | unreachable! + let e := ctorArgs[ctorVal.numParams + i]! + if projs.isEmpty then + let .fvar fvarId := e | unreachable! + return fvarId + else + visit e projs + else + let .const declName us := e.getAppFn | failure + let some decl ← getStage1Decl? declName | failure + guard (decl.getArity == e.getAppNumArgs) + let code := decl.instantiateValueLevelParams us + let code ← betaReduce decl.params code e.getAppArgs (mustInline := true) + visitCode code projs + + visitCode (code : Code) (projs : List Nat) : OptionT (StateRefT (Array CodeDecl) SimpM) FVarId := do + match code with + | .let decl k => modify (·.push (.let decl)); visitCode k projs + | .fun decl k => modify (·.push (.fun decl)); visitCode k projs + | .return fvarId => visit (.fvar fvarId) projs + | _ => failure def findCtor (e : Expr) : SimpM Expr := do -- TODO: add support for mapping discriminants to constructors in branches @@ -323,18 +440,6 @@ def simpAppApp? (e : Expr) : OptionT SimpM Expr := do markSimplified return mkAppN f e.getAppArgs -def markUsedFVar (fvarId : FVarId) : SimpM Unit := - modify fun s => { s with used := s.used.insert fvarId } - -def markUsedExpr (e : Expr) : SimpM Unit := - modify fun s => { s with used := collectLocalDecls s.used e } - -def markUsedLetDecl (letDecl : LetDecl) : SimpM Unit := - markUsedExpr letDecl.value - -def isUsed (fvarId : FVarId) : SimpM Bool := - return (← get).used.contains fvarId - def eraseLocalDecl (fvarId : FVarId) : SimpM Unit := do eraseFVar fvarId markSimplified @@ -346,6 +451,11 @@ it is a type, type former, or `lcErased`. def addSubst (fvarId : FVarId) (val : Expr) : SimpM Unit := modify fun s => { s with subst := s.subst.insert fvarId val } +/-- Try to apply simple simplifications. -/ +def simpValue? (e : Expr) : SimpM (Option Expr) := + -- TODO: more simplifications + simpProj? e <|> simpAppApp? e + mutual partial def simpFunDecl (decl : FunDecl) : SimpM FunDecl := do let type ← normExpr decl.type @@ -353,11 +463,29 @@ partial def simpFunDecl (decl : FunDecl) : SimpM FunDecl := do let value ← simp decl.value decl.update type params value +/-- Try to simplify `cases` of `constructor` -/ +partial def simpCasesOnCtor? (cases : Cases) : SimpM (Option Code) := do + let discr ← normFVar cases.discr + let discrExpr ← findExpr (.fvar discr) + let some (ctorVal, ctorArgs) := discrExpr.constructorApp? (← getEnv) | return none + let (alt, cases) := cases.extractAlt! ctorVal.name + eraseFVarsAt (.cases cases) + markSimplified + match alt with + | .default k => simp k + | .alt _ params k => + let fields := ctorArgs[ctorVal.numParams:] + for param in params, field in fields do + addSubst param.fvarId field + let k ← simp k + eraseParams params + return k + partial def simp (code : Code) : SimpM Code := do incVisited match code with | .let decl k => - let decl ← normLetDecl decl + let mut decl ← normLetDecl decl if decl.value.isFVar then /- Eliminate `let _x_i := _x_j;` -/ addSubst decl.fvarId decl.value @@ -366,8 +494,14 @@ partial def simp (code : Code) : SimpM Code := do else if let some code ← inlineApp? decl k then eraseFVar decl.fvarId simp code + else if let some (decls, fvarId) ← inlineProjInst? decl.value then + addSubst decl.fvarId (.fvar fvarId) + eraseLocalDecl decl.fvarId + let k ← simp k + attachCodeDecls decls k else - /- TODO: simple value simplifications & inlining -/ + if let some value ← simpValue? decl.value then + decl ← decl.updateValue value let k ← simp k if !decl.pure || (← isUsed decl.fvarId) then markUsedLetDecl decl @@ -377,17 +511,28 @@ partial def simp (code : Code) : SimpM Code := do eraseLocalDecl decl.fvarId return k | .fun decl k | .jp decl k => - /- - Variables in `decl` will be marked as used even if the function is eliminated. - Thus, they will only be deleted in the second pass. - - Pontential improvement: if `decl.fvarId` is marked with `once` or `mustInline`, we will probably - inline this declaration, and it may be wasteful to simplify it here. - The alternative option is to just normalize `decl`, and if used mark all occurring there as used. - -/ - let decl ← simpFunDecl decl + let mut decl := decl + let toBeInlined ← isOnceOrMustInline decl.fvarId + if toBeInlined then + /- + If the declaration will be inlined, it is wasteful to eagerly simplify it. + So, we just normalize it (i.e., apply the substitution to it). + -/ + decl ← normFunDecl decl + else + /- + Note that functions in `decl` will be marked as used even if `decl` is not actually used. + They will only be deleted in the next pass. + -/ + decl ← simpFunDecl decl let k ← simp k if (← isUsed decl.fvarId) then + if toBeInlined then + /- + `decl` was supposed to be inlined, but there are still references to it. + Thus, we must all variables in `decl` as used. Recall it was not eagerly simplified. + -/ + markUsedFunDecl decl return code.updateFun! decl k else /- Dead function elimination -/ @@ -400,19 +545,24 @@ partial def simp (code : Code) : SimpM Code := do | .unreach type => return code.updateUnreach! (← normExpr type) | .jmp fvarId args => - -- TODO: inline join point let fvarId ← normFVar fvarId let args ← normExprs args - markUsedFVar fvarId - args.forM markUsedExpr - return code.updateJmp! fvarId args + if let some code ← inlineJp? fvarId args then + simp code + else + markUsedFVar fvarId + args.forM markUsedExpr + return code.updateJmp! fvarId args | .cases c => - -- TODO: cases simplifications - let resultType ← normExpr c.resultType - let discr ← normFVar c.discr - markUsedFVar discr - let alts ← c.alts.mapMonoM fun alt => return alt.updateCode (← simp alt.getCode) - return code.updateCases! resultType discr alts + if let some k ← simpCasesOnCtor? c then + return k + else + -- TODO: other cases simplifications + let discr ← normFVar c.discr + let resultType ← normExpr c.resultType + markUsedFVar discr + let alts ← c.alts.mapMonoM fun alt => return alt.updateCode (← simp alt.getCode) + return code.updateCases! resultType discr alts end @@ -452,93 +602,10 @@ end Lean.Compiler.LCNF #exit -- TODO: port rest of file - namespace Lean.Compiler namespace Simp -/- -Ensure binder names are unique, and update local function information. -If `mustInline = true`, then local functions in `e` are marked with binders of the -form `_mustInline.`. -Remark: we used to store the `mustInline` information in the map `localInfoMap`, -using a `.mustInline` constructor at `LocalFunInfo`. However, this was incorrect -because there is no guarantee that we will be able to inline all occurrences of the -function in the current `simp` step. Since, we recompute `localInfoMap` from scratch -at the beginning of each compiler pass, the information was being lost. --/ - - -/-- -This function performs the following operations in the given expression in a single pass. -- Ensure binder names for let-declarations are unique. -- Update local function information. That is, it updates the map `localInfoMap`. -- Apply `e.instantiateRev args`. - -We use it to "internalize" expressions at startup and when performing inlining. --/ -def instantiateRevInternalize (e : Expr) (args : Array Expr) (mustInline := false) : SimpM Expr := do - let lctx ← getLCtx - let nextIdx := (← getThe CompilerM.State).nextIdx - let localInfoMap ← modifyGet fun s => (s.localInfoMap, { s with localInfoMap := {} }) - let (e, { localInfoMap, nextIdx }) := instantiateRevInternalizeCore lctx e args mustInline |>.run { nextIdx, localInfoMap } - modifyThe CompilerM.State fun s => { s with nextIdx } - modify fun s => { s with localInfoMap } - return e - - -def isSmallValue (value : Expr) : SimpM Bool := do - lcnfSizeLe value (← read).config.smallThreshold - -def shouldInlineLocal (localDecl : LocalDecl) : SimpM Bool := do - if (← isOnceOrMustInline localDecl.userName) then - return true - else - isSmallValue localDecl.value - - -/-- -If `e` if a free variable that expands to a valid LCNF terminal `let`-block expression `e'`, -return `e'`. --/ -def expandTrivialExpr (e : Expr) : SimpM Expr := do - if e.isFVar then - let e' ← findExpr e - unless e'.isLambda do - if e != e' then - markSimplified - return e' - return e - -/-- -Given `value` of the form `let x_1 := v_1; ...; let x_n := v_n; e`, -return `let x_1; ...; let x_n := v_n; let y : type := e; body`. - -This methods assumes `type` and `value` do not have loose bound variables. - -Remark: `body` may have many loose bound variables, and the loose bound variables > 0 -must be lifted by `n`. --/ -private def mkFlatLet (y : Name) (type : Expr) (value : Expr) (body : Expr) (nonDep : Bool := false) : Expr := - match value with - | .letE binderName type value'@(.lam ..) (.bvar 0) nonDep => - /- Easy case that is often generated by `inlineProjInst?` -/ - .letE binderName type value' body nonDep - | _ => go value 0 -where - go (value : Expr) (i : Nat) : Expr := - match value with - | .letE n t v b d => .letE n t v (go b (i+1)) d - | _ => .letE y type value (body.liftLooseBVars 1 i) nonDep - -def mkLetUsingScope (e : Expr) : SimpM Expr := do - modify fun s => { s with mkLet := s.mkLet + 1 } - Compiler.mkLetUsingScope e - -def mkLambda (as : Array Expr) (e : Expr) : SimpM Expr := do - modify fun s => { s with mkLambda := s.mkLambda + 1 } - Compiler.mkLambda as e - /-- Helper function for simplifying expressions such as ``` @@ -579,77 +646,6 @@ private def etaExpand (type : Expr) (value : Expr) : SimpM Expr := do let value ← attachJp value k mkLambda xs value -/-- -Auxiliary function for projecting "type class dictionary access". -That is, we are trying to extract one of the type class instance elements. -Remark: We do not consider parent instances to be elements. -For example, suppose `e` is `_x_4.1`, and we have -``` -_x_2 : Monad (ReaderT Bool (ExceptT String Id)) := @ReaderT.Monad Bool (ExceptT String Id) _x_1 -_x_3 : Applicative (ReaderT Bool (ExceptT String Id)) := _x_2.1 -_x_4 : Functor (ReaderT Bool (ExceptT String Id)) := _x_3.1 -``` -Then, we will expand `_x_4.1` since it corresponds to the `Functor` `map` element, -and its type is not a type class, but is of the form -``` -{α β : Type u} → (α → β) → ... -``` -In the example above, the compiler should not expand `_x_3.1` or `_x_2.1` because they are -type class applications: `Functor` and `Applicative` respectively. -By eagerly expanding them, we may produce inefficient and bloated code. -For example, we may be using `_x_3.1` to invoke a function that expects a `Functor` instance. -By expanding `_x_3.1` we will be just expanding the code that creates this instance. --/ -partial def inlineProjInst? (e : Expr) : OptionT SimpM Expr := do - let .proj _ _ s := e | failure - let sType ← inferType s - guard (← isClass? sType).isSome - let eType ← inferType e - guard (← isClass? eType).isNone - /- - We use `withNewScope` + `mkLetUsingScope` to filter the relevant let-declarations. - Recall that we are extracting only one of the type class elements. - -/ - let value ← withNewScope do mkLetUsingScope (← visitProj e) - markSimplified - let value := simpUsingEtaReduction value - let value ← internalize value (mustInline := true) - trace[Compiler.simp.projInst] "{e} =>\n{value}" - return value -where - visitProj (e : Expr) : OptionT SimpM Expr := do - let .proj _ i s := e | unreachable! - let s ← visit s - if let some (ctorVal, ctorArgs) := s.constructorApp? (← getEnv) then - return ctorArgs[ctorVal.numParams + i]! - else - failure - - visit (e : Expr) : OptionT SimpM Expr := do - let e ← findExpr e - if e.isConstructorApp (← getEnv) then - return e - else if e.isProj then - /- We may have nested projections as we traverse parent classes. -/ - visit (← visitProj e) - else - let .const declName us := e.getAppFn | failure - let some decl ← getStage1Decl? declName | failure - guard <| decl.getArity == e.getAppNumArgs - let value := decl.value.instantiateLevelParams decl.levelParams us - let value := value.beta e.getAppArgs - /- - Here, we just go inside of the let-declaration block without trying to simplify it. - Reason: a type class instannce may have many elements, and it does not make sense to simplify - all of them when we are extracting only one of them. - -/ - let value ← Compiler.visitLet (m := SimpM) value fun _ value => return value - visit value - -def betaReduce (e : Expr) (args : Array Expr) : SimpM Expr := do - -- TODO: add necessary casts to `args` - let result ← instantiateRevInternalize (getLambdaBody e) args - return result /-- Try "cases on cases" simplification. @@ -732,23 +728,6 @@ where | _ => jpBody mutual -/-- -Simplify the given lambda expression. -If `checkEmptyTypes := true`, then return `fun a_i : t_i => lcUnreachable` if -`t_i` is the `Empty` type. --/ -partial def visitLambda (e : Expr) (checkEmptyTypes := false): SimpM Expr := - withNewScope do - let (as, e) ← Compiler.visitLambdaCore e - if checkEmptyTypes then - for a in as do - if (← isEmptyType (← inferType a)) then - let e := e.instantiateRev as - let unreach ← mkLcUnreachable (← inferType e) - let r ← mkLambda as unreach - return r - let e ← mkLetUsingScope (← visitLet e as) - mkLambda as e partial def visitCases (casesInfo : CasesInfo) (e : Expr) : SimpM Expr := do let f := e.getAppFn @@ -771,74 +750,6 @@ partial def visitCases (casesInfo : CasesInfo) (e : Expr) : SimpM Expr := do args ← args.modifyM i (visitLambda · (checkEmptyTypes := true)) return mkAppN f args - -/-- Try to apply simple simplifications. -/ -partial def simpValue? (e : Expr) : SimpM (Option Expr) := - simpProj? e <|> simpAppApp? e <|> inlineProjInst? e - -/-- -Let-declaration basic block visitor. `e` may contain loose bound variables that -still have to be instantiated with `xs`. --/ -partial def visitLet (e : Expr) (xs : Array Expr := #[]): SimpM Expr := do - modify fun s => { s with visited := s.visited + 1 } - match e with - | .letE binderName type value body nonDep => - let type := type.instantiateRev xs - let mut value := value.instantiateRev xs - if value.isLambda then - unless (← isOnceOrMustInline binderName) do - /- - If the local function will be inlined anyway, we don't simplify it here, - we do it after its is inlined and we have information about the actual arguments. - -/ - value ← visitLambda value - unless isJpBinderName binderName || (← isSmallValue value) do - /- - This lambda is not going to be inlined. So, we eta-expand it IF it is not a join point. - Recall that local function declarations that are not join points will be lambda lifted - anyway. Eta-expanding here also creates new simplification opportunities for - monadic local functions before we perform the lambda-lifting. - For example, consider the local function - ``` - let _x.23 := fun xs body => - ... - let _x.29 := StateRefT'.lift _x.24 - let _x.30 := _x.25 _x.29 - let _x.31 := fun a => ... - ReaderT.bind _x.30 _x.31 - ``` - The function applications `StateRefT'.lift` and `ReaderT.bind` are not inlined because - they are partially applied. After, we eta-expand this code, it will be reduced at this stage. - -/ - value ← etaExpand type value - else if let some value' ← simpValue? value then - if value'.isLet then - let e := mkFlatLet binderName type value' body nonDep - let e ← visitLet e xs - return e - value := value' - if value.isFVar then - /- Eliminate `let _x_i := _x_j;` -/ - markSimplified - visitLet body (xs.push value) - else if let some e ← inlineApp? value xs body then - return e - else - let x ← mkLetDecl binderName type value nonDep - visitLet body (xs.push x) - | _ => - let e := e.instantiateRev xs - if let some value ← simpValue? e then - visitLet value - else if let some casesInfo ← isCasesApp? e then - visitCases casesInfo e - else if let some e ← inlineApp? e #[] none then - return e - else - expandTrivialExpr e -end - end Simp end Lean.Compiler diff --git a/stage0/src/Lean/Compiler/LCNF/ToDecl.lean b/stage0/src/Lean/Compiler/LCNF/ToDecl.lean index b78ddb7ffe..7b045bb64a 100644 --- a/stage0/src/Lean/Compiler/LCNF/ToDecl.lean +++ b/stage0/src/Lean/Compiler/LCNF/ToDecl.lean @@ -95,6 +95,7 @@ def toDecl (declName : Name) : CompilerM Decl := do return (type, value) let value ← toLCNF value if let .fun decl (.return _) := value then + eraseFVar decl.fvarId (recursive := false) return { name := declName, params := decl.params, type, value := decl.value, levelParams := info.levelParams } else return { name := declName, params := #[], type, value, levelParams := info.levelParams } diff --git a/stage0/src/Lean/Compiler/LCNF/ToLCNF.lean b/stage0/src/Lean/Compiler/LCNF/ToLCNF.lean index 9ea3244854..51d8711784 100644 --- a/stage0/src/Lean/Compiler/LCNF/ToLCNF.lean +++ b/stage0/src/Lean/Compiler/LCNF/ToLCNF.lean @@ -33,7 +33,7 @@ inductive Element where | fun (decl : FunDecl) | let (decl : LetDecl) | cases (fvarId : FVarId) (cases : Cases) - | unreach + | unreach (fvarId : FVarId) deriving Inhabited def seqToCode (seq : Array Element) (e : Expr) : CompilerM Code := do @@ -50,10 +50,18 @@ where | .jp decl => go seq (i - 1) (.jp decl c) | .fun decl => go seq (i - 1) (.fun decl c) | .let decl => go seq (i - 1) (.let decl c) - | .unreach => return .unreach (← c.inferType) + | .unreach _ => + let type ← c.inferType + eraseFVarsAt c + seq[:i].forM fun + | .let decl | .jp decl | .fun decl => eraseFVar decl.fvarId + | .cases _ cs => eraseFVarsAt (.cases cs) + | .unreach fvarId => eraseFVar fvarId + return .unreach type | .cases fvarId cases => if let .return fvarId' := c then if fvarId == fvarId' then + eraseFVar fvarId go seq (i - 1) (.cases cases) else -- `cases` is dead code @@ -92,8 +100,9 @@ def pushElement (elem : Element) : M Unit := do modify fun s => { s with seq := s.seq.push elem } def mkUnreachable (type : Expr) : M Expr := do - pushElement .unreach - return .fvar (← mkAuxParam type).fvarId + let p ← mkAuxParam type + pushElement (.unreach p.fvarId) + return .fvar p.fvarId def mkAuxLetDecl (e : Expr) (prefixName := `_x) : M Expr := do if e.isFVar then diff --git a/stage0/src/Lean/Elab/Deriving/TypeName.lean b/stage0/src/Lean/Elab/Deriving/TypeName.lean index baad9aa9df..b386cc675e 100644 --- a/stage0/src/Lean/Elab/Deriving/TypeName.lean +++ b/stage0/src/Lean/Elab/Deriving/TypeName.lean @@ -5,7 +5,6 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import Lean.Elab.Deriving.Basic -import Bootstrap.Dynamic namespace Lean.Elab open Command Std Parser Term @@ -15,12 +14,13 @@ private def deriveTypeNameInstance (declNames : Array Name) : CommandElabM Bool let cinfo ← getConstInfo declName unless cinfo.levelParams.isEmpty do throwError m!"{mkConst declName} has universe level parameters" + let TypeName := mkIdent `TypeName elabCommand <| ← withFreshMacroScope `( - unsafe def instImpl : TypeName @$(mkCIdent declName) := .mk _ $(quote declName) - @[implementedBy instImpl] opaque inst : TypeName @$(mkCIdent declName) - instance : TypeName @$(mkCIdent declName) := inst + unsafe def instImpl : $TypeName @$(mkCIdent declName) := .mk _ $(quote declName) + @[implementedBy instImpl] opaque inst : $TypeName @$(mkCIdent declName) + instance : $TypeName @$(mkCIdent declName) := inst ) return true initialize - registerDerivingHandler ``TypeName deriveTypeNameInstance + registerDerivingHandler `TypeName deriveTypeNameInstance diff --git a/stage0/src/Lean/Server/AsyncList.lean b/stage0/src/Lean/Server/AsyncList.lean index c24cb5a945..72e0fc629d 100644 --- a/stage0/src/Lean/Server/AsyncList.lean +++ b/stage0/src/Lean/Server/AsyncList.lean @@ -66,31 +66,30 @@ partial def getAll : AsyncList ε α → List α × Option ε | Except.error e => ⟨[], some e⟩ /-- Spawns a `Task` waiting on the prefix of elements for which `p` is true. -/ -partial def waitAll (p : α → Bool := fun _ => true) : AsyncList ε α → BaseIO (Task (List α × Option ε)) - | cons hd tl => do +partial def waitAll (p : α → Bool := fun _ => true) : AsyncList ε α → Task (List α × Option ε) + | cons hd tl => if p hd then - let t ← tl.waitAll p - return t.map fun ⟨l, e?⟩ => ⟨hd :: l, e?⟩ + (tl.waitAll p).map fun ⟨l, e?⟩ => ⟨hd :: l, e?⟩ else - return Task.pure ⟨[hd], none⟩ - | nil => return Task.pure ⟨[], none⟩ - | delayed tl => do - BaseIO.bindTask tl fun - | Except.ok tl => tl.waitAll p - | Except.error e => return Task.pure ⟨[], some e⟩ + .pure ⟨[hd], none⟩ + | nil => .pure ⟨[], none⟩ + | delayed tl => + tl.bind fun + | .ok tl => tl.waitAll p + | .error e => .pure ⟨[], some e⟩ /-- Spawns a `Task` acting like `List.find?` but which will wait for tail evalution when necessary to traverse the list. If the tail terminates before a matching element is found, the task throws the terminating value. -/ -partial def waitFind? (p : α → Bool) : AsyncList ε α → BaseIO (Task $ Except ε $ Option α) - | nil => return Task.pure <| Except.ok none - | cons hd tl => do - if p hd then return Task.pure <| Except.ok <| some hd +partial def waitFind? (p : α → Bool) : AsyncList ε α → Task (Except ε (Option α)) + | nil => .pure <| .ok none + | cons hd tl => + if p hd then .pure <| Except.ok <| some hd else tl.waitFind? p - | delayed tl => do - BaseIO.bindTask tl fun - | Except.ok tl => tl.waitFind? p - | Except.error e => return Task.pure <| Except.error e + | delayed tl => + tl.bind fun + | .ok tl => tl.waitFind? p + | .error e => .pure <| .error e /-- Retrieve the already-computed prefix of the list. If computation has finished with an error, return it as well. -/ partial def getFinishedPrefix : AsyncList ε α → BaseIO (List α × Option ε) @@ -105,7 +104,8 @@ partial def getFinishedPrefix : AsyncList ε α → BaseIO (List α × Option ε | Except.error e => pure ⟨[], some e⟩ else pure ⟨[], none⟩ -def waitHead? (as : AsyncList ε α) : BaseIO (Task (Except ε (Option α))) := as.waitFind? (fun _ => true) +def waitHead? (as : AsyncList ε α) : Task (Except ε (Option α)) := + as.waitFind? fun _ => true end AsyncList diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index ff33fbcd5a..cf11dfbb0e 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -280,7 +280,7 @@ section Updates let (newHeaderStx, newMpState, _) ← Parser.parseHeader newMeta.mkInputContext let cancelTk ← CancelToken.new -- Wait for at least one snapshot from the old doc, we don't want to unnecessarily re-run `print-paths` - let headSnapTask ← oldDoc.cmdSnaps.waitHead? + let headSnapTask := oldDoc.cmdSnaps.waitHead? let newSnaps ← EIO.mapTask (ε := ElabTaskError) (t := headSnapTask) fun headSnap?? => do let headSnap? ← MonadExcept.ofExcept headSnap?? -- There is always at least one snapshot absent exceptions diff --git a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean index 60a6e2b246..046dd113ef 100644 --- a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean +++ b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean @@ -254,7 +254,7 @@ partial def handleDocumentSymbol (_ : DocumentSymbolParams) : RequestM (RequestTask DocumentSymbolResult) := do let doc ← readDoc -- bad: we have to wait on elaboration of the entire file before we can report document symbols - let t ← doc.cmdSnaps.waitAll + let t := doc.cmdSnaps.waitAll mapTask t fun (snaps, _) => do let mut stxs := snaps.map (·.stx) let (syms, _) := toDocumentSymbols doc.meta.text stxs @@ -331,7 +331,7 @@ partial def handleSemanticTokens (beginPos endPos : String.Pos) : RequestM (RequestTask SemanticTokens) := do let doc ← readDoc let text := doc.meta.text - let t ← doc.cmdSnaps.waitAll (·.beginPos < endPos) + let t := doc.cmdSnaps.waitAll (·.beginPos < endPos) mapTask t fun (snaps, _) => StateT.run' (s := { data := #[], lastLspPos := ⟨0, 0⟩ : SemanticTokensState }) do for s in snaps do @@ -416,7 +416,7 @@ def handleSemanticTokensRange (p : SemanticTokensRangeParams) partial def handleFoldingRange (_ : FoldingRangeParams) : RequestM (RequestTask (Array FoldingRange)) := do let doc ← readDoc - let t ← doc.cmdSnaps.waitAll + let t := doc.cmdSnaps.waitAll mapTask t fun (snaps, _) => do let stxs := snaps.map (·.stx) let (_, ranges) ← StateT.run (addRanges doc.meta.text [] stxs) #[] @@ -491,7 +491,7 @@ partial def handleWaitForDiagnostics (p : WaitForDiagnosticsParams) let t ← RequestM.asTask waitLoop RequestM.bindTask t fun doc? => do let doc ← liftExcept doc? - let t₁ ← doc.cmdSnaps.waitAll + let t₁ := doc.cmdSnaps.waitAll return t₁.map fun _ => pure WaitForDiagnostics.mk builtin_initialize diff --git a/stage0/src/Lean/Server/FileWorker/WidgetRequests.lean b/stage0/src/Lean/Server/FileWorker/WidgetRequests.lean index 067ea372e1..1978923009 100644 --- a/stage0/src/Lean/Server/FileWorker/WidgetRequests.lean +++ b/stage0/src/Lean/Server/FileWorker/WidgetRequests.lean @@ -98,7 +98,7 @@ def getInteractiveDiagnostics (params : GetInteractiveDiagnosticsParams) : Reque let doc ← readDoc let rangeEnd := params.lineRange?.map fun range => doc.meta.text.lspPosToUtf8Pos ⟨range.«end», 0⟩ - let t ← doc.cmdSnaps.waitAll fun snap => rangeEnd.all (snap.beginPos < ·) + let t := doc.cmdSnaps.waitAll fun snap => rangeEnd.all (snap.beginPos < ·) pure <| t.map fun (snaps, _) => let diags? := snaps.getLast?.map fun snap => snap.interactiveDiags.toArray.filter fun diag => diff --git a/stage0/src/Lean/Server/Requests.lean b/stage0/src/Lean/Server/Requests.lean index cf50ff0ab2..0fa4afb48c 100644 --- a/stage0/src/Lean/Server/Requests.lean +++ b/stage0/src/Lean/Server/Requests.lean @@ -67,6 +67,8 @@ abbrev RequestT m := ReaderT RequestContext <| ExceptT RequestError m /-- Workers execute request handlers in this monad. -/ abbrev RequestM := ReaderT RequestContext <| EIO RequestError +abbrev RequestTask.pure (a : α) : RequestTask α := .pure (.ok a) + instance : MonadLift IO RequestM where monadLift x := do match ← x.toBaseIO with @@ -120,7 +122,7 @@ def withWaitFindSnap (doc : EditableDocument) (p : Snapshot → Bool) (notFoundX : RequestM β) (x : Snapshot → RequestM β) : RequestM (RequestTask β) := do - let findTask ← doc.cmdSnaps.waitFind? p + let findTask := doc.cmdSnaps.waitFind? p mapTask findTask <| waitFindSnapAux notFoundX x /-- See `withWaitFindSnap`. -/ @@ -128,7 +130,7 @@ def bindWaitFindSnap (doc : EditableDocument) (p : Snapshot → Bool) (notFoundX : RequestM (RequestTask β)) (x : Snapshot → RequestM (RequestTask β)) : RequestM (RequestTask β) := do - let findTask ← doc.cmdSnaps.waitFind? p + let findTask := doc.cmdSnaps.waitFind? p bindTask findTask <| waitFindSnapAux notFoundX x /-- Create a task which waits for the snapshot containing `lspPos` and executes `f` with it. diff --git a/stage0/src/Lean/Server/Rpc/RequestHandling.lean b/stage0/src/Lean/Server/Rpc/RequestHandling.lean index 1f11482aaf..606bc0b866 100644 --- a/stage0/src/Lean/Server/Rpc/RequestHandling.lean +++ b/stage0/src/Lean/Server/Rpc/RequestHandling.lean @@ -23,33 +23,41 @@ builtin_initialize builtinRpcProcedures : IO.Ref (Std.PHashMap Name RpcProcedure builtin_initialize userRpcProcedures : MapDeclarationExtension Name ← mkMapDeclarationExtension `userRpcProcedures -open RequestM in -private unsafe def handleRpcCallUnsafe (p : Lsp.RpcCallParams) : RequestM (RequestTask Json) := do - let doc ← readDoc - let text := doc.meta.text - let callPos := text.lspPosToUtf8Pos p.position - bindWaitFindSnap doc (fun s => s.endPos >= callPos) - (notFoundX := throwThe RequestError - { code := JsonRpc.ErrorCode.invalidParams - message := s!"Incorrect position '{p.toTextDocumentPositionParams}' in RPC call" }) - fun snap => do - if let some proc := (← builtinRpcProcedures.get).find? p.method then - proc.wrapper p.sessionId p.params - else if let some procName := userRpcProcedures.find? snap.env p.method then - let options := snap.cmdState.scopes.head!.opts - let proc : Except _ _ := Lean.Environment.evalConstCheck RpcProcedure snap.env options ``RpcProcedure procName - match proc with - | Except.ok x => x.wrapper p.sessionId p.params - | Except.error e => throwThe RequestError { - code := JsonRpc.ErrorCode.internalError - message := s!"Failed to evaluate RPC constant '{procName}': {e}" } - else - throwThe RequestError { - code := JsonRpc.ErrorCode.methodNotFound - message := s!"No RPC method '{p.method}' bound" } +private unsafe def evalRpcProcedureUnsafe (env : Environment) (opts : Options) (procName : Name) : + Except String RpcProcedure := + env.evalConstCheck RpcProcedure opts ``RpcProcedure procName -@[implementedBy handleRpcCallUnsafe] -private opaque handleRpcCall (p : Lsp.RpcCallParams) : RequestM (RequestTask Json) +@[implementedBy evalRpcProcedureUnsafe] +opaque evalRpcProcedure (env : Environment) (opts : Options) (procName : Name) : + Except String RpcProcedure + +open RequestM in +def handleRpcCall (p : Lsp.RpcCallParams) : RequestM (RequestTask Json) := do + -- The imports are finished at this point, because the handleRequest function + -- waits for the header. (Therefore the built-in RPC procedures won't change + -- if we wait for further snapshots.) + if let some proc := (← builtinRpcProcedures.get).find? p.method then + proc.wrapper p.sessionId p.params + else + let doc ← readDoc + let text := doc.meta.text + let callPos := text.lspPosToUtf8Pos p.position + let throwNotFound := throwThe RequestError + { code := .methodNotFound + message := s!"No RPC method '{p.method}' found"} + bindWaitFindSnap doc (notFoundX := throwNotFound) + (fun s => s.endPos >= callPos || + (userRpcProcedures.find? s.env p.method).isSome) + fun snap => do + if let some procName := userRpcProcedures.find? snap.env p.method then + let options := snap.cmdState.scopes.head!.opts + match evalRpcProcedure snap.env options procName with + | .ok x => x.wrapper p.sessionId p.params + | .error e => throwThe RequestError { + code := .internalError + message := s!"Failed to evaluate RPC constant '{procName}': {e}" } + else + throwNotFound builtin_initialize registerLspRequestHandler "$/lean/rpc/call" Lsp.RpcCallParams Json handleRpcCall diff --git a/stage0/src/Lean/Widget/UserWidget.lean b/stage0/src/Lean/Widget/UserWidget.lean index c4f454e805..b593148027 100644 --- a/stage0/src/Lean/Widget/UserWidget.lean +++ b/stage0/src/Lean/Widget/UserWidget.lean @@ -95,17 +95,20 @@ structure GetWidgetSourceParams where pos : Lean.Lsp.Position deriving ToJson, FromJson -open Server in +open Server RequestM in @[serverRpcMethod] -def getWidgetSource (args : GetWidgetSourceParams) : RequestM (RequestTask WidgetSource) := - RequestM.withWaitFindSnapAtPos args.pos fun snap => do - RequestM.runCoreM snap do - let env ← getEnv - if let some id := widgetSourceRegistry.getState env |>.find? args.hash then - let d ← getUserWidgetDefinition id - return {sourcetext := d.javascript} +def getWidgetSource (args : GetWidgetSourceParams) : RequestM (RequestTask WidgetSource) := do + let doc ← readDoc + let pos := doc.meta.text.lspPosToUtf8Pos args.pos + let notFound := throwThe RequestError ⟨.invalidParams, s!"No registered user-widget with hash {args.hash}"⟩ + withWaitFindSnap doc (notFoundX := notFound) + (fun s => s.endPos >= pos || (widgetSourceRegistry.getState s.env).contains args.hash) + fun snap => do + if let some id := widgetSourceRegistry.getState snap.env |>.find? args.hash then + runCoreM snap do + return {sourcetext := (← getUserWidgetDefinition id).javascript} else - throwThe RequestError ⟨.invalidParams, s!"No registered user-widget with hash {args.hash}"⟩ + notFound open Lean Elab @@ -145,7 +148,7 @@ def getWidgets (args : Lean.Lsp.Position) : RequestM (RequestTask (GetWidgetsRes let doc ← readDoc let filemap := doc.meta.text let pos := filemap.lspPosToUtf8Pos args - withWaitFindSnapAtPos args fun snap => do + withWaitFindSnap doc (·.endPos >= pos) (notFoundX := return ⟨∅⟩) fun snap => do let env := snap.env let ws := widgetInfosAt? filemap snap.infoTree pos let ws ← ws.toArray.mapM (fun (w : UserWidgetInfo) => do diff --git a/stage0/stdlib/Init/Prelude.c b/stage0/stdlib/Init/Prelude.c index a24fd94bfe..1a829f76c1 100644 --- a/stage0/stdlib/Init/Prelude.c +++ b/stage0/stdlib/Init/Prelude.c @@ -195,6 +195,7 @@ LEAN_EXPORT lean_object* l_Lean_Macro_Context_currRecDepth___default; static lean_object* l_EStateM_instMonadStateOfEStateM___closed__1; LEAN_EXPORT lean_object* l_Applicative_seqRight___default(lean_object*); LEAN_EXPORT lean_object* l_EStateM_adaptExcept(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_instHashableSubtype(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_cond___rarg(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAtom(lean_object*); @@ -268,6 +269,7 @@ LEAN_EXPORT uint8_t l_instDecidableEqChar(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_ReaderT_instFunctorReaderT(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Name_casesOn___override___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EStateM_dummyRestore___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_instHashableSubtype___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Macro_instMonadQuotationMacroM___lambda__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_namedPattern___rarg(lean_object*, lean_object*); static lean_object* l_instSubNat___closed__1; @@ -6991,6 +6993,22 @@ x_6 = lean_box_uint64(x_5); return x_6; } } +LEAN_EXPORT lean_object* l_instHashableSubtype___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_1(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_instHashableSubtype(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_instHashableSubtype___rarg), 3, 0); +return x_2; +} +} LEAN_EXPORT lean_object* l_String_hash___boxed(lean_object* x_1) { _start: { diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Basic.c b/stage0/stdlib/Lean/Compiler/LCNF/Basic.c index e9b8b256c8..12a9fce1de 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Basic.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Basic.c @@ -19,52 +19,91 @@ size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Compiler_LCNF_instInhabitedParam___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateReturnImp(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateContImp___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Code_size_go___spec__1(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2; +lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateContImp(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedParam___closed__1; static lean_object* l_Lean_Compiler_LCNF_instInhabitedLetDecl___closed__1; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunImp___closed__2; +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1; +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateLetImp(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunImp___closed__1; +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256____boxed(lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedCasesCore(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedCasesCore___closed__1; lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42____boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_size(lean_object*); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedCodeDecl; +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_sizeLe_inc(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Param_toExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltCodeImp(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqLetDecl; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__2; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp___closed__2; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqFunDecl; +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateParamCoreImp(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedCode___closed__1; LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Code_isReturnOf(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedParam; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Code_sizeLe_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_sizeLe_inc___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_FunDeclCore_getArity___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Code_isDecl(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_getArity___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_getArity(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instAlt(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateJmpImp___closed__2; +static lean_object* l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedLetDecl; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Code_sizeLe_go___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instExpr(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_FunDeclCore_getArity(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5; +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CodeDecl_isPure(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instLetDecl___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_instBEqCode___closed__1; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateReturnImp___closed__2; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateJmpImp___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqParam; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_fvarId___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqCode; lean_object* l_Lean_Expr_bvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instParams___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMono(lean_object*); @@ -77,17 +116,23 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Code_ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_sizeLe_go___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvar___override(lean_object*); size_t lean_ptr_addr(lean_object*); +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_sizeLe_go(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_isDecl___boxed(lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_AltCore_getCode(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateParamsLevelParams___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1; +static lean_object* l_Lean_Compiler_LCNF_instBEqParam___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_isReturnOf___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunImp(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateLetDeclCoreImp(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Code_sizeLe(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp___closed__1; +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateTypeLevelParams(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_size_go(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp___closed__2; @@ -100,22 +145,32 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_i lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateTypeLevelParams___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateLetImp___closed__1; +static lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunDeclCoreImp(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateJmpImp(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_FunDeclCore_getArity___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instLetDecl(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instParams(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_isPure___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp(lean_object*, lean_object*); +lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1(lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateParamsLevelParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParams___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_fvarId(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instExpr___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateReturnImp___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_sizeLe___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_size(lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; static lean_object* l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1; @@ -151,6 +206,69 @@ x_1 = l_Lean_Compiler_LCNF_instInhabitedParam___closed__2; return x_1; } } +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42_(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; uint8_t x_9; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_1, 2); +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_name_eq(x_3, x_6); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_name_eq(x_4, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_expr_eqv(x_5, x_8); +return x_13; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqParam___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqParam() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instBEqParam___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Param_toExpr(lean_object* x_1) { _start: { @@ -216,6 +334,111 @@ x_1 = l_Lean_Compiler_LCNF_instInhabitedLetDecl___closed__1; return x_1; } } +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256_(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_1, 2); +x_6 = lean_ctor_get(x_1, 3); +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get(x_2, 2); +x_11 = lean_ctor_get(x_2, 3); +x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +x_13 = lean_name_eq(x_3, x_8); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +else +{ +uint8_t x_15; +x_15 = lean_name_eq(x_4, x_9); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +else +{ +uint8_t x_17; +x_17 = lean_expr_eqv(x_5, x_10); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_expr_eqv(x_6, x_11); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = 0; +return x_20; +} +else +{ +if (x_7 == 0) +{ +if (x_12 == 0) +{ +uint8_t x_21; +x_21 = 1; +return x_21; +} +else +{ +uint8_t x_22; +x_22 = 0; +return x_22; +} +} +else +{ +return x_12; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqLetDecl() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedFunDeclCore___rarg(lean_object* x_1) { _start: { @@ -309,6 +532,876 @@ x_1 = l_Lean_Compiler_LCNF_instInhabitedCode___closed__1; return x_1; } } +static lean_object* _init_l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_instInhabitedLetDecl___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_Lean_Compiler_LCNF_instInhabitedCodeDecl() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_fvarId(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_fvarId___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Compiler_LCNF_CodeDecl_fvarId(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CodeDecl_isPure(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; uint8_t x_3; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CodeDecl_isPure___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Compiler_LCNF_CodeDecl_isPure(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___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_array_get_size(x_4); +x_8 = lean_nat_dec_lt(x_6, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_6); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_fget(x_4, x_6); +x_11 = lean_array_fget(x_5, x_6); +x_12 = lean_expr_eqv(x_10, x_11); +lean_dec(x_11); +lean_dec(x_10); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_6); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_3 = lean_box(0); +x_6 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; size_t x_4; uint8_t x_5; +x_3 = lean_ptr_addr(x_1); +x_4 = lean_ptr_addr(x_2); +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_256_(x_6, x_8); +lean_dec(x_6); +if (x_10 == 0) +{ +uint8_t x_11; +lean_dec(x_7); +x_11 = 0; +return x_11; +} +else +{ +x_1 = x_7; +x_2 = x_9; +goto _start; +} +} +else +{ +uint8_t x_13; +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +case 1: +{ +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +lean_dec(x_1); +x_16 = lean_ctor_get(x_2, 0); +x_17 = lean_ctor_get(x_2, 1); +x_18 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(x_14, x_16); +if (x_18 == 0) +{ +uint8_t x_19; +lean_dec(x_15); +x_19 = 0; +return x_19; +} +else +{ +x_1 = x_15; +x_2 = x_17; +goto _start; +} +} +else +{ +uint8_t x_21; +lean_dec(x_1); +x_21 = 0; +return x_21; +} +} +case 2: +{ +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_ctor_get(x_2, 1); +x_26 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(x_22, x_24); +if (x_26 == 0) +{ +uint8_t x_27; +lean_dec(x_23); +x_27 = 0; +return x_27; +} +else +{ +x_1 = x_23; +x_2 = x_25; +goto _start; +} +} +else +{ +uint8_t x_29; +lean_dec(x_1); +x_29 = 0; +return x_29; +} +} +case 3: +{ +if (lean_obj_tag(x_2) == 3) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_1, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +lean_dec(x_1); +x_32 = lean_ctor_get(x_2, 0); +x_33 = lean_ctor_get(x_2, 1); +x_34 = lean_name_eq(x_30, x_32); +lean_dec(x_30); +if (x_34 == 0) +{ +uint8_t x_35; +lean_dec(x_31); +x_35 = 0; +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_array_get_size(x_31); +x_37 = lean_array_get_size(x_33); +x_38 = lean_nat_dec_eq(x_36, x_37); +lean_dec(x_37); +lean_dec(x_36); +if (x_38 == 0) +{ +uint8_t x_39; +lean_dec(x_31); +x_39 = 0; +return x_39; +} +else +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_unsigned_to_nat(0u); +x_41 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___spec__1(x_31, x_33, lean_box(0), x_31, x_33, x_40); +lean_dec(x_31); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_1); +x_42 = 0; +return x_42; +} +} +case 4: +{ +if (lean_obj_tag(x_2) == 4) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_1, 0); +lean_inc(x_43); +lean_dec(x_1); +x_44 = lean_ctor_get(x_2, 0); +x_45 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases(x_43, x_44); +lean_dec(x_43); +return x_45; +} +else +{ +uint8_t x_46; +lean_dec(x_1); +x_46 = 0; +return x_46; +} +} +case 5: +{ +if (lean_obj_tag(x_2) == 5) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_1, 0); +lean_inc(x_47); +lean_dec(x_1); +x_48 = lean_ctor_get(x_2, 0); +x_49 = lean_name_eq(x_47, x_48); +lean_dec(x_47); +return x_49; +} +else +{ +uint8_t x_50; +lean_dec(x_1); +x_50 = 0; +return x_50; +} +} +default: +{ +if (lean_obj_tag(x_2) == 6) +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_1, 0); +lean_inc(x_51); +lean_dec(x_1); +x_52 = lean_ctor_get(x_2, 0); +x_53 = lean_expr_eqv(x_51, x_52); +lean_dec(x_51); +return x_53; +} +else +{ +uint8_t x_54; +lean_dec(x_1); +x_54 = 0; +return x_54; +} +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_1); +x_55 = 1; +return x_55; +} +} +} +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___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_array_get_size(x_4); +x_8 = lean_nat_dec_lt(x_6, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_6); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_fget(x_4, x_6); +x_11 = lean_array_fget(x_5, x_6); +x_12 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt(x_10, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_6); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_3 = lean_box(0); +x_6 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_expr_eqv(x_3, x_4); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_1, 2); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_name_eq(x_7, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_name_eq(x_11, x_12); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_1, 3); +x_16 = lean_ctor_get(x_2, 3); +x_17 = lean_array_get_size(x_15); +x_18 = lean_array_get_size(x_16); +x_19 = lean_nat_dec_eq(x_17, x_18); +lean_dec(x_18); +lean_dec(x_17); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = 0; +return x_20; +} +else +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___spec__1(x_1, x_2, lean_box(0), x_15, x_16, x_21); +return x_22; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___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_array_get_size(x_4); +x_8 = lean_nat_dec_lt(x_6, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_6); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_fget(x_4, x_6); +x_11 = lean_array_fget(x_5, x_6); +x_12 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42_(x_10, x_11); +lean_dec(x_11); +lean_dec(x_10); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_6); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_3 = lean_box(0); +x_6 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +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; uint8_t x_9; +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_ctor_get(x_1, 2); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_name_eq(x_3, x_6); +lean_dec(x_3); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_array_get_size(x_4); +x_12 = lean_array_get_size(x_7); +x_13 = lean_nat_dec_eq(x_11, x_12); +lean_dec(x_12); +lean_dec(x_11); +if (x_13 == 0) +{ +uint8_t x_14; +lean_dec(x_5); +lean_dec(x_4); +x_14 = 0; +return x_14; +} +else +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___spec__1(x_4, x_7, lean_box(0), x_4, x_7, x_15); +lean_dec(x_4); +if (x_16 == 0) +{ +uint8_t x_17; +lean_dec(x_5); +x_17 = 0; +return x_17; +} +else +{ +uint8_t x_18; +x_18 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(x_5, x_8); +return x_18; +} +} +} +} +else +{ +uint8_t x_19; +lean_dec(x_1); +x_19 = 0; +return x_19; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_20; +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +lean_dec(x_1); +x_22 = lean_ctor_get(x_2, 0); +x_23 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(x_21, x_22); +return x_23; +} +} +} +} +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___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_array_get_size(x_4); +x_8 = lean_nat_dec_lt(x_6, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_6); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_fget(x_4, x_6); +x_11 = lean_array_fget(x_5, x_6); +x_12 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqParam____x40_Lean_Compiler_LCNF_Basic___hyg_42_(x_10, x_11); +lean_dec(x_11); +lean_dec(x_10); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_6); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_3 = lean_box(0); +x_6 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; size_t x_4; uint8_t x_5; +x_3 = lean_ptr_addr(x_1); +x_4 = lean_ptr_addr(x_2); +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_name_eq(x_6, x_7); +lean_dec(x_6); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +x_12 = lean_name_eq(x_10, x_11); +lean_dec(x_10); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_1); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_14 = lean_ctor_get(x_1, 2); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 2); +x_16 = lean_array_get_size(x_14); +x_17 = lean_array_get_size(x_15); +x_18 = lean_nat_dec_eq(x_16, x_17); +lean_dec(x_17); +lean_dec(x_16); +if (x_18 == 0) +{ +uint8_t x_19; +lean_dec(x_14); +lean_dec(x_1); +x_19 = 0; +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___spec__1(x_1, x_2, lean_box(0), x_14, x_15, x_20); +lean_dec(x_14); +if (x_21 == 0) +{ +uint8_t x_22; +lean_dec(x_1); +x_22 = 0; +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_1, 3); +lean_inc(x_23); +x_24 = lean_ctor_get(x_2, 3); +x_25 = lean_expr_eqv(x_23, x_24); +lean_dec(x_23); +if (x_25 == 0) +{ +uint8_t x_26; +lean_dec(x_1); +x_26 = 0; +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_1, 4); +lean_inc(x_27); +lean_dec(x_1); +x_28 = lean_ctor_get(x_2, 4); +x_29 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(x_27, x_28); +return x_29; +} +} +} +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_1); +x_30 = 1; +return x_30; +} +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___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_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___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_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqCases(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___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_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqAlt(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___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_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqCode___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqImp___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqCode() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instBEqCode___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_instBEqFunDecl() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_AltCore_getCode(lean_object* x_1) { _start: { @@ -474,7 +1567,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__2; -x_3 = lean_unsigned_to_nat(87u); +x_3 = lean_unsigned_to_nat(143u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -605,7 +1698,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp___closed__1; -x_3 = lean_unsigned_to_nat(94u); +x_3 = lean_unsigned_to_nat(150u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -738,7 +1831,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp___closed__1; -x_3 = lean_unsigned_to_nat(101u); +x_3 = lean_unsigned_to_nat(157u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1009,7 +2102,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateLetImp___closed__1; -x_3 = lean_unsigned_to_nat(108u); +x_3 = lean_unsigned_to_nat(164u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1122,7 +2215,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateContImp___closed__1; -x_3 = lean_unsigned_to_nat(117u); +x_3 = lean_unsigned_to_nat(173u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1285,7 +2378,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunImp___closed__1; -x_3 = lean_unsigned_to_nat(125u); +x_3 = lean_unsigned_to_nat(181u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1477,7 +2570,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateReturnImp___closed__1; -x_3 = lean_unsigned_to_nat(132u); +x_3 = lean_unsigned_to_nat(188u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1546,7 +2639,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateJmpImp___closed__1; -x_3 = lean_unsigned_to_nat(139u); +x_3 = lean_unsigned_to_nat(195u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1657,7 +2750,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; x_2 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__1; -x_3 = lean_unsigned_to_nat(146u); +x_3 = lean_unsigned_to_nat(202u); x_4 = lean_unsigned_to_nat(9u); x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -2017,6 +3110,393 @@ return x_1; } } } +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_instInhabitedCasesCore(lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1; +x_2 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1; +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; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_name_eq(x_1, x_3); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.Compiler.LCNF.CasesCore.extractAlt!", 40); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___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___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1; +x_2 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2; +x_3 = lean_unsigned_to_nat(252u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___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_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Init.Util", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("getElem!", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("index out of bounds", 19); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__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_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4; +x_2 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5; +x_3 = lean_unsigned_to_nat(77u); +x_4 = lean_unsigned_to_nat(36u); +x_5 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(lean_object* x_1, lean_object* x_2) { +_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; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1___boxed), 2, 1); +lean_closure_set(x_8, 0, x_2); +x_9 = lean_array_get_size(x_7); +x_10 = lean_unsigned_to_nat(0u); +lean_inc(x_9); +x_11 = l_Array_findIdx_x3f_loop___rarg(x_7, x_8, x_9, x_10, lean_box(0)); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1; +lean_inc(x_9); +x_13 = l_Array_findIdx_x3f_loop___rarg(x_7, x_12, x_9, x_10, lean_box(0)); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +lean_free_object(x_1); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_14 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3; +x_15 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1(x_14); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_nat_dec_lt(x_16, x_9); +lean_dec(x_9); +lean_inc(x_7); +x_18 = l_Array_eraseIdx___rarg(x_7, x_16); +lean_ctor_set(x_1, 3, x_18); +if (x_17 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_16); +lean_dec(x_7); +x_19 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7; +x_20 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_1); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_array_fget(x_7, x_16); +lean_dec(x_16); +lean_dec(x_7); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_1); +return x_23; +} +} +} +else +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_11, 0); +lean_inc(x_24); +lean_dec(x_11); +x_25 = lean_nat_dec_lt(x_24, x_9); +lean_dec(x_9); +lean_inc(x_7); +x_26 = l_Array_eraseIdx___rarg(x_7, x_24); +lean_ctor_set(x_1, 3, x_26); +if (x_25 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_24); +lean_dec(x_7); +x_27 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7; +x_28 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_1); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_array_fget(x_7, x_24); +lean_dec(x_24); +lean_dec(x_7); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_1); +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; +x_32 = lean_ctor_get(x_1, 0); +x_33 = lean_ctor_get(x_1, 1); +x_34 = lean_ctor_get(x_1, 2); +x_35 = lean_ctor_get(x_1, 3); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_1); +x_36 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1___boxed), 2, 1); +lean_closure_set(x_36, 0, x_2); +x_37 = lean_array_get_size(x_35); +x_38 = lean_unsigned_to_nat(0u); +lean_inc(x_37); +x_39 = l_Array_findIdx_x3f_loop___rarg(x_35, x_36, x_37, x_38, lean_box(0)); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1; +lean_inc(x_37); +x_41 = l_Array_findIdx_x3f_loop___rarg(x_35, x_40, x_37, x_38, lean_box(0)); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +x_42 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3; +x_43 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1(x_42); +return x_43; +} +else +{ +lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_41, 0); +lean_inc(x_44); +lean_dec(x_41); +x_45 = lean_nat_dec_lt(x_44, x_37); +lean_dec(x_37); +lean_inc(x_35); +x_46 = l_Array_eraseIdx___rarg(x_35, x_44); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_32); +lean_ctor_set(x_47, 1, x_33); +lean_ctor_set(x_47, 2, x_34); +lean_ctor_set(x_47, 3, x_46); +if (x_45 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_44); +lean_dec(x_35); +x_48 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7; +x_49 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_array_fget(x_35, x_44); +lean_dec(x_44); +lean_dec(x_35); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_47); +return x_52; +} +} +} +else +{ +lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_39, 0); +lean_inc(x_53); +lean_dec(x_39); +x_54 = lean_nat_dec_lt(x_53, x_37); +lean_dec(x_37); +lean_inc(x_35); +x_55 = l_Array_eraseIdx___rarg(x_35, x_53); +x_56 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_56, 0, x_32); +lean_ctor_set(x_56, 1, x_33); +lean_ctor_set(x_56, 2, x_34); +lean_ctor_set(x_56, 3, x_55); +if (x_54 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_53); +lean_dec(x_35); +x_57 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7; +x_58 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_56); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_array_fget(x_35, x_53); +lean_dec(x_53); +lean_dec(x_35); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_56); +return x_61; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Code_isDecl(lean_object* x_1) { _start: { @@ -3536,18 +5016,38 @@ l_Lean_Compiler_LCNF_instInhabitedParam___closed__2 = _init_l_Lean_Compiler_LCNF lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedParam___closed__2); l_Lean_Compiler_LCNF_instInhabitedParam = _init_l_Lean_Compiler_LCNF_instInhabitedParam(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedParam); +l_Lean_Compiler_LCNF_instBEqParam___closed__1 = _init_l_Lean_Compiler_LCNF_instBEqParam___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqParam___closed__1); +l_Lean_Compiler_LCNF_instBEqParam = _init_l_Lean_Compiler_LCNF_instBEqParam(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqParam); l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg___closed__1 = _init_l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg___closed__1); l_Lean_Compiler_LCNF_instInhabitedLetDecl___closed__1 = _init_l_Lean_Compiler_LCNF_instInhabitedLetDecl___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedLetDecl___closed__1); l_Lean_Compiler_LCNF_instInhabitedLetDecl = _init_l_Lean_Compiler_LCNF_instInhabitedLetDecl(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedLetDecl); +l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1 = _init_l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqLetDecl___closed__1); +l_Lean_Compiler_LCNF_instBEqLetDecl = _init_l_Lean_Compiler_LCNF_instBEqLetDecl(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqLetDecl); l_Lean_Compiler_LCNF_instInhabitedCasesCore___closed__1 = _init_l_Lean_Compiler_LCNF_instInhabitedCasesCore___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedCasesCore___closed__1); l_Lean_Compiler_LCNF_instInhabitedCode___closed__1 = _init_l_Lean_Compiler_LCNF_instInhabitedCode___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedCode___closed__1); l_Lean_Compiler_LCNF_instInhabitedCode = _init_l_Lean_Compiler_LCNF_instInhabitedCode(); lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedCode); +l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1 = _init_l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedCodeDecl___closed__1); +l_Lean_Compiler_LCNF_instInhabitedCodeDecl = _init_l_Lean_Compiler_LCNF_instInhabitedCodeDecl(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instInhabitedCodeDecl); +l_Lean_Compiler_LCNF_instBEqCode___closed__1 = _init_l_Lean_Compiler_LCNF_instBEqCode___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqCode___closed__1); +l_Lean_Compiler_LCNF_instBEqCode = _init_l_Lean_Compiler_LCNF_instBEqCode(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqCode); +l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1 = _init_l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqFunDecl___closed__1); +l_Lean_Compiler_LCNF_instBEqFunDecl = _init_l_Lean_Compiler_LCNF_instBEqFunDecl(); +lean_mark_persistent(l_Lean_Compiler_LCNF_instBEqFunDecl); l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1 = _init_l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1(); lean_mark_persistent(l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___spec__1___closed__1); l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1 = _init_l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__1(); @@ -3590,6 +5090,24 @@ l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___cl lean_mark_persistent(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__1); l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__2 = _init_l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__2(); lean_mark_persistent(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__2); +l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1 = _init_l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__1); +l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2 = _init_l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1___closed__2); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__2); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__3); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__4); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__5); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__6); +l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7 = _init_l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7(); +lean_mark_persistent(l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__7); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Bind.c b/stage0/stdlib/Lean/Compiler/LCNF/Bind.c index 278b1341e7..cd93e56af2 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Bind.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Bind.c @@ -14,7 +14,6 @@ extern "C" { #endif static lean_object* l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__1; -extern lean_object* l_Lean_Compiler_LCNF_instInhabitedCode; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -45,13 +44,11 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_FunDecl_etaExpand_mkNewParams___bo lean_object* l_Lean_Compiler_LCNF_getArrowArity(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_FunDecl_etaExpand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Code_bind_go___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg(lean_object*); static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -73,12 +70,11 @@ lean_object* l_Lean_Compiler_LCNF_joinTypes(lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_bind_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); +lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Compiler_LCNF_Code_bind_go___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__3; lean_object* l_Lean_Compiler_LCNF_AltCore_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_panic_fn(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_bind_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_bind_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_InferType_mkForallParams___spec__1(size_t, size_t, lean_object*); @@ -3112,24 +3108,6 @@ return x_24; } } } -static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Compiler_LCNF_instInhabitedCode; -x_2 = l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; -} -} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_bind_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -3189,7 +3167,7 @@ if (x_42 == 0) { lean_object* x_43; lean_object* x_44; x_43 = l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__4; -x_44 = l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7(x_43); +x_44 = l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__2(x_43); x_10 = x_44; goto block_39; } @@ -4522,8 +4500,6 @@ l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__5 = _ lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__5); l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__6 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__6(); lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Code_bind_go___spec__4___closed__6); -l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1 = _init_l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Code_bind_go___spec__7___closed__1); l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__1 = _init_l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__1); l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__2 = _init_l_Lean_Compiler_LCNF_Code_bind_go___lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/LCNF/CSE.c b/stage0/stdlib/Lean/Compiler/LCNF/CSE.c index e7f96f1f3d..1e71c8d46d 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/CSE.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/CSE.c @@ -82,7 +82,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go_ static lean_object* l_Lean_Compiler_LCNF_CSE_instMonadFVarSubstM___closed__2; lean_object* l_Lean_Expr_fvar___override(lean_object*); size_t lean_ptr_addr(lean_object*); -lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Compiler_LCNF_CSE_instMonadFVarSubstM___spec__2(lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Compiler_LCNF_CSE_addEntry___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1216,83 +1216,84 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CSE_replaceFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +uint8_t 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 = 1; lean_inc(x_1); -x_8 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_4, x_5, x_6, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_st_ref_take(x_3, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +x_9 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_8, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_take(x_3, x_10); +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Expr_fvar___override(x_2); -x_16 = l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(x_14, x_1, x_15); -lean_ctor_set(x_11, 1, x_16); -x_17 = lean_st_ref_set(x_3, x_11, x_12); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -x_20 = lean_box(0); -lean_ctor_set(x_17, 0, x_20); -return x_17; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_dec(x_17); -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_21); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_24 = lean_ctor_get(x_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -x_26 = l_Lean_Expr_fvar___override(x_2); -x_27 = l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(x_25, x_1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_27); -x_29 = lean_st_ref_set(x_3, x_28, x_12); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_31 = x_29; -} else { - lean_dec_ref(x_29); - x_31 = lean_box(0); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Expr_fvar___override(x_2); +x_17 = l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(x_15, x_1, x_16); +lean_ctor_set(x_12, 1, x_17); +x_18 = lean_st_ref_set(x_3, x_12, x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_18, 0, x_21); +return x_18; } -x_32 = lean_box(0); -if (lean_is_scalar(x_31)) { - x_33 = lean_alloc_ctor(0, 2, 0); -} else { - x_33 = x_31; +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = 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); +return x_24; } -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -return x_33; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_12, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_12); +x_27 = l_Lean_Expr_fvar___override(x_2); +x_28 = l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(x_26, x_1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_25); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_st_ref_set(x_3, x_29, x_13); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; +} else { + lean_dec_ref(x_30); + x_32 = lean_box(0); +} +x_33 = lean_box(0); +if (lean_is_scalar(x_32)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_32; +} +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Check.c b/stage0/stdlib/Lean/Compiler/LCNF/Check.c index 1dba69d7c3..d2bc5eb93d 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Check.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Check.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Compiler.LCNF.Check -// Imports: Init Lean.Compiler.LCNF.InferType +// Imports: Init Lean.Compiler.LCNF.InferType Lean.Compiler.LCNF.PrettyPrinter #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,81 +13,80 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2; +uint8_t l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__4; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__6; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_addFVarId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkApp___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkFVar___closed__1; -static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); -LEAN_EXPORT lean_object* l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_State_all___default; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__5; uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__1; -uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___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*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__3; +static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1; +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_erased(lean_object*); -LEAN_EXPORT lean_object* l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_InferType_inferFVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_Check_addFVarId___spec__1(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_Context_vars___default; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_check___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkJpInScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkCases___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__5; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkCases___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__6___closed__1; -LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withJp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2; lean_object* l_Std_mkHashSetImp___rarg(lean_object*); +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withJp(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___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_EXPORT uint8_t l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); +uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__6; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Compiler_LCNF_Check_checkCases___closed__4; lean_object* l_Lean_Compiler_LCNF_Code_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__2; +static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_run(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__4; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__2; @@ -96,10 +95,10 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_check static lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___closed__3; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); +lean_object* l_Lean_LocalDecl_value(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkCases___closed__5; -LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__3; @@ -107,27 +106,35 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl(lean_object*, l lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__5___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_FunDeclCore_getArity___rarg(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkCases___closed__3; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__3; -LEAN_EXPORT lean_object* l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkCases___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*); +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkApp___closed__2; lean_object* l_Lean_Compiler_LCNF_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__1; -lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_removeUnused___spec__1(lean_object*, lean_object*); lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -136,29 +143,33 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkJpInScope(lean_object*, LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDeclCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkApp___closed__1; +static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___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_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_check___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_HashSetImp_moveEntries___at_Lean_Compiler_LCNF_Check_addFVarId___spec__4(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7___boxed(lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +static lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1; lean_object* l_Lean_Expr_sort___override(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkApp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___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_EXPORT lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__1; +static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2; static lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___closed__2; -static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3; -size_t lean_usize_modn(size_t, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___closed__1; -LEAN_EXPORT lean_object* l_Std_mkHashSet___at_Lean_Compiler_LCNF_Check_State_all___default___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__3___closed__6; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__5; @@ -166,32 +177,44 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAp static lean_object* l_Lean_Compiler_LCNF_Check_checkFVar___closed__2; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_NameSet_empty; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4___closed__3; -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkApp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5; +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__1; +static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkCases___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_type(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_mkForallParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkExpr___closed__2; lean_object* l_Lean_Expr_fvar___override(lean_object*); +static lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__2; static lean_object* l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__5; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_State_all___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__7; +uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__4; -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___closed__3; -uint8_t l_Std_RBNode_isRed___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___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*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2; uint8_t l_Lean_Compiler_LCNF_compatibleTypes(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__6; @@ -199,55 +222,63 @@ static lean_object* l_Lean_Compiler_LCNF_Check_checkExpr___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Std_HashSetImp_expand___at_Lean_Compiler_LCNF_Check_addFVarId___spec__3(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +lean_object* l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__1(lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_Expr_isAnyType(lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__3; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___closed__4; uint8_t l_Lean_Expr_isFVar(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_Context_jps___default; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withFVarId___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__5; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withParams(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_getFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___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*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__3; lean_object* lean_mk_array(lean_object*, lean_object*); -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Check_checkParam___closed__5; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkCases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Compiler_LCNF_isTypeFormerType(lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParam(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___closed__2; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_checkFVar___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___closed__1; -LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Compiler_LCNF_Check_addFVarId___spec__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withFVarId(lean_object*); -static lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4___closed__2; static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__6; lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_check___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withParams___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Check_run___rarg___closed__3; static lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__3___closed__7; @@ -256,6 +287,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFVar(lean_object*, lean static lean_object* l_Lean_Compiler_LCNF_Check_checkExpr___closed__3; lean_object* l_Lean_Compiler_LCNF_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4; static lean_object* _init_l_Lean_Compiler_LCNF_Check_Context_jps___default() { _start: { @@ -272,15 +304,7 @@ x_1 = lean_box(0); return x_1; } } -LEAN_EXPORT lean_object* l_Std_mkHashSet___at_Lean_Compiler_LCNF_Check_State_all___default___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashSetImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Compiler_LCNF_Check_State_all___default() { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_State_all___default___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -289,51 +313,15 @@ x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_State_all___default() { _start: { -if (lean_obj_tag(x_1) == 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_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_1, 2); -x_7 = lean_ctor_get(x_1, 3); -x_8 = l_Lean_Name_quickCmp(x_2, x_5); -switch (x_8) { -case 0: -{ -x_1 = x_4; -goto _start; -} -case 1: -{ -lean_object* x_10; lean_object* x_11; -lean_inc(x_6); -lean_inc(x_5); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_6); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -return x_11; -} -default: -{ -x_1 = x_7; -goto _start; +lean_object* x_1; +x_1 = l_Lean_Compiler_LCNF_Check_State_all___default___closed__1; +return x_1; } } -} -} -} -static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__1() { _start: { lean_object* x_1; @@ -341,21 +329,21 @@ x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1; +x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___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_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2; +x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -363,11 +351,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2; +x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -375,11 +363,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2; +x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -387,14 +375,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6() { +static lean_object* _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3; -x_3 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4; -x_4 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5; +x_2 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3; +x_3 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4; +x_4 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5; x_5 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_1); @@ -407,7 +395,7 @@ lean_ctor_set(x_5, 7, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___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: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -432,7 +420,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); x_19 = lean_ctor_get(x_6, 2); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_19); x_21 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_21, 0, x_13); @@ -463,7 +451,7 @@ lean_inc(x_26); lean_dec(x_24); x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); x_28 = lean_ctor_get(x_6, 2); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_28); x_30 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_30, 0, x_13); @@ -523,7 +511,7 @@ _start: { lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_2, 1); -x_10 = l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_9, x_1); +x_10 = l_Std_RBNode_findCore___at_Lean_Meta_removeUnused___spec__1(x_9, x_1); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; @@ -548,7 +536,7 @@ x_18 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_13); return x_20; } else @@ -587,21 +575,11 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___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_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -650,7 +628,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); x_19 = lean_ctor_get(x_6, 2); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_19); x_21 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_21, 0, x_13); @@ -681,7 +659,7 @@ lean_inc(x_26); lean_dec(x_24); x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); x_28 = lean_ctor_get(x_6, 2); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_28); x_30 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_30, 0, x_13); @@ -727,7 +705,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); x_19 = lean_ctor_get(x_6, 2); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_19); x_21 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_21, 0, x_13); @@ -758,7 +736,7 @@ lean_inc(x_26); lean_dec(x_24); x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); x_28 = lean_ctor_get(x_6, 2); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_28); x_30 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_30, 0, x_13); @@ -2225,7 +2203,7 @@ x_30 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_32 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_31, 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); @@ -2269,7 +2247,7 @@ x_39 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_41 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_40, 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); @@ -2291,7 +2269,7 @@ x_45 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_47 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_46, 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); @@ -2325,12 +2303,12 @@ _start: { lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_2, 0); -x_10 = l_Std_RBNode_findCore___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_9, x_1); +x_10 = l_Std_RBNode_findCore___at_Lean_Meta_removeUnused___spec__1(x_9, x_1); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; x_11 = l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__2; -x_12 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_12; } else @@ -2360,6 +2338,592 @@ lean_dec(x_1); return x_9; } } +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("LCNF parameter mismatch at `", 28); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkParam___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`, type in local context", 24); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkParam___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("\nexpected", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkParam___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParam(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; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = l_Lean_Compiler_LCNF_getLocalDecl(x_9, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = l_Lean_LocalDecl_type(x_12); +lean_dec(x_12); +x_15 = lean_ctor_get(x_1, 2); +lean_inc(x_15); +x_16 = lean_expr_eqv(x_14, x_15); +if (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_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_free_object(x_10); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_dec(x_1); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_Compiler_LCNF_Check_checkParam___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Compiler_LCNF_Check_checkParam___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_indentExpr(x_14); +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_indentExpr(x_15); +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +return x_31; +} +else +{ +lean_object* x_32; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_1); +x_32 = lean_box(0); +lean_ctor_set(x_10, 0, x_32); +return x_10; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_10, 0); +x_34 = lean_ctor_get(x_10, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_10); +x_35 = l_Lean_LocalDecl_type(x_33); +lean_dec(x_33); +x_36 = lean_ctor_get(x_1, 2); +lean_inc(x_36); +x_37 = lean_expr_eqv(x_35, x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_38 = lean_ctor_get(x_1, 1); +lean_inc(x_38); +lean_dec(x_1); +x_39 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = l_Lean_Compiler_LCNF_Check_checkParam___closed__2; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Compiler_LCNF_Check_checkParam___closed__4; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_indentExpr(x_35); +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_indentExpr(x_36); +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_1); +x_53 = lean_box(0); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_34); +return x_54; +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_10); +if (x_55 == 0) +{ +return x_10; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_10, 0); +x_57 = lean_ctor_get(x_10, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_10); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParam___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_Compiler_LCNF_Check_checkParam(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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_eq(x_2, x_3); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_4); +x_13 = lean_array_uget(x_1, x_2); +x_14 = l_Lean_Compiler_LCNF_Check_checkParam(x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; +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 = 1; +x_18 = lean_usize_add(x_2, x_17); +x_2 = x_18; +x_4 = x_15; +x_11 = x_16; +goto _start; +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +return x_14; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +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; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_4); +lean_ctor_set(x_24, 1, x_11); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParams(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; uint8_t x_11; +x_9 = lean_array_get_size(x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_lt(x_10, x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +return x_13; +} +else +{ +uint8_t x_14; +x_14 = lean_nat_dec_le(x_9, x_9); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_8); +return x_16; +} +else +{ +size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = 0; +x_18 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_19 = lean_box(0); +x_20 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___spec__1(x_1, x_17, x_18, x_19, 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_20; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_checkParams___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkParams___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_Compiler_LCNF_Check_checkParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("LCNF let declaration mismatch at `", 34); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`, value in local context", 25); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_LocalDecl_value(x_1); +x_13 = lean_expr_eqv(x_12, x_2); +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; 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_14 = lean_ctor_get(x_3, 1); +lean_inc(x_14); +x_15 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_indentExpr(x_12); +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_indentExpr(x_2); +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_12); +lean_dec(x_2); +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_11); +return x_30; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = l_Lean_Compiler_LCNF_getLocalDecl(x_11, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +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_LocalDecl_type(x_13); +x_16 = lean_ctor_get(x_1, 2); +lean_inc(x_16); +x_17 = lean_expr_eqv(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_13); +lean_dec(x_2); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +lean_dec(x_1); +x_19 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_Compiler_LCNF_Check_checkParam___closed__4; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_indentExpr(x_15); +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_indentExpr(x_16); +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +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_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +return x_32; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_16); +lean_dec(x_15); +x_37 = lean_box(0); +x_38 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1(x_13, x_2, x_1, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +lean_dec(x_13); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_12); +if (x_39 == 0) +{ +return x_12; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_12, 0); +x_41 = lean_ctor_get(x_12, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_12); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__1() { _start: { @@ -2417,187 +2981,93 @@ lean_dec(x_10); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_9); x_12 = l_Lean_Compiler_LCNF_inferType(x_9, x_5, x_6, 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; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -x_16 = lean_ctor_get(x_1, 2); -lean_inc(x_16); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +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_inc(x_16); -x_17 = l_Lean_Compiler_LCNF_compatibleTypes(x_16, x_14); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_free_object(x_12); -x_18 = lean_ctor_get(x_1, 1); -lean_inc(x_18); -lean_dec(x_1); -x_19 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; -x_21 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_indentExpr(x_14); -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_indentExpr(x_16); -x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_15); -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_32; -} -else -{ -lean_object* x_33; -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_33 = lean_box(0); -lean_ctor_set(x_12, 0, x_33); -return x_12; -} -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_12, 0); -x_35 = lean_ctor_get(x_12, 1); -lean_inc(x_35); -lean_inc(x_34); lean_dec(x_12); -x_36 = lean_ctor_get(x_1, 2); -lean_inc(x_36); +x_15 = lean_ctor_get(x_1, 2); +lean_inc(x_15); +lean_inc(x_13); +lean_inc(x_15); +x_16 = l_Lean_Compiler_LCNF_compatibleTypes(x_15, x_13); +if (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_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; uint8_t x_32; +lean_dec(x_9); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_dec(x_1); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_indentExpr(x_13); +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_indentExpr(x_15); +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +return x_31; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); lean_inc(x_34); -lean_inc(x_36); -x_37 = l_Lean_Compiler_LCNF_compatibleTypes(x_36, x_34); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_38 = lean_ctor_get(x_1, 1); -lean_inc(x_38); -lean_dec(x_1); -x_39 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_indentExpr(x_34); -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_indentExpr(x_36); -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; -x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_35); -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_52; -} -else -{ -lean_object* x_53; lean_object* x_54; -lean_dec(x_36); -lean_dec(x_34); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_53 = lean_box(0); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_35); -return x_54; -} +lean_inc(x_33); +lean_dec(x_31); +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_55; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_12); -if (x_55 == 0) -{ -return x_12; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_12, 0); -x_57 = lean_ctor_get(x_12, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_12); -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; -} +lean_object* x_36; lean_object* x_37; +lean_dec(x_15); +lean_dec(x_13); +x_36 = lean_box(0); +x_37 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__2(x_1, x_9, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +return x_37; } } else { -uint8_t x_59; +uint8_t x_38; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -2606,351 +3076,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_10); -if (x_59 == 0) +x_38 = !lean_is_exclusive(x_12); +if (x_38 == 0) +{ +return x_12; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_12, 0); +x_40 = lean_ctor_get(x_12, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_12); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_10); +if (x_42 == 0) { return x_10; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_10, 0); -x_61 = lean_ctor_get(x_10, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_10, 0); +x_44 = lean_ctor_get(x_10, 1); +lean_inc(x_44); +lean_inc(x_43); lean_dec(x_10); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } } -LEAN_EXPORT uint8_t l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_name_eq(x_1, x_4); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Compiler_LCNF_Check_addFVarId___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_array_get_size(x_1); -x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(x_4); -x_8 = lean_uint64_to_usize(x_7); -x_9 = lean_usize_modn(x_8, x_6); -lean_dec(x_6); -x_10 = lean_array_uget(x_1, x_9); -lean_ctor_set(x_2, 1, x_10); -x_11 = lean_array_uset(x_1, x_9, x_2); -x_1 = x_11; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_13 = lean_ctor_get(x_2, 0); -x_14 = lean_ctor_get(x_2, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_2); -x_15 = lean_array_get_size(x_1); -x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(x_13); -x_17 = lean_uint64_to_usize(x_16); -x_18 = lean_usize_modn(x_17, x_15); -lean_dec(x_15); -x_19 = lean_array_uget(x_1, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_13); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_array_uset(x_1, x_18, x_20); -x_1 = x_21; -x_2 = x_14; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_HashSetImp_moveEntries___at_Lean_Compiler_LCNF_Check_addFVarId___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___at_Lean_Compiler_LCNF_Check_addFVarId___spec__5(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Std_HashSetImp_expand___at_Lean_Compiler_LCNF_Check_addFVarId___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(2u); -x_5 = lean_nat_mul(x_3, x_4); -lean_dec(x_3); -x_6 = lean_box(0); -x_7 = lean_mk_array(x_5, x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashSetImp_moveEntries___at_Lean_Compiler_LCNF_Check_addFVarId___spec__4(x_8, x_2, x_7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; -lean_dec(x_3); -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_1); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_name_eq(x_6, x_2); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(x_7, x_2, x_3); -lean_ctor_set(x_1, 1, x_9); -return x_1; -} -else -{ -lean_dec(x_6); -lean_ctor_set(x_1, 0, x_3); -return x_1; -} -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_1, 0); -x_11 = lean_ctor_get(x_1, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_1); -x_12 = lean_name_eq(x_10, x_2); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(x_11, x_2, x_3); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -else -{ -lean_object* x_15; +lean_object* x_12; +x_12 = l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_3); -lean_ctor_set(x_15, 1, x_11); -return x_15; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_Check_addFVarId___spec__1(lean_object* x_1, lean_object* x_2) { -_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; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_array_get_size(x_5); -x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(x_2); -x_8 = lean_uint64_to_usize(x_7); -x_9 = lean_usize_modn(x_8, x_6); -x_10 = lean_array_uget(x_5, x_9); -x_11 = l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(x_2, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_2); -lean_ctor_set(x_14, 1, x_10); -x_15 = lean_array_uset(x_5, x_9, x_14); -x_16 = lean_nat_dec_le(x_13, x_6); -lean_dec(x_6); -if (x_16 == 0) -{ -lean_object* x_17; -lean_free_object(x_1); -x_17 = l_Std_HashSetImp_expand___at_Lean_Compiler_LCNF_Check_addFVarId___spec__3(x_13, x_15); -return x_17; -} -else -{ -lean_ctor_set(x_1, 1, x_15); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_6); -lean_inc(x_2); -x_18 = l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(x_10, x_2, x_2); -lean_dec(x_2); -x_19 = lean_array_uset(x_5, x_9, x_18); -lean_ctor_set(x_1, 1, x_19); -return x_1; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27; -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 = lean_array_get_size(x_21); -x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(x_2); -x_24 = lean_uint64_to_usize(x_23); -x_25 = lean_usize_modn(x_24, x_22); -x_26 = lean_array_uget(x_21, x_25); -x_27 = l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(x_2, x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_28 = lean_unsigned_to_nat(1u); -x_29 = lean_nat_add(x_20, x_28); -lean_dec(x_20); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_26); -x_31 = lean_array_uset(x_21, x_25, x_30); -x_32 = lean_nat_dec_le(x_29, x_22); -lean_dec(x_22); -if (x_32 == 0) -{ -lean_object* x_33; -x_33 = l_Std_HashSetImp_expand___at_Lean_Compiler_LCNF_Check_addFVarId___spec__3(x_29, x_31); -return x_33; -} -else -{ -lean_object* x_34; -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_31); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_22); -lean_inc(x_2); -x_35 = l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(x_26, x_2, x_2); -lean_dec(x_2); -x_36 = lean_array_uset(x_21, x_25, x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_20); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} -LEAN_EXPORT uint8_t l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_array_get_size(x_3); -x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(x_2); -x_6 = lean_uint64_to_usize(x_5); -x_7 = lean_usize_modn(x_6, x_4); -lean_dec(x_4); -x_8 = lean_array_uget(x_3, x_7); -lean_dec(x_3); -x_9 = l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(x_2, x_8); +lean_dec(x_9); lean_dec(x_8); -lean_dec(x_2); -return x_9; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_12; } } LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___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) { @@ -2967,7 +3159,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_Check_addFVarId___spec__1(x_13, x_1); +x_15 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_13, x_1); x_16 = lean_st_ref_set(x_4, x_15, x_14); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) @@ -3042,7 +3234,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); lean_inc(x_1); -x_14 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7(x_12, x_1); +x_14 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_12, x_1); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; @@ -3097,35 +3289,6 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___at_Lean_Compiler_LCNF_Check_addFVarId___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_replace___at_Lean_Compiler_LCNF_Check_addFVarId___spec__6(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_Check_addFVarId___spec__7(x_1, x_2); -x_4 = lean_box(x_3); -return x_4; -} -} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_addFVarId___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: { @@ -3141,2476 +3304,6 @@ lean_dec(x_2); return x_10; } } -LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = 0; -x_6 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_6, 0, x_4); -lean_ctor_set(x_6, 1, x_2); -lean_ctor_set(x_6, 2, x_3); -lean_ctor_set(x_6, 3, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); -return x_6; -} -else -{ -uint8_t x_7; -x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); -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; uint8_t x_13; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -x_11 = lean_ctor_get(x_1, 2); -x_12 = lean_ctor_get(x_1, 3); -x_13 = l_Lean_Name_quickCmp(x_2, x_10); -switch (x_13) { -case 0: -{ -lean_object* x_14; uint8_t x_15; -x_14 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_9, x_2, x_3); -x_15 = 0; -lean_ctor_set(x_1, 0, x_14); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); -return x_1; -} -case 1: -{ -uint8_t x_16; -lean_dec(x_11); -lean_dec(x_10); -x_16 = 0; -lean_ctor_set(x_1, 2, x_3); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); -return x_1; -} -default: -{ -lean_object* x_17; uint8_t x_18; -x_17 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_12, x_2, x_3); -x_18 = 0; -lean_ctor_set(x_1, 3, x_17); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); -return x_1; -} -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_1, 0); -x_20 = lean_ctor_get(x_1, 1); -x_21 = lean_ctor_get(x_1, 2); -x_22 = lean_ctor_get(x_1, 3); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_1); -x_23 = l_Lean_Name_quickCmp(x_2, x_20); -switch (x_23) { -case 0: -{ -lean_object* x_24; uint8_t x_25; lean_object* x_26; -x_24 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_19, x_2, x_3); -x_25 = 0; -x_26 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_20); -lean_ctor_set(x_26, 2, x_21); -lean_ctor_set(x_26, 3, x_22); -lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); -return x_26; -} -case 1: -{ -uint8_t x_27; lean_object* x_28; -lean_dec(x_21); -lean_dec(x_20); -x_27 = 0; -x_28 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_28, 0, x_19); -lean_ctor_set(x_28, 1, x_2); -lean_ctor_set(x_28, 2, x_3); -lean_ctor_set(x_28, 3, x_22); -lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); -return x_28; -} -default: -{ -lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_29 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_22, x_2, x_3); -x_30 = 0; -x_31 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_31, 0, x_19); -lean_ctor_set(x_31, 1, x_20); -lean_ctor_set(x_31, 2, x_21); -lean_ctor_set(x_31, 3, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); -return x_31; -} -} -} -} -else -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_1); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_1, 0); -x_34 = lean_ctor_get(x_1, 1); -x_35 = lean_ctor_get(x_1, 2); -x_36 = lean_ctor_get(x_1, 3); -x_37 = l_Lean_Name_quickCmp(x_2, x_34); -switch (x_37) { -case 0: -{ -uint8_t x_38; -x_38 = l_Std_RBNode_isRed___rarg(x_33); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_33, x_2, x_3); -x_40 = 1; -lean_ctor_set(x_1, 0, x_39); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); -return x_1; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_33, x_2, x_3); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -x_43 = lean_ctor_get(x_41, 3); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; -x_45 = lean_ctor_get(x_41, 3); -lean_dec(x_45); -x_46 = lean_ctor_get(x_41, 0); -lean_dec(x_46); -x_47 = 0; -lean_ctor_set(x_41, 0, x_43); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); -x_48 = 1; -lean_ctor_set(x_1, 0, x_41); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); -return x_1; -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_41, 1); -x_50 = lean_ctor_get(x_41, 2); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_41); -x_51 = 0; -x_52 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_52, 0, x_43); -lean_ctor_set(x_52, 1, x_49); -lean_ctor_set(x_52, 2, x_50); -lean_ctor_set(x_52, 3, x_43); -lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); -x_53 = 1; -lean_ctor_set(x_1, 0, x_52); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); -return x_1; -} -} -else -{ -uint8_t x_54; -x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); -if (x_54 == 0) -{ -uint8_t x_55; -x_55 = !lean_is_exclusive(x_41); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_56 = lean_ctor_get(x_41, 1); -x_57 = lean_ctor_get(x_41, 2); -x_58 = lean_ctor_get(x_41, 3); -lean_dec(x_58); -x_59 = lean_ctor_get(x_41, 0); -lean_dec(x_59); -x_60 = !lean_is_exclusive(x_43); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; -x_61 = lean_ctor_get(x_43, 0); -x_62 = lean_ctor_get(x_43, 1); -x_63 = lean_ctor_get(x_43, 2); -x_64 = lean_ctor_get(x_43, 3); -x_65 = 1; -lean_ctor_set(x_43, 3, x_61); -lean_ctor_set(x_43, 2, x_57); -lean_ctor_set(x_43, 1, x_56); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); -lean_ctor_set(x_41, 3, x_36); -lean_ctor_set(x_41, 2, x_35); -lean_ctor_set(x_41, 1, x_34); -lean_ctor_set(x_41, 0, x_64); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); -x_66 = 0; -lean_ctor_set(x_1, 3, x_41); -lean_ctor_set(x_1, 2, x_63); -lean_ctor_set(x_1, 1, x_62); -lean_ctor_set(x_1, 0, x_43); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); -return x_1; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; -x_67 = lean_ctor_get(x_43, 0); -x_68 = lean_ctor_get(x_43, 1); -x_69 = lean_ctor_get(x_43, 2); -x_70 = lean_ctor_get(x_43, 3); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_43); -x_71 = 1; -x_72 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_72, 0, x_42); -lean_ctor_set(x_72, 1, x_56); -lean_ctor_set(x_72, 2, x_57); -lean_ctor_set(x_72, 3, x_67); -lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); -lean_ctor_set(x_41, 3, x_36); -lean_ctor_set(x_41, 2, x_35); -lean_ctor_set(x_41, 1, x_34); -lean_ctor_set(x_41, 0, x_70); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); -x_73 = 0; -lean_ctor_set(x_1, 3, x_41); -lean_ctor_set(x_1, 2, x_69); -lean_ctor_set(x_1, 1, x_68); -lean_ctor_set(x_1, 0, x_72); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); -return x_1; -} -} -else -{ -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; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_74 = lean_ctor_get(x_41, 1); -x_75 = lean_ctor_get(x_41, 2); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_41); -x_76 = lean_ctor_get(x_43, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_43, 1); -lean_inc(x_77); -x_78 = lean_ctor_get(x_43, 2); -lean_inc(x_78); -x_79 = lean_ctor_get(x_43, 3); -lean_inc(x_79); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - lean_ctor_release(x_43, 2); - lean_ctor_release(x_43, 3); - x_80 = x_43; -} else { - lean_dec_ref(x_43); - x_80 = lean_box(0); -} -x_81 = 1; -if (lean_is_scalar(x_80)) { - x_82 = lean_alloc_ctor(1, 4, 1); -} else { - x_82 = x_80; -} -lean_ctor_set(x_82, 0, x_42); -lean_ctor_set(x_82, 1, x_74); -lean_ctor_set(x_82, 2, x_75); -lean_ctor_set(x_82, 3, x_76); -lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); -x_83 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_83, 0, x_79); -lean_ctor_set(x_83, 1, x_34); -lean_ctor_set(x_83, 2, x_35); -lean_ctor_set(x_83, 3, x_36); -lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); -x_84 = 0; -lean_ctor_set(x_1, 3, x_83); -lean_ctor_set(x_1, 2, x_78); -lean_ctor_set(x_1, 1, x_77); -lean_ctor_set(x_1, 0, x_82); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); -return x_1; -} -} -else -{ -uint8_t x_85; -x_85 = !lean_is_exclusive(x_41); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; -x_86 = lean_ctor_get(x_41, 3); -lean_dec(x_86); -x_87 = lean_ctor_get(x_41, 0); -lean_dec(x_87); -x_88 = 0; -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); -x_89 = 1; -lean_ctor_set(x_1, 0, x_41); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); -return x_1; -} -else -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; -x_90 = lean_ctor_get(x_41, 1); -x_91 = lean_ctor_get(x_41, 2); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_41); -x_92 = 0; -x_93 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_93, 0, x_42); -lean_ctor_set(x_93, 1, x_90); -lean_ctor_set(x_93, 2, x_91); -lean_ctor_set(x_93, 3, x_43); -lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); -x_94 = 1; -lean_ctor_set(x_1, 0, x_93); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); -return x_1; -} -} -} -} -else -{ -uint8_t x_95; -x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); -if (x_95 == 0) -{ -uint8_t x_96; -x_96 = !lean_is_exclusive(x_41); -if (x_96 == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_97 = lean_ctor_get(x_41, 1); -x_98 = lean_ctor_get(x_41, 2); -x_99 = lean_ctor_get(x_41, 3); -x_100 = lean_ctor_get(x_41, 0); -lean_dec(x_100); -x_101 = !lean_is_exclusive(x_42); -if (x_101 == 0) -{ -uint8_t x_102; uint8_t x_103; -x_102 = 1; -lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); -lean_ctor_set(x_41, 3, x_36); -lean_ctor_set(x_41, 2, x_35); -lean_ctor_set(x_41, 1, x_34); -lean_ctor_set(x_41, 0, x_99); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); -x_103 = 0; -lean_ctor_set(x_1, 3, x_41); -lean_ctor_set(x_1, 2, x_98); -lean_ctor_set(x_1, 1, x_97); -lean_ctor_set(x_1, 0, x_42); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); -return x_1; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; -x_104 = lean_ctor_get(x_42, 0); -x_105 = lean_ctor_get(x_42, 1); -x_106 = lean_ctor_get(x_42, 2); -x_107 = lean_ctor_get(x_42, 3); -lean_inc(x_107); -lean_inc(x_106); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_42); -x_108 = 1; -x_109 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_109, 0, x_104); -lean_ctor_set(x_109, 1, x_105); -lean_ctor_set(x_109, 2, x_106); -lean_ctor_set(x_109, 3, x_107); -lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); -lean_ctor_set(x_41, 3, x_36); -lean_ctor_set(x_41, 2, x_35); -lean_ctor_set(x_41, 1, x_34); -lean_ctor_set(x_41, 0, x_99); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); -x_110 = 0; -lean_ctor_set(x_1, 3, x_41); -lean_ctor_set(x_1, 2, x_98); -lean_ctor_set(x_1, 1, x_97); -lean_ctor_set(x_1, 0, x_109); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); -return x_1; -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_111 = lean_ctor_get(x_41, 1); -x_112 = lean_ctor_get(x_41, 2); -x_113 = lean_ctor_get(x_41, 3); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_41); -x_114 = lean_ctor_get(x_42, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_42, 1); -lean_inc(x_115); -x_116 = lean_ctor_get(x_42, 2); -lean_inc(x_116); -x_117 = lean_ctor_get(x_42, 3); -lean_inc(x_117); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - x_118 = x_42; -} else { - lean_dec_ref(x_42); - x_118 = lean_box(0); -} -x_119 = 1; -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(1, 4, 1); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_114); -lean_ctor_set(x_120, 1, x_115); -lean_ctor_set(x_120, 2, x_116); -lean_ctor_set(x_120, 3, x_117); -lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); -x_121 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_121, 0, x_113); -lean_ctor_set(x_121, 1, x_34); -lean_ctor_set(x_121, 2, x_35); -lean_ctor_set(x_121, 3, x_36); -lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); -x_122 = 0; -lean_ctor_set(x_1, 3, x_121); -lean_ctor_set(x_1, 2, x_112); -lean_ctor_set(x_1, 1, x_111); -lean_ctor_set(x_1, 0, x_120); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); -return x_1; -} -} -else -{ -lean_object* x_123; -x_123 = lean_ctor_get(x_41, 3); -lean_inc(x_123); -if (lean_obj_tag(x_123) == 0) -{ -uint8_t x_124; -x_124 = !lean_is_exclusive(x_41); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; -x_125 = lean_ctor_get(x_41, 3); -lean_dec(x_125); -x_126 = lean_ctor_get(x_41, 0); -lean_dec(x_126); -x_127 = 0; -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); -x_128 = 1; -lean_ctor_set(x_1, 0, x_41); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); -return x_1; -} -else -{ -lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; -x_129 = lean_ctor_get(x_41, 1); -x_130 = lean_ctor_get(x_41, 2); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_41); -x_131 = 0; -x_132 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_132, 0, x_42); -lean_ctor_set(x_132, 1, x_129); -lean_ctor_set(x_132, 2, x_130); -lean_ctor_set(x_132, 3, x_123); -lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); -x_133 = 1; -lean_ctor_set(x_1, 0, x_132); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); -return x_1; -} -} -else -{ -uint8_t x_134; -x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); -if (x_134 == 0) -{ -uint8_t x_135; -lean_free_object(x_1); -x_135 = !lean_is_exclusive(x_41); -if (x_135 == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_136 = lean_ctor_get(x_41, 1); -x_137 = lean_ctor_get(x_41, 2); -x_138 = lean_ctor_get(x_41, 3); -lean_dec(x_138); -x_139 = lean_ctor_get(x_41, 0); -lean_dec(x_139); -x_140 = !lean_is_exclusive(x_123); -if (x_140 == 0) -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; -x_141 = lean_ctor_get(x_123, 0); -x_142 = lean_ctor_get(x_123, 1); -x_143 = lean_ctor_get(x_123, 2); -x_144 = lean_ctor_get(x_123, 3); -x_145 = 1; -lean_inc(x_42); -lean_ctor_set(x_123, 3, x_141); -lean_ctor_set(x_123, 2, x_137); -lean_ctor_set(x_123, 1, x_136); -lean_ctor_set(x_123, 0, x_42); -x_146 = !lean_is_exclusive(x_42); -if (x_146 == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; -x_147 = lean_ctor_get(x_42, 3); -lean_dec(x_147); -x_148 = lean_ctor_get(x_42, 2); -lean_dec(x_148); -x_149 = lean_ctor_get(x_42, 1); -lean_dec(x_149); -x_150 = lean_ctor_get(x_42, 0); -lean_dec(x_150); -lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); -lean_ctor_set(x_42, 3, x_36); -lean_ctor_set(x_42, 2, x_35); -lean_ctor_set(x_42, 1, x_34); -lean_ctor_set(x_42, 0, x_144); -lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); -x_151 = 0; -lean_ctor_set(x_41, 3, x_42); -lean_ctor_set(x_41, 2, x_143); -lean_ctor_set(x_41, 1, x_142); -lean_ctor_set(x_41, 0, x_123); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); -return x_41; -} -else -{ -lean_object* x_152; uint8_t x_153; -lean_dec(x_42); -lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); -x_152 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_34); -lean_ctor_set(x_152, 2, x_35); -lean_ctor_set(x_152, 3, x_36); -lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); -x_153 = 0; -lean_ctor_set(x_41, 3, x_152); -lean_ctor_set(x_41, 2, x_143); -lean_ctor_set(x_41, 1, x_142); -lean_ctor_set(x_41, 0, x_123); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); -return x_41; -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_154 = lean_ctor_get(x_123, 0); -x_155 = lean_ctor_get(x_123, 1); -x_156 = lean_ctor_get(x_123, 2); -x_157 = lean_ctor_get(x_123, 3); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_123); -x_158 = 1; -lean_inc(x_42); -x_159 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_159, 0, x_42); -lean_ctor_set(x_159, 1, x_136); -lean_ctor_set(x_159, 2, x_137); -lean_ctor_set(x_159, 3, x_154); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - x_160 = x_42; -} else { - lean_dec_ref(x_42); - x_160 = lean_box(0); -} -lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); -if (lean_is_scalar(x_160)) { - x_161 = lean_alloc_ctor(1, 4, 1); -} else { - x_161 = x_160; -} -lean_ctor_set(x_161, 0, x_157); -lean_ctor_set(x_161, 1, x_34); -lean_ctor_set(x_161, 2, x_35); -lean_ctor_set(x_161, 3, x_36); -lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); -x_162 = 0; -lean_ctor_set(x_41, 3, x_161); -lean_ctor_set(x_41, 2, x_156); -lean_ctor_set(x_41, 1, x_155); -lean_ctor_set(x_41, 0, x_159); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); -return x_41; -} -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; -x_163 = lean_ctor_get(x_41, 1); -x_164 = lean_ctor_get(x_41, 2); -lean_inc(x_164); -lean_inc(x_163); -lean_dec(x_41); -x_165 = lean_ctor_get(x_123, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_123, 1); -lean_inc(x_166); -x_167 = lean_ctor_get(x_123, 2); -lean_inc(x_167); -x_168 = lean_ctor_get(x_123, 3); -lean_inc(x_168); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - lean_ctor_release(x_123, 2); - lean_ctor_release(x_123, 3); - x_169 = x_123; -} else { - lean_dec_ref(x_123); - x_169 = lean_box(0); -} -x_170 = 1; -lean_inc(x_42); -if (lean_is_scalar(x_169)) { - x_171 = lean_alloc_ctor(1, 4, 1); -} else { - x_171 = x_169; -} -lean_ctor_set(x_171, 0, x_42); -lean_ctor_set(x_171, 1, x_163); -lean_ctor_set(x_171, 2, x_164); -lean_ctor_set(x_171, 3, x_165); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - x_172 = x_42; -} else { - lean_dec_ref(x_42); - x_172 = lean_box(0); -} -lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 4, 1); -} else { - x_173 = x_172; -} -lean_ctor_set(x_173, 0, x_168); -lean_ctor_set(x_173, 1, x_34); -lean_ctor_set(x_173, 2, x_35); -lean_ctor_set(x_173, 3, x_36); -lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); -x_174 = 0; -x_175 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_175, 0, x_171); -lean_ctor_set(x_175, 1, x_166); -lean_ctor_set(x_175, 2, x_167); -lean_ctor_set(x_175, 3, x_173); -lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); -return x_175; -} -} -else -{ -uint8_t x_176; -x_176 = !lean_is_exclusive(x_41); -if (x_176 == 0) -{ -lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_177 = lean_ctor_get(x_41, 3); -lean_dec(x_177); -x_178 = lean_ctor_get(x_41, 0); -lean_dec(x_178); -x_179 = !lean_is_exclusive(x_42); -if (x_179 == 0) -{ -uint8_t x_180; uint8_t x_181; -lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); -x_180 = 0; -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); -x_181 = 1; -lean_ctor_set(x_1, 0, x_41); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); -return x_1; -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; -x_182 = lean_ctor_get(x_42, 0); -x_183 = lean_ctor_get(x_42, 1); -x_184 = lean_ctor_get(x_42, 2); -x_185 = lean_ctor_get(x_42, 3); -lean_inc(x_185); -lean_inc(x_184); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_42); -x_186 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_186, 0, x_182); -lean_ctor_set(x_186, 1, x_183); -lean_ctor_set(x_186, 2, x_184); -lean_ctor_set(x_186, 3, x_185); -lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); -x_187 = 0; -lean_ctor_set(x_41, 0, x_186); -lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); -x_188 = 1; -lean_ctor_set(x_1, 0, x_41); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); -return x_1; -} -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; uint8_t x_199; -x_189 = lean_ctor_get(x_41, 1); -x_190 = lean_ctor_get(x_41, 2); -lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_41); -x_191 = lean_ctor_get(x_42, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_42, 1); -lean_inc(x_192); -x_193 = lean_ctor_get(x_42, 2); -lean_inc(x_193); -x_194 = lean_ctor_get(x_42, 3); -lean_inc(x_194); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - x_195 = x_42; -} else { - lean_dec_ref(x_42); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 4, 1); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_191); -lean_ctor_set(x_196, 1, x_192); -lean_ctor_set(x_196, 2, x_193); -lean_ctor_set(x_196, 3, x_194); -lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); -x_197 = 0; -x_198 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_189); -lean_ctor_set(x_198, 2, x_190); -lean_ctor_set(x_198, 3, x_123); -lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); -x_199 = 1; -lean_ctor_set(x_1, 0, x_198); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); -return x_1; -} -} -} -} -} -} -} -case 1: -{ -uint8_t x_200; -lean_dec(x_35); -lean_dec(x_34); -x_200 = 1; -lean_ctor_set(x_1, 2, x_3); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); -return x_1; -} -default: -{ -uint8_t x_201; -x_201 = l_Std_RBNode_isRed___rarg(x_36); -if (x_201 == 0) -{ -lean_object* x_202; uint8_t x_203; -x_202 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_36, x_2, x_3); -x_203 = 1; -lean_ctor_set(x_1, 3, x_202); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); -return x_1; -} -else -{ -lean_object* x_204; lean_object* x_205; -x_204 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_36, x_2, x_3); -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -if (lean_obj_tag(x_205) == 0) -{ -lean_object* x_206; -x_206 = lean_ctor_get(x_204, 3); -lean_inc(x_206); -if (lean_obj_tag(x_206) == 0) -{ -uint8_t x_207; -x_207 = !lean_is_exclusive(x_204); -if (x_207 == 0) -{ -lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; -x_208 = lean_ctor_get(x_204, 3); -lean_dec(x_208); -x_209 = lean_ctor_get(x_204, 0); -lean_dec(x_209); -x_210 = 0; -lean_ctor_set(x_204, 0, x_206); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); -x_211 = 1; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); -return x_1; -} -else -{ -lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; -x_212 = lean_ctor_get(x_204, 1); -x_213 = lean_ctor_get(x_204, 2); -lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_204); -x_214 = 0; -x_215 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_215, 0, x_206); -lean_ctor_set(x_215, 1, x_212); -lean_ctor_set(x_215, 2, x_213); -lean_ctor_set(x_215, 3, x_206); -lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); -x_216 = 1; -lean_ctor_set(x_1, 3, x_215); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); -return x_1; -} -} -else -{ -uint8_t x_217; -x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); -if (x_217 == 0) -{ -uint8_t x_218; -x_218 = !lean_is_exclusive(x_204); -if (x_218 == 0) -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; -x_219 = lean_ctor_get(x_204, 1); -x_220 = lean_ctor_get(x_204, 2); -x_221 = lean_ctor_get(x_204, 3); -lean_dec(x_221); -x_222 = lean_ctor_get(x_204, 0); -lean_dec(x_222); -x_223 = !lean_is_exclusive(x_206); -if (x_223 == 0) -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; -x_224 = lean_ctor_get(x_206, 0); -x_225 = lean_ctor_get(x_206, 1); -x_226 = lean_ctor_get(x_206, 2); -x_227 = lean_ctor_get(x_206, 3); -x_228 = 1; -lean_ctor_set(x_206, 3, x_205); -lean_ctor_set(x_206, 2, x_35); -lean_ctor_set(x_206, 1, x_34); -lean_ctor_set(x_206, 0, x_33); -lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); -lean_ctor_set(x_204, 3, x_227); -lean_ctor_set(x_204, 2, x_226); -lean_ctor_set(x_204, 1, x_225); -lean_ctor_set(x_204, 0, x_224); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); -x_229 = 0; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set(x_1, 2, x_220); -lean_ctor_set(x_1, 1, x_219); -lean_ctor_set(x_1, 0, x_206); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); -return x_1; -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; -x_230 = lean_ctor_get(x_206, 0); -x_231 = lean_ctor_get(x_206, 1); -x_232 = lean_ctor_get(x_206, 2); -x_233 = lean_ctor_get(x_206, 3); -lean_inc(x_233); -lean_inc(x_232); -lean_inc(x_231); -lean_inc(x_230); -lean_dec(x_206); -x_234 = 1; -x_235 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_235, 0, x_33); -lean_ctor_set(x_235, 1, x_34); -lean_ctor_set(x_235, 2, x_35); -lean_ctor_set(x_235, 3, x_205); -lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); -lean_ctor_set(x_204, 3, x_233); -lean_ctor_set(x_204, 2, x_232); -lean_ctor_set(x_204, 1, x_231); -lean_ctor_set(x_204, 0, x_230); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); -x_236 = 0; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set(x_1, 2, x_220); -lean_ctor_set(x_1, 1, x_219); -lean_ctor_set(x_1, 0, x_235); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); -return x_1; -} -} -else -{ -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; -x_237 = lean_ctor_get(x_204, 1); -x_238 = lean_ctor_get(x_204, 2); -lean_inc(x_238); -lean_inc(x_237); -lean_dec(x_204); -x_239 = lean_ctor_get(x_206, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_206, 1); -lean_inc(x_240); -x_241 = lean_ctor_get(x_206, 2); -lean_inc(x_241); -x_242 = lean_ctor_get(x_206, 3); -lean_inc(x_242); -if (lean_is_exclusive(x_206)) { - lean_ctor_release(x_206, 0); - lean_ctor_release(x_206, 1); - lean_ctor_release(x_206, 2); - lean_ctor_release(x_206, 3); - x_243 = x_206; -} else { - lean_dec_ref(x_206); - x_243 = lean_box(0); -} -x_244 = 1; -if (lean_is_scalar(x_243)) { - x_245 = lean_alloc_ctor(1, 4, 1); -} else { - x_245 = x_243; -} -lean_ctor_set(x_245, 0, x_33); -lean_ctor_set(x_245, 1, x_34); -lean_ctor_set(x_245, 2, x_35); -lean_ctor_set(x_245, 3, x_205); -lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); -x_246 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_246, 0, x_239); -lean_ctor_set(x_246, 1, x_240); -lean_ctor_set(x_246, 2, x_241); -lean_ctor_set(x_246, 3, x_242); -lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); -x_247 = 0; -lean_ctor_set(x_1, 3, x_246); -lean_ctor_set(x_1, 2, x_238); -lean_ctor_set(x_1, 1, x_237); -lean_ctor_set(x_1, 0, x_245); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); -return x_1; -} -} -else -{ -uint8_t x_248; -x_248 = !lean_is_exclusive(x_204); -if (x_248 == 0) -{ -lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; -x_249 = lean_ctor_get(x_204, 3); -lean_dec(x_249); -x_250 = lean_ctor_get(x_204, 0); -lean_dec(x_250); -x_251 = 0; -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); -x_252 = 1; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); -return x_1; -} -else -{ -lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; -x_253 = lean_ctor_get(x_204, 1); -x_254 = lean_ctor_get(x_204, 2); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_204); -x_255 = 0; -x_256 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_256, 0, x_205); -lean_ctor_set(x_256, 1, x_253); -lean_ctor_set(x_256, 2, x_254); -lean_ctor_set(x_256, 3, x_206); -lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); -x_257 = 1; -lean_ctor_set(x_1, 3, x_256); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); -return x_1; -} -} -} -} -else -{ -uint8_t x_258; -x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); -if (x_258 == 0) -{ -uint8_t x_259; -x_259 = !lean_is_exclusive(x_204); -if (x_259 == 0) -{ -lean_object* x_260; uint8_t x_261; -x_260 = lean_ctor_get(x_204, 0); -lean_dec(x_260); -x_261 = !lean_is_exclusive(x_205); -if (x_261 == 0) -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; -x_262 = lean_ctor_get(x_205, 0); -x_263 = lean_ctor_get(x_205, 1); -x_264 = lean_ctor_get(x_205, 2); -x_265 = lean_ctor_get(x_205, 3); -x_266 = 1; -lean_ctor_set(x_205, 3, x_262); -lean_ctor_set(x_205, 2, x_35); -lean_ctor_set(x_205, 1, x_34); -lean_ctor_set(x_205, 0, x_33); -lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); -lean_ctor_set(x_204, 0, x_265); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); -x_267 = 0; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set(x_1, 2, x_264); -lean_ctor_set(x_1, 1, x_263); -lean_ctor_set(x_1, 0, x_205); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); -return x_1; -} -else -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; -x_268 = lean_ctor_get(x_205, 0); -x_269 = lean_ctor_get(x_205, 1); -x_270 = lean_ctor_get(x_205, 2); -x_271 = lean_ctor_get(x_205, 3); -lean_inc(x_271); -lean_inc(x_270); -lean_inc(x_269); -lean_inc(x_268); -lean_dec(x_205); -x_272 = 1; -x_273 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_273, 0, x_33); -lean_ctor_set(x_273, 1, x_34); -lean_ctor_set(x_273, 2, x_35); -lean_ctor_set(x_273, 3, x_268); -lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); -lean_ctor_set(x_204, 0, x_271); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); -x_274 = 0; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set(x_1, 2, x_270); -lean_ctor_set(x_1, 1, x_269); -lean_ctor_set(x_1, 0, x_273); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); -return x_1; -} -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; -x_275 = lean_ctor_get(x_204, 1); -x_276 = lean_ctor_get(x_204, 2); -x_277 = lean_ctor_get(x_204, 3); -lean_inc(x_277); -lean_inc(x_276); -lean_inc(x_275); -lean_dec(x_204); -x_278 = lean_ctor_get(x_205, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_205, 1); -lean_inc(x_279); -x_280 = lean_ctor_get(x_205, 2); -lean_inc(x_280); -x_281 = lean_ctor_get(x_205, 3); -lean_inc(x_281); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - lean_ctor_release(x_205, 2); - lean_ctor_release(x_205, 3); - x_282 = x_205; -} else { - lean_dec_ref(x_205); - x_282 = lean_box(0); -} -x_283 = 1; -if (lean_is_scalar(x_282)) { - x_284 = lean_alloc_ctor(1, 4, 1); -} else { - x_284 = x_282; -} -lean_ctor_set(x_284, 0, x_33); -lean_ctor_set(x_284, 1, x_34); -lean_ctor_set(x_284, 2, x_35); -lean_ctor_set(x_284, 3, x_278); -lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); -x_285 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_285, 0, x_281); -lean_ctor_set(x_285, 1, x_275); -lean_ctor_set(x_285, 2, x_276); -lean_ctor_set(x_285, 3, x_277); -lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); -x_286 = 0; -lean_ctor_set(x_1, 3, x_285); -lean_ctor_set(x_1, 2, x_280); -lean_ctor_set(x_1, 1, x_279); -lean_ctor_set(x_1, 0, x_284); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); -return x_1; -} -} -else -{ -lean_object* x_287; -x_287 = lean_ctor_get(x_204, 3); -lean_inc(x_287); -if (lean_obj_tag(x_287) == 0) -{ -uint8_t x_288; -x_288 = !lean_is_exclusive(x_204); -if (x_288 == 0) -{ -lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; -x_289 = lean_ctor_get(x_204, 3); -lean_dec(x_289); -x_290 = lean_ctor_get(x_204, 0); -lean_dec(x_290); -x_291 = 0; -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); -x_292 = 1; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); -return x_1; -} -else -{ -lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; -x_293 = lean_ctor_get(x_204, 1); -x_294 = lean_ctor_get(x_204, 2); -lean_inc(x_294); -lean_inc(x_293); -lean_dec(x_204); -x_295 = 0; -x_296 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_296, 0, x_205); -lean_ctor_set(x_296, 1, x_293); -lean_ctor_set(x_296, 2, x_294); -lean_ctor_set(x_296, 3, x_287); -lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); -x_297 = 1; -lean_ctor_set(x_1, 3, x_296); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); -return x_1; -} -} -else -{ -uint8_t x_298; -x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); -if (x_298 == 0) -{ -uint8_t x_299; -lean_free_object(x_1); -x_299 = !lean_is_exclusive(x_204); -if (x_299 == 0) -{ -lean_object* x_300; lean_object* x_301; uint8_t x_302; -x_300 = lean_ctor_get(x_204, 3); -lean_dec(x_300); -x_301 = lean_ctor_get(x_204, 0); -lean_dec(x_301); -x_302 = !lean_is_exclusive(x_287); -if (x_302 == 0) -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; -x_303 = lean_ctor_get(x_287, 0); -x_304 = lean_ctor_get(x_287, 1); -x_305 = lean_ctor_get(x_287, 2); -x_306 = lean_ctor_get(x_287, 3); -x_307 = 1; -lean_inc(x_205); -lean_ctor_set(x_287, 3, x_205); -lean_ctor_set(x_287, 2, x_35); -lean_ctor_set(x_287, 1, x_34); -lean_ctor_set(x_287, 0, x_33); -x_308 = !lean_is_exclusive(x_205); -if (x_308 == 0) -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; -x_309 = lean_ctor_get(x_205, 3); -lean_dec(x_309); -x_310 = lean_ctor_get(x_205, 2); -lean_dec(x_310); -x_311 = lean_ctor_get(x_205, 1); -lean_dec(x_311); -x_312 = lean_ctor_get(x_205, 0); -lean_dec(x_312); -lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); -lean_ctor_set(x_205, 3, x_306); -lean_ctor_set(x_205, 2, x_305); -lean_ctor_set(x_205, 1, x_304); -lean_ctor_set(x_205, 0, x_303); -lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); -x_313 = 0; -lean_ctor_set(x_204, 3, x_205); -lean_ctor_set(x_204, 0, x_287); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); -return x_204; -} -else -{ -lean_object* x_314; uint8_t x_315; -lean_dec(x_205); -lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); -x_314 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_314, 0, x_303); -lean_ctor_set(x_314, 1, x_304); -lean_ctor_set(x_314, 2, x_305); -lean_ctor_set(x_314, 3, x_306); -lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); -x_315 = 0; -lean_ctor_set(x_204, 3, x_314); -lean_ctor_set(x_204, 0, x_287); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); -return x_204; -} -} -else -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; -x_316 = lean_ctor_get(x_287, 0); -x_317 = lean_ctor_get(x_287, 1); -x_318 = lean_ctor_get(x_287, 2); -x_319 = lean_ctor_get(x_287, 3); -lean_inc(x_319); -lean_inc(x_318); -lean_inc(x_317); -lean_inc(x_316); -lean_dec(x_287); -x_320 = 1; -lean_inc(x_205); -x_321 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_321, 0, x_33); -lean_ctor_set(x_321, 1, x_34); -lean_ctor_set(x_321, 2, x_35); -lean_ctor_set(x_321, 3, x_205); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - lean_ctor_release(x_205, 2); - lean_ctor_release(x_205, 3); - x_322 = x_205; -} else { - lean_dec_ref(x_205); - x_322 = lean_box(0); -} -lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); -if (lean_is_scalar(x_322)) { - x_323 = lean_alloc_ctor(1, 4, 1); -} else { - x_323 = x_322; -} -lean_ctor_set(x_323, 0, x_316); -lean_ctor_set(x_323, 1, x_317); -lean_ctor_set(x_323, 2, x_318); -lean_ctor_set(x_323, 3, x_319); -lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); -x_324 = 0; -lean_ctor_set(x_204, 3, x_323); -lean_ctor_set(x_204, 0, x_321); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); -return x_204; -} -} -else -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; -x_325 = lean_ctor_get(x_204, 1); -x_326 = lean_ctor_get(x_204, 2); -lean_inc(x_326); -lean_inc(x_325); -lean_dec(x_204); -x_327 = lean_ctor_get(x_287, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_287, 1); -lean_inc(x_328); -x_329 = lean_ctor_get(x_287, 2); -lean_inc(x_329); -x_330 = lean_ctor_get(x_287, 3); -lean_inc(x_330); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - lean_ctor_release(x_287, 2); - lean_ctor_release(x_287, 3); - x_331 = x_287; -} else { - lean_dec_ref(x_287); - x_331 = lean_box(0); -} -x_332 = 1; -lean_inc(x_205); -if (lean_is_scalar(x_331)) { - x_333 = lean_alloc_ctor(1, 4, 1); -} else { - x_333 = x_331; -} -lean_ctor_set(x_333, 0, x_33); -lean_ctor_set(x_333, 1, x_34); -lean_ctor_set(x_333, 2, x_35); -lean_ctor_set(x_333, 3, x_205); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - lean_ctor_release(x_205, 2); - lean_ctor_release(x_205, 3); - x_334 = x_205; -} else { - lean_dec_ref(x_205); - x_334 = lean_box(0); -} -lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); -if (lean_is_scalar(x_334)) { - x_335 = lean_alloc_ctor(1, 4, 1); -} else { - x_335 = x_334; -} -lean_ctor_set(x_335, 0, x_327); -lean_ctor_set(x_335, 1, x_328); -lean_ctor_set(x_335, 2, x_329); -lean_ctor_set(x_335, 3, x_330); -lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); -x_336 = 0; -x_337 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_337, 0, x_333); -lean_ctor_set(x_337, 1, x_325); -lean_ctor_set(x_337, 2, x_326); -lean_ctor_set(x_337, 3, x_335); -lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); -return x_337; -} -} -else -{ -uint8_t x_338; -x_338 = !lean_is_exclusive(x_204); -if (x_338 == 0) -{ -lean_object* x_339; lean_object* x_340; uint8_t x_341; -x_339 = lean_ctor_get(x_204, 3); -lean_dec(x_339); -x_340 = lean_ctor_get(x_204, 0); -lean_dec(x_340); -x_341 = !lean_is_exclusive(x_205); -if (x_341 == 0) -{ -uint8_t x_342; uint8_t x_343; -lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); -x_342 = 0; -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); -x_343 = 1; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); -return x_1; -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; -x_344 = lean_ctor_get(x_205, 0); -x_345 = lean_ctor_get(x_205, 1); -x_346 = lean_ctor_get(x_205, 2); -x_347 = lean_ctor_get(x_205, 3); -lean_inc(x_347); -lean_inc(x_346); -lean_inc(x_345); -lean_inc(x_344); -lean_dec(x_205); -x_348 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_348, 0, x_344); -lean_ctor_set(x_348, 1, x_345); -lean_ctor_set(x_348, 2, x_346); -lean_ctor_set(x_348, 3, x_347); -lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); -x_349 = 0; -lean_ctor_set(x_204, 0, x_348); -lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); -x_350 = 1; -lean_ctor_set(x_1, 3, x_204); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); -return x_1; -} -} -else -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; -x_351 = lean_ctor_get(x_204, 1); -x_352 = lean_ctor_get(x_204, 2); -lean_inc(x_352); -lean_inc(x_351); -lean_dec(x_204); -x_353 = lean_ctor_get(x_205, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_205, 1); -lean_inc(x_354); -x_355 = lean_ctor_get(x_205, 2); -lean_inc(x_355); -x_356 = lean_ctor_get(x_205, 3); -lean_inc(x_356); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - lean_ctor_release(x_205, 2); - lean_ctor_release(x_205, 3); - x_357 = x_205; -} else { - lean_dec_ref(x_205); - x_357 = lean_box(0); -} -if (lean_is_scalar(x_357)) { - x_358 = lean_alloc_ctor(1, 4, 1); -} else { - x_358 = x_357; -} -lean_ctor_set(x_358, 0, x_353); -lean_ctor_set(x_358, 1, x_354); -lean_ctor_set(x_358, 2, x_355); -lean_ctor_set(x_358, 3, x_356); -lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); -x_359 = 0; -x_360 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_360, 0, x_358); -lean_ctor_set(x_360, 1, x_351); -lean_ctor_set(x_360, 2, x_352); -lean_ctor_set(x_360, 3, x_287); -lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); -x_361 = 1; -lean_ctor_set(x_1, 3, x_360); -lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); -return x_1; -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; -x_362 = lean_ctor_get(x_1, 0); -x_363 = lean_ctor_get(x_1, 1); -x_364 = lean_ctor_get(x_1, 2); -x_365 = lean_ctor_get(x_1, 3); -lean_inc(x_365); -lean_inc(x_364); -lean_inc(x_363); -lean_inc(x_362); -lean_dec(x_1); -x_366 = l_Lean_Name_quickCmp(x_2, x_363); -switch (x_366) { -case 0: -{ -uint8_t x_367; -x_367 = l_Std_RBNode_isRed___rarg(x_362); -if (x_367 == 0) -{ -lean_object* x_368; uint8_t x_369; lean_object* x_370; -x_368 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_362, x_2, x_3); -x_369 = 1; -x_370 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_370, 0, x_368); -lean_ctor_set(x_370, 1, x_363); -lean_ctor_set(x_370, 2, x_364); -lean_ctor_set(x_370, 3, x_365); -lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); -return x_370; -} -else -{ -lean_object* x_371; lean_object* x_372; -x_371 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_362, x_2, x_3); -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -if (lean_obj_tag(x_372) == 0) -{ -lean_object* x_373; -x_373 = lean_ctor_get(x_371, 3); -lean_inc(x_373); -if (lean_obj_tag(x_373) == 0) -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; -x_374 = lean_ctor_get(x_371, 1); -lean_inc(x_374); -x_375 = lean_ctor_get(x_371, 2); -lean_inc(x_375); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_376 = x_371; -} else { - lean_dec_ref(x_371); - x_376 = lean_box(0); -} -x_377 = 0; -if (lean_is_scalar(x_376)) { - x_378 = lean_alloc_ctor(1, 4, 1); -} else { - x_378 = x_376; -} -lean_ctor_set(x_378, 0, x_373); -lean_ctor_set(x_378, 1, x_374); -lean_ctor_set(x_378, 2, x_375); -lean_ctor_set(x_378, 3, x_373); -lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); -x_379 = 1; -x_380 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_363); -lean_ctor_set(x_380, 2, x_364); -lean_ctor_set(x_380, 3, x_365); -lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); -return x_380; -} -else -{ -uint8_t x_381; -x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); -if (x_381 == 0) -{ -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; -x_382 = lean_ctor_get(x_371, 1); -lean_inc(x_382); -x_383 = lean_ctor_get(x_371, 2); -lean_inc(x_383); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_384 = x_371; -} else { - lean_dec_ref(x_371); - x_384 = lean_box(0); -} -x_385 = lean_ctor_get(x_373, 0); -lean_inc(x_385); -x_386 = lean_ctor_get(x_373, 1); -lean_inc(x_386); -x_387 = lean_ctor_get(x_373, 2); -lean_inc(x_387); -x_388 = lean_ctor_get(x_373, 3); -lean_inc(x_388); -if (lean_is_exclusive(x_373)) { - lean_ctor_release(x_373, 0); - lean_ctor_release(x_373, 1); - lean_ctor_release(x_373, 2); - lean_ctor_release(x_373, 3); - x_389 = x_373; -} else { - lean_dec_ref(x_373); - x_389 = lean_box(0); -} -x_390 = 1; -if (lean_is_scalar(x_389)) { - x_391 = lean_alloc_ctor(1, 4, 1); -} else { - x_391 = x_389; -} -lean_ctor_set(x_391, 0, x_372); -lean_ctor_set(x_391, 1, x_382); -lean_ctor_set(x_391, 2, x_383); -lean_ctor_set(x_391, 3, x_385); -lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); -if (lean_is_scalar(x_384)) { - x_392 = lean_alloc_ctor(1, 4, 1); -} else { - x_392 = x_384; -} -lean_ctor_set(x_392, 0, x_388); -lean_ctor_set(x_392, 1, x_363); -lean_ctor_set(x_392, 2, x_364); -lean_ctor_set(x_392, 3, x_365); -lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); -x_393 = 0; -x_394 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_394, 0, x_391); -lean_ctor_set(x_394, 1, x_386); -lean_ctor_set(x_394, 2, x_387); -lean_ctor_set(x_394, 3, x_392); -lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); -return x_394; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; -x_395 = lean_ctor_get(x_371, 1); -lean_inc(x_395); -x_396 = lean_ctor_get(x_371, 2); -lean_inc(x_396); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_397 = x_371; -} else { - lean_dec_ref(x_371); - x_397 = lean_box(0); -} -x_398 = 0; -if (lean_is_scalar(x_397)) { - x_399 = lean_alloc_ctor(1, 4, 1); -} else { - x_399 = x_397; -} -lean_ctor_set(x_399, 0, x_372); -lean_ctor_set(x_399, 1, x_395); -lean_ctor_set(x_399, 2, x_396); -lean_ctor_set(x_399, 3, x_373); -lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); -x_400 = 1; -x_401 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_363); -lean_ctor_set(x_401, 2, x_364); -lean_ctor_set(x_401, 3, x_365); -lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); -return x_401; -} -} -} -else -{ -uint8_t x_402; -x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); -if (x_402 == 0) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; -x_403 = lean_ctor_get(x_371, 1); -lean_inc(x_403); -x_404 = lean_ctor_get(x_371, 2); -lean_inc(x_404); -x_405 = lean_ctor_get(x_371, 3); -lean_inc(x_405); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_406 = x_371; -} else { - lean_dec_ref(x_371); - x_406 = lean_box(0); -} -x_407 = lean_ctor_get(x_372, 0); -lean_inc(x_407); -x_408 = lean_ctor_get(x_372, 1); -lean_inc(x_408); -x_409 = lean_ctor_get(x_372, 2); -lean_inc(x_409); -x_410 = lean_ctor_get(x_372, 3); -lean_inc(x_410); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - lean_ctor_release(x_372, 2); - lean_ctor_release(x_372, 3); - x_411 = x_372; -} else { - lean_dec_ref(x_372); - x_411 = lean_box(0); -} -x_412 = 1; -if (lean_is_scalar(x_411)) { - x_413 = lean_alloc_ctor(1, 4, 1); -} else { - x_413 = x_411; -} -lean_ctor_set(x_413, 0, x_407); -lean_ctor_set(x_413, 1, x_408); -lean_ctor_set(x_413, 2, x_409); -lean_ctor_set(x_413, 3, x_410); -lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); -if (lean_is_scalar(x_406)) { - x_414 = lean_alloc_ctor(1, 4, 1); -} else { - x_414 = x_406; -} -lean_ctor_set(x_414, 0, x_405); -lean_ctor_set(x_414, 1, x_363); -lean_ctor_set(x_414, 2, x_364); -lean_ctor_set(x_414, 3, x_365); -lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); -x_415 = 0; -x_416 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_416, 0, x_413); -lean_ctor_set(x_416, 1, x_403); -lean_ctor_set(x_416, 2, x_404); -lean_ctor_set(x_416, 3, x_414); -lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); -return x_416; -} -else -{ -lean_object* x_417; -x_417 = lean_ctor_get(x_371, 3); -lean_inc(x_417); -if (lean_obj_tag(x_417) == 0) -{ -lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; -x_418 = lean_ctor_get(x_371, 1); -lean_inc(x_418); -x_419 = lean_ctor_get(x_371, 2); -lean_inc(x_419); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_420 = x_371; -} else { - lean_dec_ref(x_371); - x_420 = lean_box(0); -} -x_421 = 0; -if (lean_is_scalar(x_420)) { - x_422 = lean_alloc_ctor(1, 4, 1); -} else { - x_422 = x_420; -} -lean_ctor_set(x_422, 0, x_372); -lean_ctor_set(x_422, 1, x_418); -lean_ctor_set(x_422, 2, x_419); -lean_ctor_set(x_422, 3, x_417); -lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); -x_423 = 1; -x_424 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_363); -lean_ctor_set(x_424, 2, x_364); -lean_ctor_set(x_424, 3, x_365); -lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); -return x_424; -} -else -{ -uint8_t x_425; -x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); -if (x_425 == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; -x_426 = lean_ctor_get(x_371, 1); -lean_inc(x_426); -x_427 = lean_ctor_get(x_371, 2); -lean_inc(x_427); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_428 = x_371; -} else { - lean_dec_ref(x_371); - x_428 = lean_box(0); -} -x_429 = lean_ctor_get(x_417, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_417, 1); -lean_inc(x_430); -x_431 = lean_ctor_get(x_417, 2); -lean_inc(x_431); -x_432 = lean_ctor_get(x_417, 3); -lean_inc(x_432); -if (lean_is_exclusive(x_417)) { - lean_ctor_release(x_417, 0); - lean_ctor_release(x_417, 1); - lean_ctor_release(x_417, 2); - lean_ctor_release(x_417, 3); - x_433 = x_417; -} else { - lean_dec_ref(x_417); - x_433 = lean_box(0); -} -x_434 = 1; -lean_inc(x_372); -if (lean_is_scalar(x_433)) { - x_435 = lean_alloc_ctor(1, 4, 1); -} else { - x_435 = x_433; -} -lean_ctor_set(x_435, 0, x_372); -lean_ctor_set(x_435, 1, x_426); -lean_ctor_set(x_435, 2, x_427); -lean_ctor_set(x_435, 3, x_429); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - lean_ctor_release(x_372, 2); - lean_ctor_release(x_372, 3); - x_436 = x_372; -} else { - lean_dec_ref(x_372); - x_436 = lean_box(0); -} -lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); -if (lean_is_scalar(x_436)) { - x_437 = lean_alloc_ctor(1, 4, 1); -} else { - x_437 = x_436; -} -lean_ctor_set(x_437, 0, x_432); -lean_ctor_set(x_437, 1, x_363); -lean_ctor_set(x_437, 2, x_364); -lean_ctor_set(x_437, 3, x_365); -lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); -x_438 = 0; -if (lean_is_scalar(x_428)) { - x_439 = lean_alloc_ctor(1, 4, 1); -} else { - x_439 = x_428; -} -lean_ctor_set(x_439, 0, x_435); -lean_ctor_set(x_439, 1, x_430); -lean_ctor_set(x_439, 2, x_431); -lean_ctor_set(x_439, 3, x_437); -lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); -return x_439; -} -else -{ -lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; -x_440 = lean_ctor_get(x_371, 1); -lean_inc(x_440); -x_441 = lean_ctor_get(x_371, 2); -lean_inc(x_441); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - lean_ctor_release(x_371, 2); - lean_ctor_release(x_371, 3); - x_442 = x_371; -} else { - lean_dec_ref(x_371); - x_442 = lean_box(0); -} -x_443 = lean_ctor_get(x_372, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_372, 1); -lean_inc(x_444); -x_445 = lean_ctor_get(x_372, 2); -lean_inc(x_445); -x_446 = lean_ctor_get(x_372, 3); -lean_inc(x_446); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - lean_ctor_release(x_372, 2); - lean_ctor_release(x_372, 3); - x_447 = x_372; -} else { - lean_dec_ref(x_372); - x_447 = lean_box(0); -} -if (lean_is_scalar(x_447)) { - x_448 = lean_alloc_ctor(1, 4, 1); -} else { - x_448 = x_447; -} -lean_ctor_set(x_448, 0, x_443); -lean_ctor_set(x_448, 1, x_444); -lean_ctor_set(x_448, 2, x_445); -lean_ctor_set(x_448, 3, x_446); -lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); -x_449 = 0; -if (lean_is_scalar(x_442)) { - x_450 = lean_alloc_ctor(1, 4, 1); -} else { - x_450 = x_442; -} -lean_ctor_set(x_450, 0, x_448); -lean_ctor_set(x_450, 1, x_440); -lean_ctor_set(x_450, 2, x_441); -lean_ctor_set(x_450, 3, x_417); -lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); -x_451 = 1; -x_452 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_452, 0, x_450); -lean_ctor_set(x_452, 1, x_363); -lean_ctor_set(x_452, 2, x_364); -lean_ctor_set(x_452, 3, x_365); -lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); -return x_452; -} -} -} -} -} -} -case 1: -{ -uint8_t x_453; lean_object* x_454; -lean_dec(x_364); -lean_dec(x_363); -x_453 = 1; -x_454 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_454, 0, x_362); -lean_ctor_set(x_454, 1, x_2); -lean_ctor_set(x_454, 2, x_3); -lean_ctor_set(x_454, 3, x_365); -lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); -return x_454; -} -default: -{ -uint8_t x_455; -x_455 = l_Std_RBNode_isRed___rarg(x_365); -if (x_455 == 0) -{ -lean_object* x_456; uint8_t x_457; lean_object* x_458; -x_456 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_365, x_2, x_3); -x_457 = 1; -x_458 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_458, 0, x_362); -lean_ctor_set(x_458, 1, x_363); -lean_ctor_set(x_458, 2, x_364); -lean_ctor_set(x_458, 3, x_456); -lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); -return x_458; -} -else -{ -lean_object* x_459; lean_object* x_460; -x_459 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_365, x_2, x_3); -x_460 = lean_ctor_get(x_459, 0); -lean_inc(x_460); -if (lean_obj_tag(x_460) == 0) -{ -lean_object* x_461; -x_461 = lean_ctor_get(x_459, 3); -lean_inc(x_461); -if (lean_obj_tag(x_461) == 0) -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; -x_462 = lean_ctor_get(x_459, 1); -lean_inc(x_462); -x_463 = lean_ctor_get(x_459, 2); -lean_inc(x_463); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_464 = x_459; -} else { - lean_dec_ref(x_459); - x_464 = lean_box(0); -} -x_465 = 0; -if (lean_is_scalar(x_464)) { - x_466 = lean_alloc_ctor(1, 4, 1); -} else { - x_466 = x_464; -} -lean_ctor_set(x_466, 0, x_461); -lean_ctor_set(x_466, 1, x_462); -lean_ctor_set(x_466, 2, x_463); -lean_ctor_set(x_466, 3, x_461); -lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); -x_467 = 1; -x_468 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_468, 0, x_362); -lean_ctor_set(x_468, 1, x_363); -lean_ctor_set(x_468, 2, x_364); -lean_ctor_set(x_468, 3, x_466); -lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); -return x_468; -} -else -{ -uint8_t x_469; -x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); -if (x_469 == 0) -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; -x_470 = lean_ctor_get(x_459, 1); -lean_inc(x_470); -x_471 = lean_ctor_get(x_459, 2); -lean_inc(x_471); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_472 = x_459; -} else { - lean_dec_ref(x_459); - x_472 = lean_box(0); -} -x_473 = lean_ctor_get(x_461, 0); -lean_inc(x_473); -x_474 = lean_ctor_get(x_461, 1); -lean_inc(x_474); -x_475 = lean_ctor_get(x_461, 2); -lean_inc(x_475); -x_476 = lean_ctor_get(x_461, 3); -lean_inc(x_476); -if (lean_is_exclusive(x_461)) { - lean_ctor_release(x_461, 0); - lean_ctor_release(x_461, 1); - lean_ctor_release(x_461, 2); - lean_ctor_release(x_461, 3); - x_477 = x_461; -} else { - lean_dec_ref(x_461); - x_477 = lean_box(0); -} -x_478 = 1; -if (lean_is_scalar(x_477)) { - x_479 = lean_alloc_ctor(1, 4, 1); -} else { - x_479 = x_477; -} -lean_ctor_set(x_479, 0, x_362); -lean_ctor_set(x_479, 1, x_363); -lean_ctor_set(x_479, 2, x_364); -lean_ctor_set(x_479, 3, x_460); -lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); -if (lean_is_scalar(x_472)) { - x_480 = lean_alloc_ctor(1, 4, 1); -} else { - x_480 = x_472; -} -lean_ctor_set(x_480, 0, x_473); -lean_ctor_set(x_480, 1, x_474); -lean_ctor_set(x_480, 2, x_475); -lean_ctor_set(x_480, 3, x_476); -lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); -x_481 = 0; -x_482 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_482, 0, x_479); -lean_ctor_set(x_482, 1, x_470); -lean_ctor_set(x_482, 2, x_471); -lean_ctor_set(x_482, 3, x_480); -lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); -return x_482; -} -else -{ -lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; -x_483 = lean_ctor_get(x_459, 1); -lean_inc(x_483); -x_484 = lean_ctor_get(x_459, 2); -lean_inc(x_484); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_485 = x_459; -} else { - lean_dec_ref(x_459); - x_485 = lean_box(0); -} -x_486 = 0; -if (lean_is_scalar(x_485)) { - x_487 = lean_alloc_ctor(1, 4, 1); -} else { - x_487 = x_485; -} -lean_ctor_set(x_487, 0, x_460); -lean_ctor_set(x_487, 1, x_483); -lean_ctor_set(x_487, 2, x_484); -lean_ctor_set(x_487, 3, x_461); -lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); -x_488 = 1; -x_489 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_489, 0, x_362); -lean_ctor_set(x_489, 1, x_363); -lean_ctor_set(x_489, 2, x_364); -lean_ctor_set(x_489, 3, x_487); -lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); -return x_489; -} -} -} -else -{ -uint8_t x_490; -x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); -if (x_490 == 0) -{ -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; -x_491 = lean_ctor_get(x_459, 1); -lean_inc(x_491); -x_492 = lean_ctor_get(x_459, 2); -lean_inc(x_492); -x_493 = lean_ctor_get(x_459, 3); -lean_inc(x_493); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_494 = x_459; -} else { - lean_dec_ref(x_459); - x_494 = lean_box(0); -} -x_495 = lean_ctor_get(x_460, 0); -lean_inc(x_495); -x_496 = lean_ctor_get(x_460, 1); -lean_inc(x_496); -x_497 = lean_ctor_get(x_460, 2); -lean_inc(x_497); -x_498 = lean_ctor_get(x_460, 3); -lean_inc(x_498); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - lean_ctor_release(x_460, 2); - lean_ctor_release(x_460, 3); - x_499 = x_460; -} else { - lean_dec_ref(x_460); - x_499 = lean_box(0); -} -x_500 = 1; -if (lean_is_scalar(x_499)) { - x_501 = lean_alloc_ctor(1, 4, 1); -} else { - x_501 = x_499; -} -lean_ctor_set(x_501, 0, x_362); -lean_ctor_set(x_501, 1, x_363); -lean_ctor_set(x_501, 2, x_364); -lean_ctor_set(x_501, 3, x_495); -lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); -if (lean_is_scalar(x_494)) { - x_502 = lean_alloc_ctor(1, 4, 1); -} else { - x_502 = x_494; -} -lean_ctor_set(x_502, 0, x_498); -lean_ctor_set(x_502, 1, x_491); -lean_ctor_set(x_502, 2, x_492); -lean_ctor_set(x_502, 3, x_493); -lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); -x_503 = 0; -x_504 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_504, 0, x_501); -lean_ctor_set(x_504, 1, x_496); -lean_ctor_set(x_504, 2, x_497); -lean_ctor_set(x_504, 3, x_502); -lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); -return x_504; -} -else -{ -lean_object* x_505; -x_505 = lean_ctor_get(x_459, 3); -lean_inc(x_505); -if (lean_obj_tag(x_505) == 0) -{ -lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; -x_506 = lean_ctor_get(x_459, 1); -lean_inc(x_506); -x_507 = lean_ctor_get(x_459, 2); -lean_inc(x_507); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_508 = x_459; -} else { - lean_dec_ref(x_459); - x_508 = lean_box(0); -} -x_509 = 0; -if (lean_is_scalar(x_508)) { - x_510 = lean_alloc_ctor(1, 4, 1); -} else { - x_510 = x_508; -} -lean_ctor_set(x_510, 0, x_460); -lean_ctor_set(x_510, 1, x_506); -lean_ctor_set(x_510, 2, x_507); -lean_ctor_set(x_510, 3, x_505); -lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); -x_511 = 1; -x_512 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_512, 0, x_362); -lean_ctor_set(x_512, 1, x_363); -lean_ctor_set(x_512, 2, x_364); -lean_ctor_set(x_512, 3, x_510); -lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); -return x_512; -} -else -{ -uint8_t x_513; -x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); -if (x_513 == 0) -{ -lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; -x_514 = lean_ctor_get(x_459, 1); -lean_inc(x_514); -x_515 = lean_ctor_get(x_459, 2); -lean_inc(x_515); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_516 = x_459; -} else { - lean_dec_ref(x_459); - x_516 = lean_box(0); -} -x_517 = lean_ctor_get(x_505, 0); -lean_inc(x_517); -x_518 = lean_ctor_get(x_505, 1); -lean_inc(x_518); -x_519 = lean_ctor_get(x_505, 2); -lean_inc(x_519); -x_520 = lean_ctor_get(x_505, 3); -lean_inc(x_520); -if (lean_is_exclusive(x_505)) { - lean_ctor_release(x_505, 0); - lean_ctor_release(x_505, 1); - lean_ctor_release(x_505, 2); - lean_ctor_release(x_505, 3); - x_521 = x_505; -} else { - lean_dec_ref(x_505); - x_521 = lean_box(0); -} -x_522 = 1; -lean_inc(x_460); -if (lean_is_scalar(x_521)) { - x_523 = lean_alloc_ctor(1, 4, 1); -} else { - x_523 = x_521; -} -lean_ctor_set(x_523, 0, x_362); -lean_ctor_set(x_523, 1, x_363); -lean_ctor_set(x_523, 2, x_364); -lean_ctor_set(x_523, 3, x_460); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - lean_ctor_release(x_460, 2); - lean_ctor_release(x_460, 3); - x_524 = x_460; -} else { - lean_dec_ref(x_460); - x_524 = lean_box(0); -} -lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); -if (lean_is_scalar(x_524)) { - x_525 = lean_alloc_ctor(1, 4, 1); -} else { - x_525 = x_524; -} -lean_ctor_set(x_525, 0, x_517); -lean_ctor_set(x_525, 1, x_518); -lean_ctor_set(x_525, 2, x_519); -lean_ctor_set(x_525, 3, x_520); -lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); -x_526 = 0; -if (lean_is_scalar(x_516)) { - x_527 = lean_alloc_ctor(1, 4, 1); -} else { - x_527 = x_516; -} -lean_ctor_set(x_527, 0, x_523); -lean_ctor_set(x_527, 1, x_514); -lean_ctor_set(x_527, 2, x_515); -lean_ctor_set(x_527, 3, x_525); -lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); -return x_527; -} -else -{ -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; -x_528 = lean_ctor_get(x_459, 1); -lean_inc(x_528); -x_529 = lean_ctor_get(x_459, 2); -lean_inc(x_529); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - lean_ctor_release(x_459, 1); - lean_ctor_release(x_459, 2); - lean_ctor_release(x_459, 3); - x_530 = x_459; -} else { - lean_dec_ref(x_459); - x_530 = lean_box(0); -} -x_531 = lean_ctor_get(x_460, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_460, 1); -lean_inc(x_532); -x_533 = lean_ctor_get(x_460, 2); -lean_inc(x_533); -x_534 = lean_ctor_get(x_460, 3); -lean_inc(x_534); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - lean_ctor_release(x_460, 2); - lean_ctor_release(x_460, 3); - x_535 = x_460; -} else { - lean_dec_ref(x_460); - x_535 = lean_box(0); -} -if (lean_is_scalar(x_535)) { - x_536 = lean_alloc_ctor(1, 4, 1); -} else { - x_536 = x_535; -} -lean_ctor_set(x_536, 0, x_531); -lean_ctor_set(x_536, 1, x_532); -lean_ctor_set(x_536, 2, x_533); -lean_ctor_set(x_536, 3, x_534); -lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); -x_537 = 0; -if (lean_is_scalar(x_530)) { - x_538 = lean_alloc_ctor(1, 4, 1); -} else { - x_538 = x_530; -} -lean_ctor_set(x_538, 0, x_536); -lean_ctor_set(x_538, 1, x_528); -lean_ctor_set(x_538, 2, x_529); -lean_ctor_set(x_538, 3, x_505); -lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); -x_539 = 1; -x_540 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_540, 0, x_362); -lean_ctor_set(x_540, 1, x_363); -lean_ctor_set(x_540, 2, x_364); -lean_ctor_set(x_540, 3, x_538); -lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); -return x_540; -} -} -} -} -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_Std_RBNode_isRed___rarg(x_1); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_1, x_2, x_3); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -x_6 = l_Std_RBNode_ins___at_Lean_Compiler_LCNF_Check_withFVarId___spec__2(x_1, x_2, x_3); -x_7 = l_Std_RBNode_setBlack___rarg(x_6); -return x_7; -} -} -} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_withFVarId___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -5635,7 +3328,7 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_3, 1); x_14 = lean_box(0); -x_15 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_13, x_1, x_14); +x_15 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_13, x_1, x_14); lean_ctor_set(x_3, 1, x_15); x_16 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); return x_16; @@ -5649,7 +3342,7 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_3); x_19 = lean_box(0); -x_20 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_18, x_1, x_19); +x_20 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_18, x_1, x_19); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_17); lean_ctor_set(x_21, 1, x_20); @@ -5721,7 +3414,7 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_box(0); -x_15 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_13, x_1, x_14); +x_15 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_13, x_1, x_14); lean_ctor_set(x_3, 0, x_15); x_16 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); return x_16; @@ -5735,7 +3428,7 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_3); x_19 = lean_box(0); -x_20 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_17, x_1, x_19); +x_20 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_17, x_1, x_19); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_18); @@ -5798,7 +3491,7 @@ lean_dec(x_6); x_8 = 1; x_9 = lean_usize_add(x_2, x_8); x_10 = lean_box(0); -x_11 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_4, x_7, x_10); +x_11 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_4, x_7, x_10); x_2 = x_9; x_4 = x_11; goto _start; @@ -6103,50 +3796,71 @@ return x_10; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDeclCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; -x_32 = lean_array_get_size(x_3); -x_33 = lean_unsigned_to_nat(0u); -x_34 = lean_nat_dec_lt(x_33, x_32); -if (x_34 == 0) -{ -x_35 = x_11; -goto block_89; -} -else -{ -uint8_t x_90; -x_90 = lean_nat_dec_le(x_32, x_32); -if (x_90 == 0) -{ -x_35 = x_11; -goto block_89; -} -else -{ -size_t x_91; size_t x_92; lean_object* x_93; lean_object* x_94; -x_91 = 0; -x_92 = lean_usize_of_nat(x_32); -x_93 = lean_box(0); +lean_object* x_12; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_94 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__2(x_3, x_91, x_92, x_93, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_94) == 0) +x_12 = l_Lean_Compiler_LCNF_Check_checkParams(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_95; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_35 = x_95; -goto block_89; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_14 = x_12; +} else { + lean_dec_ref(x_12); + x_14 = lean_box(0); +} +x_35 = lean_array_get_size(x_3); +x_36 = lean_unsigned_to_nat(0u); +x_37 = lean_nat_dec_lt(x_36, x_35); +if (x_37 == 0) +{ +x_38 = x_13; +goto block_92; } else { -uint8_t x_96; -lean_dec(x_32); +uint8_t x_93; +x_93 = lean_nat_dec_le(x_35, x_35); +if (x_93 == 0) +{ +x_38 = x_13; +goto block_92; +} +else +{ +size_t x_94; size_t x_95; lean_object* x_96; lean_object* x_97; +x_94 = 0; +x_95 = lean_usize_of_nat(x_35); +x_96 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_97 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__2(x_3, x_94, x_95, x_96, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +x_38 = x_98; +goto block_92; +} +else +{ +uint8_t x_99; +lean_dec(x_35); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6157,75 +3871,76 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_96 = !lean_is_exclusive(x_94); -if (x_96 == 0) +x_99 = !lean_is_exclusive(x_97); +if (x_99 == 0) { -return x_94; +return x_97; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_94, 0); -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_94); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_97, 0); +x_101 = lean_ctor_get(x_97, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_97); +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; } } } } -block_31: +block_34: { -uint8_t x_14; -lean_inc(x_12); +uint8_t x_17; +lean_inc(x_15); lean_inc(x_2); -x_14 = l_Lean_Compiler_LCNF_compatibleTypes(x_2, x_12); -if (x_14 == 0) +x_17 = l_Lean_Compiler_LCNF_compatibleTypes(x_2, x_15); +if (x_17 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_15 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_15, 0, x_1); -x_16 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; -x_17 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; -x_19 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_indentExpr(x_12); -x_21 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_indentExpr(x_2); -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2(x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_14); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_1); +x_19 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_indentExpr(x_15); +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__3___lambda__4___closed__8; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_indentExpr(x_2); +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_16); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_28; +return x_31; } else { -lean_object* x_29; lean_object* x_30; -lean_dec(x_12); +lean_object* x_32; lean_object* x_33; +lean_dec(x_15); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6234,59 +3949,64 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -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_13); -return x_30; +x_32 = lean_box(0); +if (lean_is_scalar(x_14)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_14; +} +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_16); +return x_33; } } -block_89: +block_92: { -if (x_34 == 0) +if (x_37 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_32); -x_36 = lean_ctor_get(x_5, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_5, 1); -lean_inc(x_37); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_35); +x_39 = lean_ctor_get(x_5, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_5, 1); +lean_inc(x_40); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_39 = l_Lean_Compiler_LCNF_Check_check(x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_42 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_40, x_8, x_9, x_10, x_41); +x_42 = l_Lean_Compiler_LCNF_Check_check(x_4, x_41, x_6, x_7, x_8, x_9, x_10, x_38); if (lean_obj_tag(x_42) == 0) { -lean_object* x_43; lean_object* x_44; +lean_object* x_43; lean_object* x_44; lean_object* x_45; x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); lean_dec(x_42); -x_12 = x_43; -x_13 = x_44; -goto block_31; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_45 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_43, x_8, x_9, x_10, x_44); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_15 = x_46; +x_16 = x_47; +goto block_34; } else { -uint8_t x_45; +uint8_t x_48; +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6295,106 +4015,108 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) +x_48 = !lean_is_exclusive(x_45); +if (x_48 == 0) +{ +return x_45; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_45, 0); +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_45); +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; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_14); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_42); +if (x_52 == 0) { return x_42; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_42); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -uint8_t x_49; -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_49 = !lean_is_exclusive(x_39); -if (x_49 == 0) -{ -return x_39; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_39, 0); -x_51 = lean_ctor_get(x_39, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_39); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -else -{ -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_5, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_5, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_42, 0); +x_54 = lean_ctor_get(x_42, 1); lean_inc(x_54); -x_55 = lean_nat_dec_le(x_32, x_32); -if (x_55 == 0) +lean_inc(x_53); +lean_dec(x_42); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else { -lean_object* x_56; lean_object* x_57; -lean_dec(x_32); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_5, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_5, 1); +lean_inc(x_57); +x_58 = lean_nat_dec_le(x_35, x_35); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_35); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_57 = l_Lean_Compiler_LCNF_Check_check(x_4, x_56, x_6, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_57, 0); -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); -x_60 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_58, x_8, x_9, x_10, x_59); +x_60 = l_Lean_Compiler_LCNF_Check_check(x_4, x_59, x_6, x_7, x_8, x_9, x_10, x_38); if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; +lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_12 = x_61; -x_13 = x_62; -goto block_31; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_63 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_61, x_8, x_9, x_10, x_62); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_15 = x_64; +x_16 = x_65; +goto block_34; } else { -uint8_t x_63; +uint8_t x_66; +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6403,101 +4125,103 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_60); -if (x_63 == 0) +x_66 = !lean_is_exclusive(x_63); +if (x_66 == 0) +{ +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_63); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +uint8_t x_70; +lean_dec(x_14); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_60); +if (x_70 == 0) { return x_60; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -lean_inc(x_64); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_60, 0); +x_72 = lean_ctor_get(x_60, 1); +lean_inc(x_72); +lean_inc(x_71); lean_dec(x_60); -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; +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 { -uint8_t x_67; -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_57); -if (x_67 == 0) -{ -return x_57; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_57, 0); -x_69 = lean_ctor_get(x_57, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_57); -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 -{ -size_t x_71; size_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_71 = 0; -x_72 = lean_usize_of_nat(x_32); -lean_dec(x_32); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__1(x_3, x_71, x_72, x_54); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_53); -lean_ctor_set(x_74, 1, x_73); +size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_74 = 0; +x_75 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Check_withParams___spec__1(x_3, x_74, x_75, x_57); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_56); +lean_ctor_set(x_77, 1, x_76); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_75 = l_Lean_Compiler_LCNF_Check_check(x_4, x_74, x_6, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_78 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_76, x_8, x_9, x_10, x_77); +x_78 = l_Lean_Compiler_LCNF_Check_check(x_4, x_77, x_6, x_7, x_8, x_9, x_10, x_38); if (lean_obj_tag(x_78) == 0) { -lean_object* x_79; lean_object* x_80; +lean_object* x_79; lean_object* x_80; lean_object* x_81; x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); x_80 = lean_ctor_get(x_78, 1); lean_inc(x_80); lean_dec(x_78); -x_12 = x_79; -x_13 = x_80; -goto block_31; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_81 = l_Lean_Compiler_LCNF_mkForallParams(x_3, x_79, x_8, x_9, x_10, x_80); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_15 = x_82; +x_16 = x_83; +goto block_34; } else { -uint8_t x_81; +uint8_t x_84; +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6506,29 +4230,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_78); -if (x_81 == 0) +x_84 = !lean_is_exclusive(x_81); +if (x_84 == 0) { -return x_78; +return x_81; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_78, 0); -x_83 = lean_ctor_get(x_78, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_78); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_81, 0); +x_86 = lean_ctor_get(x_81, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_81); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } } else { -uint8_t x_85; +uint8_t x_88; +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6538,29 +4263,62 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_75); -if (x_85 == 0) +x_88 = !lean_is_exclusive(x_78); +if (x_88 == 0) { -return x_75; +return x_78; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_75, 0); -x_87 = lean_ctor_get(x_75, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_75); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_78, 0); +x_90 = lean_ctor_get(x_78, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_78); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } } } } +else +{ +uint8_t x_103; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_103 = !lean_is_exclusive(x_12); +if (x_103 == 0) +{ +return x_12; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_12, 0); +x_105 = lean_ctor_get(x_12, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_12); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} } LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_check___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: @@ -6708,7 +4466,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_2, 1); x_18 = lean_box(0); -x_19 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_17, x_13, x_18); +x_19 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_17, x_13, x_18); lean_ctor_set(x_2, 1, x_19); x_1 = x_10; x_8 = x_15; @@ -6723,7 +4481,7 @@ lean_inc(x_22); lean_inc(x_21); lean_dec(x_2); x_23 = lean_box(0); -x_24 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_22, x_13, x_23); +x_24 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_22, x_13, x_23); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_21); lean_ctor_set(x_25, 1, x_24); @@ -6851,7 +4609,7 @@ x_48 = lean_ctor_get(x_44, 1); lean_inc(x_48); lean_dec(x_44); x_49 = lean_box(0); -x_50 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_39, x_43, x_49); +x_50 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_39, x_43, x_49); lean_ctor_set(x_2, 1, x_50); x_1 = x_36; x_8 = x_48; @@ -6900,7 +4658,7 @@ x_56 = lean_ctor_get(x_44, 1); lean_inc(x_56); lean_dec(x_44); x_57 = lean_box(0); -x_58 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_39, x_43, x_57); +x_58 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_39, x_43, x_57); x_59 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_59, 0, x_38); lean_ctor_set(x_59, 1, x_58); @@ -7022,7 +4780,7 @@ if (x_76 == 0) lean_object* x_77; lean_object* x_78; lean_object* x_79; x_77 = lean_ctor_get(x_2, 0); x_78 = lean_box(0); -x_79 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_77, x_73, x_78); +x_79 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_77, x_73, x_78); lean_ctor_set(x_2, 0, x_79); x_1 = x_70; x_8 = x_75; @@ -7037,7 +4795,7 @@ lean_inc(x_82); lean_inc(x_81); lean_dec(x_2); x_83 = lean_box(0); -x_84 = l_Std_RBNode_insert___at_Lean_Compiler_LCNF_Check_withFVarId___spec__1(x_81, x_73, x_83); +x_84 = l_Std_RBNode_insert___at_Lean_CollectFVars_State_add___spec__1(x_81, x_73, x_83); x_85 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_82); @@ -7334,7 +5092,7 @@ return x_143; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -7359,7 +5117,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); x_19 = lean_ctor_get(x_6, 2); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_19); x_21 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_21, 0, x_13); @@ -7390,7 +5148,7 @@ lean_inc(x_26); lean_dec(x_24); x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); x_28 = lean_ctor_get(x_6, 2); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; +x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; lean_inc(x_28); x_30 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_30, 0, x_13); @@ -7411,84 +5169,7 @@ return x_33; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___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_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_9 = lean_ctor_get(x_6, 5); -x_10 = lean_st_ref_get(x_7, x_8); -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, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_st_ref_get(x_5, x_12); -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; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); -x_19 = lean_ctor_get(x_6, 2); -x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; -lean_inc(x_19); -x_21 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -lean_ctor_set(x_21, 2, x_18); -lean_ctor_set(x_21, 3, x_19); -x_22 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_1); -lean_inc(x_9); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_9); -lean_ctor_set(x_23, 1, x_22); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_23); -return x_14; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_24 = lean_ctor_get(x_14, 0); -x_25 = lean_ctor_get(x_14, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_14); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); -x_28 = lean_ctor_get(x_6, 2); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6; -lean_inc(x_28); -x_30 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_30, 0, x_13); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_30, 2, x_27); -lean_ctor_set(x_30, 3, x_28); -x_31 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_1); -lean_inc(x_9); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_9); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_25); -return x_33; -} -} -} -static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1() { +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1() { _start: { lean_object* x_1; @@ -7496,16 +5177,16 @@ x_1 = lean_mk_string_from_bytes("unknown constant '", 18); return x_1; } } -static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2() { +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1; +x_1 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3() { +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3() { _start: { lean_object* x_1; @@ -7513,16 +5194,16 @@ x_1 = lean_mk_string_from_bytes("'", 1); return x_1; } } -static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4() { +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3; +x_1 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___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: { lean_object* x_9; uint8_t x_10; @@ -7546,15 +5227,15 @@ x_15 = lean_box(0); x_16 = l_Lean_Expr_const___override(x_1, x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2; +x_18 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4; +x_20 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__3(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_22 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_12); return x_22; } else @@ -7588,15 +5269,15 @@ x_28 = lean_box(0); x_29 = l_Lean_Expr_const___override(x_1, x_28); x_30 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2; +x_31 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4; +x_33 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4; x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__3(x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_35 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_25); return x_35; } else @@ -7614,6 +5295,83 @@ return x_37; } } } +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___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_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_ctor_get(x_6, 5); +x_10 = lean_st_ref_get(x_7, x_8); +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, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_5, x_12); +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; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_17); +x_19 = lean_ctor_get(x_6, 2); +x_20 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; +lean_inc(x_19); +x_21 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_21, 2, x_18); +lean_ctor_set(x_21, 3, x_19); +x_22 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_1); +lean_inc(x_9); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_9); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_14); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_26); +x_28 = lean_ctor_get(x_6, 2); +x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; +lean_inc(x_28); +x_30 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_30, 0, x_13); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_28); +x_31 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_1); +lean_inc(x_9); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_9); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +return x_33; +} +} +} static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__1() { _start: { @@ -8165,7 +5923,7 @@ x_16 = lean_box(0); lean_inc(x_1); x_17 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_7, x_1, x_16); lean_inc(x_1); -x_18 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; @@ -8271,7 +6029,7 @@ x_44 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec_ x_45 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(x_45, x_9, x_10, x_11, x_12, x_13, x_14, x_40); +x_46 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__3(x_45, x_9, x_10, x_11, x_12, x_13, x_14, x_40); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8390,184 +6148,186 @@ return x_14; } else { -lean_object* x_15; +lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_array_uget(x_2, x_4); 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; -x_16 = lean_ctor_get(x_5, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 2); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_ctor_get(x_5, 1); -lean_inc(x_20); -lean_dec(x_5); -lean_inc(x_1); -x_21 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___boxed), 11, 1); -lean_closure_set(x_21, 0, x_1); -x_22 = l_Lean_NameSet_contains(x_16, x_17); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; lean_object* x_25; -x_23 = lean_box(0); -x_24 = lean_unbox(x_20); -lean_dec(x_20); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_1); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4(x_17, x_21, x_24, x_18, x_19, x_1, x_16, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; -x_26 = lean_ctor_get(x_25, 0); +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; +x_25 = lean_ctor_get(x_5, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_15, 0); lean_inc(x_26); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -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_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 0); -lean_dec(x_28); -x_29 = lean_ctor_get(x_26, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_15, 2); +lean_inc(x_28); +lean_dec(x_15); +x_29 = lean_ctor_get(x_5, 1); lean_inc(x_29); -lean_dec(x_26); -lean_ctor_set(x_25, 0, x_29); -return x_25; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = lean_ctor_get(x_26, 0); -lean_inc(x_31); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; -x_33 = lean_ctor_get(x_25, 1); -lean_inc(x_33); -lean_dec(x_25); -x_34 = lean_ctor_get(x_26, 0); -lean_inc(x_34); -lean_dec(x_26); -x_35 = 1; -x_36 = lean_usize_add(x_4, x_35); -x_4 = x_36; -x_5 = x_34; -x_12 = x_33; -goto _start; -} -} -else -{ -uint8_t x_38; -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_38 = !lean_is_exclusive(x_25); -if (x_38 == 0) -{ -return x_25; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_25, 0); -x_40 = lean_ctor_get(x_25, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_25); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_1); -x_42 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_42, 0, x_17); -x_43 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__2; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__4; -x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -return x_47; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_47); -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; -} -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_5, 0); -lean_inc(x_52); lean_dec(x_5); -x_53 = lean_ctor_get(x_15, 0); -lean_inc(x_53); +lean_inc(x_1); +x_30 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___boxed), 11, 1); +lean_closure_set(x_30, 0, x_1); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_31 = l_Lean_Compiler_LCNF_Check_checkParams(x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = l_Lean_NameSet_contains(x_25, x_26); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_34 = lean_box(0); +x_35 = lean_unbox(x_29); +lean_dec(x_29); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_36 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__4(x_26, x_30, x_35, x_27, x_28, x_1, x_25, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +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); +x_16 = x_37; +x_17 = x_38; +goto block_24; +} +else +{ +uint8_t x_39; +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_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_36); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_25); +lean_dec(x_1); +x_43 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_43, 0, x_26); +x_44 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__2; +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___closed__4; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +return x_48; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_48); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_25); +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_53 = !lean_is_exclusive(x_31); +if (x_53 == 0) +{ +return x_31; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_31, 0); +x_55 = lean_ctor_get(x_31, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_31); +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 +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_5, 0); +lean_inc(x_57); +lean_dec(x_5); +x_58 = lean_ctor_get(x_15, 0); +lean_inc(x_58); lean_dec(x_15); lean_inc(x_11); lean_inc(x_10); @@ -8575,39 +6335,33 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_54 = l_Lean_Compiler_LCNF_Check_check(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_54) == 0) +x_59 = l_Lean_Compiler_LCNF_Check_check(x_58, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = 1; -lean_inc(x_1); -x_58 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1(x_1, x_52, x_57, x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_56); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); +lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_ctor_get(x_59, 0); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); lean_dec(x_59); x_62 = 1; -x_63 = lean_usize_add(x_4, x_62); -x_4 = x_63; -x_5 = x_61; -x_12 = x_60; -goto _start; +lean_inc(x_1); +x_63 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1(x_1, x_57, x_62, x_60, x_6, x_7, x_8, x_9, x_10, x_11, x_61); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_16 = x_64; +x_17 = x_65; +goto block_24; } else { -uint8_t x_65; +uint8_t x_66; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8615,30 +6369,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_58); -if (x_65 == 0) +x_66 = !lean_is_exclusive(x_63); +if (x_66 == 0) { -return x_58; +return x_63; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_58, 0); -x_67 = lean_ctor_get(x_58, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_58); -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; +lean_dec(x_63); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -uint8_t x_69; -lean_dec(x_52); +uint8_t x_70; +lean_dec(x_57); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8646,26 +6400,60 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_54); -if (x_69 == 0) +x_70 = !lean_is_exclusive(x_59); +if (x_70 == 0) { -return x_54; +return x_59; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_54, 0); -x_71 = lean_ctor_get(x_54, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_59, 0); +x_72 = lean_ctor_get(x_59, 1); +lean_inc(x_72); lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_54); -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; +lean_dec(x_59); +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; } } } +block_24: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_18; lean_object* x_19; +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_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +else +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = 1; +x_22 = lean_usize_add(x_4, x_21); +x_4 = x_22; +x_5 = x_20; +x_12 = x_17; +goto _start; +} +} } } } @@ -8810,114 +6598,146 @@ lean_inc(x_4); x_12 = l_Lean_Compiler_LCNF_InferType_inferFVarType(x_9, x_4, x_5, x_6, x_7, x_11); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_13; lean_object* x_14; uint8_t x_15; 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_Expr_isAnyType(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_inc(x_13); -x_15 = l_Lean_Expr_headBeta(x_13); -x_16 = l_Lean_Expr_getAppFn(x_15); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 4) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +x_16 = l_Lean_Expr_headBeta(x_13); +x_17 = l_Lean_Expr_getAppFn(x_16); lean_dec(x_16); -x_18 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_17) == 4) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_name_eq(x_18, x_17); lean_dec(x_17); -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; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -lean_dec(x_1); -x_20 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_20, 0, x_18); -x_21 = l_Lean_Compiler_LCNF_Check_checkCases___closed__4; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l_Lean_Compiler_LCNF_Check_checkCases___closed__6; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_indentExpr(x_13); -x_26 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -return x_29; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_29); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -else -{ -lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +x_20 = lean_name_eq(x_19, x_18); lean_dec(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_1); +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_19); +x_22 = l_Lean_Compiler_LCNF_Check_checkCases___closed__4; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l_Lean_Compiler_LCNF_Check_checkCases___closed__6; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_indentExpr(x_13); +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +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; +} +} +else +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_19); lean_dec(x_13); -x_34 = l_Lean_NameSet_empty; -x_35 = 0; -x_36 = lean_box(0); -x_37 = l_Lean_Compiler_LCNF_Check_checkCases___lambda__1(x_1, x_34, x_35, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -return x_37; +x_35 = l_Lean_NameSet_empty; +x_36 = 0; +x_37 = lean_box(0); +x_38 = l_Lean_Compiler_LCNF_Check_checkCases___lambda__1(x_1, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +return x_38; } } else { -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_dec(x_16); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_17); lean_dec(x_1); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_13); -x_39 = l_Lean_Compiler_LCNF_Check_checkCases___closed__2; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +x_39 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_39, 0, x_13); +x_40 = l_Lean_Compiler_LCNF_Check_checkCases___closed__2; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_14); 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_43; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +return x_44; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} } } else { -uint8_t x_44; +lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_13); +x_49 = l_Lean_NameSet_empty; +x_50 = 0; +x_51 = lean_box(0); +x_52 = l_Lean_Compiler_LCNF_Check_checkCases___lambda__1(x_1, x_49, x_50, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +return x_52; +} +} +else +{ +uint8_t x_53; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -8925,29 +6745,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_44 = !lean_is_exclusive(x_12); -if (x_44 == 0) +x_53 = !lean_is_exclusive(x_12); +if (x_53 == 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_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_12, 0); +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); +lean_inc(x_54); 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; +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_48; +uint8_t x_57; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -8956,23 +6776,160 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_10); -if (x_48 == 0) +x_57 = !lean_is_exclusive(x_10); +if (x_57 == 0) { return x_10; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_10, 0); -x_50 = lean_ctor_get(x_10, 1); -lean_inc(x_50); -lean_inc(x_49); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_10, 0); +x_59 = lean_ctor_get(x_10, 1); +lean_inc(x_59); +lean_inc(x_58); lean_dec(x_10); -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; +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; +} +} +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("LCNF local function declaration mismatch at `", 45); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`, declaration in local context does match", 42); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Compiler_LCNF_getFunDecl(x_1, x_8, x_9, x_10, 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; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(x_14, x_2); +if (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_free_object(x_12); +x_17 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_17, 0, x_3); +x_18 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_3); +x_23 = lean_box(0); +lean_ctor_set(x_12, 0, x_23); +return x_12; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_12); +x_26 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_eqFunDecl(x_24, x_2); +if (x_26 == 0) +{ +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_27 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_27, 0, x_3); +x_28 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_3); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_25); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_12); +if (x_35 == 0) +{ +return x_12; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_12, 0); +x_37 = lean_ctor_get(x_12, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_12); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } @@ -8989,10 +6946,175 @@ x_11 = lean_ctor_get(x_1, 2); lean_inc(x_11); x_12 = lean_ctor_get(x_1, 4); lean_inc(x_12); -lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_10); +lean_inc(x_9); x_13 = l_Lean_Compiler_LCNF_Check_checkFunDeclCore(x_9, x_10, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +lean_inc(x_15); +x_16 = l_Lean_Compiler_LCNF_getLocalDecl(x_15, x_5, x_6, x_7, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +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_19 = l_Lean_LocalDecl_type(x_17); +lean_dec(x_17); +x_20 = lean_expr_eqv(x_19, x_10); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_dec(x_15); +lean_dec(x_1); +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_9); +x_22 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l_Lean_Compiler_LCNF_Check_checkParam___closed__4; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_indentExpr(x_19); +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Compiler_LCNF_Check_checkParam___closed__6; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_indentExpr(x_10); +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_Compiler_LCNF_Check_checkFVar___closed__4; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkAppArgs___spec__1(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +return x_34; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_19); +lean_dec(x_10); +x_39 = lean_box(0); +x_40 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1(x_15, x_1, x_9, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_40; +} +} +else +{ +uint8_t x_41; +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_16); +if (x_41 == 0) +{ +return x_16; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_16, 0); +x_43 = lean_ctor_get(x_16, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_16); +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 +{ +uint8_t x_45; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_13); +if (x_45 == 0) +{ return x_13; } +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_13, 0); +x_47 = lean_ctor_get(x_13, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_13); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} } LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_check___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: @@ -9003,11 +7125,25 @@ lean_dec(x_4); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___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_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9031,20 +7167,6 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -9118,6 +7240,22 @@ lean_dec(x_4); return x_13; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_12; +} +} static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__1() { _start: { @@ -9132,17 +7270,8 @@ return x_2; static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(8u); -x_2 = l_Std_mkHashSetImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2; +x_1 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -9150,7 +7279,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__4() { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -9159,23 +7288,23 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__5() { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__4; +x_1 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__6() { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__5() { _start: { size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__5; -x_3 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__4; +x_2 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__4; +x_3 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__3; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -9186,12 +7315,12 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__7() { +static lean_object* _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__3; -x_2 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__6; +x_1 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__2; +x_2 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__5; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -9206,7 +7335,7 @@ x_6 = lean_st_ref_get(x_4, x_5); x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__2; +x_8 = l_Lean_Compiler_LCNF_Check_State_all___default___closed__1; x_9 = lean_st_mk_ref(x_8, x_7); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -9214,7 +7343,7 @@ x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); x_12 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__1; -x_13 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__7; +x_13 = l_Lean_Compiler_LCNF_Check_run___rarg___closed__6; lean_inc(x_4); lean_inc(x_10); x_14 = lean_apply_7(x_1, x_12, x_10, x_13, x_2, x_3, x_4, x_11); @@ -9310,8 +7439,895 @@ x_11 = l_Lean_Compiler_LCNF_Check_run___rarg(x_10, x_2, x_3, x_4, x_5); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_2, x_1); +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParam(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_2, x_3); +if (x_6 == 0) +{ +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_dec(x_4); +x_7 = lean_array_uget(x_1, x_2); +x_8 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParam(x_7, x_5); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = 1; +x_12 = lean_usize_add(x_2, x_11); +x_2 = x_12; +x_4 = x_9; +x_5 = x_10; +goto _start; +} +else +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_5); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(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); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_3, x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_2); +return x_10; +} +else +{ +size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_11 = 0; +x_12 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_13 = lean_box(0); +x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1(x_1, x_11, x_12, x_13, x_2); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1___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_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___spec__1(x_1, x_6, x_7, x_4, x_5); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_2, x_3); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_4); +x_7 = lean_array_uget(x_1, x_2); +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; size_t x_15; size_t x_16; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 2); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(x_8, x_5); +lean_dec(x_8); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(x_9, x_11); +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 = 1; +x_16 = lean_usize_add(x_2, x_15); +x_2 = x_16; +x_4 = x_13; +x_5 = x_14; +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; +x_18 = lean_ctor_get(x_7, 0); +lean_inc(x_18); +lean_dec(x_7); +x_19 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(x_18, x_5); +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 = 1; +x_23 = lean_usize_add(x_2, x_22); +x_2 = x_23; +x_4 = x_20; +x_5 = x_21; +goto _start; +} +} +else +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_4); +lean_ctor_set(x_25, 1, x_5); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +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, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(x_5, x_2); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_1 = x_4; +x_2 = x_7; +goto _start; +} +case 1: +{ +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; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(x_11, x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_9, 2); +lean_inc(x_14); +x_15 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(x_14, x_13); +lean_dec(x_14); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_9, 4); +lean_inc(x_17); +lean_dec(x_9); +x_18 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(x_17, x_16); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_1 = x_10; +x_2 = x_19; +goto _start; +} +case 2: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 1); +lean_inc(x_22); +lean_dec(x_1); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitFVar(x_23, x_2); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_ctor_get(x_21, 2); +lean_inc(x_26); +x_27 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(x_26, x_25); +lean_dec(x_26); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_ctor_get(x_21, 4); +lean_inc(x_29); +lean_dec(x_21); +x_30 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(x_29, x_28); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_1 = x_22; +x_2 = x_31; +goto _start; +} +case 4: +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +lean_inc(x_33); +lean_dec(x_1); +x_34 = lean_ctor_get(x_33, 3); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_array_get_size(x_34); +x_36 = lean_unsigned_to_nat(0u); +x_37 = lean_nat_dec_lt(x_36, x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_35); +lean_dec(x_34); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_2); +return x_39; +} +else +{ +uint8_t x_40; +x_40 = lean_nat_dec_le(x_35, x_35); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_35); +lean_dec(x_34); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_2); +return x_42; +} +else +{ +size_t x_43; size_t x_44; lean_object* x_45; lean_object* x_46; +x_43 = 0; +x_44 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_45 = lean_box(0); +x_46 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1(x_34, x_43, x_44, x_45, x_2); +lean_dec(x_34); +return x_46; +} +} +} +default: +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_1); +x_47 = lean_box(0); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_2); +return x_48; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1___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_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode___spec__1(x_1, x_6, x_7, x_4, x_5); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecl(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, 3); +lean_inc(x_3); +x_4 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitParams(x_3, x_2); +lean_dec(x_3); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_1, 4); +lean_inc(x_6); +lean_dec(x_1); +x_7 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitCode(x_6, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_2, x_3); +if (x_6 == 0) +{ +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_dec(x_4); +x_7 = lean_array_uget(x_1, x_2); +x_8 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecl(x_7, x_5); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = 1; +x_12 = lean_usize_add(x_2, x_11); +x_2 = x_12; +x_4 = x_9; +x_5 = x_10; +goto _start; +} +else +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_5); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(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); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_3, x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_2); +return x_10; +} +else +{ +size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_11 = 0; +x_12 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_13 = lean_box(0); +x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1(x_1, x_11, x_12, x_13, x_2); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1___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_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___spec__1(x_1, x_6, x_7, x_4, x_5); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_6 = lean_ctor_get(x_3, 5); +x_7 = lean_st_ref_get(x_4, x_5); +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 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_st_ref_get(x_2, x_9); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_14); +x_16 = lean_ctor_get(x_3, 2); +x_17 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; +lean_inc(x_16); +x_18 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_18, 0, x_10); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set(x_18, 2, x_15); +lean_ctor_set(x_18, 3, x_16); +x_19 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_1); +lean_inc(x_6); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_19); +lean_ctor_set_tag(x_11, 1); +lean_ctor_set(x_11, 0, x_20); +return x_11; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_21 = lean_ctor_get(x_11, 0); +x_22 = lean_ctor_get(x_11, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_11); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_23); +x_25 = lean_ctor_get(x_3, 2); +x_26 = l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6; +lean_inc(x_25); +x_27 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_27, 0, x_10); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_27, 2, x_24); +lean_ctor_set(x_27, 3, x_25); +x_28 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_1); +lean_inc(x_6); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_6); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_22); +return x_30; +} +} +} +static lean_object* _init_l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("LCNF local context contains unused local variable declaration `", 63); +return x_1; +} +} +static lean_object* _init_l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_1); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_1); +x_12 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_1, x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_dec(x_11); +lean_dec(x_1); +x_13 = l_Lean_LocalDecl_userName(x_10); +lean_dec(x_10); +x_14 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___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); +x_17 = l_Lean_Compiler_LCNF_Check_addFVarId___closed__4; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1(x_18, x_3, x_4, x_5, x_6); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +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_dec(x_10); +x_2 = x_11; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_eq(x_3, x_4); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_11 = lean_array_uget(x_2, x_3); +lean_inc(x_1); +x_12 = l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2(x_1, x_11, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; +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 = 1; +x_16 = lean_usize_add(x_3, x_15); +x_3 = x_16; +x_5 = x_13; +x_9 = x_14; +goto _start; +} +else +{ +uint8_t x_18; +lean_dec(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 +{ +lean_object* x_22; +lean_dec(x_1); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_5); +lean_ctor_set(x_22, 1, x_9); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_6 = l_Lean_Compiler_LCNF_Check_State_all___default___closed__1; +x_7 = l_Lean_Compiler_LCNF_checkDeadLocalDecls_visitDecls(x_1, x_6); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_st_ref_get(x_4, x_5); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_2, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_array_get_size(x_17); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_nat_dec_lt(x_19, x_18); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_box(0); +lean_ctor_set(x_11, 0, x_21); +return x_11; +} +else +{ +uint8_t x_22; +x_22 = lean_nat_dec_le(x_18, x_18); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_box(0); +lean_ctor_set(x_11, 0, x_23); +return x_11; +} +else +{ +size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; +lean_free_object(x_11); +x_24 = 0; +x_25 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_26 = lean_box(0); +x_27 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3(x_8, x_17, x_24, x_25, x_26, x_2, x_3, x_4, x_14); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_17); +return x_27; +} +} +} +else +{ +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; uint8_t x_35; +x_28 = lean_ctor_get(x_11, 0); +x_29 = lean_ctor_get(x_11, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_11); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_array_get_size(x_32); +x_34 = lean_unsigned_to_nat(0u); +x_35 = lean_nat_dec_lt(x_34, x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_29); +return x_37; +} +else +{ +uint8_t x_38; +x_38 = lean_nat_dec_le(x_33, x_33); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_29); +return x_40; +} +else +{ +size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; +x_41 = 0; +x_42 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_43 = lean_box(0); +x_44 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3(x_8, x_32, x_41, x_42, x_43, x_2, x_3, x_4, x_29); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_32); +return x_44; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwError___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__3(x_1, x_2, x_10, x_11, 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_2); +return x_12; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Compiler_LCNF_InferType(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Compiler_LCNF_PrettyPrinter(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Compiler_LCNF_Check(uint8_t builtin, lean_object* w) { lean_object * res; @@ -9323,24 +8339,29 @@ lean_dec_ref(res); res = initialize_Lean_Compiler_LCNF_InferType(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Compiler_LCNF_PrettyPrinter(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Compiler_LCNF_Check_Context_jps___default = _init_l_Lean_Compiler_LCNF_Check_Context_jps___default(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_Context_jps___default); l_Lean_Compiler_LCNF_Check_Context_vars___default = _init_l_Lean_Compiler_LCNF_Check_Context_vars___default(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_Context_vars___default); +l_Lean_Compiler_LCNF_Check_State_all___default___closed__1 = _init_l_Lean_Compiler_LCNF_Check_State_all___default___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_State_all___default___closed__1); l_Lean_Compiler_LCNF_Check_State_all___default = _init_l_Lean_Compiler_LCNF_Check_State_all___default(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_State_all___default); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__1); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__2); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__3); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__4); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__5); -l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6(); -lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__2___closed__6); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__1 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__1(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__1); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__2); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__3); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__4); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__5); +l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6 = _init_l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6(); +lean_mark_persistent(l_Lean_throwError___at_Lean_Compiler_LCNF_Check_checkFVar___spec__1___closed__6); l_Lean_Compiler_LCNF_Check_checkFVar___closed__1 = _init_l_Lean_Compiler_LCNF_Check_checkFVar___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkFVar___closed__1); l_Lean_Compiler_LCNF_Check_checkFVar___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkFVar___closed__2(); @@ -9409,6 +8430,26 @@ l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__1 = _init_l_Lean_Compiler_LC lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__1); l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__2(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkJpInScope___closed__2); +l_Lean_Compiler_LCNF_Check_checkParam___closed__1 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__1); +l_Lean_Compiler_LCNF_Check_checkParam___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__2); +l_Lean_Compiler_LCNF_Check_checkParam___closed__3 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__3); +l_Lean_Compiler_LCNF_Check_checkParam___closed__4 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__4); +l_Lean_Compiler_LCNF_Check_checkParam___closed__5 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__5); +l_Lean_Compiler_LCNF_Check_checkParam___closed__6 = _init_l_Lean_Compiler_LCNF_Check_checkParam___closed__6(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkParam___closed__6); +l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__1); +l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__2); +l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__3); +l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkLetDecl___lambda__1___closed__4); l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__1 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__1); l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkLetDecl___closed__2(); @@ -9437,14 +8478,14 @@ l_Lean_Compiler_LCNF_Check_check___closed__5 = _init_l_Lean_Compiler_LCNF_Check_ lean_mark_persistent(l_Lean_Compiler_LCNF_Check_check___closed__5); l_Lean_Compiler_LCNF_Check_check___closed__6 = _init_l_Lean_Compiler_LCNF_Check_check___closed__6(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_check___closed__6); -l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1(); -lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__1); -l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2(); -lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__2); -l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3(); -lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__3); -l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4(); -lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__2___closed__4); +l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__1); +l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__2); +l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__3); +l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4 = _init_l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Compiler_LCNF_Check_checkCases___spec__1___closed__4); l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__1); l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Check_checkCases___spec__4___lambda__1___closed__2(); @@ -9493,6 +8534,14 @@ l_Lean_Compiler_LCNF_Check_checkCases___closed__5 = _init_l_Lean_Compiler_LCNF_C lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkCases___closed__5); l_Lean_Compiler_LCNF_Check_checkCases___closed__6 = _init_l_Lean_Compiler_LCNF_Check_checkCases___closed__6(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkCases___closed__6); +l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1 = _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__1); +l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2 = _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__2); +l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3 = _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__3); +l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4 = _init_l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Check_checkFunDecl___lambda__1___closed__4); l_Lean_Compiler_LCNF_Check_run___rarg___closed__1 = _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_run___rarg___closed__1); l_Lean_Compiler_LCNF_Check_run___rarg___closed__2 = _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__2(); @@ -9505,8 +8554,10 @@ l_Lean_Compiler_LCNF_Check_run___rarg___closed__5 = _init_l_Lean_Compiler_LCNF_C lean_mark_persistent(l_Lean_Compiler_LCNF_Check_run___rarg___closed__5); l_Lean_Compiler_LCNF_Check_run___rarg___closed__6 = _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__6(); lean_mark_persistent(l_Lean_Compiler_LCNF_Check_run___rarg___closed__6); -l_Lean_Compiler_LCNF_Check_run___rarg___closed__7 = _init_l_Lean_Compiler_LCNF_Check_run___rarg___closed__7(); -lean_mark_persistent(l_Lean_Compiler_LCNF_Check_run___rarg___closed__7); +l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1 = _init_l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1(); +lean_mark_persistent(l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__1); +l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__2 = _init_l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__2(); +lean_mark_persistent(l_Std_AssocList_forM___at_Lean_Compiler_LCNF_checkDeadLocalDecls___spec__2___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Compiler/LCNF/CompilerM.c b/stage0/stdlib/Lean/Compiler/LCNF/CompilerM.c index e47b8226ac..16727cf485 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/CompilerM.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/CompilerM.c @@ -67,12 +67,13 @@ static lean_object* l_Lean_Compiler_LCNF_getLocalDecl___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instAddMessageContextCompilerM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Internalize_internalizeFunDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltCodeImp(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_getLocalDecl___spec__2(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normExprs(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_replaceFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_normParams___spec__1(lean_object*); static lean_object* l_Lean_Compiler_LCNF_instAddMessageContextCompilerM___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_Internalize_internalizeCode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,7 +89,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CompilerM_run(lean_object*); static lean_object* l_Lean_Compiler_LCNF_cleanup___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_getFunDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Compiler_LCNF_mkParam___spec__2___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instAddMessageContextCompilerM___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normLetDecl(lean_object*); @@ -157,7 +158,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normFunDeclImp(lean_object*, lean_ lean_object* l_Lean_Expr_fvar___override(lean_object*); size_t lean_ptr_addr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam___at_Lean_Compiler_LCNF_normFunDeclImp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_LCNF_getLocalDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp___closed__1; @@ -165,6 +166,7 @@ LEAN_EXPORT lean_object* l_ReaderT_read___at_Lean_Compiler_LCNF_instMonadFVarSub static lean_object* l_Lean_Compiler_LCNF_normExprs___at_Lean_Compiler_LCNF_normCodeImp___spec__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_refreshBinderName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LetDecl_updateValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_addLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CompilerM_State_nextIdx___default; LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__7(lean_object*, lean_object*); @@ -173,6 +175,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normFVar___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkFreshBinderName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normFVar(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_replace___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__8(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp___closed__2; LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_normExprs___spec__1___rarg(lean_object*, lean_object*, lean_object*); @@ -180,6 +183,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkFreshBinderName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_CompilerM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParams(lean_object*); @@ -191,9 +195,11 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compil lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Compiler_LCNF_mkParam___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LetDecl_updateValue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_getLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateParamImp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_LCtx_erase_go(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_normCodeImp___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_cleanup___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,6 +216,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normExpr___at_Lean_Compiler_LCNF_n LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkFreshJpName(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkAuxParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_mkAuxParam___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Code_internalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); @@ -220,6 +227,7 @@ static lean_object* l_Lean_Compiler_LCNF_mkAuxParam___closed__2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_mkLetDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_refreshBinderName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Internalize_instMonadFVarSubstM; @@ -241,6 +249,7 @@ LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Compiler_LCNF_ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normLetDecl___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_getFunDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_getLocalDecl___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_getFunDecl___closed__2; @@ -1059,7 +1068,96 @@ lean_dec(x_2); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_st_ref_take(x_3, x_6); +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 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_8, 0); +x_12 = l_Lean_Compiler_LCNF_LCtx_erase(x_1, x_11, x_2); +lean_ctor_set(x_8, 0, x_12); +x_13 = lean_st_ref_set(x_3, x_8, x_9); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +x_16 = lean_box(0); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +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_8, 0); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_8); +x_22 = l_Lean_Compiler_LCNF_LCtx_erase(x_1, x_20, x_2); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_st_ref_set(x_3, x_23, x_9); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_26 = x_24; +} else { + lean_dec_ref(x_24); + x_26 = lean_box(0); +} +x_27 = lean_box(0); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar___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_2); +lean_dec(x_2); +x_8 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_7, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt(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; uint8_t x_9; @@ -1074,7 +1172,7 @@ 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_7, 0); -x_11 = l_Lean_Compiler_LCNF_LCtx_erase(x_1, x_10); +x_11 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_1, x_10); lean_ctor_set(x_7, 0, x_11); x_12 = lean_st_ref_set(x_2, x_7, x_8); x_13 = !lean_is_exclusive(x_12); @@ -1108,7 +1206,7 @@ x_20 = lean_ctor_get(x_7, 1); lean_inc(x_20); lean_inc(x_19); lean_dec(x_7); -x_21 = l_Lean_Compiler_LCNF_LCtx_erase(x_1, x_19); +x_21 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_1, x_19); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); @@ -1135,17 +1233,132 @@ return x_27; } } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Compiler_LCNF_eraseFVarsAt(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___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) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_eq(x_2, x_3); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; +lean_dec(x_4); +x_10 = lean_array_uget(x_1, x_2); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = 1; +x_13 = l_Lean_Compiler_LCNF_eraseFVar(x_11, x_12, x_5, x_6, x_7, x_8); +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 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_2 = x_17; +x_4 = x_14; +x_8 = x_15; +goto _start; +} +else +{ +lean_object* x_19; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_8); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseParams(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; uint8_t x_8; +x_6 = lean_array_get_size(x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_lt(x_7, x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_6, x_6); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_5); +return x_13; +} +else +{ +size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_14 = 0; +x_15 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_16 = lean_box(0); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___spec__1(x_1, x_14, x_15, x_16, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___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: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_eraseParams___spec__1(x_1, x_9, x_10, 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_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_eraseParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Compiler_LCNF_eraseParams(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___spec__2(lean_object* x_1, lean_object* x_2) { _start: { @@ -1228,7 +1441,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___closed__1; x_2 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___closed__2; -x_3 = lean_unsigned_to_nat(74u); +x_3 = lean_unsigned_to_nat(80u); x_4 = lean_unsigned_to_nat(20u); x_5 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1563,7 +1776,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go___closed__1; x_2 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp___closed__1; -x_3 = lean_unsigned_to_nat(81u); +x_3 = lean_unsigned_to_nat(87u); x_4 = lean_unsigned_to_nat(14u); x_5 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5538,6 +5751,27 @@ lean_dec(x_4); return x_8; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LetDecl_updateValue(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 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateLetDeclImp(x_1, x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LetDecl_updateValue___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_Compiler_LCNF_LetDecl_updateValue(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateFunDeclImp(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: { diff --git a/stage0/stdlib/Lean/Compiler/LCNF/ElimDead.c b/stage0/stdlib/Lean/Compiler/LCNF/ElimDead.c index b5f1668e71..f970c6792d 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/ElimDead.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/ElimDead.c @@ -52,7 +52,7 @@ LEAN_EXPORT lean_object* l_List_replace___at_Lean_Compiler_LCNF_collectLocalDecl LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ElimDead_0__Lean_Compiler_LCNF_ElimDead_collectExprM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ElimDead_elimDead___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); -lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -982,59 +982,60 @@ x_38 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_ElimDead_elimDead___spe lean_dec(x_35); if (x_38 == 0) { -lean_object* x_39; uint8_t x_40; +uint8_t x_39; lean_object* x_40; uint8_t x_41; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_39 = l_Lean_Compiler_LCNF_eraseFVar(x_37, x_3, x_4, x_5, x_36); +x_39 = 1; +x_40 = l_Lean_Compiler_LCNF_eraseFVar(x_37, x_39, x_3, x_4, x_5, x_36); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_41; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -lean_ctor_set(x_39, 0, x_10); -return x_39; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_10); +return x_40; } else { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_10); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_10); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } else { -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_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_37); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_44 = lean_ctor_get(x_7, 3); -lean_inc(x_44); -x_45 = lean_st_ref_take(x_2, x_36); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); +x_45 = lean_ctor_get(x_7, 3); +lean_inc(x_45); +x_46 = lean_st_ref_take(x_2, x_36); +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_46, x_44); -x_49 = lean_st_ref_set(x_2, x_48, x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_47, x_45); +x_50 = lean_st_ref_set(x_2, x_49, x_48); lean_dec(x_2); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_13 = x_50; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_13 = x_51; goto block_24; } } @@ -1101,7 +1102,7 @@ return x_23; } else { -uint8_t x_51; +uint8_t x_52; lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -1109,1101 +1110,1103 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_9); -if (x_51 == 0) +x_52 = !lean_is_exclusive(x_9); +if (x_52 == 0) { return x_9; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_9, 0); -x_53 = lean_ctor_get(x_9, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_9, 0); +x_54 = lean_ctor_get(x_9, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); lean_dec(x_9); -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; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } case 1: { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_1, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_1, 1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_1, 0); lean_inc(x_56); +x_57 = lean_ctor_get(x_1, 1); +lean_inc(x_57); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_56); -x_57 = l_Lean_Compiler_LCNF_ElimDead_elimDead(x_56, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_57) == 0) +lean_inc(x_57); +x_58 = l_Lean_Compiler_LCNF_ElimDead_elimDead(x_57, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_st_ref_get(x_2, x_59); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = lean_st_ref_get(x_2, x_60); +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_ctor_get(x_55, 0); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__1(x_61, x_63); lean_dec(x_61); -if (x_64 == 0) +x_64 = lean_ctor_get(x_56, 0); +lean_inc(x_64); +x_65 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__1(x_62, x_64); +lean_dec(x_62); +if (x_65 == 0) { -lean_object* x_65; uint8_t x_66; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -lean_dec(x_1); -x_65 = l_Lean_Compiler_LCNF_eraseFVar(x_63, x_3, x_4, x_5, x_62); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_65, 0); -lean_dec(x_67); -lean_ctor_set(x_65, 0, x_58); -return x_65; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_58); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -else -{ -lean_object* x_70; -lean_dec(x_63); -lean_inc(x_55); -x_70 = l_Lean_Compiler_LCNF_ElimDead_visitFunDecl(x_55, x_2, x_3, x_4, x_5, x_62); -if (lean_obj_tag(x_70) == 0) -{ -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) -{ -lean_object* x_72; size_t x_73; size_t x_74; uint8_t x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ptr_addr(x_56); -lean_dec(x_56); -x_74 = lean_ptr_addr(x_58); -x_75 = lean_usize_dec_eq(x_73, x_74); -if (x_75 == 0) -{ -uint8_t x_76; -lean_dec(x_55); -x_76 = !lean_is_exclusive(x_1); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_1, 1); -lean_dec(x_77); -x_78 = lean_ctor_get(x_1, 0); -lean_dec(x_78); -lean_ctor_set(x_1, 1, x_58); -lean_ctor_set(x_1, 0, x_72); -lean_ctor_set(x_70, 0, x_1); -return x_70; -} -else -{ -lean_object* x_79; -lean_dec(x_1); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_72); -lean_ctor_set(x_79, 1, x_58); -lean_ctor_set(x_70, 0, x_79); -return x_70; -} -} -else -{ -size_t x_80; size_t x_81; uint8_t x_82; -x_80 = lean_ptr_addr(x_55); -lean_dec(x_55); -x_81 = lean_ptr_addr(x_72); -x_82 = lean_usize_dec_eq(x_80, x_81); -if (x_82 == 0) -{ -uint8_t x_83; -x_83 = !lean_is_exclusive(x_1); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_1, 1); -lean_dec(x_84); -x_85 = lean_ctor_get(x_1, 0); -lean_dec(x_85); -lean_ctor_set(x_1, 1, x_58); -lean_ctor_set(x_1, 0, x_72); -lean_ctor_set(x_70, 0, x_1); -return x_70; -} -else -{ -lean_object* x_86; -lean_dec(x_1); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_72); -lean_ctor_set(x_86, 1, x_58); -lean_ctor_set(x_70, 0, x_86); -return x_70; -} -} -else -{ -lean_dec(x_72); -lean_dec(x_58); -lean_ctor_set(x_70, 0, x_1); -return x_70; -} -} -} -else -{ -lean_object* x_87; lean_object* x_88; size_t x_89; size_t x_90; uint8_t x_91; -x_87 = lean_ctor_get(x_70, 0); -x_88 = lean_ctor_get(x_70, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_70); -x_89 = lean_ptr_addr(x_56); -lean_dec(x_56); -x_90 = lean_ptr_addr(x_58); -x_91 = lean_usize_dec_eq(x_89, x_90); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_55); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_92 = x_1; -} else { - lean_dec_ref(x_1); - x_92 = lean_box(0); -} -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); -} else { - x_93 = x_92; -} -lean_ctor_set(x_93, 0, x_87); -lean_ctor_set(x_93, 1, x_58); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_88); -return x_94; -} -else -{ -size_t x_95; size_t x_96; uint8_t x_97; -x_95 = lean_ptr_addr(x_55); -lean_dec(x_55); -x_96 = lean_ptr_addr(x_87); -x_97 = lean_usize_dec_eq(x_95, x_96); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_98 = x_1; -} else { - lean_dec_ref(x_1); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(1, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_87); -lean_ctor_set(x_99, 1, x_58); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_88); -return x_100; -} -else -{ -lean_object* x_101; -lean_dec(x_87); -lean_dec(x_58); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_1); -lean_ctor_set(x_101, 1, x_88); -return x_101; -} -} -} -} -else -{ -uint8_t x_102; -lean_dec(x_58); -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_1); -x_102 = !lean_is_exclusive(x_70); -if (x_102 == 0) -{ -return x_70; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_70, 0); -x_104 = lean_ctor_get(x_70, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_70); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; -} -} -} -} -else -{ -uint8_t x_106; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_106 = !lean_is_exclusive(x_57); -if (x_106 == 0) -{ -return x_57; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_57, 0); -x_108 = lean_ctor_get(x_57, 1); -lean_inc(x_108); -lean_inc(x_107); +uint8_t x_66; lean_object* x_67; uint8_t x_68; lean_dec(x_57); -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; +lean_dec(x_56); +lean_dec(x_2); +lean_dec(x_1); +x_66 = 1; +x_67 = l_Lean_Compiler_LCNF_eraseFVar(x_64, x_66, x_3, x_4, x_5, x_63); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_67, 0); +lean_dec(x_69); +lean_ctor_set(x_67, 0, x_59); +return x_67; +} +else +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +lean_dec(x_67); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_59); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +else +{ +lean_object* x_72; +lean_dec(x_64); +lean_inc(x_56); +x_72 = l_Lean_Compiler_LCNF_ElimDead_visitFunDecl(x_56, x_2, x_3, x_4, x_5, x_63); +if (lean_obj_tag(x_72) == 0) +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) +{ +lean_object* x_74; size_t x_75; size_t x_76; uint8_t x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ptr_addr(x_57); +lean_dec(x_57); +x_76 = lean_ptr_addr(x_59); +x_77 = lean_usize_dec_eq(x_75, x_76); +if (x_77 == 0) +{ +uint8_t x_78; +lean_dec(x_56); +x_78 = !lean_is_exclusive(x_1); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_1, 1); +lean_dec(x_79); +x_80 = lean_ctor_get(x_1, 0); +lean_dec(x_80); +lean_ctor_set(x_1, 1, x_59); +lean_ctor_set(x_1, 0, x_74); +lean_ctor_set(x_72, 0, x_1); +return x_72; +} +else +{ +lean_object* x_81; +lean_dec(x_1); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_74); +lean_ctor_set(x_81, 1, x_59); +lean_ctor_set(x_72, 0, x_81); +return x_72; +} +} +else +{ +size_t x_82; size_t x_83; uint8_t x_84; +x_82 = lean_ptr_addr(x_56); +lean_dec(x_56); +x_83 = lean_ptr_addr(x_74); +x_84 = lean_usize_dec_eq(x_82, x_83); +if (x_84 == 0) +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_1); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_1, 1); +lean_dec(x_86); +x_87 = lean_ctor_get(x_1, 0); +lean_dec(x_87); +lean_ctor_set(x_1, 1, x_59); +lean_ctor_set(x_1, 0, x_74); +lean_ctor_set(x_72, 0, x_1); +return x_72; +} +else +{ +lean_object* x_88; +lean_dec(x_1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_74); +lean_ctor_set(x_88, 1, x_59); +lean_ctor_set(x_72, 0, x_88); +return x_72; +} +} +else +{ +lean_dec(x_74); +lean_dec(x_59); +lean_ctor_set(x_72, 0, x_1); +return x_72; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; size_t x_91; size_t x_92; uint8_t x_93; +x_89 = lean_ctor_get(x_72, 0); +x_90 = lean_ctor_get(x_72, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_72); +x_91 = lean_ptr_addr(x_57); +lean_dec(x_57); +x_92 = lean_ptr_addr(x_59); +x_93 = lean_usize_dec_eq(x_91, x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_56); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_94 = x_1; +} else { + lean_dec_ref(x_1); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_89); +lean_ctor_set(x_95, 1, x_59); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_90); +return x_96; +} +else +{ +size_t x_97; size_t x_98; uint8_t x_99; +x_97 = lean_ptr_addr(x_56); +lean_dec(x_56); +x_98 = lean_ptr_addr(x_89); +x_99 = lean_usize_dec_eq(x_97, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_100 = x_1; +} else { + lean_dec_ref(x_1); + x_100 = lean_box(0); +} +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_100; +} +lean_ctor_set(x_101, 0, x_89); +lean_ctor_set(x_101, 1, x_59); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_90); +return x_102; +} +else +{ +lean_object* x_103; +lean_dec(x_89); +lean_dec(x_59); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_1); +lean_ctor_set(x_103, 1, x_90); +return x_103; +} +} +} +} +else +{ +uint8_t x_104; +lean_dec(x_59); +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_1); +x_104 = !lean_is_exclusive(x_72); +if (x_104 == 0) +{ +return x_72; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_72, 0); +x_106 = lean_ctor_get(x_72, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_72); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} +} +} +} +else +{ +uint8_t x_108; +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_108 = !lean_is_exclusive(x_58); +if (x_108 == 0) +{ +return x_58; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_58, 0); +x_110 = lean_ctor_get(x_58, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_58); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } case 2: { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_1, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_1, 1); -lean_inc(x_111); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_1, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_1, 1); +lean_inc(x_113); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_111); -x_112 = l_Lean_Compiler_LCNF_ElimDead_elimDead(x_111, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = lean_st_ref_get(x_2, x_114); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_118 = lean_ctor_get(x_110, 0); -lean_inc(x_118); -x_119 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__1(x_116, x_118); -lean_dec(x_116); -if (x_119 == 0) +x_114 = l_Lean_Compiler_LCNF_ElimDead_elimDead(x_113, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_120; uint8_t x_121; -lean_dec(x_111); -lean_dec(x_110); -lean_dec(x_2); -lean_dec(x_1); -x_120 = l_Lean_Compiler_LCNF_eraseFVar(x_118, x_3, x_4, x_5, x_117); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_121 = !lean_is_exclusive(x_120); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = lean_st_ref_get(x_2, x_116); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = lean_ctor_get(x_112, 0); +lean_inc(x_120); +x_121 = l_Std_HashSetImp_contains___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__1(x_118, x_120); +lean_dec(x_118); if (x_121 == 0) { -lean_object* x_122; -x_122 = lean_ctor_get(x_120, 0); -lean_dec(x_122); -lean_ctor_set(x_120, 0, x_113); -return x_120; -} -else -{ -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -lean_dec(x_120); -x_124 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_124, 0, x_113); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -else +uint8_t x_122; lean_object* x_123; uint8_t x_124; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_2); +lean_dec(x_1); +x_122 = 1; +x_123 = l_Lean_Compiler_LCNF_eraseFVar(x_120, x_122, x_3, x_4, x_5, x_119); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) { lean_object* x_125; -lean_dec(x_118); -lean_inc(x_110); -x_125 = l_Lean_Compiler_LCNF_ElimDead_visitFunDecl(x_110, x_2, x_3, x_4, x_5, x_117); -if (lean_obj_tag(x_125) == 0) -{ -uint8_t x_126; -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -lean_object* x_127; size_t x_128; size_t x_129; uint8_t x_130; -x_127 = lean_ctor_get(x_125, 0); -x_128 = lean_ptr_addr(x_111); -lean_dec(x_111); -x_129 = lean_ptr_addr(x_113); -x_130 = lean_usize_dec_eq(x_128, x_129); -if (x_130 == 0) -{ -uint8_t x_131; -lean_dec(x_110); -x_131 = !lean_is_exclusive(x_1); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_1, 1); -lean_dec(x_132); -x_133 = lean_ctor_get(x_1, 0); -lean_dec(x_133); -lean_ctor_set(x_1, 1, x_113); -lean_ctor_set(x_1, 0, x_127); -lean_ctor_set(x_125, 0, x_1); -return x_125; -} -else -{ -lean_object* x_134; -lean_dec(x_1); -x_134 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_134, 0, x_127); -lean_ctor_set(x_134, 1, x_113); -lean_ctor_set(x_125, 0, x_134); -return x_125; -} -} -else -{ -size_t x_135; size_t x_136; uint8_t x_137; -x_135 = lean_ptr_addr(x_110); -lean_dec(x_110); -x_136 = lean_ptr_addr(x_127); -x_137 = lean_usize_dec_eq(x_135, x_136); -if (x_137 == 0) -{ -uint8_t x_138; -x_138 = !lean_is_exclusive(x_1); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; -x_139 = lean_ctor_get(x_1, 1); -lean_dec(x_139); -x_140 = lean_ctor_get(x_1, 0); -lean_dec(x_140); -lean_ctor_set(x_1, 1, x_113); -lean_ctor_set(x_1, 0, x_127); -lean_ctor_set(x_125, 0, x_1); -return x_125; -} -else -{ -lean_object* x_141; -lean_dec(x_1); -x_141 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_141, 0, x_127); -lean_ctor_set(x_141, 1, x_113); -lean_ctor_set(x_125, 0, x_141); -return x_125; -} -} -else -{ -lean_dec(x_127); -lean_dec(x_113); -lean_ctor_set(x_125, 0, x_1); -return x_125; -} -} -} -else -{ -lean_object* x_142; lean_object* x_143; size_t x_144; size_t x_145; uint8_t x_146; -x_142 = lean_ctor_get(x_125, 0); -x_143 = lean_ctor_get(x_125, 1); -lean_inc(x_143); -lean_inc(x_142); +x_125 = lean_ctor_get(x_123, 0); lean_dec(x_125); -x_144 = lean_ptr_addr(x_111); -lean_dec(x_111); -x_145 = lean_ptr_addr(x_113); -x_146 = lean_usize_dec_eq(x_144, x_145); -if (x_146 == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_110); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_147 = x_1; -} else { - lean_dec_ref(x_1); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(2, 2, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_142); -lean_ctor_set(x_148, 1, x_113); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_143); -return x_149; +lean_ctor_set(x_123, 0, x_115); +return x_123; } else { -size_t x_150; size_t x_151; uint8_t x_152; -x_150 = lean_ptr_addr(x_110); -lean_dec(x_110); -x_151 = lean_ptr_addr(x_142); -x_152 = lean_usize_dec_eq(x_150, x_151); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_153 = x_1; -} else { - lean_dec_ref(x_1); - x_153 = lean_box(0); +lean_object* x_126; lean_object* x_127; +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +lean_dec(x_123); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_115); +lean_ctor_set(x_127, 1, x_126); +return x_127; } -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(2, 2, 0); -} else { - x_154 = x_153; -} -lean_ctor_set(x_154, 0, x_142); -lean_ctor_set(x_154, 1, x_113); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_143); -return x_155; } else { -lean_object* x_156; +lean_object* x_128; +lean_dec(x_120); +lean_inc(x_112); +x_128 = l_Lean_Compiler_LCNF_ElimDead_visitFunDecl(x_112, x_2, x_3, x_4, x_5, x_119); +if (lean_obj_tag(x_128) == 0) +{ +uint8_t x_129; +x_129 = !lean_is_exclusive(x_128); +if (x_129 == 0) +{ +lean_object* x_130; size_t x_131; size_t x_132; uint8_t x_133; +x_130 = lean_ctor_get(x_128, 0); +x_131 = lean_ptr_addr(x_113); +lean_dec(x_113); +x_132 = lean_ptr_addr(x_115); +x_133 = lean_usize_dec_eq(x_131, x_132); +if (x_133 == 0) +{ +uint8_t x_134; +lean_dec(x_112); +x_134 = !lean_is_exclusive(x_1); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_1, 1); +lean_dec(x_135); +x_136 = lean_ctor_get(x_1, 0); +lean_dec(x_136); +lean_ctor_set(x_1, 1, x_115); +lean_ctor_set(x_1, 0, x_130); +lean_ctor_set(x_128, 0, x_1); +return x_128; +} +else +{ +lean_object* x_137; +lean_dec(x_1); +x_137 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_137, 0, x_130); +lean_ctor_set(x_137, 1, x_115); +lean_ctor_set(x_128, 0, x_137); +return x_128; +} +} +else +{ +size_t x_138; size_t x_139; uint8_t x_140; +x_138 = lean_ptr_addr(x_112); +lean_dec(x_112); +x_139 = lean_ptr_addr(x_130); +x_140 = lean_usize_dec_eq(x_138, x_139); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = !lean_is_exclusive(x_1); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_1, 1); lean_dec(x_142); -lean_dec(x_113); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_1); -lean_ctor_set(x_156, 1, x_143); -return x_156; -} -} -} +x_143 = lean_ctor_get(x_1, 0); +lean_dec(x_143); +lean_ctor_set(x_1, 1, x_115); +lean_ctor_set(x_1, 0, x_130); +lean_ctor_set(x_128, 0, x_1); +return x_128; } else { -uint8_t x_157; -lean_dec(x_113); -lean_dec(x_111); -lean_dec(x_110); +lean_object* x_144; lean_dec(x_1); -x_157 = !lean_is_exclusive(x_125); -if (x_157 == 0) -{ -return x_125; +x_144 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_144, 0, x_130); +lean_ctor_set(x_144, 1, x_115); +lean_ctor_set(x_128, 0, x_144); +return x_128; +} } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_125, 0); -x_159 = lean_ctor_get(x_125, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_125); -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; +lean_dec(x_130); +lean_dec(x_115); +lean_ctor_set(x_128, 0, x_1); +return x_128; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; size_t x_147; size_t x_148; uint8_t x_149; +x_145 = lean_ctor_get(x_128, 0); +x_146 = lean_ctor_get(x_128, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_128); +x_147 = lean_ptr_addr(x_113); +lean_dec(x_113); +x_148 = lean_ptr_addr(x_115); +x_149 = lean_usize_dec_eq(x_147, x_148); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_112); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_150 = x_1; +} else { + lean_dec_ref(x_1); + x_150 = lean_box(0); +} +if (lean_is_scalar(x_150)) { + x_151 = lean_alloc_ctor(2, 2, 0); +} else { + x_151 = x_150; +} +lean_ctor_set(x_151, 0, x_145); +lean_ctor_set(x_151, 1, x_115); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_146); +return x_152; +} +else +{ +size_t x_153; size_t x_154; uint8_t x_155; +x_153 = lean_ptr_addr(x_112); +lean_dec(x_112); +x_154 = lean_ptr_addr(x_145); +x_155 = lean_usize_dec_eq(x_153, x_154); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_156 = x_1; +} else { + lean_dec_ref(x_1); + x_156 = lean_box(0); +} +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(2, 2, 0); +} else { + x_157 = x_156; +} +lean_ctor_set(x_157, 0, x_145); +lean_ctor_set(x_157, 1, x_115); +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_146); +return x_158; +} +else +{ +lean_object* x_159; +lean_dec(x_145); +lean_dec(x_115); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_1); +lean_ctor_set(x_159, 1, x_146); +return x_159; } } } } else { -uint8_t x_161; -lean_dec(x_111); -lean_dec(x_110); +uint8_t x_160; +lean_dec(x_115); +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_1); +x_160 = !lean_is_exclusive(x_128); +if (x_160 == 0) +{ +return x_128; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_128, 0); +x_162 = lean_ctor_get(x_128, 1); +lean_inc(x_162); +lean_inc(x_161); +lean_dec(x_128); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +return x_163; +} +} +} +} +else +{ +uint8_t x_164; +lean_dec(x_113); +lean_dec(x_112); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_161 = !lean_is_exclusive(x_112); -if (x_161 == 0) +x_164 = !lean_is_exclusive(x_114); +if (x_164 == 0) { -return x_112; +return x_114; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_112, 0); -x_163 = lean_ctor_get(x_112, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_112); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_163); -return x_164; +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_114, 0); +x_166 = lean_ctor_get(x_114, 1); +lean_inc(x_166); +lean_inc(x_165); +lean_dec(x_114); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +return x_167; } } } case 3: { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_165 = lean_ctor_get(x_1, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_1, 1); -lean_inc(x_166); -x_167 = lean_st_ref_take(x_2, x_6); -x_168 = lean_ctor_get(x_167, 0); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_168 = lean_ctor_get(x_1, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); +x_169 = lean_ctor_get(x_1, 1); lean_inc(x_169); -lean_dec(x_167); -x_170 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_168, x_165); -x_171 = lean_st_ref_set(x_2, x_170, x_169); -x_172 = !lean_is_exclusive(x_171); -if (x_172 == 0) +x_170 = lean_st_ref_take(x_2, x_6); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_171, x_168); +x_174 = lean_st_ref_set(x_2, x_173, x_172); +x_175 = !lean_is_exclusive(x_174); +if (x_175 == 0) { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_173 = lean_ctor_get(x_171, 1); -x_174 = lean_ctor_get(x_171, 0); +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; +x_176 = lean_ctor_get(x_174, 1); +x_177 = lean_ctor_get(x_174, 0); +lean_dec(x_177); +x_178 = lean_array_get_size(x_169); +x_179 = lean_unsigned_to_nat(0u); +x_180 = lean_nat_dec_lt(x_179, x_178); +if (x_180 == 0) +{ +lean_dec(x_178); +lean_dec(x_169); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_174, 0, x_1); +return x_174; +} +else +{ +uint8_t x_181; +x_181 = lean_nat_dec_le(x_178, x_178); +if (x_181 == 0) +{ +lean_dec(x_178); +lean_dec(x_169); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_174, 0, x_1); +return x_174; +} +else +{ +size_t x_182; size_t x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +lean_free_object(x_174); +x_182 = 0; +x_183 = lean_usize_of_nat(x_178); +lean_dec(x_178); +x_184 = lean_box(0); +x_185 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__2(x_169, x_182, x_183, x_184, x_2, x_3, x_4, x_5, x_176); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_169); +x_186 = !lean_is_exclusive(x_185); +if (x_186 == 0) +{ +lean_object* x_187; +x_187 = lean_ctor_get(x_185, 0); +lean_dec(x_187); +lean_ctor_set(x_185, 0, x_1); +return x_185; +} +else +{ +lean_object* x_188; lean_object* x_189; +x_188 = lean_ctor_get(x_185, 1); +lean_inc(x_188); +lean_dec(x_185); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_1); +lean_ctor_set(x_189, 1, x_188); +return x_189; +} +} +} +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; +x_190 = lean_ctor_get(x_174, 1); +lean_inc(x_190); lean_dec(x_174); -x_175 = lean_array_get_size(x_166); -x_176 = lean_unsigned_to_nat(0u); -x_177 = lean_nat_dec_lt(x_176, x_175); -if (x_177 == 0) +x_191 = lean_array_get_size(x_169); +x_192 = lean_unsigned_to_nat(0u); +x_193 = lean_nat_dec_lt(x_192, x_191); +if (x_193 == 0) { -lean_dec(x_175); -lean_dec(x_166); +lean_object* x_194; +lean_dec(x_191); +lean_dec(x_169); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_ctor_set(x_171, 0, x_1); -return x_171; +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_1); +lean_ctor_set(x_194, 1, x_190); +return x_194; } else { -uint8_t x_178; -x_178 = lean_nat_dec_le(x_175, x_175); -if (x_178 == 0) +uint8_t x_195; +x_195 = lean_nat_dec_le(x_191, x_191); +if (x_195 == 0) { -lean_dec(x_175); -lean_dec(x_166); +lean_object* x_196; +lean_dec(x_191); +lean_dec(x_169); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_ctor_set(x_171, 0, x_1); -return x_171; +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_1); +lean_ctor_set(x_196, 1, x_190); +return x_196; } else { -size_t x_179; size_t x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; -lean_free_object(x_171); -x_179 = 0; -x_180 = lean_usize_of_nat(x_175); -lean_dec(x_175); -x_181 = lean_box(0); -x_182 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__2(x_166, x_179, x_180, x_181, x_2, x_3, x_4, x_5, x_173); +size_t x_197; size_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_197 = 0; +x_198 = lean_usize_of_nat(x_191); +lean_dec(x_191); +x_199 = lean_box(0); +x_200 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__2(x_169, x_197, x_198, x_199, x_2, x_3, x_4, x_5, x_190); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_166); -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) -{ -lean_object* x_184; -x_184 = lean_ctor_get(x_182, 0); -lean_dec(x_184); -lean_ctor_set(x_182, 0, x_1); -return x_182; -} -else -{ -lean_object* x_185; lean_object* x_186; -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_dec(x_182); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_1); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -} -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_187 = lean_ctor_get(x_171, 1); -lean_inc(x_187); -lean_dec(x_171); -x_188 = lean_array_get_size(x_166); -x_189 = lean_unsigned_to_nat(0u); -x_190 = lean_nat_dec_lt(x_189, x_188); -if (x_190 == 0) -{ -lean_object* x_191; -lean_dec(x_188); -lean_dec(x_166); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_1); -lean_ctor_set(x_191, 1, x_187); -return x_191; -} -else -{ -uint8_t x_192; -x_192 = lean_nat_dec_le(x_188, x_188); -if (x_192 == 0) -{ -lean_object* x_193; -lean_dec(x_188); -lean_dec(x_166); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_1); -lean_ctor_set(x_193, 1, x_187); -return x_193; -} -else -{ -size_t x_194; size_t x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_194 = 0; -x_195 = lean_usize_of_nat(x_188); -lean_dec(x_188); -x_196 = lean_box(0); -x_197 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__2(x_166, x_194, x_195, x_196, x_2, x_3, x_4, x_5, x_187); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_166); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; +lean_dec(x_169); +x_201 = lean_ctor_get(x_200, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_202 = x_200; } else { - lean_dec_ref(x_197); - x_199 = lean_box(0); + lean_dec_ref(x_200); + x_202 = lean_box(0); } -if (lean_is_scalar(x_199)) { - x_200 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 2, 0); } else { - x_200 = x_199; + x_203 = x_202; } -lean_ctor_set(x_200, 0, x_1); -lean_ctor_set(x_200, 1, x_198); -return x_200; +lean_ctor_set(x_203, 0, x_1); +lean_ctor_set(x_203, 1, x_201); +return x_203; } } } } case 4: { -lean_object* x_201; uint8_t x_202; -x_201 = lean_ctor_get(x_1, 0); -lean_inc(x_201); -x_202 = !lean_is_exclusive(x_201); -if (x_202 == 0) +lean_object* x_204; uint8_t x_205; +x_204 = lean_ctor_get(x_1, 0); +lean_inc(x_204); +x_205 = !lean_is_exclusive(x_204); +if (x_205 == 0) { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_203 = lean_ctor_get(x_201, 0); -x_204 = lean_ctor_get(x_201, 1); -x_205 = lean_ctor_get(x_201, 2); -x_206 = lean_ctor_get(x_201, 3); -x_207 = l_Lean_Compiler_LCNF_ElimDead_elimDead___closed__1; +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_206 = lean_ctor_get(x_204, 0); +x_207 = lean_ctor_get(x_204, 1); +x_208 = lean_ctor_get(x_204, 2); +x_209 = lean_ctor_get(x_204, 3); +x_210 = l_Lean_Compiler_LCNF_ElimDead_elimDead___closed__1; lean_inc(x_2); -lean_inc(x_206); -x_208 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__3(x_206, x_207, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_208) == 0) -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; -x_209 = lean_ctor_get(x_208, 0); lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = lean_st_ref_take(x_2, x_210); +x_211 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__3(x_209, x_210, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_211) == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; x_212 = lean_ctor_get(x_211, 0); lean_inc(x_212); x_213 = lean_ctor_get(x_211, 1); lean_inc(x_213); lean_dec(x_211); -lean_inc(x_205); -x_214 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_212, x_205); -x_215 = lean_st_ref_set(x_2, x_214, x_213); +x_214 = lean_st_ref_take(x_2, x_213); +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +lean_inc(x_208); +x_217 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_215, x_208); +x_218 = lean_st_ref_set(x_2, x_217, x_216); lean_dec(x_2); -x_216 = !lean_is_exclusive(x_215); -if (x_216 == 0) -{ -lean_object* x_217; size_t x_218; size_t x_219; uint8_t x_220; -x_217 = lean_ctor_get(x_215, 0); -lean_dec(x_217); -x_218 = lean_ptr_addr(x_206); -lean_dec(x_206); -x_219 = lean_ptr_addr(x_209); -x_220 = lean_usize_dec_eq(x_218, x_219); -if (x_220 == 0) -{ -uint8_t x_221; -x_221 = !lean_is_exclusive(x_1); -if (x_221 == 0) -{ -lean_object* x_222; -x_222 = lean_ctor_get(x_1, 0); -lean_dec(x_222); -lean_ctor_set(x_201, 3, x_209); -lean_ctor_set(x_215, 0, x_1); -return x_215; -} -else -{ -lean_object* x_223; -lean_dec(x_1); -lean_ctor_set(x_201, 3, x_209); -x_223 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_223, 0, x_201); -lean_ctor_set(x_215, 0, x_223); -return x_215; -} -} -else +x_219 = !lean_is_exclusive(x_218); +if (x_219 == 0) { +lean_object* x_220; size_t x_221; size_t x_222; uint8_t x_223; +x_220 = lean_ctor_get(x_218, 0); +lean_dec(x_220); +x_221 = lean_ptr_addr(x_209); lean_dec(x_209); -lean_free_object(x_201); -lean_dec(x_205); -lean_dec(x_204); -lean_dec(x_203); -lean_ctor_set(x_215, 0, x_1); -return x_215; +x_222 = lean_ptr_addr(x_212); +x_223 = lean_usize_dec_eq(x_221, x_222); +if (x_223 == 0) +{ +uint8_t x_224; +x_224 = !lean_is_exclusive(x_1); +if (x_224 == 0) +{ +lean_object* x_225; +x_225 = lean_ctor_get(x_1, 0); +lean_dec(x_225); +lean_ctor_set(x_204, 3, x_212); +lean_ctor_set(x_218, 0, x_1); +return x_218; +} +else +{ +lean_object* x_226; +lean_dec(x_1); +lean_ctor_set(x_204, 3, x_212); +x_226 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_226, 0, x_204); +lean_ctor_set(x_218, 0, x_226); +return x_218; } } else { -lean_object* x_224; size_t x_225; size_t x_226; uint8_t x_227; -x_224 = lean_ctor_get(x_215, 1); -lean_inc(x_224); -lean_dec(x_215); -x_225 = lean_ptr_addr(x_206); +lean_dec(x_212); +lean_free_object(x_204); +lean_dec(x_208); +lean_dec(x_207); lean_dec(x_206); -x_226 = lean_ptr_addr(x_209); -x_227 = lean_usize_dec_eq(x_225, x_226); -if (x_227 == 0) +lean_ctor_set(x_218, 0, x_1); +return x_218; +} +} +else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_object* x_227; size_t x_228; size_t x_229; uint8_t x_230; +x_227 = lean_ctor_get(x_218, 1); +lean_inc(x_227); +lean_dec(x_218); +x_228 = lean_ptr_addr(x_209); +lean_dec(x_209); +x_229 = lean_ptr_addr(x_212); +x_230 = lean_usize_dec_eq(x_228, x_229); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_228 = x_1; + x_231 = x_1; } else { lean_dec_ref(x_1); - x_228 = lean_box(0); + x_231 = lean_box(0); } -lean_ctor_set(x_201, 3, x_209); -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_204, 3, x_212); +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(4, 1, 0); } else { - x_229 = x_228; + x_232 = x_231; } -lean_ctor_set(x_229, 0, x_201); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_224); -return x_230; +lean_ctor_set(x_232, 0, x_204); +x_233 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_227); +return x_233; } else { -lean_object* x_231; -lean_dec(x_209); -lean_free_object(x_201); -lean_dec(x_205); -lean_dec(x_204); -lean_dec(x_203); -x_231 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_231, 0, x_1); -lean_ctor_set(x_231, 1, x_224); -return x_231; -} -} -} -else -{ -uint8_t x_232; -lean_free_object(x_201); +lean_object* x_234; +lean_dec(x_212); +lean_free_object(x_204); +lean_dec(x_208); +lean_dec(x_207); +lean_dec(x_206); +x_234 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_234, 0, x_1); +lean_ctor_set(x_234, 1, x_227); +return x_234; +} +} +} +else +{ +uint8_t x_235; +lean_free_object(x_204); +lean_dec(x_209); +lean_dec(x_208); +lean_dec(x_207); lean_dec(x_206); -lean_dec(x_205); -lean_dec(x_204); -lean_dec(x_203); lean_dec(x_2); lean_dec(x_1); -x_232 = !lean_is_exclusive(x_208); -if (x_232 == 0) +x_235 = !lean_is_exclusive(x_211); +if (x_235 == 0) { -return x_208; +return x_211; } else { -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_208, 0); -x_234 = lean_ctor_get(x_208, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_208); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -return x_235; -} -} -} -else -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_236 = lean_ctor_get(x_201, 0); -x_237 = lean_ctor_get(x_201, 1); -x_238 = lean_ctor_get(x_201, 2); -x_239 = lean_ctor_get(x_201, 3); -lean_inc(x_239); -lean_inc(x_238); +lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_236 = lean_ctor_get(x_211, 0); +x_237 = lean_ctor_get(x_211, 1); lean_inc(x_237); lean_inc(x_236); -lean_dec(x_201); -x_240 = l_Lean_Compiler_LCNF_ElimDead_elimDead___closed__1; -lean_inc(x_2); -lean_inc(x_239); -x_241 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__3(x_239, x_240, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_241) == 0) +lean_dec(x_211); +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_236); +lean_ctor_set(x_238, 1, x_237); +return x_238; +} +} +} +else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; size_t x_251; size_t x_252; uint8_t x_253; -x_242 = lean_ctor_get(x_241, 0); +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_239 = lean_ctor_get(x_204, 0); +x_240 = lean_ctor_get(x_204, 1); +x_241 = lean_ctor_get(x_204, 2); +x_242 = lean_ctor_get(x_204, 3); lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -x_244 = lean_st_ref_take(x_2, x_243); +lean_inc(x_241); +lean_inc(x_240); +lean_inc(x_239); +lean_dec(x_204); +x_243 = l_Lean_Compiler_LCNF_ElimDead_elimDead___closed__1; +lean_inc(x_2); +lean_inc(x_242); +x_244 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_ElimDead_elimDead___spec__3(x_242, x_243, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; size_t x_254; size_t x_255; uint8_t x_256; x_245 = lean_ctor_get(x_244, 0); lean_inc(x_245); x_246 = lean_ctor_get(x_244, 1); lean_inc(x_246); lean_dec(x_244); -lean_inc(x_238); -x_247 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_245, x_238); -x_248 = lean_st_ref_set(x_2, x_247, x_246); -lean_dec(x_2); -x_249 = lean_ctor_get(x_248, 1); +x_247 = lean_st_ref_take(x_2, x_246); +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); lean_inc(x_249); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_250 = x_248; +lean_dec(x_247); +lean_inc(x_241); +x_250 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_248, x_241); +x_251 = lean_st_ref_set(x_2, x_250, x_249); +lean_dec(x_2); +x_252 = lean_ctor_get(x_251, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_253 = x_251; } else { - lean_dec_ref(x_248); - x_250 = lean_box(0); + lean_dec_ref(x_251); + x_253 = lean_box(0); } -x_251 = lean_ptr_addr(x_239); -lean_dec(x_239); -x_252 = lean_ptr_addr(x_242); -x_253 = lean_usize_dec_eq(x_251, x_252); -if (x_253 == 0) +x_254 = lean_ptr_addr(x_242); +lean_dec(x_242); +x_255 = lean_ptr_addr(x_245); +x_256 = lean_usize_dec_eq(x_254, x_255); +if (x_256 == 0) { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_254 = x_1; + x_257 = x_1; } else { lean_dec_ref(x_1); - x_254 = lean_box(0); + x_257 = lean_box(0); } -x_255 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_255, 0, x_236); -lean_ctor_set(x_255, 1, x_237); -lean_ctor_set(x_255, 2, x_238); -lean_ctor_set(x_255, 3, x_242); -if (lean_is_scalar(x_254)) { - x_256 = lean_alloc_ctor(4, 1, 0); +x_258 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_258, 0, x_239); +lean_ctor_set(x_258, 1, x_240); +lean_ctor_set(x_258, 2, x_241); +lean_ctor_set(x_258, 3, x_245); +if (lean_is_scalar(x_257)) { + x_259 = lean_alloc_ctor(4, 1, 0); } else { - x_256 = x_254; + x_259 = x_257; } -lean_ctor_set(x_256, 0, x_255); -if (lean_is_scalar(x_250)) { - x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +if (lean_is_scalar(x_253)) { + x_260 = lean_alloc_ctor(0, 2, 0); } else { - x_257 = x_250; + x_260 = x_253; } -lean_ctor_set(x_257, 0, x_256); -lean_ctor_set(x_257, 1, x_249); -return x_257; +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_252); +return x_260; } else { -lean_object* x_258; -lean_dec(x_242); -lean_dec(x_238); -lean_dec(x_237); -lean_dec(x_236); -if (lean_is_scalar(x_250)) { - x_258 = lean_alloc_ctor(0, 2, 0); -} else { - x_258 = x_250; -} -lean_ctor_set(x_258, 0, x_1); -lean_ctor_set(x_258, 1, x_249); -return x_258; -} -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_object* x_261; +lean_dec(x_245); +lean_dec(x_241); +lean_dec(x_240); +lean_dec(x_239); +if (lean_is_scalar(x_253)) { + x_261 = lean_alloc_ctor(0, 2, 0); +} else { + x_261 = x_253; +} +lean_ctor_set(x_261, 0, x_1); +lean_ctor_set(x_261, 1, x_252); +return x_261; +} +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_242); +lean_dec(x_241); +lean_dec(x_240); lean_dec(x_239); -lean_dec(x_238); -lean_dec(x_237); -lean_dec(x_236); lean_dec(x_2); lean_dec(x_1); -x_259 = lean_ctor_get(x_241, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_241, 1); -lean_inc(x_260); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_261 = x_241; +x_262 = lean_ctor_get(x_244, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_244, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_264 = x_244; } else { - lean_dec_ref(x_241); - x_261 = lean_box(0); + lean_dec_ref(x_244); + x_264 = lean_box(0); } -if (lean_is_scalar(x_261)) { - x_262 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_264)) { + x_265 = lean_alloc_ctor(1, 2, 0); } else { - x_262 = x_261; + x_265 = x_264; } -lean_ctor_set(x_262, 0, x_259); -lean_ctor_set(x_262, 1, x_260); -return x_262; +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +return x_265; } } } case 5: { -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_263 = lean_ctor_get(x_1, 0); -lean_inc(x_263); -x_264 = lean_st_ref_take(x_2, x_6); -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); +x_266 = lean_ctor_get(x_1, 0); lean_inc(x_266); -lean_dec(x_264); -x_267 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_265, x_263); -x_268 = lean_st_ref_set(x_2, x_267, x_266); +x_267 = lean_st_ref_take(x_2, x_6); +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); +x_270 = l_Std_HashSetImp_insert___at_Lean_Compiler_LCNF_collectLocalDecls_go___spec__1(x_268, x_266); +x_271 = lean_st_ref_set(x_2, x_270, x_269); lean_dec(x_2); -x_269 = !lean_is_exclusive(x_268); -if (x_269 == 0) +x_272 = !lean_is_exclusive(x_271); +if (x_272 == 0) { -lean_object* x_270; -x_270 = lean_ctor_get(x_268, 0); -lean_dec(x_270); -lean_ctor_set(x_268, 0, x_1); -return x_268; +lean_object* x_273; +x_273 = lean_ctor_get(x_271, 0); +lean_dec(x_273); +lean_ctor_set(x_271, 0, x_1); +return x_271; } else { -lean_object* x_271; lean_object* x_272; -x_271 = lean_ctor_get(x_268, 1); -lean_inc(x_271); -lean_dec(x_268); -x_272 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_272, 0, x_1); -lean_ctor_set(x_272, 1, x_271); -return x_272; +lean_object* x_274; lean_object* x_275; +x_274 = lean_ctor_get(x_271, 1); +lean_inc(x_274); +lean_dec(x_271); +x_275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_275, 0, x_1); +lean_ctor_set(x_275, 1, x_274); +return x_275; } } default: { -lean_object* x_273; +lean_object* x_276; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_273 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_273, 0, x_1); -lean_ctor_set(x_273, 1, x_6); -return x_273; +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_1); +lean_ctor_set(x_276, 1, x_6); +return x_276; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/LCtx.c b/stage0/stdlib/Lean/Compiler/LCNF/LCtx.c index 4820ae95ce..6a602ba380 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/LCtx.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/LCtx.c @@ -18,6 +18,7 @@ LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Compiler_LCNF_LCtx_ad lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_LCtx_localDecls___default___spec__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1(lean_object*, size_t, size_t, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(lean_object*); @@ -42,9 +43,10 @@ static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__7; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__4(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object*, lean_object*, uint8_t); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Compiler_LCNF_LCtx_addLocalDecl___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_eraseFVarsAt(lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Std_AssocList_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__4___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Compiler_LCNF_LCtx_addFunDecl___spec__6(lean_object*, lean_object*, lean_object*); @@ -52,9 +54,11 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_ lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_localDecls___default; LEAN_EXPORT lean_object* l_Std_HashMap_toArray___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Compiler_LCNF_LCtx_addFunDecl___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_funDecls___default; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goParams(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Compiler_LCNF_LCtx_addLocalDecl___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Compiler_LCNF_LCtx_addLocalDecl___spec__1(lean_object*, lean_object*, lean_object*); @@ -63,6 +67,7 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Compiler_LCNF_LCtx_addLocalDecl___spec__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__5; LEAN_EXPORT lean_object* l_Std_AssocList_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__4(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); @@ -80,6 +85,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__2(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_LCtx_localDecls___default___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__2; @@ -89,12 +95,16 @@ static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__4; LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Compiler_LCNF_LCtx_addFunDecl___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Compiler_LCNF_LCtx_addFunDecl___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_HashMap_toArray___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_addFunDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goAlts(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext___closed__6; LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_LCtx_funDecls___default___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goAlts___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goParams___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_LCtx_localDecls___default___spec__1(lean_object* x_1) { _start: { @@ -1147,64 +1157,62 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_go(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { -switch (lean_obj_tag(x_1)) { -case 0: +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_2, x_3); +if (x_5 == 0) { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_Compiler_LCNF_LCtx_eraseLocal(x_5, x_2); -lean_dec(x_5); -x_1 = x_4; -x_2 = x_6; -goto _start; -} -case 1: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_dec(x_1); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Compiler_LCNF_LCtx_erase(x_10, x_2); -x_1 = x_9; +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; size_t x_10; size_t x_11; +x_6 = lean_array_uget(x_1, x_2); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec(x_6); +x_8 = 1; +x_9 = l_Lean_Compiler_LCNF_LCtx_erase(x_7, x_4, x_8); +x_10 = 1; +x_11 = lean_usize_add(x_2, x_10); x_2 = x_11; +x_4 = x_9; goto _start; } -case 2: +else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_1, 1); -lean_inc(x_14); -lean_dec(x_1); -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Compiler_LCNF_LCtx_erase(x_15, x_2); -x_1 = x_14; -x_2 = x_16; -goto _start; +return x_4; } -default: +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goParams(lean_object* x_1, lean_object* x_2) { +_start: { -lean_dec(x_1); +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +lean_dec(x_3); return x_2; } +else +{ +uint8_t x_6; +x_6 = lean_nat_dec_le(x_3, x_3); +if (x_6 == 0) +{ +lean_dec(x_3); +return x_2; +} +else +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_9 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1(x_1, x_7, x_8, x_2); +return x_9; +} } } } @@ -1385,84 +1393,291 @@ return x_22; } } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase(lean_object* x_1, lean_object* x_2, uint8_t x_3) { _start: { -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__1(x_4, x_1); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +x_7 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__1(x_5, x_1); lean_inc(x_1); -lean_inc(x_5); -x_7 = l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__1(x_5, x_1); -if (lean_obj_tag(x_7) == 0) +lean_inc(x_6); +x_8 = l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__1(x_6, x_1); +if (lean_obj_tag(x_8) == 0) { lean_dec(x_1); -lean_ctor_set(x_2, 0, x_6); +lean_ctor_set(x_2, 0, x_7); return x_2; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get(x_8, 4); +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__3(x_5, x_1); +x_10 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__3(x_6, x_1); lean_dec(x_1); +if (x_3 == 0) +{ +lean_dec(x_9); lean_ctor_set(x_2, 1, x_10); -lean_ctor_set(x_2, 0, x_6); -x_11 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_9, x_2); -return x_11; -} +lean_ctor_set(x_2, 0, x_7); +return x_2; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_ctor_get(x_2, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_9, 4); +lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 2); lean_inc(x_12); -lean_dec(x_2); -x_14 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__1(x_12, x_1); -lean_inc(x_1); -lean_inc(x_13); -x_15 = l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__1(x_13, x_1); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -lean_dec(x_1); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_13); -return x_16; +lean_dec(x_9); +lean_ctor_set(x_2, 1, x_10); +lean_ctor_set(x_2, 0, x_7); +x_13 = l_Lean_Compiler_LCNF_LCtx_erase_goParams(x_12, x_2); +lean_dec(x_12); +x_14 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_11, x_13); +return x_14; +} +} } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_17, 4); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__3(x_13, x_1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_2); +x_17 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_eraseLocal___spec__1(x_15, x_1); +lean_inc(x_1); +lean_inc(x_16); +x_18 = l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__1(x_16, x_1); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_dec(x_1); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_14); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_18, x_20); -return x_21; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Std_HashMapImp_erase___at_Lean_Compiler_LCNF_LCtx_erase___spec__3(x_16, x_1); +lean_dec(x_1); +if (x_3 == 0) +{ +lean_object* x_22; +lean_dec(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_17); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +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_20, 4); +lean_inc(x_23); +x_24 = lean_ctor_get(x_20, 2); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_21); +x_26 = l_Lean_Compiler_LCNF_LCtx_erase_goParams(x_24, x_25); +lean_dec(x_24); +x_27 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_23, x_26); +return x_27; } } } } +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_go(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Lean_Compiler_LCNF_LCtx_eraseLocal(x_5, x_2); +lean_dec(x_5); +x_1 = x_4; +x_2 = x_6; +goto _start; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = 1; +x_12 = l_Lean_Compiler_LCNF_LCtx_erase(x_10, x_2, x_11); +x_1 = x_9; +x_2 = x_12; +goto _start; +} +case 2: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +lean_dec(x_1); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = 1; +x_18 = l_Lean_Compiler_LCNF_LCtx_erase(x_16, x_2, x_17); +x_1 = x_15; +x_2 = x_18; +goto _start; +} +case 4: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); +lean_dec(x_1); +x_21 = lean_ctor_get(x_20, 3); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Compiler_LCNF_LCtx_erase_goAlts(x_21, x_2); +lean_dec(x_21); +return x_22; +} +default: +{ +lean_dec(x_1); +return x_2; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_2, x_3); +if (x_5 == 0) +{ +lean_object* x_6; size_t x_7; size_t x_8; +x_6 = lean_array_uget(x_1, x_2); +x_7 = 1; +x_8 = lean_usize_add(x_2, x_7); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_6, 2); +lean_inc(x_10); +lean_dec(x_6); +x_11 = l_Lean_Compiler_LCNF_LCtx_erase_goParams(x_9, x_4); +lean_dec(x_9); +x_12 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_10, x_11); +x_2 = x_8; +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_6, 0); +lean_inc(x_14); +lean_dec(x_6); +x_15 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_14, x_4); +x_2 = x_8; +x_4 = x_15; +goto _start; +} +} +else +{ +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goAlts(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +lean_dec(x_3); +return x_2; +} +else +{ +uint8_t x_6; +x_6 = lean_nat_dec_le(x_3, x_3); +if (x_6 == 0) +{ +lean_dec(x_3); +return x_2; +} +else +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_9 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1(x_1, x_7, x_8, x_2); +return x_9; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goParams___spec__1(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goParams___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Compiler_LCNF_LCtx_erase_goParams(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_LCtx_erase___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -1491,6 +1706,46 @@ lean_dec(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase___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_3); +lean_dec(x_3); +x_5 = l_Lean_Compiler_LCNF_LCtx_erase(x_1, x_2, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_LCtx_erase_goAlts___spec__1(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_erase_goAlts___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Compiler_LCNF_LCtx_erase_goAlts(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_LCtx_eraseFVarsAt(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Compiler_LCNF_LCtx_erase_go(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Compiler_LCNF_LCtx_toLocalContext___spec__2(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Main.c b/stage0/stdlib/Lean/Compiler/LCNF/Main.c index 9be0ff1fd2..139b475d49 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Main.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Main.c @@ -16,7 +16,6 @@ extern "C" { static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__13; lean_object* l_Lean_Compiler_LCNF_ppDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__23; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6; lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -28,8 +27,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Compiler_LCNF_shouldGen lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Compiler_LCNF_shouldGenerateCode___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8; uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -51,14 +48,15 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_PassMa static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__2; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_checkpoint___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__19; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Compiler_LCNF_PassManager_run___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_checkpoint___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_PassInstaller_runFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___lambda__2___closed__1; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4; lean_object* l_Lean_Compiler_LCNF_saveStage1Decls(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__11; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -66,26 +64,28 @@ static lean_object* l_Lean_Compiler_LCNF_PassManager_run___lambda__1___closed__4 extern lean_object* l_Lean_inheritedTraceOptions; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__1; uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__6; lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3; static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__11; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1; extern lean_object* l_Lean_Compiler_LCNF_PassInstaller_passInstallerExt; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_PassManager_run___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__3; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__1; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__13; static lean_object* l_Lean_Compiler_LCNF_PassManager_run___lambda__1___closed__3; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__12; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_PassManager_run___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1; lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4; LEAN_EXPORT lean_object* lean_compile_stage1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3; lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__2; @@ -98,12 +98,14 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint_ lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__8; lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeFormerType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_checkDeadLocalDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); @@ -125,15 +127,13 @@ uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__20; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5; lean_object* l_Lean_Compiler_LCNF_CompilerM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__10; static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__7; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_PassManager_run___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975_(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkpoint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__3; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__5; static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__15; @@ -143,7 +143,6 @@ LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_chec static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__2___closed__5; lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode_isCompIrrelevant(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__5; static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__14; @@ -153,6 +152,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint_ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_PassManager_run___spec__3___closed__1; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_PassManager_run___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_size(lean_object*); static lean_object* l_Lean_Compiler_LCNF_shouldGenerateCode___closed__22; @@ -2015,6 +2015,9 @@ x_8 = lean_usize_of_nat(x_7); lean_dec(x_7); x_9 = 0; x_10 = lean_box(0); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); x_11 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3(x_1, x_2, x_8, x_9, x_10, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_11) == 0) { @@ -2022,44 +2025,87 @@ uint8_t x_12; x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_11, 1); +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 2); +lean_inc(x_15); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__1___closed__1; +x_17 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_15, x_16); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_ctor_set(x_11, 0, x_10); return x_11; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_object* x_18; +lean_free_object(x_11); +x_18 = l_Lean_Compiler_LCNF_checkDeadLocalDecls(x_2, x_3, x_4, x_5, x_13); +return x_18; } } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_4, 2); +lean_inc(x_20); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___lambda__1___closed__1; +x_22 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_20, x_21); +lean_dec(x_20); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_19); +return x_23; +} +else +{ +lean_object* x_24; +x_24 = l_Lean_Compiler_LCNF_checkDeadLocalDecls(x_2, x_3, x_4, x_5, x_19); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_11); +if (x_25 == 0) { return x_11; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_inc(x_17); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_11, 0); +x_27 = lean_ctor_get(x_11, 1); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_11); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } @@ -2118,15 +2164,6 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_checkpoint___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_Compiler_LCNF_checkpoint(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; -} -} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_PassManager_run___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -2237,6 +2274,7 @@ lean_dec(x_9); x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); lean_dec(x_1); +lean_inc(x_10); x_13 = l_Lean_Compiler_LCNF_checkpoint(x_12, x_10, x_4, x_5, x_6, x_11); if (lean_obj_tag(x_13) == 0) { @@ -3189,7 +3227,7 @@ x_7 = l_Lean_Compiler_LCNF_CompilerM_run___rarg(x_5, x_6, x_2, x_3, x_4); return x_7; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3199,7 +3237,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2() { _start: { lean_object* x_1; @@ -3207,17 +3245,17 @@ x_1 = lean_mk_string_from_bytes("simp", 4); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__2; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4() { _start: { lean_object* x_1; @@ -3225,17 +3263,17 @@ x_1 = lean_mk_string_from_bytes("pullInstances", 13); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__2; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6() { _start: { lean_object* x_1; @@ -3243,17 +3281,17 @@ x_1 = lean_mk_string_from_bytes("cse", 3); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__2; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8() { _start: { lean_object* x_1; @@ -3261,21 +3299,21 @@ x_1 = lean_mk_string_from_bytes("jp", 2); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__3___closed__2; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1; x_3 = 1; x_4 = l_Lean_registerTraceClass(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) @@ -3284,7 +3322,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec(x_4); -x_6 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3; +x_6 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3; x_7 = l_Lean_registerTraceClass(x_6, x_3, x_5); if (lean_obj_tag(x_7) == 0) { @@ -3292,7 +3330,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); -x_9 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5; +x_9 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5; x_10 = l_Lean_registerTraceClass(x_9, x_3, x_8); if (lean_obj_tag(x_10) == 0) { @@ -3300,7 +3338,7 @@ 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_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7; +x_12 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7; x_13 = l_Lean_registerTraceClass(x_12, x_3, x_11); if (lean_obj_tag(x_13) == 0) { @@ -3308,7 +3346,7 @@ lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9; +x_15 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9; x_16 = 0; x_17 = l_Lean_registerTraceClass(x_15, x_16, x_14); return x_17; @@ -3557,25 +3595,25 @@ l_Lean_Compiler_LCNF_compileStage1Impl___closed__2 = _init_l_Lean_Compiler_LCNF_ lean_mark_persistent(l_Lean_Compiler_LCNF_compileStage1Impl___closed__2); l_Lean_Compiler_LCNF_compileStage1Impl___closed__3 = _init_l_Lean_Compiler_LCNF_compileStage1Impl___closed__3(); lean_mark_persistent(l_Lean_Compiler_LCNF_compileStage1Impl___closed__3); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__1); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__2); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__3); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__4); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__5); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__6); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__7); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__8); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948____closed__9); -res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_948_(lean_io_mk_world()); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__1); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__2); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__3); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__4); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__5); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__6); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__7); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__8); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975____closed__9); +res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Main___hyg_975_(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/Compiler/LCNF/PullLetDecls.c b/stage0/stdlib/Lean/Compiler/LCNF/PullLetDecls.c index 4f759647d2..29cd3669a8 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/PullLetDecls.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/PullLetDecls.c @@ -4200,7 +4200,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_Compiler_LCNF_PullLetDecls_pullDecls___lambda__1___closed__1; x_2 = l_Lean_Compiler_LCNF_PullLetDecls_pullDecls___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(125u); +x_3 = lean_unsigned_to_nat(181u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_Compiler_LCNF_PullLetDecls_pullDecls___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4920,7 +4920,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_Compiler_LCNF_PullLetDecls_pullDecls___lambda__1___closed__1; x_2 = l_Lean_Compiler_LCNF_PullLetDecls_pullDecls___lambda__2___closed__1; -x_3 = lean_unsigned_to_nat(94u); +x_3 = lean_unsigned_to_nat(150u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_Compiler_LCNF_PullLetDecls_pullDecls___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Simp.c b/stage0/stdlib/Lean/Compiler/LCNF/Simp.c index 19e723982e..ec3f986ce5 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Simp.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Simp.c @@ -14,16 +14,20 @@ extern "C" { #endif static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__11; +static lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1; lean_object* l_Lean_Compiler_LCNF_ppDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__10; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM; uint8_t l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_subst___default; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_map___default___spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markSimplified___boxed(lean_object*); size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4___closed__4; @@ -38,16 +42,17 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_InlineCandidateInfo_arity(lea LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateParamImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateLetDeclImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__20; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markSimplified(lean_object*); uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1681_(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_simp___closed__1; @@ -60,6 +65,7 @@ LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Compiler_LCNF_Simp_Fu LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incVisited(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4___closed__6; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4___closed__5; lean_object* l___private_Lean_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -70,29 +76,35 @@ lean_object* l_Lean_Expr_constructorApp_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__9; +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__2(lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findFunDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_visited___default; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInlineLocal___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Compiler_LCNF_instInhabitedCodeDecl; lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltCodeImp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_betaReduce___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParams___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_instReprFunDeclInfo___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,9 +114,11 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go(uint8_t, extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__11; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInlineLocal___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__7(lean_object*, lean_object*); @@ -112,10 +126,12 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incVisited___rarg___boxed(lea LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__3(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incVisited___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findFunDecl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion___rarg___lambda__1(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__2; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4; extern lean_object* l_Lean_inheritedTraceOptions; LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_map___default___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markSimplified___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -123,10 +139,12 @@ uint8_t l_Lean_Compiler_LCNF_Code_isReturnOf(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion___rarg(uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instReprFunDeclInfo; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__4___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_shouldInlineLocal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -137,6 +155,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___boxed( lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_inline___default; lean_object* l_Lean_Compiler_LCNF_FunDeclCore_getArity___rarg(lean_object*); +lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInline___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_getArity(lean_object*); @@ -155,16 +174,18 @@ lean_object* l_Lean_Compiler_LCNF_replaceFVar(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion___rarg___closed__1; static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; lean_object* l_Lean_Compiler_LCNF_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__4(lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_shouldInlineLocal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_InlineCandidateInfo_arity___boxed(lean_object*); +lean_object* l_instInhabited___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_toCtorIdx(uint8_t); lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*); -static lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2; +static lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___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_Nat_repr(lean_object*); @@ -174,10 +195,12 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format(lean_ob LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___spec__1(lean_object*, size_t, size_t); lean_object* l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseCodeDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_toList___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normExpr___at_Lean_Compiler_LCNF_Simp_simp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_toCtorIdx___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +uint8_t l_Lean_Compiler_LCNF_CodeDecl_isPure(lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__8; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_Config_smallThreshold___default; @@ -186,10 +209,13 @@ static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseCodeDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_isClass_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5; static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__17; LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__8; size_t lean_usize_modn(size_t, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -198,27 +224,34 @@ uint8_t l_Lean_Expr_isConst(lean_object*); lean_object* l_Lean_Compiler_LCNF_ppCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__5; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__3(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_updateFunDeclImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_addSubst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__2; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___closed__3; size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__1; lean_object* l_Lean_Compiler_LCNF_findFunDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___closed__5; +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5; static lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__1___closed__1; lean_object* l_Lean_Compiler_LCNF_Code_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_instantiateParamsLevelParams(lean_object*, lean_object*); @@ -226,10 +259,12 @@ lean_object* l_Lean_Compiler_LCNF_mkAuxLetDecl(lean_object*, lean_object*, lean_ static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__5; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__3; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___closed__4; -static lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(lean_object*); +lean_object* l_Lean_Compiler_LCNF_normFunDeclImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__19; lean_object* l_Lean_Expr_fvar___override(lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; size_t lean_ptr_addr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instInhabitedFunDeclInfoMap; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -237,16 +272,18 @@ LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Compiler_LCNF_Simp_FunDe lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux(lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_addSubst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion___rarg___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__6; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpValue_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incVisited___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_LetDecl_updateValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normExpr___at_Lean_Compiler_LCNF_Simp_simp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__12; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -255,9 +292,14 @@ LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Simp_instInhabitedFunDeclInfo; static lean_object* l_Lean_Compiler_LCNF_Simp_simpAppApp_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInline___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__8; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Core_instMonadCoreM; uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__16; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__8(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_format___spec__4___closed__1; @@ -274,6 +316,7 @@ lean_object* l_Array_ofSubarray___rarg(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__1; lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInlineLocal(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__4; lean_object* l_Lean_Compiler_LCNF_Code_size_go(lean_object*, lean_object*); @@ -281,71 +324,93 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___at___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_Internalize_mkNewFVarId___spec__3(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normExprs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4; static lean_object* l_Lean_Compiler_LCNF_normExprs___at_Lean_Compiler_LCNF_Simp_simp___spec__2___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_funDeclInfoMap___default; static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__14; static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__5; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_collectLocalDecls_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(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_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__10; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253_(lean_object*); lean_object* l_Lean_Compiler_LCNF_mkAuxFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8_(uint8_t, lean_object*); +lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_instInhabitedFunDeclInfoMap___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__18; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isSmall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_mkAuxParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__15; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineCandidate_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_incInlineLocal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_used___default; lean_object* l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_OptionT_instMonadOptionT___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__13; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__13; static lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_reprFunDeclInfo____x40_Lean_Compiler_LCNF_Simp___hyg_8____closed__6; +uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_betaReduce___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isSmall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_State_inlineLocal___default; +lean_object* l_Lean_Compiler_LCNF_CodeDecl_fvarId(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__1; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_map___default; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__9; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___closed__2; static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__2; static lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f___closed__1; +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_FunDeclInfo_noConfusion(lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_instMonadFVarSubstSimpM___closed__2; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___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_nat_to_int(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Decl_simp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Compiler_LCNF_Simp_FunDeclInfoMap_add___spec__6(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__7; static lean_object* l_Lean_Compiler_LCNF_normParams___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___boxed(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3; static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___closed__7; static lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__10; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -4422,39 +4487,38 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce(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_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t 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; uint8_t x_25; lean_object* x_26; -x_10 = lean_array_get_size(x_3); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_toSubarray___rarg(x_3, x_11, x_10); -x_13 = l_Lean_Compiler_LCNF_Simp_instInhabitedFunDeclInfoMap___closed__1; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_array_get_size(x_1); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -x_18 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_betaReduce___spec__1(x_1, x_16, x_17, x_14, x_4, x_5, x_6, x_7, x_8, x_9); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t 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; +x_11 = lean_array_get_size(x_3); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Array_toSubarray___rarg(x_3, x_12, x_11); +x_14 = l_Lean_Compiler_LCNF_Simp_instInhabitedFunDeclInfoMap___closed__1; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_array_get_size(x_1); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_betaReduce___spec__1(x_1, x_17, x_18, x_15, x_5, x_6, x_7, x_8, x_9, x_10); +x_20 = lean_ctor_get(x_19, 0); 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 = l_Lean_Compiler_LCNF_Code_internalize(x_2, x_21, x_6, x_7, x_8, x_20); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Compiler_LCNF_Code_internalize(x_2, x_22, x_7, x_8, x_9, x_21); +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_22); -x_25 = 0; -lean_inc(x_23); -x_26 = l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go(x_25, x_23, x_4, x_5, x_6, x_7, x_8, x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_24); +x_26 = l_Lean_Compiler_LCNF_Simp_updateFunDeclInfo_go(x_4, x_24, x_5, x_6, x_7, x_8, x_9, x_25); if (lean_obj_tag(x_26) == 0) { uint8_t x_27; @@ -4464,7 +4528,7 @@ if (x_27 == 0) lean_object* x_28; x_28 = lean_ctor_get(x_26, 0); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 0, x_24); return x_26; } else @@ -4474,7 +4538,7 @@ x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); lean_dec(x_26); x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 0, x_24); lean_ctor_set(x_30, 1, x_29); return x_30; } @@ -4482,7 +4546,7 @@ return x_30; else { uint8_t x_31; -lean_dec(x_23); +lean_dec(x_24); x_31 = !lean_is_exclusive(x_26); if (x_31 == 0) { @@ -4522,13 +4586,15 @@ lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce___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_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_betaReduce___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_10; -x_10 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); -return x_10; +return x_12; } } static lean_object* _init_l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__1___closed__1() { @@ -5105,7 +5171,7 @@ return x_38; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -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_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_dec(x_7); x_14 = lean_ctor_get(x_1, 0); lean_inc(x_14); @@ -5118,83 +5184,84 @@ lean_inc(x_16); lean_inc(x_2); x_18 = l_Array_toSubarray___rarg(x_2, x_17, x_16); x_19 = l_Array_ofSubarray___rarg(x_18); +x_20 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_19); -x_20 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_14, x_15, x_19, x_8, x_9, x_10, x_11, x_12, x_13); +x_21 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_14, x_15, x_19, x_20, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_14); -if (lean_obj_tag(x_20) == 0) +if (lean_obj_tag(x_21) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_73; uint8_t x_88; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_24 = lean_ctor_get(x_3, 0); -lean_inc(x_24); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_74; uint8_t x_89; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_ctor_get(x_3, 0); +lean_inc(x_25); lean_dec(x_3); -x_88 = l_Lean_Compiler_LCNF_Code_isReturnOf(x_6, x_24); -if (x_88 == 0) -{ -uint8_t x_89; -lean_free_object(x_20); -x_89 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_22); +x_89 = l_Lean_Compiler_LCNF_Code_isReturnOf(x_6, x_25); if (x_89 == 0) { -lean_object* x_90; -x_90 = lean_box(0); -x_25 = x_90; -goto block_72; -} -else +uint8_t x_90; +lean_free_object(x_21); +x_90 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_23); +if (x_90 == 0) { lean_object* x_91; +x_91 = lean_box(0); +x_26 = x_91; +goto block_73; +} +else +{ +lean_object* x_92; lean_dec(x_19); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_91 = lean_box(0); -x_73 = x_91; -goto block_87; +x_92 = lean_box(0); +x_74 = x_92; +goto block_88; } } else { -uint8_t x_92; -x_92 = lean_nat_dec_eq(x_5, x_16); -if (x_92 == 0) -{ uint8_t x_93; -lean_free_object(x_20); -x_93 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_22); +x_93 = lean_nat_dec_eq(x_5, x_16); if (x_93 == 0) { -lean_object* x_94; -x_94 = lean_box(0); -x_25 = x_94; -goto block_72; -} -else +uint8_t x_94; +lean_free_object(x_21); +x_94 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_23); +if (x_94 == 0) { lean_object* x_95; -lean_dec(x_19); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); x_95 = lean_box(0); -x_73 = x_95; -goto block_87; -} +x_26 = x_95; +goto block_73; } else { lean_object* x_96; -lean_dec(x_24); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +x_96 = lean_box(0); +x_74 = x_96; +goto block_88; +} +} +else +{ +lean_object* x_97; +lean_dec(x_25); lean_dec(x_19); lean_dec(x_16); lean_dec(x_12); @@ -5206,207 +5273,207 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_96 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_96, 0, x_22); -lean_ctor_set(x_20, 0, x_96); -return x_20; +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_23); +lean_ctor_set(x_21, 0, x_97); +return x_21; } } -block_72: +block_73: { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_25); -x_26 = l_Lean_Expr_getAppFn(x_4); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_26); +x_27 = l_Lean_Expr_getAppFn(x_4); lean_dec(x_4); -x_27 = l_Lean_mkAppN(x_26, x_19); +x_28 = l_Lean_mkAppN(x_27, x_19); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_28 = l_Lean_Compiler_LCNF_inferType(x_27, x_10, x_11, x_12, x_23); -if (lean_obj_tag(x_28) == 0) +x_29 = l_Lean_Compiler_LCNF_inferType(x_28, x_10, x_11, x_12, x_24); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Compiler_LCNF_mkAuxParam(x_29, x_10, x_11, x_12, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Lean_Compiler_LCNF_mkAuxParam(x_30, x_10, x_11, x_12, x_31); +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_nat_dec_lt(x_16, x_5); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_nat_dec_lt(x_16, x_5); lean_dec(x_5); -if (x_34 == 0) +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; +lean_object* x_36; lean_object* x_37; lean_dec(x_16); lean_dec(x_2); -x_35 = lean_ctor_get(x_32, 0); -lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 0); +lean_inc(x_36); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_36 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_24, x_35, x_10, x_11, x_12, x_33); -if (lean_obj_tag(x_36) == 0) +x_37 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_25, x_36, x_10, x_11, x_12, x_34); +if (lean_obj_tag(x_37) == 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_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_32, x_22, x_37, x_8, x_9, x_10, x_11, x_12, x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_33, x_23, x_38, x_8, x_9, x_10, x_11, x_12, x_39); lean_dec(x_9); lean_dec(x_8); -return x_39; +return x_40; } else { -uint8_t x_40; -lean_dec(x_32); -lean_dec(x_22); +uint8_t x_41; +lean_dec(x_33); +lean_dec(x_23); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_40 = !lean_is_exclusive(x_36); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_37); +if (x_41 == 0) { -return x_36; +return x_37; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_36, 0); -x_42 = lean_ctor_get(x_36, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_37, 0); +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_36); -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; +lean_dec(x_37); +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_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; -x_44 = lean_ctor_get(x_32, 0); -lean_inc(x_44); -x_45 = l_Lean_Expr_fvar___override(x_44); -x_46 = lean_array_get_size(x_2); -x_47 = l_Array_toSubarray___rarg(x_2, x_16, x_46); -x_48 = l_Array_ofSubarray___rarg(x_47); -x_49 = l_Lean_mkAppN(x_45, x_48); -x_50 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__2; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_45 = lean_ctor_get(x_33, 0); +lean_inc(x_45); +x_46 = l_Lean_Expr_fvar___override(x_45); +x_47 = lean_array_get_size(x_2); +x_48 = l_Array_toSubarray___rarg(x_2, x_16, x_47); +x_49 = l_Array_ofSubarray___rarg(x_48); +x_50 = l_Lean_mkAppN(x_46, x_49); +x_51 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__2; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_51 = l_Lean_Compiler_LCNF_mkAuxLetDecl(x_49, x_50, x_10, x_11, x_12, x_33); -if (lean_obj_tag(x_51) == 0) +x_52 = l_Lean_Compiler_LCNF_mkAuxLetDecl(x_50, x_51, x_10, x_11, x_12, x_34); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_ctor_get(x_52, 0); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_55 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_24, x_54, x_10, x_11, x_12, x_53); -if (lean_obj_tag(x_55) == 0) +x_56 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_25, x_55, x_10, x_11, x_12, x_54); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_52); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_32, x_22, x_58, x_8, x_9, x_10, x_11, x_12, x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_53); +lean_ctor_set(x_59, 1, x_57); +x_60 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_33, x_23, x_59, x_8, x_9, x_10, x_11, x_12, x_58); lean_dec(x_9); lean_dec(x_8); -return x_59; +return x_60; } else { -uint8_t x_60; -lean_dec(x_52); -lean_dec(x_32); -lean_dec(x_22); +uint8_t x_61; +lean_dec(x_53); +lean_dec(x_33); +lean_dec(x_23); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_60 = !lean_is_exclusive(x_55); -if (x_60 == 0) +x_61 = !lean_is_exclusive(x_56); +if (x_61 == 0) { -return x_55; +return x_56; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_55, 0); -x_62 = lean_ctor_get(x_55, 1); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_55); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +lean_dec(x_56); +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_64; -lean_dec(x_32); -lean_dec(x_24); -lean_dec(x_22); +uint8_t x_65; +lean_dec(x_33); +lean_dec(x_25); +lean_dec(x_23); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -x_64 = !lean_is_exclusive(x_51); -if (x_64 == 0) +x_65 = !lean_is_exclusive(x_52); +if (x_65 == 0) { -return x_51; +return x_52; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_51, 0); -x_66 = lean_ctor_get(x_51, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_52, 0); +x_67 = lean_ctor_get(x_52, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_51); -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; +lean_dec(x_52); +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_68; -lean_dec(x_24); -lean_dec(x_22); +uint8_t x_69; +lean_dec(x_25); +lean_dec(x_23); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -5416,156 +5483,156 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_68 = !lean_is_exclusive(x_28); -if (x_68 == 0) +x_69 = !lean_is_exclusive(x_29); +if (x_69 == 0) { -return x_28; +return x_29; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_28, 0); -x_70 = lean_ctor_get(x_28, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_29, 0); +x_71 = lean_ctor_get(x_29, 1); +lean_inc(x_71); lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_28); -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; +lean_dec(x_29); +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; } } } -block_87: +block_88: { -lean_object* x_74; lean_object* x_75; -lean_dec(x_73); -x_74 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___boxed), 10, 5); -lean_closure_set(x_74, 0, x_16); -lean_closure_set(x_74, 1, x_5); -lean_closure_set(x_74, 2, x_6); -lean_closure_set(x_74, 3, x_24); -lean_closure_set(x_74, 4, x_2); -x_75 = l_Lean_Compiler_LCNF_Code_bind(x_22, x_74, x_10, x_11, x_12, x_23); -if (lean_obj_tag(x_75) == 0) +lean_object* x_75; lean_object* x_76; +lean_dec(x_74); +x_75 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___boxed), 10, 5); +lean_closure_set(x_75, 0, x_16); +lean_closure_set(x_75, 1, x_5); +lean_closure_set(x_75, 2, x_6); +lean_closure_set(x_75, 3, x_25); +lean_closure_set(x_75, 4, x_2); +x_76 = l_Lean_Compiler_LCNF_Code_bind(x_23, x_75, x_10, x_11, x_12, x_24); +if (lean_obj_tag(x_76) == 0) { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +uint8_t x_77; +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_75, 0, x_78); -return x_75; +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_76, 0); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_76, 0, x_79); +return x_76; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_75, 0); -x_80 = lean_ctor_get(x_75, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_80 = lean_ctor_get(x_76, 0); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_75); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_79); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_dec(x_76); +x_82 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_82, 0, x_80); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_81); +return x_83; } } else { -uint8_t x_83; -x_83 = !lean_is_exclusive(x_75); -if (x_83 == 0) +uint8_t x_84; +x_84 = !lean_is_exclusive(x_76); +if (x_84 == 0) { -return x_75; +return x_76; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_75, 0); -x_85 = lean_ctor_get(x_75, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_76, 0); +x_86 = lean_ctor_get(x_76, 1); +lean_inc(x_86); lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_75); -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; +lean_dec(x_76); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } } } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_148; uint8_t x_161; -x_97 = lean_ctor_get(x_20, 0); -x_98 = lean_ctor_get(x_20, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_20); -x_99 = lean_ctor_get(x_3, 0); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_149; uint8_t x_162; +x_98 = lean_ctor_get(x_21, 0); +x_99 = lean_ctor_get(x_21, 1); lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_21); +x_100 = lean_ctor_get(x_3, 0); +lean_inc(x_100); lean_dec(x_3); -x_161 = l_Lean_Compiler_LCNF_Code_isReturnOf(x_6, x_99); -if (x_161 == 0) -{ -uint8_t x_162; -x_162 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_97); +x_162 = l_Lean_Compiler_LCNF_Code_isReturnOf(x_6, x_100); if (x_162 == 0) { -lean_object* x_163; -x_163 = lean_box(0); -x_100 = x_163; -goto block_147; -} -else +uint8_t x_163; +x_163 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_98); +if (x_163 == 0) { lean_object* x_164; +x_164 = lean_box(0); +x_101 = x_164; +goto block_148; +} +else +{ +lean_object* x_165; lean_dec(x_19); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_164 = lean_box(0); -x_148 = x_164; -goto block_160; +x_165 = lean_box(0); +x_149 = x_165; +goto block_161; } } else { -uint8_t x_165; -x_165 = lean_nat_dec_eq(x_5, x_16); -if (x_165 == 0) -{ uint8_t x_166; -x_166 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_97); +x_166 = lean_nat_dec_eq(x_5, x_16); if (x_166 == 0) { -lean_object* x_167; -x_167 = lean_box(0); -x_100 = x_167; -goto block_147; -} -else +uint8_t x_167; +x_167 = l___private_Lean_Compiler_LCNF_Simp_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go(x_98); +if (x_167 == 0) { lean_object* x_168; -lean_dec(x_19); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); x_168 = lean_box(0); -x_148 = x_168; -goto block_160; +x_101 = x_168; +goto block_148; +} +else +{ +lean_object* x_169; +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +x_169 = lean_box(0); +x_149 = x_169; +goto block_161; } } else { -lean_object* x_169; lean_object* x_170; -lean_dec(x_99); +lean_object* x_170; lean_object* x_171; +lean_dec(x_100); lean_dec(x_19); lean_dec(x_16); lean_dec(x_12); @@ -5577,215 +5644,215 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_169 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_169, 0, x_97); -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_98); -return x_170; +x_170 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_170, 0, x_98); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_99); +return x_171; } } -block_147: +block_148: { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -lean_dec(x_100); -x_101 = l_Lean_Expr_getAppFn(x_4); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_101); +x_102 = l_Lean_Expr_getAppFn(x_4); lean_dec(x_4); -x_102 = l_Lean_mkAppN(x_101, x_19); +x_103 = l_Lean_mkAppN(x_102, x_19); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_103 = l_Lean_Compiler_LCNF_inferType(x_102, x_10, x_11, x_12, x_98); -if (lean_obj_tag(x_103) == 0) +x_104 = l_Lean_Compiler_LCNF_inferType(x_103, x_10, x_11, x_12, x_99); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_105 = lean_ctor_get(x_104, 0); lean_inc(x_105); -lean_dec(x_103); -x_106 = l_Lean_Compiler_LCNF_mkAuxParam(x_104, x_10, x_11, x_12, x_105); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = l_Lean_Compiler_LCNF_mkAuxParam(x_105, x_10, x_11, x_12, x_106); +x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); -lean_dec(x_106); -x_109 = lean_nat_dec_lt(x_16, x_5); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_nat_dec_lt(x_16, x_5); lean_dec(x_5); -if (x_109 == 0) +if (x_110 == 0) { -lean_object* x_110; lean_object* x_111; +lean_object* x_111; lean_object* x_112; lean_dec(x_16); lean_dec(x_2); -x_110 = lean_ctor_get(x_107, 0); -lean_inc(x_110); +x_111 = lean_ctor_get(x_108, 0); +lean_inc(x_111); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_111 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_99, x_110, x_10, x_11, x_12, x_108); -if (lean_obj_tag(x_111) == 0) +x_112 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_100, x_111, x_10, x_11, x_12, x_109); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec(x_111); -x_114 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_107, x_97, x_112, x_8, x_9, x_10, x_11, x_12, x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_115 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_108, x_98, x_113, x_8, x_9, x_10, x_11, x_12, x_114); lean_dec(x_9); lean_dec(x_8); -return x_114; +return x_115; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_107); -lean_dec(x_97); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_108); +lean_dec(x_98); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_115 = lean_ctor_get(x_111, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_111, 1); +x_116 = lean_ctor_get(x_112, 0); lean_inc(x_116); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_117 = x_111; +x_117 = lean_ctor_get(x_112, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_118 = x_112; } else { - lean_dec_ref(x_111); - x_117 = lean_box(0); + lean_dec_ref(x_112); + x_118 = lean_box(0); } -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_118 = x_117; + x_119 = x_118; } -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_116); -return x_118; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_119 = lean_ctor_get(x_107, 0); -lean_inc(x_119); -x_120 = l_Lean_Expr_fvar___override(x_119); -x_121 = lean_array_get_size(x_2); -x_122 = l_Array_toSubarray___rarg(x_2, x_16, x_121); -x_123 = l_Array_ofSubarray___rarg(x_122); -x_124 = l_Lean_mkAppN(x_120, x_123); -x_125 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__2; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_120 = lean_ctor_get(x_108, 0); +lean_inc(x_120); +x_121 = l_Lean_Expr_fvar___override(x_120); +x_122 = lean_array_get_size(x_2); +x_123 = l_Array_toSubarray___rarg(x_2, x_16, x_122); +x_124 = l_Array_ofSubarray___rarg(x_123); +x_125 = l_Lean_mkAppN(x_121, x_124); +x_126 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___closed__2; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_126 = l_Lean_Compiler_LCNF_mkAuxLetDecl(x_124, x_125, x_10, x_11, x_12, x_108); -if (lean_obj_tag(x_126) == 0) +x_127 = l_Lean_Compiler_LCNF_mkAuxLetDecl(x_125, x_126, x_10, x_11, x_12, x_109); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = lean_ctor_get(x_127, 0); +x_129 = lean_ctor_get(x_127, 1); lean_inc(x_129); +lean_dec(x_127); +x_130 = lean_ctor_get(x_128, 0); +lean_inc(x_130); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_130 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_99, x_129, x_10, x_11, x_12, x_128); -if (lean_obj_tag(x_130) == 0) +x_131 = l_Lean_Compiler_LCNF_replaceFVar(x_6, x_100, x_130, x_10, x_11, x_12, x_129); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_127); -lean_ctor_set(x_133, 1, x_131); -x_134 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_107, x_97, x_133, x_8, x_9, x_10, x_11, x_12, x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_128); +lean_ctor_set(x_134, 1, x_132); +x_135 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__2(x_108, x_98, x_134, x_8, x_9, x_10, x_11, x_12, x_133); lean_dec(x_9); lean_dec(x_8); -return x_134; +return x_135; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_127); -lean_dec(x_107); -lean_dec(x_97); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_128); +lean_dec(x_108); +lean_dec(x_98); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_135 = lean_ctor_get(x_130, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_130, 1); +x_136 = lean_ctor_get(x_131, 0); lean_inc(x_136); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_137 = x_130; +x_137 = lean_ctor_get(x_131, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_138 = x_131; } else { - lean_dec_ref(x_130); - x_137 = lean_box(0); + lean_dec_ref(x_131); + x_138 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_138 = x_137; + x_139 = x_138; } -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; } } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_107); -lean_dec(x_99); -lean_dec(x_97); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_108); +lean_dec(x_100); +lean_dec(x_98); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -x_139 = lean_ctor_get(x_126, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_126, 1); +x_140 = lean_ctor_get(x_127, 0); lean_inc(x_140); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_141 = x_126; +x_141 = lean_ctor_get(x_127, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_142 = x_127; } else { - lean_dec_ref(x_126); - x_141 = lean_box(0); + lean_dec_ref(x_127); + x_142 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); } else { - x_142 = x_141; + x_143 = x_142; } -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_99); -lean_dec(x_97); +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +lean_dec(x_100); +lean_dec(x_98); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -5795,95 +5862,95 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_143 = lean_ctor_get(x_103, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_103, 1); +x_144 = lean_ctor_get(x_104, 0); lean_inc(x_144); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_145 = x_103; +x_145 = lean_ctor_get(x_104, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_146 = x_104; } else { - lean_dec_ref(x_103); - x_145 = lean_box(0); + lean_dec_ref(x_104); + x_146 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_145; + x_147 = x_146; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); +return x_147; } } -block_160: +block_161: { -lean_object* x_149; lean_object* x_150; -lean_dec(x_148); -x_149 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___boxed), 10, 5); -lean_closure_set(x_149, 0, x_16); -lean_closure_set(x_149, 1, x_5); -lean_closure_set(x_149, 2, x_6); -lean_closure_set(x_149, 3, x_99); -lean_closure_set(x_149, 4, x_2); -x_150 = l_Lean_Compiler_LCNF_Code_bind(x_97, x_149, x_10, x_11, x_12, x_98); -if (lean_obj_tag(x_150) == 0) +lean_object* x_150; lean_object* x_151; +lean_dec(x_149); +x_150 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__3___boxed), 10, 5); +lean_closure_set(x_150, 0, x_16); +lean_closure_set(x_150, 1, x_5); +lean_closure_set(x_150, 2, x_6); +lean_closure_set(x_150, 3, x_100); +lean_closure_set(x_150, 4, x_2); +x_151 = l_Lean_Compiler_LCNF_Code_bind(x_98, x_150, x_10, x_11, x_12, x_99); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_154 = x_151; } else { - lean_dec_ref(x_150); - x_153 = lean_box(0); + lean_dec_ref(x_151); + x_154 = lean_box(0); } -x_154 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_154, 0, x_151); -if (lean_is_scalar(x_153)) { - x_155 = lean_alloc_ctor(0, 2, 0); +x_155 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_155, 0, x_152); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); } else { - x_155 = x_153; + x_156 = x_154; } -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_152); -return x_155; +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +return x_156; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_156 = lean_ctor_get(x_150, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_150, 1); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_157 = lean_ctor_get(x_151, 0); lean_inc(x_157); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_158 = x_150; +x_158 = lean_ctor_get(x_151, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_159 = x_151; } else { - lean_dec_ref(x_150); - x_158 = lean_box(0); + lean_dec_ref(x_151); + x_159 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_159 = x_158; + x_160 = x_159; } -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } } } } else { -uint8_t x_171; +uint8_t x_172; lean_dec(x_19); lean_dec(x_16); lean_dec(x_12); @@ -5896,23 +5963,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_171 = !lean_is_exclusive(x_20); -if (x_171 == 0) +x_172 = !lean_is_exclusive(x_21); +if (x_172 == 0) { -return x_20; +return x_21; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_20, 0); -x_173 = lean_ctor_get(x_20, 1); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_21, 0); +x_174 = lean_ctor_get(x_21, 1); +lean_inc(x_174); lean_inc(x_173); -lean_inc(x_172); -lean_dec(x_20); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_172); -lean_ctor_set(x_174, 1, x_173); -return x_174; +lean_dec(x_21); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } } @@ -6244,6 +6311,7075 @@ lean_dec(x_2); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_1, 2); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 4); +lean_inc(x_11); +lean_dec(x_1); +x_12 = 0; +x_13 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_10, x_11, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_10); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_17); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_13); +if (x_21 == 0) +{ +return x_13; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(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; +x_9 = l_Lean_Compiler_LCNF_findFunDecl_x3f(x_1, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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); +lean_dec(x_12); +x_13 = lean_box(0); +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, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +lean_inc(x_18); +x_19 = l_Lean_Compiler_LCNF_Simp_shouldInlineLocal(x_18, x_3, x_4, x_5, x_6, x_7, x_17); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +uint8_t x_22; +lean_dec(x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +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_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_box(0); +x_30 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f___lambda__1(x_18, x_2, x_29, x_3, x_4, x_5, x_6, x_7, x_28); +return x_30; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineJp_x3f___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_Compiler_LCNF_Simp_inlineJp_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_st_ref_take(x_3, x_9); +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_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_11, 1); +x_15 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_14, x_1); +lean_ctor_set(x_11, 1, x_15); +x_16 = lean_st_ref_set(x_3, x_11, x_12); +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_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; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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; +x_23 = lean_ctor_get(x_11, 0); +x_24 = lean_ctor_get(x_11, 1); +x_25 = lean_ctor_get(x_11, 2); +x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*6); +x_27 = lean_ctor_get(x_11, 3); +x_28 = lean_ctor_get(x_11, 4); +x_29 = lean_ctor_get(x_11, 5); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_11); +x_30 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_24, x_1); +x_31 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_31, 2, x_25); +lean_ctor_set(x_31, 3, x_27); +lean_ctor_set(x_31, 4, x_28); +lean_ctor_set(x_31, 5, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*6, x_26); +x_32 = lean_st_ref_set(x_3, x_31, x_12); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_34 = x_32; +} else { + lean_dec_ref(x_32); + x_34 = lean_box(0); +} +x_35 = lean_box(0); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_st_ref_take(x_3, x_9); +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_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_11, 1); +x_15 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_14, x_1); +lean_ctor_set(x_11, 1, x_15); +x_16 = lean_st_ref_set(x_3, x_11, x_12); +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_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; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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; +x_23 = lean_ctor_get(x_11, 0); +x_24 = lean_ctor_get(x_11, 1); +x_25 = lean_ctor_get(x_11, 2); +x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*6); +x_27 = lean_ctor_get(x_11, 3); +x_28 = lean_ctor_get(x_11, 4); +x_29 = lean_ctor_get(x_11, 5); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_11); +x_30 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_24, x_1); +x_31 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_31, 2, x_25); +lean_ctor_set(x_31, 3, x_27); +lean_ctor_set(x_31, 4, x_28); +lean_ctor_set(x_31, 5, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*6, x_26); +x_32 = lean_st_ref_set(x_3, x_31, x_12); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_34 = x_32; +} else { + lean_dec_ref(x_32); + x_34 = lean_box(0); +} +x_35 = lean_box(0); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +lean_dec(x_1); +x_9 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedLetDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___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: +{ +uint8_t x_11; +x_11 = lean_usize_dec_eq(x_2, x_3); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; +lean_dec(x_4); +x_12 = lean_array_uget(x_1, x_2); +x_13 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_12, x_5, x_6, x_7, x_8, x_9, x_10); +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 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_2 = x_17; +x_4 = x_14; +x_10 = x_15; +goto _start; +} +else +{ +lean_object* x_19; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_10); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_eq(x_2, x_3); +if (x_11 == 0) +{ +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_dec(x_4); +x_12 = lean_array_uget(x_1, x_2); +x_13 = l_Lean_Compiler_LCNF_AltCore_getCode(x_12); +lean_dec(x_12); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Compiler_LCNF_Simp_markUsedCode(x_13, x_5, x_6, x_7, x_8, x_9, x_10); +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 = 1; +x_18 = lean_usize_add(x_2, x_17); +x_2 = x_18; +x_4 = x_15; +x_10 = x_16; +goto _start; +} +else +{ +lean_object* x_20; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_10); +return x_20; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedCode(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: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +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 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_1 = x_9; +x_7 = x_11; +goto _start; +} +case 3: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +lean_dec(x_1); +x_15 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_13, x_2, x_3, x_4, x_5, x_6, x_7); +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; uint8_t x_21; +x_17 = lean_ctor_get(x_15, 1); +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = lean_array_get_size(x_14); +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_lt(x_20, x_19); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_19); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_box(0); +lean_ctor_set(x_15, 0, x_22); +return x_15; +} +else +{ +uint8_t x_23; +x_23 = lean_nat_dec_le(x_19, x_19); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec(x_19); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_box(0); +lean_ctor_set(x_15, 0, x_24); +return x_15; +} +else +{ +size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_15); +x_25 = 0; +x_26 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_27 = lean_box(0); +x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1(x_14, x_25, x_26, x_27, x_2, x_3, x_4, x_5, x_6, x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_14); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_dec(x_15); +x_30 = lean_array_get_size(x_14); +x_31 = lean_unsigned_to_nat(0u); +x_32 = lean_nat_dec_lt(x_31, x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_29); +return x_34; +} +else +{ +uint8_t x_35; +x_35 = lean_nat_dec_le(x_30, x_30); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_30); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_29); +return x_37; +} +else +{ +size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; +x_38 = 0; +x_39 = lean_usize_of_nat(x_30); +lean_dec(x_30); +x_40 = lean_box(0); +x_41 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1(x_14, x_38, x_39, x_40, x_2, x_3, x_4, x_5, x_6, x_29); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_14); +return x_41; +} +} +} +} +case 4: +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_1, 0); +lean_inc(x_42); +lean_dec(x_1); +x_43 = lean_ctor_get(x_42, 2); +lean_inc(x_43); +x_44 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_43, x_2, x_3, x_4, x_5, x_6, x_7); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_46 = lean_ctor_get(x_44, 1); +x_47 = lean_ctor_get(x_44, 0); +lean_dec(x_47); +x_48 = lean_ctor_get(x_42, 3); +lean_inc(x_48); +lean_dec(x_42); +x_49 = lean_array_get_size(x_48); +x_50 = lean_unsigned_to_nat(0u); +x_51 = lean_nat_dec_lt(x_50, x_49); +if (x_51 == 0) +{ +lean_object* x_52; +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_52 = lean_box(0); +lean_ctor_set(x_44, 0, x_52); +return x_44; +} +else +{ +uint8_t x_53; +x_53 = lean_nat_dec_le(x_49, x_49); +if (x_53 == 0) +{ +lean_object* x_54; +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = lean_box(0); +lean_ctor_set(x_44, 0, x_54); +return x_44; +} +else +{ +size_t x_55; size_t x_56; lean_object* x_57; lean_object* x_58; +lean_free_object(x_44); +x_55 = 0; +x_56 = lean_usize_of_nat(x_49); +lean_dec(x_49); +x_57 = lean_box(0); +x_58 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2(x_48, x_55, x_56, x_57, x_2, x_3, x_4, x_5, x_6, x_46); +lean_dec(x_48); +return x_58; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_59 = lean_ctor_get(x_44, 1); +lean_inc(x_59); +lean_dec(x_44); +x_60 = lean_ctor_get(x_42, 3); +lean_inc(x_60); +lean_dec(x_42); +x_61 = lean_array_get_size(x_60); +x_62 = lean_unsigned_to_nat(0u); +x_63 = lean_nat_dec_lt(x_62, x_61); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_59); +return x_65; +} +else +{ +uint8_t x_66; +x_66 = lean_nat_dec_le(x_61, x_61); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_59); +return x_68; +} +else +{ +size_t x_69; size_t x_70; lean_object* x_71; lean_object* x_72; +x_69 = 0; +x_70 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_71 = lean_box(0); +x_72 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2(x_60, x_69, x_70, x_71, x_2, x_3, x_4, x_5, x_6, x_59); +lean_dec(x_60); +return x_72; +} +} +} +} +case 5: +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_1, 0); +lean_inc(x_73); +lean_dec(x_1); +x_74 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_73, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_74; +} +case 6: +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_7); +return x_76; +} +default: +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_77 = lean_ctor_get(x_1, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_1, 1); +lean_inc(x_78); +lean_dec(x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_79 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_77, x_2, x_3, x_4, x_5, x_6, x_7); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec(x_79); +x_1 = x_78; +x_7 = x_80; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_1, 4); +lean_inc(x_8); +lean_dec(x_1); +x_9 = l_Lean_Compiler_LCNF_Simp_markUsedCode(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___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: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__2(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_st_ref_get(x_3, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_13, x_1); +x_15 = lean_box(x_14); +lean_ctor_set(x_10, 0, x_15); +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = lean_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_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_18, x_1); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_isUsed(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Compiler_LCNF_instInhabitedCodeDecl; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Init.Util", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("getElem!", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("index out of bounds", 19); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4() { +_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_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1; +x_2 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2; +x_3 = lean_unsigned_to_nat(77u); +x_4 = lean_unsigned_to_nat(36u); +x_5 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go(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_unsigned_to_nat(0u); +x_11 = lean_nat_dec_lt(x_10, x_2); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_9); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_57; uint8_t x_58; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_2, x_13); +lean_dec(x_2); +x_57 = lean_array_get_size(x_1); +x_58 = lean_nat_dec_lt(x_14, x_57); +lean_dec(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_60 = l_panic___at_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___spec__1(x_59); +x_15 = x_60; +goto block_56; +} +else +{ +lean_object* x_61; +x_61 = lean_array_fget(x_1, x_14); +x_15 = x_61; +goto block_56; +} +block_56: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = l_Lean_Compiler_LCNF_CodeDecl_fvarId(x_15); +lean_inc(x_16); +x_17 = l_Lean_Compiler_LCNF_Simp_isUsed(x_16, x_4, x_5, x_6, x_7, x_8, x_9); +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 = l_Lean_Compiler_LCNF_CodeDecl_isPure(x_15); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = lean_unbox(x_18); +lean_dec(x_18); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_15); +x_22 = 1; +x_23 = l_Lean_Compiler_LCNF_eraseFVar(x_16, x_22, x_6, x_7, x_8, x_19); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_2 = x_14; +x_9 = x_24; +goto _start; +} +else +{ +lean_dec(x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_15, 0); +lean_inc(x_26); +lean_dec(x_15); +lean_inc(x_26); +x_27 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_26, x_4, x_5, x_6, x_7, x_8, x_19); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_26); +lean_ctor_set(x_29, 1, x_3); +x_2 = x_14; +x_3 = x_29; +x_9 = x_28; +goto _start; +} +case 1: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_15, 0); +lean_inc(x_31); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_31); +x_32 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_31, x_4, x_5, x_6, x_7, x_8, x_19); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_3); +x_2 = x_14; +x_3 = x_34; +x_9 = x_33; +goto _start; +} +default: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_15, 0); +lean_inc(x_36); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_36); +x_37 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_36, x_4, x_5, x_6, x_7, x_8, x_19); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_3); +x_2 = x_14; +x_3 = x_39; +x_9 = x_38; +goto _start; +} +} +} +} +else +{ +lean_dec(x_18); +lean_dec(x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_15, 0); +lean_inc(x_41); +lean_dec(x_15); +lean_inc(x_41); +x_42 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_41, x_4, x_5, x_6, x_7, x_8, x_19); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_3); +x_2 = x_14; +x_3 = x_44; +x_9 = x_43; +goto _start; +} +case 1: +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_15, 0); +lean_inc(x_46); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_46); +x_47 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_46, x_4, x_5, x_6, x_7, x_8, x_19); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_3); +x_2 = x_14; +x_3 = x_49; +x_9 = x_48; +goto _start; +} +default: +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_15, 0); +lean_inc(x_51); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_51); +x_52 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_51, x_4, x_5, x_6, x_7, x_8, x_19); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_3); +x_2 = x_14; +x_3 = x_54; +x_9 = x_53; +goto _start; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___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_Compiler_LCNF_Simp_attachCodeDecls_go(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_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls(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; +x_9 = lean_array_get_size(x_1); +x_10 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_attachCodeDecls___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_Compiler_LCNF_Simp_attachCodeDecls(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___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: +{ +uint8_t x_11; +x_11 = lean_usize_dec_eq(x_2, x_3); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +lean_dec(x_4); +x_12 = lean_array_uget(x_1, x_2); +x_13 = l_Lean_Compiler_LCNF_CodeDecl_fvarId(x_12); +lean_dec(x_12); +x_14 = 1; +x_15 = l_Lean_Compiler_LCNF_eraseFVar(x_13, x_14, x_7, x_8, x_9, x_10); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_2 = x_19; +x_4 = x_16; +x_10 = x_17; +goto _start; +} +else +{ +lean_object* x_21; +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_10); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseCodeDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_get_size(x_1); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_lt(x_9, x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_7); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_nat_dec_le(x_8, x_8); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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_7); +return x_15; +} +else +{ +size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = 0; +x_17 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_18 = lean_box(0); +x_19 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___spec__1(x_1, x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___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: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_eraseCodeDecls___spec__1(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseCodeDecls___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_eraseCodeDecls(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Core_instMonadCoreM; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4; +x_2 = l_OptionT_instMonadOptionT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5; +x_2 = l_Lean_instInhabitedFVarId; +x_3 = l_instInhabited___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___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: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6; +x_10 = lean_panic_fn(x_9, x_1); +x_11 = lean_apply_7(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.Compiler.LCNF.Simp", 23); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.Compiler.LCNF.Simp.inlineProjInst?.visit", 45); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unreachable code has been reached", 33); +return x_1; +} +} +static lean_object* _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4() { +_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_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1; +x_2 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2; +x_3 = lean_unsigned_to_nat(390u); +x_4 = lean_unsigned_to_nat(32u); +x_5 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___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_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___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_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1; +x_2 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2; +x_3 = lean_unsigned_to_nat(393u); +x_4 = lean_unsigned_to_nat(32u); +x_5 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = 1; +x_11 = l_Lean_Compiler_LCNF_Simp_findExpr(x_1, x_10, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +switch (lean_obj_tag(x_12)) { +case 0: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_8, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_17 = x_14; +} else { + lean_dec_ref(x_14); + x_17 = lean_box(0); +} +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +lean_inc(x_12); +x_19 = l_Lean_Expr_constructorApp_x3f(x_18, x_12); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_20) == 4) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(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); +lean_dec(x_20); +lean_inc(x_8); +lean_inc(x_7); +x_23 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_21, x_7, x_8, x_16); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +lean_dec(x_22); +lean_dec(x_12); +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); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_23, 0, x_27); +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +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_28); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_32 = lean_ctor_get(x_23, 1); +x_33 = lean_ctor_get(x_23, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec(x_24); +x_35 = l_Lean_Compiler_LCNF_Decl_getArity(x_34); +x_36 = lean_unsigned_to_nat(0u); +x_37 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_36); +x_38 = lean_nat_dec_eq(x_35, x_37); +lean_dec(x_35); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_22); +lean_dec(x_12); +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); +x_39 = lean_box(0); +lean_ctor_set(x_23, 0, x_39); +return x_23; +} +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_free_object(x_23); +lean_inc(x_34); +x_40 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_34, x_22); +x_41 = lean_ctor_get(x_34, 3); +lean_inc(x_41); +lean_dec(x_34); +x_42 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_37); +x_43 = lean_mk_array(x_37, x_42); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_sub(x_37, x_44); +lean_dec(x_37); +x_46 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_43, x_45); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_47 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_41, x_40, x_46, x_10, x_4, x_5, x_6, x_7, x_8, x_32); +lean_dec(x_41); +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); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_49); +return x_50; +} +else +{ +uint8_t x_51; +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); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +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_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_55 = lean_ctor_get(x_23, 1); +lean_inc(x_55); +lean_dec(x_23); +x_56 = lean_ctor_get(x_24, 0); +lean_inc(x_56); +lean_dec(x_24); +x_57 = l_Lean_Compiler_LCNF_Decl_getArity(x_56); +x_58 = lean_unsigned_to_nat(0u); +x_59 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_58); +x_60 = lean_nat_dec_eq(x_57, x_59); +lean_dec(x_57); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_59); +lean_dec(x_56); +lean_dec(x_22); +lean_dec(x_12); +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); +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_55); +return x_62; +} +else +{ +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_inc(x_56); +x_63 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_56, x_22); +x_64 = lean_ctor_get(x_56, 3); +lean_inc(x_64); +lean_dec(x_56); +x_65 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_59); +x_66 = lean_mk_array(x_59, x_65); +x_67 = lean_unsigned_to_nat(1u); +x_68 = lean_nat_sub(x_59, x_67); +lean_dec(x_59); +x_69 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_66, x_68); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_70 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_64, x_63, x_69, x_10, x_4, x_5, x_6, x_7, x_8, x_55); +lean_dec(x_64); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_72); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +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); +x_74 = lean_ctor_get(x_70, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_76 = x_70; +} else { + lean_dec_ref(x_70); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_22); +lean_dec(x_12); +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); +x_78 = !lean_is_exclusive(x_23); +if (x_78 == 0) +{ +return x_23; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_23, 0); +x_80 = lean_ctor_get(x_23, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_23); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_20); +lean_dec(x_12); +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); +x_82 = lean_box(0); +if (lean_is_scalar(x_17)) { + x_83 = lean_alloc_ctor(0, 2, 0); +} else { + x_83 = x_17; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_16); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_12); +x_84 = lean_ctor_get(x_19, 0); +lean_inc(x_84); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + x_85 = x_19; +} else { + lean_dec_ref(x_19); + x_85 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_17); +x_86 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_87 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_86, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +return x_87; +} +else +{ +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; uint8_t x_95; uint8_t x_96; lean_object* x_97; +x_88 = lean_ctor_get(x_84, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); +lean_dec(x_84); +x_90 = lean_ctor_get(x_2, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_2, 1); +lean_inc(x_91); +lean_dec(x_2); +x_92 = lean_ctor_get(x_88, 3); +lean_inc(x_92); +lean_dec(x_88); +x_93 = lean_nat_add(x_92, x_90); +lean_dec(x_90); +lean_dec(x_92); +x_94 = lean_array_get_size(x_89); +x_95 = lean_nat_dec_lt(x_93, x_94); +lean_dec(x_94); +x_96 = l_List_isEmpty___rarg(x_91); +if (x_95 == 0) +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_93); +lean_dec(x_89); +x_105 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_106 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_105); +x_97 = x_106; +goto block_104; +} +else +{ +lean_object* x_107; +x_107 = lean_array_fget(x_89, x_93); +lean_dec(x_93); +lean_dec(x_89); +x_97 = x_107; +goto block_104; +} +block_104: +{ +if (x_96 == 0) +{ +lean_dec(x_85); +lean_dec(x_17); +x_1 = x_97; +x_2 = x_91; +x_9 = x_16; +goto _start; +} +else +{ +lean_dec(x_91); +if (lean_obj_tag(x_97) == 1) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +lean_dec(x_97); +if (lean_is_scalar(x_85)) { + x_100 = lean_alloc_ctor(1, 1, 0); +} else { + x_100 = x_85; +} +lean_ctor_set(x_100, 0, x_99); +if (lean_is_scalar(x_17)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_17; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_16); +return x_101; +} +else +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_97); +lean_dec(x_85); +lean_dec(x_17); +x_102 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_103 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_102, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +return x_103; +} +} +} +} +} +} +case 1: +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_108 = lean_ctor_get(x_11, 1); +lean_inc(x_108); +lean_dec(x_11); +x_109 = lean_st_ref_get(x_8, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; +} else { + lean_dec_ref(x_109); + x_112 = lean_box(0); +} +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +lean_dec(x_110); +lean_inc(x_12); +x_114 = l_Lean_Expr_constructorApp_x3f(x_113, x_12); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; +x_115 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_115) == 4) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_112); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +lean_inc(x_8); +lean_inc(x_7); +x_118 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_116, x_7, x_8, x_111); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +if (lean_obj_tag(x_119) == 0) +{ +uint8_t x_120; +lean_dec(x_117); +lean_dec(x_12); +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); +x_120 = !lean_is_exclusive(x_118); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_118, 0); +lean_dec(x_121); +x_122 = lean_box(0); +lean_ctor_set(x_118, 0, x_122); +return x_118; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_118, 1); +lean_inc(x_123); +lean_dec(x_118); +x_124 = lean_box(0); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +} +else +{ +uint8_t x_126; +x_126 = !lean_is_exclusive(x_118); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; +x_127 = lean_ctor_get(x_118, 1); +x_128 = lean_ctor_get(x_118, 0); +lean_dec(x_128); +x_129 = lean_ctor_get(x_119, 0); +lean_inc(x_129); +lean_dec(x_119); +x_130 = l_Lean_Compiler_LCNF_Decl_getArity(x_129); +x_131 = lean_unsigned_to_nat(0u); +x_132 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_131); +x_133 = lean_nat_dec_eq(x_130, x_132); +lean_dec(x_130); +if (x_133 == 0) +{ +lean_object* x_134; +lean_dec(x_132); +lean_dec(x_129); +lean_dec(x_117); +lean_dec(x_12); +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); +x_134 = lean_box(0); +lean_ctor_set(x_118, 0, x_134); +return x_118; +} +else +{ +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_object* x_142; +lean_free_object(x_118); +lean_inc(x_129); +x_135 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_129, x_117); +x_136 = lean_ctor_get(x_129, 3); +lean_inc(x_136); +lean_dec(x_129); +x_137 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_132); +x_138 = lean_mk_array(x_132, x_137); +x_139 = lean_unsigned_to_nat(1u); +x_140 = lean_nat_sub(x_132, x_139); +lean_dec(x_132); +x_141 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_138, x_140); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_142 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_136, x_135, x_141, x_10, x_4, x_5, x_6, x_7, x_8, x_127); +lean_dec(x_136); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +x_145 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_143, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_144); +return x_145; +} +else +{ +uint8_t x_146; +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); +x_146 = !lean_is_exclusive(x_142); +if (x_146 == 0) +{ +return x_142; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_142, 0); +x_148 = lean_ctor_get(x_142, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_142); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +return x_149; +} +} +} +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_ctor_get(x_118, 1); +lean_inc(x_150); +lean_dec(x_118); +x_151 = lean_ctor_get(x_119, 0); +lean_inc(x_151); +lean_dec(x_119); +x_152 = l_Lean_Compiler_LCNF_Decl_getArity(x_151); +x_153 = lean_unsigned_to_nat(0u); +x_154 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_153); +x_155 = lean_nat_dec_eq(x_152, x_154); +lean_dec(x_152); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec(x_154); +lean_dec(x_151); +lean_dec(x_117); +lean_dec(x_12); +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); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_150); +return x_157; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_inc(x_151); +x_158 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_151, x_117); +x_159 = lean_ctor_get(x_151, 3); +lean_inc(x_159); +lean_dec(x_151); +x_160 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_154); +x_161 = lean_mk_array(x_154, x_160); +x_162 = lean_unsigned_to_nat(1u); +x_163 = lean_nat_sub(x_154, x_162); +lean_dec(x_154); +x_164 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_161, x_163); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_165 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_159, x_158, x_164, x_10, x_4, x_5, x_6, x_7, x_8, x_150); +lean_dec(x_159); +if (lean_obj_tag(x_165) == 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_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_166, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_167); +return x_168; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +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); +x_169 = lean_ctor_get(x_165, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_165, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_171 = x_165; +} else { + lean_dec_ref(x_165); + x_171 = lean_box(0); +} +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); +} else { + x_172 = x_171; +} +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; +} +} +} +} +} +else +{ +uint8_t x_173; +lean_dec(x_117); +lean_dec(x_12); +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); +x_173 = !lean_is_exclusive(x_118); +if (x_173 == 0) +{ +return x_118; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_118, 0); +x_175 = lean_ctor_get(x_118, 1); +lean_inc(x_175); +lean_inc(x_174); +lean_dec(x_118); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; +lean_dec(x_115); +lean_dec(x_12); +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); +x_177 = lean_box(0); +if (lean_is_scalar(x_112)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_112; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_111); +return x_178; +} +} +else +{ +lean_object* x_179; lean_object* x_180; +lean_dec(x_12); +x_179 = lean_ctor_get(x_114, 0); +lean_inc(x_179); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + x_180 = x_114; +} else { + lean_dec_ref(x_114); + x_180 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_181; lean_object* x_182; +lean_dec(x_180); +lean_dec(x_179); +lean_dec(x_112); +x_181 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_182 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_181, x_3, x_4, x_5, x_6, x_7, x_8, x_111); +return x_182; +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; uint8_t x_191; lean_object* x_192; +x_183 = lean_ctor_get(x_179, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_179, 1); +lean_inc(x_184); +lean_dec(x_179); +x_185 = lean_ctor_get(x_2, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_2, 1); +lean_inc(x_186); +lean_dec(x_2); +x_187 = lean_ctor_get(x_183, 3); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_nat_add(x_187, x_185); +lean_dec(x_185); +lean_dec(x_187); +x_189 = lean_array_get_size(x_184); +x_190 = lean_nat_dec_lt(x_188, x_189); +lean_dec(x_189); +x_191 = l_List_isEmpty___rarg(x_186); +if (x_190 == 0) +{ +lean_object* x_200; lean_object* x_201; +lean_dec(x_188); +lean_dec(x_184); +x_200 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_201 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_200); +x_192 = x_201; +goto block_199; +} +else +{ +lean_object* x_202; +x_202 = lean_array_fget(x_184, x_188); +lean_dec(x_188); +lean_dec(x_184); +x_192 = x_202; +goto block_199; +} +block_199: +{ +if (x_191 == 0) +{ +lean_dec(x_180); +lean_dec(x_112); +x_1 = x_192; +x_2 = x_186; +x_9 = x_111; +goto _start; +} +else +{ +lean_dec(x_186); +if (lean_obj_tag(x_192) == 1) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_194 = lean_ctor_get(x_192, 0); +lean_inc(x_194); +lean_dec(x_192); +if (lean_is_scalar(x_180)) { + x_195 = lean_alloc_ctor(1, 1, 0); +} else { + x_195 = x_180; +} +lean_ctor_set(x_195, 0, x_194); +if (lean_is_scalar(x_112)) { + x_196 = lean_alloc_ctor(0, 2, 0); +} else { + x_196 = x_112; +} +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_111); +return x_196; +} +else +{ +lean_object* x_197; lean_object* x_198; +lean_dec(x_192); +lean_dec(x_180); +lean_dec(x_112); +x_197 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_198 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_197, x_3, x_4, x_5, x_6, x_7, x_8, x_111); +return x_198; +} +} +} +} +} +} +case 2: +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_203 = lean_ctor_get(x_11, 1); +lean_inc(x_203); +lean_dec(x_11); +x_204 = lean_st_ref_get(x_8, x_203); +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_ctor_get(x_205, 0); +lean_inc(x_208); +lean_dec(x_205); +lean_inc(x_12); +x_209 = l_Lean_Expr_constructorApp_x3f(x_208, x_12); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; +x_210 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_210) == 4) +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; +lean_dec(x_207); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +lean_inc(x_8); +lean_inc(x_7); +x_213 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_211, x_7, x_8, x_206); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +if (lean_obj_tag(x_214) == 0) +{ +uint8_t x_215; +lean_dec(x_212); +lean_dec(x_12); +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); +x_215 = !lean_is_exclusive(x_213); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; +x_216 = lean_ctor_get(x_213, 0); +lean_dec(x_216); +x_217 = lean_box(0); +lean_ctor_set(x_213, 0, x_217); +return x_213; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_213, 1); +lean_inc(x_218); +lean_dec(x_213); +x_219 = lean_box(0); +x_220 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_218); +return x_220; +} +} +else +{ +uint8_t x_221; +x_221 = !lean_is_exclusive(x_213); +if (x_221 == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; +x_222 = lean_ctor_get(x_213, 1); +x_223 = lean_ctor_get(x_213, 0); +lean_dec(x_223); +x_224 = lean_ctor_get(x_214, 0); +lean_inc(x_224); +lean_dec(x_214); +x_225 = l_Lean_Compiler_LCNF_Decl_getArity(x_224); +x_226 = lean_unsigned_to_nat(0u); +x_227 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_226); +x_228 = lean_nat_dec_eq(x_225, x_227); +lean_dec(x_225); +if (x_228 == 0) +{ +lean_object* x_229; +lean_dec(x_227); +lean_dec(x_224); +lean_dec(x_212); +lean_dec(x_12); +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); +x_229 = lean_box(0); +lean_ctor_set(x_213, 0, x_229); +return x_213; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +lean_free_object(x_213); +lean_inc(x_224); +x_230 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_224, x_212); +x_231 = lean_ctor_get(x_224, 3); +lean_inc(x_231); +lean_dec(x_224); +x_232 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_227); +x_233 = lean_mk_array(x_227, x_232); +x_234 = lean_unsigned_to_nat(1u); +x_235 = lean_nat_sub(x_227, x_234); +lean_dec(x_227); +x_236 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_233, x_235); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_237 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_231, x_230, x_236, x_10, x_4, x_5, x_6, x_7, x_8, x_222); +lean_dec(x_231); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_238, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_239); +return x_240; +} +else +{ +uint8_t x_241; +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); +x_241 = !lean_is_exclusive(x_237); +if (x_241 == 0) +{ +return x_237; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_237, 0); +x_243 = lean_ctor_get(x_237, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_237); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +return x_244; +} +} +} +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; +x_245 = lean_ctor_get(x_213, 1); +lean_inc(x_245); +lean_dec(x_213); +x_246 = lean_ctor_get(x_214, 0); +lean_inc(x_246); +lean_dec(x_214); +x_247 = l_Lean_Compiler_LCNF_Decl_getArity(x_246); +x_248 = lean_unsigned_to_nat(0u); +x_249 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_248); +x_250 = lean_nat_dec_eq(x_247, x_249); +lean_dec(x_247); +if (x_250 == 0) +{ +lean_object* x_251; lean_object* x_252; +lean_dec(x_249); +lean_dec(x_246); +lean_dec(x_212); +lean_dec(x_12); +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); +x_251 = lean_box(0); +x_252 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_245); +return x_252; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_inc(x_246); +x_253 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_246, x_212); +x_254 = lean_ctor_get(x_246, 3); +lean_inc(x_254); +lean_dec(x_246); +x_255 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_249); +x_256 = lean_mk_array(x_249, x_255); +x_257 = lean_unsigned_to_nat(1u); +x_258 = lean_nat_sub(x_249, x_257); +lean_dec(x_249); +x_259 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_256, x_258); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_260 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_254, x_253, x_259, x_10, x_4, x_5, x_6, x_7, x_8, x_245); +lean_dec(x_254); +if (lean_obj_tag(x_260) == 0) +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +lean_dec(x_260); +x_263 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_261, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_262); +return x_263; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +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); +x_264 = lean_ctor_get(x_260, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_260, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + lean_ctor_release(x_260, 1); + x_266 = x_260; +} else { + lean_dec_ref(x_260); + x_266 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); +} else { + x_267 = x_266; +} +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; +} +} +} +} +} +else +{ +uint8_t x_268; +lean_dec(x_212); +lean_dec(x_12); +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); +x_268 = !lean_is_exclusive(x_213); +if (x_268 == 0) +{ +return x_213; +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_269 = lean_ctor_get(x_213, 0); +x_270 = lean_ctor_get(x_213, 1); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_213); +x_271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_271, 0, x_269); +lean_ctor_set(x_271, 1, x_270); +return x_271; +} +} +} +else +{ +lean_object* x_272; lean_object* x_273; +lean_dec(x_210); +lean_dec(x_12); +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); +x_272 = lean_box(0); +if (lean_is_scalar(x_207)) { + x_273 = lean_alloc_ctor(0, 2, 0); +} else { + x_273 = x_207; +} +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_206); +return x_273; +} +} +else +{ +lean_object* x_274; lean_object* x_275; +lean_dec(x_12); +x_274 = lean_ctor_get(x_209, 0); +lean_inc(x_274); +if (lean_is_exclusive(x_209)) { + lean_ctor_release(x_209, 0); + x_275 = x_209; +} else { + lean_dec_ref(x_209); + x_275 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_276; lean_object* x_277; +lean_dec(x_275); +lean_dec(x_274); +lean_dec(x_207); +x_276 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_277 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_276, x_3, x_4, x_5, x_6, x_7, x_8, x_206); +return x_277; +} +else +{ +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; uint8_t x_286; lean_object* x_287; +x_278 = lean_ctor_get(x_274, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_274, 1); +lean_inc(x_279); +lean_dec(x_274); +x_280 = lean_ctor_get(x_2, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_2, 1); +lean_inc(x_281); +lean_dec(x_2); +x_282 = lean_ctor_get(x_278, 3); +lean_inc(x_282); +lean_dec(x_278); +x_283 = lean_nat_add(x_282, x_280); +lean_dec(x_280); +lean_dec(x_282); +x_284 = lean_array_get_size(x_279); +x_285 = lean_nat_dec_lt(x_283, x_284); +lean_dec(x_284); +x_286 = l_List_isEmpty___rarg(x_281); +if (x_285 == 0) +{ +lean_object* x_295; lean_object* x_296; +lean_dec(x_283); +lean_dec(x_279); +x_295 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_296 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_295); +x_287 = x_296; +goto block_294; +} +else +{ +lean_object* x_297; +x_297 = lean_array_fget(x_279, x_283); +lean_dec(x_283); +lean_dec(x_279); +x_287 = x_297; +goto block_294; +} +block_294: +{ +if (x_286 == 0) +{ +lean_dec(x_275); +lean_dec(x_207); +x_1 = x_287; +x_2 = x_281; +x_9 = x_206; +goto _start; +} +else +{ +lean_dec(x_281); +if (lean_obj_tag(x_287) == 1) +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_289 = lean_ctor_get(x_287, 0); +lean_inc(x_289); +lean_dec(x_287); +if (lean_is_scalar(x_275)) { + x_290 = lean_alloc_ctor(1, 1, 0); +} else { + x_290 = x_275; +} +lean_ctor_set(x_290, 0, x_289); +if (lean_is_scalar(x_207)) { + x_291 = lean_alloc_ctor(0, 2, 0); +} else { + x_291 = x_207; +} +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_206); +return x_291; +} +else +{ +lean_object* x_292; lean_object* x_293; +lean_dec(x_287); +lean_dec(x_275); +lean_dec(x_207); +x_292 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_293 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_292, x_3, x_4, x_5, x_6, x_7, x_8, x_206); +return x_293; +} +} +} +} +} +} +case 3: +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_298 = lean_ctor_get(x_11, 1); +lean_inc(x_298); +lean_dec(x_11); +x_299 = lean_st_ref_get(x_8, x_298); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_299, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + x_302 = x_299; +} else { + lean_dec_ref(x_299); + x_302 = lean_box(0); +} +x_303 = lean_ctor_get(x_300, 0); +lean_inc(x_303); +lean_dec(x_300); +lean_inc(x_12); +x_304 = l_Lean_Expr_constructorApp_x3f(x_303, x_12); +if (lean_obj_tag(x_304) == 0) +{ +lean_object* x_305; +x_305 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_305) == 4) +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; +lean_dec(x_302); +x_306 = lean_ctor_get(x_305, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_305, 1); +lean_inc(x_307); +lean_dec(x_305); +lean_inc(x_8); +lean_inc(x_7); +x_308 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_306, x_7, x_8, x_301); +if (lean_obj_tag(x_308) == 0) +{ +lean_object* x_309; +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +if (lean_obj_tag(x_309) == 0) +{ +uint8_t x_310; +lean_dec(x_307); +lean_dec(x_12); +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); +x_310 = !lean_is_exclusive(x_308); +if (x_310 == 0) +{ +lean_object* x_311; lean_object* x_312; +x_311 = lean_ctor_get(x_308, 0); +lean_dec(x_311); +x_312 = lean_box(0); +lean_ctor_set(x_308, 0, x_312); +return x_308; +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_313 = lean_ctor_get(x_308, 1); +lean_inc(x_313); +lean_dec(x_308); +x_314 = lean_box(0); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_313); +return x_315; +} +} +else +{ +uint8_t x_316; +x_316 = !lean_is_exclusive(x_308); +if (x_316 == 0) +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; +x_317 = lean_ctor_get(x_308, 1); +x_318 = lean_ctor_get(x_308, 0); +lean_dec(x_318); +x_319 = lean_ctor_get(x_309, 0); +lean_inc(x_319); +lean_dec(x_309); +x_320 = l_Lean_Compiler_LCNF_Decl_getArity(x_319); +x_321 = lean_unsigned_to_nat(0u); +x_322 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_321); +x_323 = lean_nat_dec_eq(x_320, x_322); +lean_dec(x_320); +if (x_323 == 0) +{ +lean_object* x_324; +lean_dec(x_322); +lean_dec(x_319); +lean_dec(x_307); +lean_dec(x_12); +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); +x_324 = lean_box(0); +lean_ctor_set(x_308, 0, x_324); +return x_308; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +lean_free_object(x_308); +lean_inc(x_319); +x_325 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_319, x_307); +x_326 = lean_ctor_get(x_319, 3); +lean_inc(x_326); +lean_dec(x_319); +x_327 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_322); +x_328 = lean_mk_array(x_322, x_327); +x_329 = lean_unsigned_to_nat(1u); +x_330 = lean_nat_sub(x_322, x_329); +lean_dec(x_322); +x_331 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_328, x_330); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_332 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_326, x_325, x_331, x_10, x_4, x_5, x_6, x_7, x_8, x_317); +lean_dec(x_326); +if (lean_obj_tag(x_332) == 0) +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_332, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_332, 1); +lean_inc(x_334); +lean_dec(x_332); +x_335 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_333, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_334); +return x_335; +} +else +{ +uint8_t x_336; +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); +x_336 = !lean_is_exclusive(x_332); +if (x_336 == 0) +{ +return x_332; +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_332, 0); +x_338 = lean_ctor_get(x_332, 1); +lean_inc(x_338); +lean_inc(x_337); +lean_dec(x_332); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_337); +lean_ctor_set(x_339, 1, x_338); +return x_339; +} +} +} +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; +x_340 = lean_ctor_get(x_308, 1); +lean_inc(x_340); +lean_dec(x_308); +x_341 = lean_ctor_get(x_309, 0); +lean_inc(x_341); +lean_dec(x_309); +x_342 = l_Lean_Compiler_LCNF_Decl_getArity(x_341); +x_343 = lean_unsigned_to_nat(0u); +x_344 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_343); +x_345 = lean_nat_dec_eq(x_342, x_344); +lean_dec(x_342); +if (x_345 == 0) +{ +lean_object* x_346; lean_object* x_347; +lean_dec(x_344); +lean_dec(x_341); +lean_dec(x_307); +lean_dec(x_12); +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); +x_346 = lean_box(0); +x_347 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_347, 0, x_346); +lean_ctor_set(x_347, 1, x_340); +return x_347; +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +lean_inc(x_341); +x_348 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_341, x_307); +x_349 = lean_ctor_get(x_341, 3); +lean_inc(x_349); +lean_dec(x_341); +x_350 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_344); +x_351 = lean_mk_array(x_344, x_350); +x_352 = lean_unsigned_to_nat(1u); +x_353 = lean_nat_sub(x_344, x_352); +lean_dec(x_344); +x_354 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_351, x_353); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_355 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_349, x_348, x_354, x_10, x_4, x_5, x_6, x_7, x_8, x_340); +lean_dec(x_349); +if (lean_obj_tag(x_355) == 0) +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +lean_dec(x_355); +x_358 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_356, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_357); +return x_358; +} +else +{ +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +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); +x_359 = lean_ctor_get(x_355, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_355, 1); +lean_inc(x_360); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_361 = x_355; +} else { + lean_dec_ref(x_355); + x_361 = lean_box(0); +} +if (lean_is_scalar(x_361)) { + x_362 = lean_alloc_ctor(1, 2, 0); +} else { + x_362 = x_361; +} +lean_ctor_set(x_362, 0, x_359); +lean_ctor_set(x_362, 1, x_360); +return x_362; +} +} +} +} +} +else +{ +uint8_t x_363; +lean_dec(x_307); +lean_dec(x_12); +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); +x_363 = !lean_is_exclusive(x_308); +if (x_363 == 0) +{ +return x_308; +} +else +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_364 = lean_ctor_get(x_308, 0); +x_365 = lean_ctor_get(x_308, 1); +lean_inc(x_365); +lean_inc(x_364); +lean_dec(x_308); +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_364); +lean_ctor_set(x_366, 1, x_365); +return x_366; +} +} +} +else +{ +lean_object* x_367; lean_object* x_368; +lean_dec(x_305); +lean_dec(x_12); +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); +x_367 = lean_box(0); +if (lean_is_scalar(x_302)) { + x_368 = lean_alloc_ctor(0, 2, 0); +} else { + x_368 = x_302; +} +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_301); +return x_368; +} +} +else +{ +lean_object* x_369; lean_object* x_370; +lean_dec(x_12); +x_369 = lean_ctor_get(x_304, 0); +lean_inc(x_369); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + x_370 = x_304; +} else { + lean_dec_ref(x_304); + x_370 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_371; lean_object* x_372; +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_302); +x_371 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_372 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_371, x_3, x_4, x_5, x_6, x_7, x_8, x_301); +return x_372; +} +else +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; uint8_t x_381; lean_object* x_382; +x_373 = lean_ctor_get(x_369, 0); +lean_inc(x_373); +x_374 = lean_ctor_get(x_369, 1); +lean_inc(x_374); +lean_dec(x_369); +x_375 = lean_ctor_get(x_2, 0); +lean_inc(x_375); +x_376 = lean_ctor_get(x_2, 1); +lean_inc(x_376); +lean_dec(x_2); +x_377 = lean_ctor_get(x_373, 3); +lean_inc(x_377); +lean_dec(x_373); +x_378 = lean_nat_add(x_377, x_375); +lean_dec(x_375); +lean_dec(x_377); +x_379 = lean_array_get_size(x_374); +x_380 = lean_nat_dec_lt(x_378, x_379); +lean_dec(x_379); +x_381 = l_List_isEmpty___rarg(x_376); +if (x_380 == 0) +{ +lean_object* x_390; lean_object* x_391; +lean_dec(x_378); +lean_dec(x_374); +x_390 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_391 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_390); +x_382 = x_391; +goto block_389; +} +else +{ +lean_object* x_392; +x_392 = lean_array_fget(x_374, x_378); +lean_dec(x_378); +lean_dec(x_374); +x_382 = x_392; +goto block_389; +} +block_389: +{ +if (x_381 == 0) +{ +lean_dec(x_370); +lean_dec(x_302); +x_1 = x_382; +x_2 = x_376; +x_9 = x_301; +goto _start; +} +else +{ +lean_dec(x_376); +if (lean_obj_tag(x_382) == 1) +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_384 = lean_ctor_get(x_382, 0); +lean_inc(x_384); +lean_dec(x_382); +if (lean_is_scalar(x_370)) { + x_385 = lean_alloc_ctor(1, 1, 0); +} else { + x_385 = x_370; +} +lean_ctor_set(x_385, 0, x_384); +if (lean_is_scalar(x_302)) { + x_386 = lean_alloc_ctor(0, 2, 0); +} else { + x_386 = x_302; +} +lean_ctor_set(x_386, 0, x_385); +lean_ctor_set(x_386, 1, x_301); +return x_386; +} +else +{ +lean_object* x_387; lean_object* x_388; +lean_dec(x_382); +lean_dec(x_370); +lean_dec(x_302); +x_387 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_388 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_387, x_3, x_4, x_5, x_6, x_7, x_8, x_301); +return x_388; +} +} +} +} +} +} +case 4: +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_393 = lean_ctor_get(x_11, 1); +lean_inc(x_393); +lean_dec(x_11); +x_394 = lean_st_ref_get(x_8, x_393); +x_395 = lean_ctor_get(x_394, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_394, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_397 = x_394; +} else { + lean_dec_ref(x_394); + x_397 = lean_box(0); +} +x_398 = lean_ctor_get(x_395, 0); +lean_inc(x_398); +lean_dec(x_395); +lean_inc(x_12); +x_399 = l_Lean_Expr_constructorApp_x3f(x_398, x_12); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; +x_400 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_400) == 4) +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; +lean_dec(x_397); +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +lean_inc(x_8); +lean_inc(x_7); +x_403 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_401, x_7, x_8, x_396); +if (lean_obj_tag(x_403) == 0) +{ +lean_object* x_404; +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +if (lean_obj_tag(x_404) == 0) +{ +uint8_t x_405; +lean_dec(x_402); +lean_dec(x_12); +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); +x_405 = !lean_is_exclusive(x_403); +if (x_405 == 0) +{ +lean_object* x_406; lean_object* x_407; +x_406 = lean_ctor_get(x_403, 0); +lean_dec(x_406); +x_407 = lean_box(0); +lean_ctor_set(x_403, 0, x_407); +return x_403; +} +else +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_408 = lean_ctor_get(x_403, 1); +lean_inc(x_408); +lean_dec(x_403); +x_409 = lean_box(0); +x_410 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_410, 0, x_409); +lean_ctor_set(x_410, 1, x_408); +return x_410; +} +} +else +{ +uint8_t x_411; +x_411 = !lean_is_exclusive(x_403); +if (x_411 == 0) +{ +lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; +x_412 = lean_ctor_get(x_403, 1); +x_413 = lean_ctor_get(x_403, 0); +lean_dec(x_413); +x_414 = lean_ctor_get(x_404, 0); +lean_inc(x_414); +lean_dec(x_404); +x_415 = l_Lean_Compiler_LCNF_Decl_getArity(x_414); +x_416 = lean_unsigned_to_nat(0u); +x_417 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_416); +x_418 = lean_nat_dec_eq(x_415, x_417); +lean_dec(x_415); +if (x_418 == 0) +{ +lean_object* x_419; +lean_dec(x_417); +lean_dec(x_414); +lean_dec(x_402); +lean_dec(x_12); +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); +x_419 = lean_box(0); +lean_ctor_set(x_403, 0, x_419); +return x_403; +} +else +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_free_object(x_403); +lean_inc(x_414); +x_420 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_414, x_402); +x_421 = lean_ctor_get(x_414, 3); +lean_inc(x_421); +lean_dec(x_414); +x_422 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_417); +x_423 = lean_mk_array(x_417, x_422); +x_424 = lean_unsigned_to_nat(1u); +x_425 = lean_nat_sub(x_417, x_424); +lean_dec(x_417); +x_426 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_423, x_425); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_427 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_421, x_420, x_426, x_10, x_4, x_5, x_6, x_7, x_8, x_412); +lean_dec(x_421); +if (lean_obj_tag(x_427) == 0) +{ +lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_428 = lean_ctor_get(x_427, 0); +lean_inc(x_428); +x_429 = lean_ctor_get(x_427, 1); +lean_inc(x_429); +lean_dec(x_427); +x_430 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_428, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_429); +return x_430; +} +else +{ +uint8_t x_431; +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); +x_431 = !lean_is_exclusive(x_427); +if (x_431 == 0) +{ +return x_427; +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_427, 0); +x_433 = lean_ctor_get(x_427, 1); +lean_inc(x_433); +lean_inc(x_432); +lean_dec(x_427); +x_434 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_434, 0, x_432); +lean_ctor_set(x_434, 1, x_433); +return x_434; +} +} +} +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; uint8_t x_440; +x_435 = lean_ctor_get(x_403, 1); +lean_inc(x_435); +lean_dec(x_403); +x_436 = lean_ctor_get(x_404, 0); +lean_inc(x_436); +lean_dec(x_404); +x_437 = l_Lean_Compiler_LCNF_Decl_getArity(x_436); +x_438 = lean_unsigned_to_nat(0u); +x_439 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_438); +x_440 = lean_nat_dec_eq(x_437, x_439); +lean_dec(x_437); +if (x_440 == 0) +{ +lean_object* x_441; lean_object* x_442; +lean_dec(x_439); +lean_dec(x_436); +lean_dec(x_402); +lean_dec(x_12); +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); +x_441 = lean_box(0); +x_442 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_435); +return x_442; +} +else +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +lean_inc(x_436); +x_443 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_436, x_402); +x_444 = lean_ctor_get(x_436, 3); +lean_inc(x_444); +lean_dec(x_436); +x_445 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_439); +x_446 = lean_mk_array(x_439, x_445); +x_447 = lean_unsigned_to_nat(1u); +x_448 = lean_nat_sub(x_439, x_447); +lean_dec(x_439); +x_449 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_446, x_448); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_450 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_444, x_443, x_449, x_10, x_4, x_5, x_6, x_7, x_8, x_435); +lean_dec(x_444); +if (lean_obj_tag(x_450) == 0) +{ +lean_object* x_451; lean_object* x_452; lean_object* x_453; +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +lean_dec(x_450); +x_453 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_451, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_452); +return x_453; +} +else +{ +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +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); +x_454 = lean_ctor_get(x_450, 0); +lean_inc(x_454); +x_455 = lean_ctor_get(x_450, 1); +lean_inc(x_455); +if (lean_is_exclusive(x_450)) { + lean_ctor_release(x_450, 0); + lean_ctor_release(x_450, 1); + x_456 = x_450; +} else { + lean_dec_ref(x_450); + x_456 = lean_box(0); +} +if (lean_is_scalar(x_456)) { + x_457 = lean_alloc_ctor(1, 2, 0); +} else { + x_457 = x_456; +} +lean_ctor_set(x_457, 0, x_454); +lean_ctor_set(x_457, 1, x_455); +return x_457; +} +} +} +} +} +else +{ +uint8_t x_458; +lean_dec(x_402); +lean_dec(x_12); +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); +x_458 = !lean_is_exclusive(x_403); +if (x_458 == 0) +{ +return x_403; +} +else +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; +x_459 = lean_ctor_get(x_403, 0); +x_460 = lean_ctor_get(x_403, 1); +lean_inc(x_460); +lean_inc(x_459); +lean_dec(x_403); +x_461 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_461, 0, x_459); +lean_ctor_set(x_461, 1, x_460); +return x_461; +} +} +} +else +{ +lean_object* x_462; lean_object* x_463; +lean_dec(x_400); +lean_dec(x_12); +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); +x_462 = lean_box(0); +if (lean_is_scalar(x_397)) { + x_463 = lean_alloc_ctor(0, 2, 0); +} else { + x_463 = x_397; +} +lean_ctor_set(x_463, 0, x_462); +lean_ctor_set(x_463, 1, x_396); +return x_463; +} +} +else +{ +lean_object* x_464; lean_object* x_465; +lean_dec(x_12); +x_464 = lean_ctor_get(x_399, 0); +lean_inc(x_464); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + x_465 = x_399; +} else { + lean_dec_ref(x_399); + x_465 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_466; lean_object* x_467; +lean_dec(x_465); +lean_dec(x_464); +lean_dec(x_397); +x_466 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_467 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_466, x_3, x_4, x_5, x_6, x_7, x_8, x_396); +return x_467; +} +else +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; uint8_t x_475; uint8_t x_476; lean_object* x_477; +x_468 = lean_ctor_get(x_464, 0); +lean_inc(x_468); +x_469 = lean_ctor_get(x_464, 1); +lean_inc(x_469); +lean_dec(x_464); +x_470 = lean_ctor_get(x_2, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_2, 1); +lean_inc(x_471); +lean_dec(x_2); +x_472 = lean_ctor_get(x_468, 3); +lean_inc(x_472); +lean_dec(x_468); +x_473 = lean_nat_add(x_472, x_470); +lean_dec(x_470); +lean_dec(x_472); +x_474 = lean_array_get_size(x_469); +x_475 = lean_nat_dec_lt(x_473, x_474); +lean_dec(x_474); +x_476 = l_List_isEmpty___rarg(x_471); +if (x_475 == 0) +{ +lean_object* x_485; lean_object* x_486; +lean_dec(x_473); +lean_dec(x_469); +x_485 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_486 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_485); +x_477 = x_486; +goto block_484; +} +else +{ +lean_object* x_487; +x_487 = lean_array_fget(x_469, x_473); +lean_dec(x_473); +lean_dec(x_469); +x_477 = x_487; +goto block_484; +} +block_484: +{ +if (x_476 == 0) +{ +lean_dec(x_465); +lean_dec(x_397); +x_1 = x_477; +x_2 = x_471; +x_9 = x_396; +goto _start; +} +else +{ +lean_dec(x_471); +if (lean_obj_tag(x_477) == 1) +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_479 = lean_ctor_get(x_477, 0); +lean_inc(x_479); +lean_dec(x_477); +if (lean_is_scalar(x_465)) { + x_480 = lean_alloc_ctor(1, 1, 0); +} else { + x_480 = x_465; +} +lean_ctor_set(x_480, 0, x_479); +if (lean_is_scalar(x_397)) { + x_481 = lean_alloc_ctor(0, 2, 0); +} else { + x_481 = x_397; +} +lean_ctor_set(x_481, 0, x_480); +lean_ctor_set(x_481, 1, x_396); +return x_481; +} +else +{ +lean_object* x_482; lean_object* x_483; +lean_dec(x_477); +lean_dec(x_465); +lean_dec(x_397); +x_482 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_483 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_482, x_3, x_4, x_5, x_6, x_7, x_8, x_396); +return x_483; +} +} +} +} +} +} +case 5: +{ +lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_488 = lean_ctor_get(x_11, 1); +lean_inc(x_488); +lean_dec(x_11); +x_489 = lean_st_ref_get(x_8, x_488); +x_490 = lean_ctor_get(x_489, 0); +lean_inc(x_490); +x_491 = lean_ctor_get(x_489, 1); +lean_inc(x_491); +if (lean_is_exclusive(x_489)) { + lean_ctor_release(x_489, 0); + lean_ctor_release(x_489, 1); + x_492 = x_489; +} else { + lean_dec_ref(x_489); + x_492 = lean_box(0); +} +x_493 = lean_ctor_get(x_490, 0); +lean_inc(x_493); +lean_dec(x_490); +lean_inc(x_12); +x_494 = l_Lean_Expr_constructorApp_x3f(x_493, x_12); +if (lean_obj_tag(x_494) == 0) +{ +lean_object* x_495; +x_495 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_495) == 4) +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; +lean_dec(x_492); +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +lean_inc(x_8); +lean_inc(x_7); +x_498 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_496, x_7, x_8, x_491); +if (lean_obj_tag(x_498) == 0) +{ +lean_object* x_499; +x_499 = lean_ctor_get(x_498, 0); +lean_inc(x_499); +if (lean_obj_tag(x_499) == 0) +{ +uint8_t x_500; +lean_dec(x_497); +lean_dec(x_12); +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); +x_500 = !lean_is_exclusive(x_498); +if (x_500 == 0) +{ +lean_object* x_501; lean_object* x_502; +x_501 = lean_ctor_get(x_498, 0); +lean_dec(x_501); +x_502 = lean_box(0); +lean_ctor_set(x_498, 0, x_502); +return x_498; +} +else +{ +lean_object* x_503; lean_object* x_504; lean_object* x_505; +x_503 = lean_ctor_get(x_498, 1); +lean_inc(x_503); +lean_dec(x_498); +x_504 = lean_box(0); +x_505 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_505, 0, x_504); +lean_ctor_set(x_505, 1, x_503); +return x_505; +} +} +else +{ +uint8_t x_506; +x_506 = !lean_is_exclusive(x_498); +if (x_506 == 0) +{ +lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; uint8_t x_513; +x_507 = lean_ctor_get(x_498, 1); +x_508 = lean_ctor_get(x_498, 0); +lean_dec(x_508); +x_509 = lean_ctor_get(x_499, 0); +lean_inc(x_509); +lean_dec(x_499); +x_510 = l_Lean_Compiler_LCNF_Decl_getArity(x_509); +x_511 = lean_unsigned_to_nat(0u); +x_512 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_511); +x_513 = lean_nat_dec_eq(x_510, x_512); +lean_dec(x_510); +if (x_513 == 0) +{ +lean_object* x_514; +lean_dec(x_512); +lean_dec(x_509); +lean_dec(x_497); +lean_dec(x_12); +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); +x_514 = lean_box(0); +lean_ctor_set(x_498, 0, x_514); +return x_498; +} +else +{ +lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; +lean_free_object(x_498); +lean_inc(x_509); +x_515 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_509, x_497); +x_516 = lean_ctor_get(x_509, 3); +lean_inc(x_516); +lean_dec(x_509); +x_517 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_512); +x_518 = lean_mk_array(x_512, x_517); +x_519 = lean_unsigned_to_nat(1u); +x_520 = lean_nat_sub(x_512, x_519); +lean_dec(x_512); +x_521 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_518, x_520); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_522 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_516, x_515, x_521, x_10, x_4, x_5, x_6, x_7, x_8, x_507); +lean_dec(x_516); +if (lean_obj_tag(x_522) == 0) +{ +lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_523 = lean_ctor_get(x_522, 0); +lean_inc(x_523); +x_524 = lean_ctor_get(x_522, 1); +lean_inc(x_524); +lean_dec(x_522); +x_525 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_523, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_524); +return x_525; +} +else +{ +uint8_t x_526; +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); +x_526 = !lean_is_exclusive(x_522); +if (x_526 == 0) +{ +return x_522; +} +else +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_527 = lean_ctor_get(x_522, 0); +x_528 = lean_ctor_get(x_522, 1); +lean_inc(x_528); +lean_inc(x_527); +lean_dec(x_522); +x_529 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_529, 0, x_527); +lean_ctor_set(x_529, 1, x_528); +return x_529; +} +} +} +} +else +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; +x_530 = lean_ctor_get(x_498, 1); +lean_inc(x_530); +lean_dec(x_498); +x_531 = lean_ctor_get(x_499, 0); +lean_inc(x_531); +lean_dec(x_499); +x_532 = l_Lean_Compiler_LCNF_Decl_getArity(x_531); +x_533 = lean_unsigned_to_nat(0u); +x_534 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_533); +x_535 = lean_nat_dec_eq(x_532, x_534); +lean_dec(x_532); +if (x_535 == 0) +{ +lean_object* x_536; lean_object* x_537; +lean_dec(x_534); +lean_dec(x_531); +lean_dec(x_497); +lean_dec(x_12); +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); +x_536 = lean_box(0); +x_537 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_537, 0, x_536); +lean_ctor_set(x_537, 1, x_530); +return x_537; +} +else +{ +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; +lean_inc(x_531); +x_538 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_531, x_497); +x_539 = lean_ctor_get(x_531, 3); +lean_inc(x_539); +lean_dec(x_531); +x_540 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_534); +x_541 = lean_mk_array(x_534, x_540); +x_542 = lean_unsigned_to_nat(1u); +x_543 = lean_nat_sub(x_534, x_542); +lean_dec(x_534); +x_544 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_541, x_543); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_545 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_539, x_538, x_544, x_10, x_4, x_5, x_6, x_7, x_8, x_530); +lean_dec(x_539); +if (lean_obj_tag(x_545) == 0) +{ +lean_object* x_546; lean_object* x_547; lean_object* x_548; +x_546 = lean_ctor_get(x_545, 0); +lean_inc(x_546); +x_547 = lean_ctor_get(x_545, 1); +lean_inc(x_547); +lean_dec(x_545); +x_548 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_546, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_547); +return x_548; +} +else +{ +lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; +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); +x_549 = lean_ctor_get(x_545, 0); +lean_inc(x_549); +x_550 = lean_ctor_get(x_545, 1); +lean_inc(x_550); +if (lean_is_exclusive(x_545)) { + lean_ctor_release(x_545, 0); + lean_ctor_release(x_545, 1); + x_551 = x_545; +} else { + lean_dec_ref(x_545); + x_551 = lean_box(0); +} +if (lean_is_scalar(x_551)) { + x_552 = lean_alloc_ctor(1, 2, 0); +} else { + x_552 = x_551; +} +lean_ctor_set(x_552, 0, x_549); +lean_ctor_set(x_552, 1, x_550); +return x_552; +} +} +} +} +} +else +{ +uint8_t x_553; +lean_dec(x_497); +lean_dec(x_12); +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); +x_553 = !lean_is_exclusive(x_498); +if (x_553 == 0) +{ +return x_498; +} +else +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; +x_554 = lean_ctor_get(x_498, 0); +x_555 = lean_ctor_get(x_498, 1); +lean_inc(x_555); +lean_inc(x_554); +lean_dec(x_498); +x_556 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_556, 0, x_554); +lean_ctor_set(x_556, 1, x_555); +return x_556; +} +} +} +else +{ +lean_object* x_557; lean_object* x_558; +lean_dec(x_495); +lean_dec(x_12); +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); +x_557 = lean_box(0); +if (lean_is_scalar(x_492)) { + x_558 = lean_alloc_ctor(0, 2, 0); +} else { + x_558 = x_492; +} +lean_ctor_set(x_558, 0, x_557); +lean_ctor_set(x_558, 1, x_491); +return x_558; +} +} +else +{ +lean_object* x_559; lean_object* x_560; +lean_dec(x_12); +x_559 = lean_ctor_get(x_494, 0); +lean_inc(x_559); +if (lean_is_exclusive(x_494)) { + lean_ctor_release(x_494, 0); + x_560 = x_494; +} else { + lean_dec_ref(x_494); + x_560 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_561; lean_object* x_562; +lean_dec(x_560); +lean_dec(x_559); +lean_dec(x_492); +x_561 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_562 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_561, x_3, x_4, x_5, x_6, x_7, x_8, x_491); +return x_562; +} +else +{ +lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; uint8_t x_570; uint8_t x_571; lean_object* x_572; +x_563 = lean_ctor_get(x_559, 0); +lean_inc(x_563); +x_564 = lean_ctor_get(x_559, 1); +lean_inc(x_564); +lean_dec(x_559); +x_565 = lean_ctor_get(x_2, 0); +lean_inc(x_565); +x_566 = lean_ctor_get(x_2, 1); +lean_inc(x_566); +lean_dec(x_2); +x_567 = lean_ctor_get(x_563, 3); +lean_inc(x_567); +lean_dec(x_563); +x_568 = lean_nat_add(x_567, x_565); +lean_dec(x_565); +lean_dec(x_567); +x_569 = lean_array_get_size(x_564); +x_570 = lean_nat_dec_lt(x_568, x_569); +lean_dec(x_569); +x_571 = l_List_isEmpty___rarg(x_566); +if (x_570 == 0) +{ +lean_object* x_580; lean_object* x_581; +lean_dec(x_568); +lean_dec(x_564); +x_580 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_581 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_580); +x_572 = x_581; +goto block_579; +} +else +{ +lean_object* x_582; +x_582 = lean_array_fget(x_564, x_568); +lean_dec(x_568); +lean_dec(x_564); +x_572 = x_582; +goto block_579; +} +block_579: +{ +if (x_571 == 0) +{ +lean_dec(x_560); +lean_dec(x_492); +x_1 = x_572; +x_2 = x_566; +x_9 = x_491; +goto _start; +} +else +{ +lean_dec(x_566); +if (lean_obj_tag(x_572) == 1) +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_574 = lean_ctor_get(x_572, 0); +lean_inc(x_574); +lean_dec(x_572); +if (lean_is_scalar(x_560)) { + x_575 = lean_alloc_ctor(1, 1, 0); +} else { + x_575 = x_560; +} +lean_ctor_set(x_575, 0, x_574); +if (lean_is_scalar(x_492)) { + x_576 = lean_alloc_ctor(0, 2, 0); +} else { + x_576 = x_492; +} +lean_ctor_set(x_576, 0, x_575); +lean_ctor_set(x_576, 1, x_491); +return x_576; +} +else +{ +lean_object* x_577; lean_object* x_578; +lean_dec(x_572); +lean_dec(x_560); +lean_dec(x_492); +x_577 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_578 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_577, x_3, x_4, x_5, x_6, x_7, x_8, x_491); +return x_578; +} +} +} +} +} +} +case 6: +{ +lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_583 = lean_ctor_get(x_11, 1); +lean_inc(x_583); +lean_dec(x_11); +x_584 = lean_st_ref_get(x_8, x_583); +x_585 = lean_ctor_get(x_584, 0); +lean_inc(x_585); +x_586 = lean_ctor_get(x_584, 1); +lean_inc(x_586); +if (lean_is_exclusive(x_584)) { + lean_ctor_release(x_584, 0); + lean_ctor_release(x_584, 1); + x_587 = x_584; +} else { + lean_dec_ref(x_584); + x_587 = lean_box(0); +} +x_588 = lean_ctor_get(x_585, 0); +lean_inc(x_588); +lean_dec(x_585); +lean_inc(x_12); +x_589 = l_Lean_Expr_constructorApp_x3f(x_588, x_12); +if (lean_obj_tag(x_589) == 0) +{ +lean_object* x_590; +x_590 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_590) == 4) +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; +lean_dec(x_587); +x_591 = lean_ctor_get(x_590, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_590, 1); +lean_inc(x_592); +lean_dec(x_590); +lean_inc(x_8); +lean_inc(x_7); +x_593 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_591, x_7, x_8, x_586); +if (lean_obj_tag(x_593) == 0) +{ +lean_object* x_594; +x_594 = lean_ctor_get(x_593, 0); +lean_inc(x_594); +if (lean_obj_tag(x_594) == 0) +{ +uint8_t x_595; +lean_dec(x_592); +lean_dec(x_12); +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); +x_595 = !lean_is_exclusive(x_593); +if (x_595 == 0) +{ +lean_object* x_596; lean_object* x_597; +x_596 = lean_ctor_get(x_593, 0); +lean_dec(x_596); +x_597 = lean_box(0); +lean_ctor_set(x_593, 0, x_597); +return x_593; +} +else +{ +lean_object* x_598; lean_object* x_599; lean_object* x_600; +x_598 = lean_ctor_get(x_593, 1); +lean_inc(x_598); +lean_dec(x_593); +x_599 = lean_box(0); +x_600 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_600, 0, x_599); +lean_ctor_set(x_600, 1, x_598); +return x_600; +} +} +else +{ +uint8_t x_601; +x_601 = !lean_is_exclusive(x_593); +if (x_601 == 0) +{ +lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; uint8_t x_608; +x_602 = lean_ctor_get(x_593, 1); +x_603 = lean_ctor_get(x_593, 0); +lean_dec(x_603); +x_604 = lean_ctor_get(x_594, 0); +lean_inc(x_604); +lean_dec(x_594); +x_605 = l_Lean_Compiler_LCNF_Decl_getArity(x_604); +x_606 = lean_unsigned_to_nat(0u); +x_607 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_606); +x_608 = lean_nat_dec_eq(x_605, x_607); +lean_dec(x_605); +if (x_608 == 0) +{ +lean_object* x_609; +lean_dec(x_607); +lean_dec(x_604); +lean_dec(x_592); +lean_dec(x_12); +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); +x_609 = lean_box(0); +lean_ctor_set(x_593, 0, x_609); +return x_593; +} +else +{ +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +lean_free_object(x_593); +lean_inc(x_604); +x_610 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_604, x_592); +x_611 = lean_ctor_get(x_604, 3); +lean_inc(x_611); +lean_dec(x_604); +x_612 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_607); +x_613 = lean_mk_array(x_607, x_612); +x_614 = lean_unsigned_to_nat(1u); +x_615 = lean_nat_sub(x_607, x_614); +lean_dec(x_607); +x_616 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_613, x_615); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_617 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_611, x_610, x_616, x_10, x_4, x_5, x_6, x_7, x_8, x_602); +lean_dec(x_611); +if (lean_obj_tag(x_617) == 0) +{ +lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_618 = lean_ctor_get(x_617, 0); +lean_inc(x_618); +x_619 = lean_ctor_get(x_617, 1); +lean_inc(x_619); +lean_dec(x_617); +x_620 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_618, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_619); +return x_620; +} +else +{ +uint8_t x_621; +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); +x_621 = !lean_is_exclusive(x_617); +if (x_621 == 0) +{ +return x_617; +} +else +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_622 = lean_ctor_get(x_617, 0); +x_623 = lean_ctor_get(x_617, 1); +lean_inc(x_623); +lean_inc(x_622); +lean_dec(x_617); +x_624 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_624, 0, x_622); +lean_ctor_set(x_624, 1, x_623); +return x_624; +} +} +} +} +else +{ +lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; uint8_t x_630; +x_625 = lean_ctor_get(x_593, 1); +lean_inc(x_625); +lean_dec(x_593); +x_626 = lean_ctor_get(x_594, 0); +lean_inc(x_626); +lean_dec(x_594); +x_627 = l_Lean_Compiler_LCNF_Decl_getArity(x_626); +x_628 = lean_unsigned_to_nat(0u); +x_629 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_628); +x_630 = lean_nat_dec_eq(x_627, x_629); +lean_dec(x_627); +if (x_630 == 0) +{ +lean_object* x_631; lean_object* x_632; +lean_dec(x_629); +lean_dec(x_626); +lean_dec(x_592); +lean_dec(x_12); +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); +x_631 = lean_box(0); +x_632 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_632, 0, x_631); +lean_ctor_set(x_632, 1, x_625); +return x_632; +} +else +{ +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; +lean_inc(x_626); +x_633 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_626, x_592); +x_634 = lean_ctor_get(x_626, 3); +lean_inc(x_634); +lean_dec(x_626); +x_635 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_629); +x_636 = lean_mk_array(x_629, x_635); +x_637 = lean_unsigned_to_nat(1u); +x_638 = lean_nat_sub(x_629, x_637); +lean_dec(x_629); +x_639 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_636, x_638); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_640 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_634, x_633, x_639, x_10, x_4, x_5, x_6, x_7, x_8, x_625); +lean_dec(x_634); +if (lean_obj_tag(x_640) == 0) +{ +lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_641 = lean_ctor_get(x_640, 0); +lean_inc(x_641); +x_642 = lean_ctor_get(x_640, 1); +lean_inc(x_642); +lean_dec(x_640); +x_643 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_641, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_642); +return x_643; +} +else +{ +lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; +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); +x_644 = lean_ctor_get(x_640, 0); +lean_inc(x_644); +x_645 = lean_ctor_get(x_640, 1); +lean_inc(x_645); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_646 = x_640; +} else { + lean_dec_ref(x_640); + x_646 = lean_box(0); +} +if (lean_is_scalar(x_646)) { + x_647 = lean_alloc_ctor(1, 2, 0); +} else { + x_647 = x_646; +} +lean_ctor_set(x_647, 0, x_644); +lean_ctor_set(x_647, 1, x_645); +return x_647; +} +} +} +} +} +else +{ +uint8_t x_648; +lean_dec(x_592); +lean_dec(x_12); +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); +x_648 = !lean_is_exclusive(x_593); +if (x_648 == 0) +{ +return x_593; +} +else +{ +lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_649 = lean_ctor_get(x_593, 0); +x_650 = lean_ctor_get(x_593, 1); +lean_inc(x_650); +lean_inc(x_649); +lean_dec(x_593); +x_651 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_651, 0, x_649); +lean_ctor_set(x_651, 1, x_650); +return x_651; +} +} +} +else +{ +lean_object* x_652; lean_object* x_653; +lean_dec(x_590); +lean_dec(x_12); +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); +x_652 = lean_box(0); +if (lean_is_scalar(x_587)) { + x_653 = lean_alloc_ctor(0, 2, 0); +} else { + x_653 = x_587; +} +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_586); +return x_653; +} +} +else +{ +lean_object* x_654; lean_object* x_655; +lean_dec(x_12); +x_654 = lean_ctor_get(x_589, 0); +lean_inc(x_654); +if (lean_is_exclusive(x_589)) { + lean_ctor_release(x_589, 0); + x_655 = x_589; +} else { + lean_dec_ref(x_589); + x_655 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_656; lean_object* x_657; +lean_dec(x_655); +lean_dec(x_654); +lean_dec(x_587); +x_656 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_657 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_656, x_3, x_4, x_5, x_6, x_7, x_8, x_586); +return x_657; +} +else +{ +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; uint8_t x_665; uint8_t x_666; lean_object* x_667; +x_658 = lean_ctor_get(x_654, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_654, 1); +lean_inc(x_659); +lean_dec(x_654); +x_660 = lean_ctor_get(x_2, 0); +lean_inc(x_660); +x_661 = lean_ctor_get(x_2, 1); +lean_inc(x_661); +lean_dec(x_2); +x_662 = lean_ctor_get(x_658, 3); +lean_inc(x_662); +lean_dec(x_658); +x_663 = lean_nat_add(x_662, x_660); +lean_dec(x_660); +lean_dec(x_662); +x_664 = lean_array_get_size(x_659); +x_665 = lean_nat_dec_lt(x_663, x_664); +lean_dec(x_664); +x_666 = l_List_isEmpty___rarg(x_661); +if (x_665 == 0) +{ +lean_object* x_675; lean_object* x_676; +lean_dec(x_663); +lean_dec(x_659); +x_675 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_676 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_675); +x_667 = x_676; +goto block_674; +} +else +{ +lean_object* x_677; +x_677 = lean_array_fget(x_659, x_663); +lean_dec(x_663); +lean_dec(x_659); +x_667 = x_677; +goto block_674; +} +block_674: +{ +if (x_666 == 0) +{ +lean_dec(x_655); +lean_dec(x_587); +x_1 = x_667; +x_2 = x_661; +x_9 = x_586; +goto _start; +} +else +{ +lean_dec(x_661); +if (lean_obj_tag(x_667) == 1) +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_669 = lean_ctor_get(x_667, 0); +lean_inc(x_669); +lean_dec(x_667); +if (lean_is_scalar(x_655)) { + x_670 = lean_alloc_ctor(1, 1, 0); +} else { + x_670 = x_655; +} +lean_ctor_set(x_670, 0, x_669); +if (lean_is_scalar(x_587)) { + x_671 = lean_alloc_ctor(0, 2, 0); +} else { + x_671 = x_587; +} +lean_ctor_set(x_671, 0, x_670); +lean_ctor_set(x_671, 1, x_586); +return x_671; +} +else +{ +lean_object* x_672; lean_object* x_673; +lean_dec(x_667); +lean_dec(x_655); +lean_dec(x_587); +x_672 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_673 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_672, x_3, x_4, x_5, x_6, x_7, x_8, x_586); +return x_673; +} +} +} +} +} +} +case 7: +{ +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; +x_678 = lean_ctor_get(x_11, 1); +lean_inc(x_678); +lean_dec(x_11); +x_679 = lean_st_ref_get(x_8, x_678); +x_680 = lean_ctor_get(x_679, 0); +lean_inc(x_680); +x_681 = lean_ctor_get(x_679, 1); +lean_inc(x_681); +if (lean_is_exclusive(x_679)) { + lean_ctor_release(x_679, 0); + lean_ctor_release(x_679, 1); + x_682 = x_679; +} else { + lean_dec_ref(x_679); + x_682 = lean_box(0); +} +x_683 = lean_ctor_get(x_680, 0); +lean_inc(x_683); +lean_dec(x_680); +lean_inc(x_12); +x_684 = l_Lean_Expr_constructorApp_x3f(x_683, x_12); +if (lean_obj_tag(x_684) == 0) +{ +lean_object* x_685; +x_685 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_685) == 4) +{ +lean_object* x_686; lean_object* x_687; lean_object* x_688; +lean_dec(x_682); +x_686 = lean_ctor_get(x_685, 0); +lean_inc(x_686); +x_687 = lean_ctor_get(x_685, 1); +lean_inc(x_687); +lean_dec(x_685); +lean_inc(x_8); +lean_inc(x_7); +x_688 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_686, x_7, x_8, x_681); +if (lean_obj_tag(x_688) == 0) +{ +lean_object* x_689; +x_689 = lean_ctor_get(x_688, 0); +lean_inc(x_689); +if (lean_obj_tag(x_689) == 0) +{ +uint8_t x_690; +lean_dec(x_687); +lean_dec(x_12); +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); +x_690 = !lean_is_exclusive(x_688); +if (x_690 == 0) +{ +lean_object* x_691; lean_object* x_692; +x_691 = lean_ctor_get(x_688, 0); +lean_dec(x_691); +x_692 = lean_box(0); +lean_ctor_set(x_688, 0, x_692); +return x_688; +} +else +{ +lean_object* x_693; lean_object* x_694; lean_object* x_695; +x_693 = lean_ctor_get(x_688, 1); +lean_inc(x_693); +lean_dec(x_688); +x_694 = lean_box(0); +x_695 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_695, 0, x_694); +lean_ctor_set(x_695, 1, x_693); +return x_695; +} +} +else +{ +uint8_t x_696; +x_696 = !lean_is_exclusive(x_688); +if (x_696 == 0) +{ +lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; uint8_t x_703; +x_697 = lean_ctor_get(x_688, 1); +x_698 = lean_ctor_get(x_688, 0); +lean_dec(x_698); +x_699 = lean_ctor_get(x_689, 0); +lean_inc(x_699); +lean_dec(x_689); +x_700 = l_Lean_Compiler_LCNF_Decl_getArity(x_699); +x_701 = lean_unsigned_to_nat(0u); +x_702 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_701); +x_703 = lean_nat_dec_eq(x_700, x_702); +lean_dec(x_700); +if (x_703 == 0) +{ +lean_object* x_704; +lean_dec(x_702); +lean_dec(x_699); +lean_dec(x_687); +lean_dec(x_12); +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); +x_704 = lean_box(0); +lean_ctor_set(x_688, 0, x_704); +return x_688; +} +else +{ +lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; +lean_free_object(x_688); +lean_inc(x_699); +x_705 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_699, x_687); +x_706 = lean_ctor_get(x_699, 3); +lean_inc(x_706); +lean_dec(x_699); +x_707 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_702); +x_708 = lean_mk_array(x_702, x_707); +x_709 = lean_unsigned_to_nat(1u); +x_710 = lean_nat_sub(x_702, x_709); +lean_dec(x_702); +x_711 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_708, x_710); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_712 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_706, x_705, x_711, x_10, x_4, x_5, x_6, x_7, x_8, x_697); +lean_dec(x_706); +if (lean_obj_tag(x_712) == 0) +{ +lean_object* x_713; lean_object* x_714; lean_object* x_715; +x_713 = lean_ctor_get(x_712, 0); +lean_inc(x_713); +x_714 = lean_ctor_get(x_712, 1); +lean_inc(x_714); +lean_dec(x_712); +x_715 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_713, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_714); +return x_715; +} +else +{ +uint8_t x_716; +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); +x_716 = !lean_is_exclusive(x_712); +if (x_716 == 0) +{ +return x_712; +} +else +{ +lean_object* x_717; lean_object* x_718; lean_object* x_719; +x_717 = lean_ctor_get(x_712, 0); +x_718 = lean_ctor_get(x_712, 1); +lean_inc(x_718); +lean_inc(x_717); +lean_dec(x_712); +x_719 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_719, 0, x_717); +lean_ctor_set(x_719, 1, x_718); +return x_719; +} +} +} +} +else +{ +lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; uint8_t x_725; +x_720 = lean_ctor_get(x_688, 1); +lean_inc(x_720); +lean_dec(x_688); +x_721 = lean_ctor_get(x_689, 0); +lean_inc(x_721); +lean_dec(x_689); +x_722 = l_Lean_Compiler_LCNF_Decl_getArity(x_721); +x_723 = lean_unsigned_to_nat(0u); +x_724 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_723); +x_725 = lean_nat_dec_eq(x_722, x_724); +lean_dec(x_722); +if (x_725 == 0) +{ +lean_object* x_726; lean_object* x_727; +lean_dec(x_724); +lean_dec(x_721); +lean_dec(x_687); +lean_dec(x_12); +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); +x_726 = lean_box(0); +x_727 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_727, 0, x_726); +lean_ctor_set(x_727, 1, x_720); +return x_727; +} +else +{ +lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; +lean_inc(x_721); +x_728 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_721, x_687); +x_729 = lean_ctor_get(x_721, 3); +lean_inc(x_729); +lean_dec(x_721); +x_730 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_724); +x_731 = lean_mk_array(x_724, x_730); +x_732 = lean_unsigned_to_nat(1u); +x_733 = lean_nat_sub(x_724, x_732); +lean_dec(x_724); +x_734 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_731, x_733); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_735 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_729, x_728, x_734, x_10, x_4, x_5, x_6, x_7, x_8, x_720); +lean_dec(x_729); +if (lean_obj_tag(x_735) == 0) +{ +lean_object* x_736; lean_object* x_737; lean_object* x_738; +x_736 = lean_ctor_get(x_735, 0); +lean_inc(x_736); +x_737 = lean_ctor_get(x_735, 1); +lean_inc(x_737); +lean_dec(x_735); +x_738 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_736, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_737); +return x_738; +} +else +{ +lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; +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); +x_739 = lean_ctor_get(x_735, 0); +lean_inc(x_739); +x_740 = lean_ctor_get(x_735, 1); +lean_inc(x_740); +if (lean_is_exclusive(x_735)) { + lean_ctor_release(x_735, 0); + lean_ctor_release(x_735, 1); + x_741 = x_735; +} else { + lean_dec_ref(x_735); + x_741 = lean_box(0); +} +if (lean_is_scalar(x_741)) { + x_742 = lean_alloc_ctor(1, 2, 0); +} else { + x_742 = x_741; +} +lean_ctor_set(x_742, 0, x_739); +lean_ctor_set(x_742, 1, x_740); +return x_742; +} +} +} +} +} +else +{ +uint8_t x_743; +lean_dec(x_687); +lean_dec(x_12); +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); +x_743 = !lean_is_exclusive(x_688); +if (x_743 == 0) +{ +return x_688; +} +else +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_744 = lean_ctor_get(x_688, 0); +x_745 = lean_ctor_get(x_688, 1); +lean_inc(x_745); +lean_inc(x_744); +lean_dec(x_688); +x_746 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_746, 0, x_744); +lean_ctor_set(x_746, 1, x_745); +return x_746; +} +} +} +else +{ +lean_object* x_747; lean_object* x_748; +lean_dec(x_685); +lean_dec(x_12); +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); +x_747 = lean_box(0); +if (lean_is_scalar(x_682)) { + x_748 = lean_alloc_ctor(0, 2, 0); +} else { + x_748 = x_682; +} +lean_ctor_set(x_748, 0, x_747); +lean_ctor_set(x_748, 1, x_681); +return x_748; +} +} +else +{ +lean_object* x_749; lean_object* x_750; +lean_dec(x_12); +x_749 = lean_ctor_get(x_684, 0); +lean_inc(x_749); +if (lean_is_exclusive(x_684)) { + lean_ctor_release(x_684, 0); + x_750 = x_684; +} else { + lean_dec_ref(x_684); + x_750 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_751; lean_object* x_752; +lean_dec(x_750); +lean_dec(x_749); +lean_dec(x_682); +x_751 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_752 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_751, x_3, x_4, x_5, x_6, x_7, x_8, x_681); +return x_752; +} +else +{ +lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; uint8_t x_760; uint8_t x_761; lean_object* x_762; +x_753 = lean_ctor_get(x_749, 0); +lean_inc(x_753); +x_754 = lean_ctor_get(x_749, 1); +lean_inc(x_754); +lean_dec(x_749); +x_755 = lean_ctor_get(x_2, 0); +lean_inc(x_755); +x_756 = lean_ctor_get(x_2, 1); +lean_inc(x_756); +lean_dec(x_2); +x_757 = lean_ctor_get(x_753, 3); +lean_inc(x_757); +lean_dec(x_753); +x_758 = lean_nat_add(x_757, x_755); +lean_dec(x_755); +lean_dec(x_757); +x_759 = lean_array_get_size(x_754); +x_760 = lean_nat_dec_lt(x_758, x_759); +lean_dec(x_759); +x_761 = l_List_isEmpty___rarg(x_756); +if (x_760 == 0) +{ +lean_object* x_770; lean_object* x_771; +lean_dec(x_758); +lean_dec(x_754); +x_770 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_771 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_770); +x_762 = x_771; +goto block_769; +} +else +{ +lean_object* x_772; +x_772 = lean_array_fget(x_754, x_758); +lean_dec(x_758); +lean_dec(x_754); +x_762 = x_772; +goto block_769; +} +block_769: +{ +if (x_761 == 0) +{ +lean_dec(x_750); +lean_dec(x_682); +x_1 = x_762; +x_2 = x_756; +x_9 = x_681; +goto _start; +} +else +{ +lean_dec(x_756); +if (lean_obj_tag(x_762) == 1) +{ +lean_object* x_764; lean_object* x_765; lean_object* x_766; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_764 = lean_ctor_get(x_762, 0); +lean_inc(x_764); +lean_dec(x_762); +if (lean_is_scalar(x_750)) { + x_765 = lean_alloc_ctor(1, 1, 0); +} else { + x_765 = x_750; +} +lean_ctor_set(x_765, 0, x_764); +if (lean_is_scalar(x_682)) { + x_766 = lean_alloc_ctor(0, 2, 0); +} else { + x_766 = x_682; +} +lean_ctor_set(x_766, 0, x_765); +lean_ctor_set(x_766, 1, x_681); +return x_766; +} +else +{ +lean_object* x_767; lean_object* x_768; +lean_dec(x_762); +lean_dec(x_750); +lean_dec(x_682); +x_767 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_768 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_767, x_3, x_4, x_5, x_6, x_7, x_8, x_681); +return x_768; +} +} +} +} +} +} +case 8: +{ +lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; +x_773 = lean_ctor_get(x_11, 1); +lean_inc(x_773); +lean_dec(x_11); +x_774 = lean_st_ref_get(x_8, x_773); +x_775 = lean_ctor_get(x_774, 0); +lean_inc(x_775); +x_776 = lean_ctor_get(x_774, 1); +lean_inc(x_776); +if (lean_is_exclusive(x_774)) { + lean_ctor_release(x_774, 0); + lean_ctor_release(x_774, 1); + x_777 = x_774; +} else { + lean_dec_ref(x_774); + x_777 = lean_box(0); +} +x_778 = lean_ctor_get(x_775, 0); +lean_inc(x_778); +lean_dec(x_775); +lean_inc(x_12); +x_779 = l_Lean_Expr_constructorApp_x3f(x_778, x_12); +if (lean_obj_tag(x_779) == 0) +{ +lean_object* x_780; +x_780 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_780) == 4) +{ +lean_object* x_781; lean_object* x_782; lean_object* x_783; +lean_dec(x_777); +x_781 = lean_ctor_get(x_780, 0); +lean_inc(x_781); +x_782 = lean_ctor_get(x_780, 1); +lean_inc(x_782); +lean_dec(x_780); +lean_inc(x_8); +lean_inc(x_7); +x_783 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_781, x_7, x_8, x_776); +if (lean_obj_tag(x_783) == 0) +{ +lean_object* x_784; +x_784 = lean_ctor_get(x_783, 0); +lean_inc(x_784); +if (lean_obj_tag(x_784) == 0) +{ +uint8_t x_785; +lean_dec(x_782); +lean_dec(x_12); +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); +x_785 = !lean_is_exclusive(x_783); +if (x_785 == 0) +{ +lean_object* x_786; lean_object* x_787; +x_786 = lean_ctor_get(x_783, 0); +lean_dec(x_786); +x_787 = lean_box(0); +lean_ctor_set(x_783, 0, x_787); +return x_783; +} +else +{ +lean_object* x_788; lean_object* x_789; lean_object* x_790; +x_788 = lean_ctor_get(x_783, 1); +lean_inc(x_788); +lean_dec(x_783); +x_789 = lean_box(0); +x_790 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_790, 0, x_789); +lean_ctor_set(x_790, 1, x_788); +return x_790; +} +} +else +{ +uint8_t x_791; +x_791 = !lean_is_exclusive(x_783); +if (x_791 == 0) +{ +lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; uint8_t x_798; +x_792 = lean_ctor_get(x_783, 1); +x_793 = lean_ctor_get(x_783, 0); +lean_dec(x_793); +x_794 = lean_ctor_get(x_784, 0); +lean_inc(x_794); +lean_dec(x_784); +x_795 = l_Lean_Compiler_LCNF_Decl_getArity(x_794); +x_796 = lean_unsigned_to_nat(0u); +x_797 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_796); +x_798 = lean_nat_dec_eq(x_795, x_797); +lean_dec(x_795); +if (x_798 == 0) +{ +lean_object* x_799; +lean_dec(x_797); +lean_dec(x_794); +lean_dec(x_782); +lean_dec(x_12); +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); +x_799 = lean_box(0); +lean_ctor_set(x_783, 0, x_799); +return x_783; +} +else +{ +lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; +lean_free_object(x_783); +lean_inc(x_794); +x_800 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_794, x_782); +x_801 = lean_ctor_get(x_794, 3); +lean_inc(x_801); +lean_dec(x_794); +x_802 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_797); +x_803 = lean_mk_array(x_797, x_802); +x_804 = lean_unsigned_to_nat(1u); +x_805 = lean_nat_sub(x_797, x_804); +lean_dec(x_797); +x_806 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_803, x_805); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_807 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_801, x_800, x_806, x_10, x_4, x_5, x_6, x_7, x_8, x_792); +lean_dec(x_801); +if (lean_obj_tag(x_807) == 0) +{ +lean_object* x_808; lean_object* x_809; lean_object* x_810; +x_808 = lean_ctor_get(x_807, 0); +lean_inc(x_808); +x_809 = lean_ctor_get(x_807, 1); +lean_inc(x_809); +lean_dec(x_807); +x_810 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_808, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_809); +return x_810; +} +else +{ +uint8_t x_811; +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); +x_811 = !lean_is_exclusive(x_807); +if (x_811 == 0) +{ +return x_807; +} +else +{ +lean_object* x_812; lean_object* x_813; lean_object* x_814; +x_812 = lean_ctor_get(x_807, 0); +x_813 = lean_ctor_get(x_807, 1); +lean_inc(x_813); +lean_inc(x_812); +lean_dec(x_807); +x_814 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_814, 0, x_812); +lean_ctor_set(x_814, 1, x_813); +return x_814; +} +} +} +} +else +{ +lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; uint8_t x_820; +x_815 = lean_ctor_get(x_783, 1); +lean_inc(x_815); +lean_dec(x_783); +x_816 = lean_ctor_get(x_784, 0); +lean_inc(x_816); +lean_dec(x_784); +x_817 = l_Lean_Compiler_LCNF_Decl_getArity(x_816); +x_818 = lean_unsigned_to_nat(0u); +x_819 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_818); +x_820 = lean_nat_dec_eq(x_817, x_819); +lean_dec(x_817); +if (x_820 == 0) +{ +lean_object* x_821; lean_object* x_822; +lean_dec(x_819); +lean_dec(x_816); +lean_dec(x_782); +lean_dec(x_12); +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); +x_821 = lean_box(0); +x_822 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_822, 0, x_821); +lean_ctor_set(x_822, 1, x_815); +return x_822; +} +else +{ +lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; +lean_inc(x_816); +x_823 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_816, x_782); +x_824 = lean_ctor_get(x_816, 3); +lean_inc(x_824); +lean_dec(x_816); +x_825 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_819); +x_826 = lean_mk_array(x_819, x_825); +x_827 = lean_unsigned_to_nat(1u); +x_828 = lean_nat_sub(x_819, x_827); +lean_dec(x_819); +x_829 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_826, x_828); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_830 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_824, x_823, x_829, x_10, x_4, x_5, x_6, x_7, x_8, x_815); +lean_dec(x_824); +if (lean_obj_tag(x_830) == 0) +{ +lean_object* x_831; lean_object* x_832; lean_object* x_833; +x_831 = lean_ctor_get(x_830, 0); +lean_inc(x_831); +x_832 = lean_ctor_get(x_830, 1); +lean_inc(x_832); +lean_dec(x_830); +x_833 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_831, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_832); +return x_833; +} +else +{ +lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; +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); +x_834 = lean_ctor_get(x_830, 0); +lean_inc(x_834); +x_835 = lean_ctor_get(x_830, 1); +lean_inc(x_835); +if (lean_is_exclusive(x_830)) { + lean_ctor_release(x_830, 0); + lean_ctor_release(x_830, 1); + x_836 = x_830; +} else { + lean_dec_ref(x_830); + x_836 = lean_box(0); +} +if (lean_is_scalar(x_836)) { + x_837 = lean_alloc_ctor(1, 2, 0); +} else { + x_837 = x_836; +} +lean_ctor_set(x_837, 0, x_834); +lean_ctor_set(x_837, 1, x_835); +return x_837; +} +} +} +} +} +else +{ +uint8_t x_838; +lean_dec(x_782); +lean_dec(x_12); +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); +x_838 = !lean_is_exclusive(x_783); +if (x_838 == 0) +{ +return x_783; +} +else +{ +lean_object* x_839; lean_object* x_840; lean_object* x_841; +x_839 = lean_ctor_get(x_783, 0); +x_840 = lean_ctor_get(x_783, 1); +lean_inc(x_840); +lean_inc(x_839); +lean_dec(x_783); +x_841 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_841, 0, x_839); +lean_ctor_set(x_841, 1, x_840); +return x_841; +} +} +} +else +{ +lean_object* x_842; lean_object* x_843; +lean_dec(x_780); +lean_dec(x_12); +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); +x_842 = lean_box(0); +if (lean_is_scalar(x_777)) { + x_843 = lean_alloc_ctor(0, 2, 0); +} else { + x_843 = x_777; +} +lean_ctor_set(x_843, 0, x_842); +lean_ctor_set(x_843, 1, x_776); +return x_843; +} +} +else +{ +lean_object* x_844; lean_object* x_845; +lean_dec(x_12); +x_844 = lean_ctor_get(x_779, 0); +lean_inc(x_844); +if (lean_is_exclusive(x_779)) { + lean_ctor_release(x_779, 0); + x_845 = x_779; +} else { + lean_dec_ref(x_779); + x_845 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_846; lean_object* x_847; +lean_dec(x_845); +lean_dec(x_844); +lean_dec(x_777); +x_846 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_847 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_846, x_3, x_4, x_5, x_6, x_7, x_8, x_776); +return x_847; +} +else +{ +lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; uint8_t x_855; uint8_t x_856; lean_object* x_857; +x_848 = lean_ctor_get(x_844, 0); +lean_inc(x_848); +x_849 = lean_ctor_get(x_844, 1); +lean_inc(x_849); +lean_dec(x_844); +x_850 = lean_ctor_get(x_2, 0); +lean_inc(x_850); +x_851 = lean_ctor_get(x_2, 1); +lean_inc(x_851); +lean_dec(x_2); +x_852 = lean_ctor_get(x_848, 3); +lean_inc(x_852); +lean_dec(x_848); +x_853 = lean_nat_add(x_852, x_850); +lean_dec(x_850); +lean_dec(x_852); +x_854 = lean_array_get_size(x_849); +x_855 = lean_nat_dec_lt(x_853, x_854); +lean_dec(x_854); +x_856 = l_List_isEmpty___rarg(x_851); +if (x_855 == 0) +{ +lean_object* x_865; lean_object* x_866; +lean_dec(x_853); +lean_dec(x_849); +x_865 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_866 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_865); +x_857 = x_866; +goto block_864; +} +else +{ +lean_object* x_867; +x_867 = lean_array_fget(x_849, x_853); +lean_dec(x_853); +lean_dec(x_849); +x_857 = x_867; +goto block_864; +} +block_864: +{ +if (x_856 == 0) +{ +lean_dec(x_845); +lean_dec(x_777); +x_1 = x_857; +x_2 = x_851; +x_9 = x_776; +goto _start; +} +else +{ +lean_dec(x_851); +if (lean_obj_tag(x_857) == 1) +{ +lean_object* x_859; lean_object* x_860; lean_object* x_861; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_859 = lean_ctor_get(x_857, 0); +lean_inc(x_859); +lean_dec(x_857); +if (lean_is_scalar(x_845)) { + x_860 = lean_alloc_ctor(1, 1, 0); +} else { + x_860 = x_845; +} +lean_ctor_set(x_860, 0, x_859); +if (lean_is_scalar(x_777)) { + x_861 = lean_alloc_ctor(0, 2, 0); +} else { + x_861 = x_777; +} +lean_ctor_set(x_861, 0, x_860); +lean_ctor_set(x_861, 1, x_776); +return x_861; +} +else +{ +lean_object* x_862; lean_object* x_863; +lean_dec(x_857); +lean_dec(x_845); +lean_dec(x_777); +x_862 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_863 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_862, x_3, x_4, x_5, x_6, x_7, x_8, x_776); +return x_863; +} +} +} +} +} +} +case 9: +{ +lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; +x_868 = lean_ctor_get(x_11, 1); +lean_inc(x_868); +lean_dec(x_11); +x_869 = lean_st_ref_get(x_8, x_868); +x_870 = lean_ctor_get(x_869, 0); +lean_inc(x_870); +x_871 = lean_ctor_get(x_869, 1); +lean_inc(x_871); +if (lean_is_exclusive(x_869)) { + lean_ctor_release(x_869, 0); + lean_ctor_release(x_869, 1); + x_872 = x_869; +} else { + lean_dec_ref(x_869); + x_872 = lean_box(0); +} +x_873 = lean_ctor_get(x_870, 0); +lean_inc(x_873); +lean_dec(x_870); +lean_inc(x_12); +x_874 = l_Lean_Expr_constructorApp_x3f(x_873, x_12); +if (lean_obj_tag(x_874) == 0) +{ +lean_object* x_875; +x_875 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_875) == 4) +{ +lean_object* x_876; lean_object* x_877; lean_object* x_878; +lean_dec(x_872); +x_876 = lean_ctor_get(x_875, 0); +lean_inc(x_876); +x_877 = lean_ctor_get(x_875, 1); +lean_inc(x_877); +lean_dec(x_875); +lean_inc(x_8); +lean_inc(x_7); +x_878 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_876, x_7, x_8, x_871); +if (lean_obj_tag(x_878) == 0) +{ +lean_object* x_879; +x_879 = lean_ctor_get(x_878, 0); +lean_inc(x_879); +if (lean_obj_tag(x_879) == 0) +{ +uint8_t x_880; +lean_dec(x_877); +lean_dec(x_12); +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); +x_880 = !lean_is_exclusive(x_878); +if (x_880 == 0) +{ +lean_object* x_881; lean_object* x_882; +x_881 = lean_ctor_get(x_878, 0); +lean_dec(x_881); +x_882 = lean_box(0); +lean_ctor_set(x_878, 0, x_882); +return x_878; +} +else +{ +lean_object* x_883; lean_object* x_884; lean_object* x_885; +x_883 = lean_ctor_get(x_878, 1); +lean_inc(x_883); +lean_dec(x_878); +x_884 = lean_box(0); +x_885 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_885, 0, x_884); +lean_ctor_set(x_885, 1, x_883); +return x_885; +} +} +else +{ +uint8_t x_886; +x_886 = !lean_is_exclusive(x_878); +if (x_886 == 0) +{ +lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; uint8_t x_893; +x_887 = lean_ctor_get(x_878, 1); +x_888 = lean_ctor_get(x_878, 0); +lean_dec(x_888); +x_889 = lean_ctor_get(x_879, 0); +lean_inc(x_889); +lean_dec(x_879); +x_890 = l_Lean_Compiler_LCNF_Decl_getArity(x_889); +x_891 = lean_unsigned_to_nat(0u); +x_892 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_891); +x_893 = lean_nat_dec_eq(x_890, x_892); +lean_dec(x_890); +if (x_893 == 0) +{ +lean_object* x_894; +lean_dec(x_892); +lean_dec(x_889); +lean_dec(x_877); +lean_dec(x_12); +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); +x_894 = lean_box(0); +lean_ctor_set(x_878, 0, x_894); +return x_878; +} +else +{ +lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; +lean_free_object(x_878); +lean_inc(x_889); +x_895 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_889, x_877); +x_896 = lean_ctor_get(x_889, 3); +lean_inc(x_896); +lean_dec(x_889); +x_897 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_892); +x_898 = lean_mk_array(x_892, x_897); +x_899 = lean_unsigned_to_nat(1u); +x_900 = lean_nat_sub(x_892, x_899); +lean_dec(x_892); +x_901 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_898, x_900); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_902 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_896, x_895, x_901, x_10, x_4, x_5, x_6, x_7, x_8, x_887); +lean_dec(x_896); +if (lean_obj_tag(x_902) == 0) +{ +lean_object* x_903; lean_object* x_904; lean_object* x_905; +x_903 = lean_ctor_get(x_902, 0); +lean_inc(x_903); +x_904 = lean_ctor_get(x_902, 1); +lean_inc(x_904); +lean_dec(x_902); +x_905 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_903, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_904); +return x_905; +} +else +{ +uint8_t x_906; +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); +x_906 = !lean_is_exclusive(x_902); +if (x_906 == 0) +{ +return x_902; +} +else +{ +lean_object* x_907; lean_object* x_908; lean_object* x_909; +x_907 = lean_ctor_get(x_902, 0); +x_908 = lean_ctor_get(x_902, 1); +lean_inc(x_908); +lean_inc(x_907); +lean_dec(x_902); +x_909 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_909, 0, x_907); +lean_ctor_set(x_909, 1, x_908); +return x_909; +} +} +} +} +else +{ +lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; uint8_t x_915; +x_910 = lean_ctor_get(x_878, 1); +lean_inc(x_910); +lean_dec(x_878); +x_911 = lean_ctor_get(x_879, 0); +lean_inc(x_911); +lean_dec(x_879); +x_912 = l_Lean_Compiler_LCNF_Decl_getArity(x_911); +x_913 = lean_unsigned_to_nat(0u); +x_914 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_913); +x_915 = lean_nat_dec_eq(x_912, x_914); +lean_dec(x_912); +if (x_915 == 0) +{ +lean_object* x_916; lean_object* x_917; +lean_dec(x_914); +lean_dec(x_911); +lean_dec(x_877); +lean_dec(x_12); +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); +x_916 = lean_box(0); +x_917 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_917, 0, x_916); +lean_ctor_set(x_917, 1, x_910); +return x_917; +} +else +{ +lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; +lean_inc(x_911); +x_918 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_911, x_877); +x_919 = lean_ctor_get(x_911, 3); +lean_inc(x_919); +lean_dec(x_911); +x_920 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_914); +x_921 = lean_mk_array(x_914, x_920); +x_922 = lean_unsigned_to_nat(1u); +x_923 = lean_nat_sub(x_914, x_922); +lean_dec(x_914); +x_924 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_921, x_923); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_925 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_919, x_918, x_924, x_10, x_4, x_5, x_6, x_7, x_8, x_910); +lean_dec(x_919); +if (lean_obj_tag(x_925) == 0) +{ +lean_object* x_926; lean_object* x_927; lean_object* x_928; +x_926 = lean_ctor_get(x_925, 0); +lean_inc(x_926); +x_927 = lean_ctor_get(x_925, 1); +lean_inc(x_927); +lean_dec(x_925); +x_928 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_926, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_927); +return x_928; +} +else +{ +lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; +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); +x_929 = lean_ctor_get(x_925, 0); +lean_inc(x_929); +x_930 = lean_ctor_get(x_925, 1); +lean_inc(x_930); +if (lean_is_exclusive(x_925)) { + lean_ctor_release(x_925, 0); + lean_ctor_release(x_925, 1); + x_931 = x_925; +} else { + lean_dec_ref(x_925); + x_931 = lean_box(0); +} +if (lean_is_scalar(x_931)) { + x_932 = lean_alloc_ctor(1, 2, 0); +} else { + x_932 = x_931; +} +lean_ctor_set(x_932, 0, x_929); +lean_ctor_set(x_932, 1, x_930); +return x_932; +} +} +} +} +} +else +{ +uint8_t x_933; +lean_dec(x_877); +lean_dec(x_12); +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); +x_933 = !lean_is_exclusive(x_878); +if (x_933 == 0) +{ +return x_878; +} +else +{ +lean_object* x_934; lean_object* x_935; lean_object* x_936; +x_934 = lean_ctor_get(x_878, 0); +x_935 = lean_ctor_get(x_878, 1); +lean_inc(x_935); +lean_inc(x_934); +lean_dec(x_878); +x_936 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_936, 0, x_934); +lean_ctor_set(x_936, 1, x_935); +return x_936; +} +} +} +else +{ +lean_object* x_937; lean_object* x_938; +lean_dec(x_875); +lean_dec(x_12); +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); +x_937 = lean_box(0); +if (lean_is_scalar(x_872)) { + x_938 = lean_alloc_ctor(0, 2, 0); +} else { + x_938 = x_872; +} +lean_ctor_set(x_938, 0, x_937); +lean_ctor_set(x_938, 1, x_871); +return x_938; +} +} +else +{ +lean_object* x_939; lean_object* x_940; +lean_dec(x_12); +x_939 = lean_ctor_get(x_874, 0); +lean_inc(x_939); +if (lean_is_exclusive(x_874)) { + lean_ctor_release(x_874, 0); + x_940 = x_874; +} else { + lean_dec_ref(x_874); + x_940 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_941; lean_object* x_942; +lean_dec(x_940); +lean_dec(x_939); +lean_dec(x_872); +x_941 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_942 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_941, x_3, x_4, x_5, x_6, x_7, x_8, x_871); +return x_942; +} +else +{ +lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; uint8_t x_950; uint8_t x_951; lean_object* x_952; +x_943 = lean_ctor_get(x_939, 0); +lean_inc(x_943); +x_944 = lean_ctor_get(x_939, 1); +lean_inc(x_944); +lean_dec(x_939); +x_945 = lean_ctor_get(x_2, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_2, 1); +lean_inc(x_946); +lean_dec(x_2); +x_947 = lean_ctor_get(x_943, 3); +lean_inc(x_947); +lean_dec(x_943); +x_948 = lean_nat_add(x_947, x_945); +lean_dec(x_945); +lean_dec(x_947); +x_949 = lean_array_get_size(x_944); +x_950 = lean_nat_dec_lt(x_948, x_949); +lean_dec(x_949); +x_951 = l_List_isEmpty___rarg(x_946); +if (x_950 == 0) +{ +lean_object* x_960; lean_object* x_961; +lean_dec(x_948); +lean_dec(x_944); +x_960 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_961 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_960); +x_952 = x_961; +goto block_959; +} +else +{ +lean_object* x_962; +x_962 = lean_array_fget(x_944, x_948); +lean_dec(x_948); +lean_dec(x_944); +x_952 = x_962; +goto block_959; +} +block_959: +{ +if (x_951 == 0) +{ +lean_dec(x_940); +lean_dec(x_872); +x_1 = x_952; +x_2 = x_946; +x_9 = x_871; +goto _start; +} +else +{ +lean_dec(x_946); +if (lean_obj_tag(x_952) == 1) +{ +lean_object* x_954; lean_object* x_955; lean_object* x_956; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_954 = lean_ctor_get(x_952, 0); +lean_inc(x_954); +lean_dec(x_952); +if (lean_is_scalar(x_940)) { + x_955 = lean_alloc_ctor(1, 1, 0); +} else { + x_955 = x_940; +} +lean_ctor_set(x_955, 0, x_954); +if (lean_is_scalar(x_872)) { + x_956 = lean_alloc_ctor(0, 2, 0); +} else { + x_956 = x_872; +} +lean_ctor_set(x_956, 0, x_955); +lean_ctor_set(x_956, 1, x_871); +return x_956; +} +else +{ +lean_object* x_957; lean_object* x_958; +lean_dec(x_952); +lean_dec(x_940); +lean_dec(x_872); +x_957 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_958 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_957, x_3, x_4, x_5, x_6, x_7, x_8, x_871); +return x_958; +} +} +} +} +} +} +case 10: +{ +lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; +x_963 = lean_ctor_get(x_11, 1); +lean_inc(x_963); +lean_dec(x_11); +x_964 = lean_st_ref_get(x_8, x_963); +x_965 = lean_ctor_get(x_964, 0); +lean_inc(x_965); +x_966 = lean_ctor_get(x_964, 1); +lean_inc(x_966); +if (lean_is_exclusive(x_964)) { + lean_ctor_release(x_964, 0); + lean_ctor_release(x_964, 1); + x_967 = x_964; +} else { + lean_dec_ref(x_964); + x_967 = lean_box(0); +} +x_968 = lean_ctor_get(x_965, 0); +lean_inc(x_968); +lean_dec(x_965); +lean_inc(x_12); +x_969 = l_Lean_Expr_constructorApp_x3f(x_968, x_12); +if (lean_obj_tag(x_969) == 0) +{ +lean_object* x_970; +x_970 = l_Lean_Expr_getAppFn(x_12); +if (lean_obj_tag(x_970) == 4) +{ +lean_object* x_971; lean_object* x_972; lean_object* x_973; +lean_dec(x_967); +x_971 = lean_ctor_get(x_970, 0); +lean_inc(x_971); +x_972 = lean_ctor_get(x_970, 1); +lean_inc(x_972); +lean_dec(x_970); +lean_inc(x_8); +lean_inc(x_7); +x_973 = l_Lean_Compiler_LCNF_getStage1Decl_x3f(x_971, x_7, x_8, x_966); +if (lean_obj_tag(x_973) == 0) +{ +lean_object* x_974; +x_974 = lean_ctor_get(x_973, 0); +lean_inc(x_974); +if (lean_obj_tag(x_974) == 0) +{ +uint8_t x_975; +lean_dec(x_972); +lean_dec(x_12); +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); +x_975 = !lean_is_exclusive(x_973); +if (x_975 == 0) +{ +lean_object* x_976; lean_object* x_977; +x_976 = lean_ctor_get(x_973, 0); +lean_dec(x_976); +x_977 = lean_box(0); +lean_ctor_set(x_973, 0, x_977); +return x_973; +} +else +{ +lean_object* x_978; lean_object* x_979; lean_object* x_980; +x_978 = lean_ctor_get(x_973, 1); +lean_inc(x_978); +lean_dec(x_973); +x_979 = lean_box(0); +x_980 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_980, 0, x_979); +lean_ctor_set(x_980, 1, x_978); +return x_980; +} +} +else +{ +uint8_t x_981; +x_981 = !lean_is_exclusive(x_973); +if (x_981 == 0) +{ +lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; uint8_t x_988; +x_982 = lean_ctor_get(x_973, 1); +x_983 = lean_ctor_get(x_973, 0); +lean_dec(x_983); +x_984 = lean_ctor_get(x_974, 0); +lean_inc(x_984); +lean_dec(x_974); +x_985 = l_Lean_Compiler_LCNF_Decl_getArity(x_984); +x_986 = lean_unsigned_to_nat(0u); +x_987 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_986); +x_988 = lean_nat_dec_eq(x_985, x_987); +lean_dec(x_985); +if (x_988 == 0) +{ +lean_object* x_989; +lean_dec(x_987); +lean_dec(x_984); +lean_dec(x_972); +lean_dec(x_12); +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); +x_989 = lean_box(0); +lean_ctor_set(x_973, 0, x_989); +return x_973; +} +else +{ +lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; +lean_free_object(x_973); +lean_inc(x_984); +x_990 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_984, x_972); +x_991 = lean_ctor_get(x_984, 3); +lean_inc(x_991); +lean_dec(x_984); +x_992 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_987); +x_993 = lean_mk_array(x_987, x_992); +x_994 = lean_unsigned_to_nat(1u); +x_995 = lean_nat_sub(x_987, x_994); +lean_dec(x_987); +x_996 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_993, x_995); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_997 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_991, x_990, x_996, x_10, x_4, x_5, x_6, x_7, x_8, x_982); +lean_dec(x_991); +if (lean_obj_tag(x_997) == 0) +{ +lean_object* x_998; lean_object* x_999; lean_object* x_1000; +x_998 = lean_ctor_get(x_997, 0); +lean_inc(x_998); +x_999 = lean_ctor_get(x_997, 1); +lean_inc(x_999); +lean_dec(x_997); +x_1000 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_998, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_999); +return x_1000; +} +else +{ +uint8_t x_1001; +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); +x_1001 = !lean_is_exclusive(x_997); +if (x_1001 == 0) +{ +return x_997; +} +else +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1002 = lean_ctor_get(x_997, 0); +x_1003 = lean_ctor_get(x_997, 1); +lean_inc(x_1003); +lean_inc(x_1002); +lean_dec(x_997); +x_1004 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1004, 0, x_1002); +lean_ctor_set(x_1004, 1, x_1003); +return x_1004; +} +} +} +} +else +{ +lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; uint8_t x_1010; +x_1005 = lean_ctor_get(x_973, 1); +lean_inc(x_1005); +lean_dec(x_973); +x_1006 = lean_ctor_get(x_974, 0); +lean_inc(x_1006); +lean_dec(x_974); +x_1007 = l_Lean_Compiler_LCNF_Decl_getArity(x_1006); +x_1008 = lean_unsigned_to_nat(0u); +x_1009 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_12, x_1008); +x_1010 = lean_nat_dec_eq(x_1007, x_1009); +lean_dec(x_1007); +if (x_1010 == 0) +{ +lean_object* x_1011; lean_object* x_1012; +lean_dec(x_1009); +lean_dec(x_1006); +lean_dec(x_972); +lean_dec(x_12); +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); +x_1011 = lean_box(0); +x_1012 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1012, 0, x_1011); +lean_ctor_set(x_1012, 1, x_1005); +return x_1012; +} +else +{ +lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; +lean_inc(x_1006); +x_1013 = l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams(x_1006, x_972); +x_1014 = lean_ctor_get(x_1006, 3); +lean_inc(x_1014); +lean_dec(x_1006); +x_1015 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__1; +lean_inc(x_1009); +x_1016 = lean_mk_array(x_1009, x_1015); +x_1017 = lean_unsigned_to_nat(1u); +x_1018 = lean_nat_sub(x_1009, x_1017); +lean_dec(x_1009); +x_1019 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_12, x_1016, x_1018); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_1020 = l_Lean_Compiler_LCNF_Simp_betaReduce(x_1014, x_1013, x_1019, x_10, x_4, x_5, x_6, x_7, x_8, x_1005); +lean_dec(x_1014); +if (lean_obj_tag(x_1020) == 0) +{ +lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; +x_1021 = lean_ctor_get(x_1020, 0); +lean_inc(x_1021); +x_1022 = lean_ctor_get(x_1020, 1); +lean_inc(x_1022); +lean_dec(x_1020); +x_1023 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(x_1021, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_1022); +return x_1023; +} +else +{ +lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +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); +x_1024 = lean_ctor_get(x_1020, 0); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_1020, 1); +lean_inc(x_1025); +if (lean_is_exclusive(x_1020)) { + lean_ctor_release(x_1020, 0); + lean_ctor_release(x_1020, 1); + x_1026 = x_1020; +} else { + lean_dec_ref(x_1020); + x_1026 = lean_box(0); +} +if (lean_is_scalar(x_1026)) { + x_1027 = lean_alloc_ctor(1, 2, 0); +} else { + x_1027 = x_1026; +} +lean_ctor_set(x_1027, 0, x_1024); +lean_ctor_set(x_1027, 1, x_1025); +return x_1027; +} +} +} +} +} +else +{ +uint8_t x_1028; +lean_dec(x_972); +lean_dec(x_12); +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); +x_1028 = !lean_is_exclusive(x_973); +if (x_1028 == 0) +{ +return x_973; +} +else +{ +lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; +x_1029 = lean_ctor_get(x_973, 0); +x_1030 = lean_ctor_get(x_973, 1); +lean_inc(x_1030); +lean_inc(x_1029); +lean_dec(x_973); +x_1031 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1031, 0, x_1029); +lean_ctor_set(x_1031, 1, x_1030); +return x_1031; +} +} +} +else +{ +lean_object* x_1032; lean_object* x_1033; +lean_dec(x_970); +lean_dec(x_12); +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); +x_1032 = lean_box(0); +if (lean_is_scalar(x_967)) { + x_1033 = lean_alloc_ctor(0, 2, 0); +} else { + x_1033 = x_967; +} +lean_ctor_set(x_1033, 0, x_1032); +lean_ctor_set(x_1033, 1, x_966); +return x_1033; +} +} +else +{ +lean_object* x_1034; lean_object* x_1035; +lean_dec(x_12); +x_1034 = lean_ctor_get(x_969, 0); +lean_inc(x_1034); +if (lean_is_exclusive(x_969)) { + lean_ctor_release(x_969, 0); + x_1035 = x_969; +} else { + lean_dec_ref(x_969); + x_1035 = lean_box(0); +} +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_1036; lean_object* x_1037; +lean_dec(x_1035); +lean_dec(x_1034); +lean_dec(x_967); +x_1036 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4; +x_1037 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_1036, x_3, x_4, x_5, x_6, x_7, x_8, x_966); +return x_1037; +} +else +{ +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; uint8_t x_1045; uint8_t x_1046; lean_object* x_1047; +x_1038 = lean_ctor_get(x_1034, 0); +lean_inc(x_1038); +x_1039 = lean_ctor_get(x_1034, 1); +lean_inc(x_1039); +lean_dec(x_1034); +x_1040 = lean_ctor_get(x_2, 0); +lean_inc(x_1040); +x_1041 = lean_ctor_get(x_2, 1); +lean_inc(x_1041); +lean_dec(x_2); +x_1042 = lean_ctor_get(x_1038, 3); +lean_inc(x_1042); +lean_dec(x_1038); +x_1043 = lean_nat_add(x_1042, x_1040); +lean_dec(x_1040); +lean_dec(x_1042); +x_1044 = lean_array_get_size(x_1039); +x_1045 = lean_nat_dec_lt(x_1043, x_1044); +lean_dec(x_1044); +x_1046 = l_List_isEmpty___rarg(x_1041); +if (x_1045 == 0) +{ +lean_object* x_1055; lean_object* x_1056; +lean_dec(x_1043); +lean_dec(x_1039); +x_1055 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; +x_1056 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_1055); +x_1047 = x_1056; +goto block_1054; +} +else +{ +lean_object* x_1057; +x_1057 = lean_array_fget(x_1039, x_1043); +lean_dec(x_1043); +lean_dec(x_1039); +x_1047 = x_1057; +goto block_1054; +} +block_1054: +{ +if (x_1046 == 0) +{ +lean_dec(x_1035); +lean_dec(x_967); +x_1 = x_1047; +x_2 = x_1041; +x_9 = x_966; +goto _start; +} +else +{ +lean_dec(x_1041); +if (lean_obj_tag(x_1047) == 1) +{ +lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1049 = lean_ctor_get(x_1047, 0); +lean_inc(x_1049); +lean_dec(x_1047); +if (lean_is_scalar(x_1035)) { + x_1050 = lean_alloc_ctor(1, 1, 0); +} else { + x_1050 = x_1035; +} +lean_ctor_set(x_1050, 0, x_1049); +if (lean_is_scalar(x_967)) { + x_1051 = lean_alloc_ctor(0, 2, 0); +} else { + x_1051 = x_967; +} +lean_ctor_set(x_1051, 0, x_1050); +lean_ctor_set(x_1051, 1, x_966); +return x_1051; +} +else +{ +lean_object* x_1052; lean_object* x_1053; +lean_dec(x_1047); +lean_dec(x_1035); +lean_dec(x_967); +x_1052 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5; +x_1053 = l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1(x_1052, x_3, x_4, x_5, x_6, x_7, x_8, x_966); +return x_1053; +} +} +} +} +} +} +default: +{ +lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; +x_1058 = lean_ctor_get(x_11, 1); +lean_inc(x_1058); +lean_dec(x_11); +x_1059 = lean_ctor_get(x_12, 1); +lean_inc(x_1059); +x_1060 = lean_ctor_get(x_12, 2); +lean_inc(x_1060); +lean_dec(x_12); +x_1061 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1061, 0, x_1059); +lean_ctor_set(x_1061, 1, x_2); +x_1 = x_1060; +x_2 = x_1061; +x_9 = x_1058; +goto _start; +} +} +} +else +{ +uint8_t x_1063; +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); +x_1063 = !lean_is_exclusive(x_11); +if (x_1063 == 0) +{ +return x_11; +} +else +{ +lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; +x_1064 = lean_ctor_get(x_11, 0); +x_1065 = lean_ctor_get(x_11, 1); +lean_inc(x_1065); +lean_inc(x_1064); +lean_dec(x_11); +x_1066 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1066, 0, x_1064); +lean_ctor_set(x_1066, 1, x_1065); +return x_1066; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visitCode(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: +{ +switch (lean_obj_tag(x_1)) { +case 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; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_st_ref_get(x_8, x_9); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_take(x_3, x_13); +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 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_10); +x_18 = lean_array_push(x_15, x_17); +x_19 = lean_st_ref_set(x_3, x_18, x_16); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_1 = x_11; +x_9 = x_20; +goto _start; +} +case 1: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_st_ref_get(x_8, x_9); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_take(x_3, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_22); +x_30 = lean_array_push(x_27, x_29); +x_31 = lean_st_ref_set(x_3, x_30, x_28); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_1 = x_23; +x_9 = x_32; +goto _start; +} +case 5: +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_1, 0); +lean_inc(x_34); +lean_dec(x_1); +x_35 = l_Lean_Expr_fvar___override(x_34); +x_36 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit(x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_36; +} +default: +{ +lean_object* x_37; lean_object* x_38; +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); +lean_dec(x_1); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_9); +return x_38; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_st_ref_get(x_8, x_9); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_inlineApp_x3f___spec__2___closed__7; +x_15 = lean_st_mk_ref(x_14, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_16); +x_18 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit(x_2, x_11, x_16, x_4, x_5, x_6, x_7, x_8, x_17); +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_st_ref_get(x_8, x_20); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_st_ref_get(x_16, x_22); +lean_dec(x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Compiler_LCNF_Simp_eraseCodeDecls(x_24, x_4, x_5, x_6, x_7, x_8, x_25); +lean_dec(x_24); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_33 = !lean_is_exclusive(x_23); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_19); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_23, 0); +x_36 = lean_ctor_get(x_19, 0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_19, 0, x_37); +lean_ctor_set(x_23, 0, x_19); +return x_23; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_19, 0); +lean_inc(x_39); +lean_dec(x_19); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_23, 0, x_41); +return x_23; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_42 = lean_ctor_get(x_23, 0); +x_43 = lean_ctor_get(x_23, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_23); +x_44 = lean_ctor_get(x_19, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + x_45 = x_19; +} else { + lean_dec_ref(x_19); + x_45 = lean_box(0); +} +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_42); +lean_ctor_set(x_46, 1, x_44); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(1, 1, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_43); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_18); +if (x_49 == 0) +{ +return x_18; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_18, 0); +x_51 = lean_ctor_get(x_18, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_18); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_dec(x_4); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_11 = l_Lean_Compiler_LCNF_inferType(x_1, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Compiler_LCNF_isClass_x3f(x_12, x_8, x_9, x_13); +lean_dec(x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__1(x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_16); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_14, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_14, 0, x_21); +return x_14; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_dec(x_14); +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); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_11); +if (x_25 == 0) +{ +return x_11; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_11, 0); +x_27 = lean_ctor_get(x_11, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_11); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f(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_1) == 11) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 2); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_9); +x_10 = l_Lean_Compiler_LCNF_inferType(x_9, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +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 = l_Lean_Compiler_LCNF_isClass_x3f(x_11, x_5, x_6, x_12); +lean_dec(x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_13, 0, x_17); +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_dec(x_13); +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); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_dec(x_13); +x_22 = lean_box(0); +x_23 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__2(x_1, x_8, x_9, x_22, x_2, x_3, x_4, x_5, x_6, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_10); +if (x_24 == 0) +{ +return x_10; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_10, 0); +x_26 = lean_ctor_get(x_10, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_10); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_7); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f___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_Compiler_LCNF_Simp_inlineProjInst_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_findCtor(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: { @@ -6266,43 +13402,6 @@ lean_dec(x_2); return x_8; } } -static lean_object* _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Init.Util", 9); -return x_1; -} -} -static lean_object* _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("getElem!", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("index out of bounds", 19); -return x_1; -} -} -static lean_object* _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4() { -_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_Compiler_LCNF_Simp_simpProj_x3f___closed__1; -x_2 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2; -x_3 = lean_unsigned_to_nat(77u); -x_4 = lean_unsigned_to_nat(36u); -x_5 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpProj_x3f(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: { @@ -6378,7 +13477,7 @@ if (x_31 == 0) lean_object* x_32; lean_object* x_33; lean_dec(x_29); lean_dec(x_24); -x_32 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4; +x_32 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; x_33 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_32); lean_ctor_set(x_19, 0, x_33); lean_ctor_set(x_25, 0, x_19); @@ -6415,7 +13514,7 @@ if (x_39 == 0) lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); lean_dec(x_24); -x_40 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4; +x_40 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; x_41 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_40); lean_ctor_set(x_19, 0, x_41); x_42 = lean_alloc_ctor(0, 2, 0); @@ -6473,7 +13572,7 @@ if (x_54 == 0) lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_52); lean_dec(x_47); -x_55 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4; +x_55 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; x_56 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_55); x_57 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -6570,7 +13669,7 @@ if (x_78 == 0) lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_dec(x_76); lean_dec(x_71); -x_79 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4; +x_79 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4; x_80 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_79); if (lean_is_scalar(x_69)) { x_81 = lean_alloc_ctor(1, 1, 0); @@ -7150,309 +14249,17 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_st_ref_take(x_3, x_9); -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_is_exclusive(x_11); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_14, x_1); -lean_ctor_set(x_11, 1, x_15); -x_16 = lean_st_ref_set(x_3, x_11, x_12); -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_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; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -x_25 = lean_ctor_get(x_11, 2); -x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*6); -x_27 = lean_ctor_get(x_11, 3); -x_28 = lean_ctor_get(x_11, 4); -x_29 = lean_ctor_get(x_11, 5); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_11); -x_30 = l_Std_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__2(x_24, x_1); -x_31 = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_25); -lean_ctor_set(x_31, 3, x_27); -lean_ctor_set(x_31, 4, x_28); -lean_ctor_set(x_31, 5, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*6, x_26); -x_32 = lean_st_ref_set(x_3, x_31, x_12); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); -} -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_st_ref_take(x_3, x_9); -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_is_exclusive(x_11); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_14, x_1); -lean_ctor_set(x_11, 1, x_15); -x_16 = lean_st_ref_set(x_3, x_11, x_12); -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_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; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -x_25 = lean_ctor_get(x_11, 2); -x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*6); -x_27 = lean_ctor_get(x_11, 3); -x_28 = lean_ctor_get(x_11, 4); -x_29 = lean_ctor_get(x_11, 5); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_11); -x_30 = l_Lean_Compiler_LCNF_collectLocalDecls_go(x_24, x_1); -x_31 = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_25); -lean_ctor_set(x_31, 3, x_27); -lean_ctor_set(x_31, 4, x_28); -lean_ctor_set(x_31, 5, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*6, x_26); -x_32 = lean_st_ref_set(x_3, x_31, x_12); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); -} -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedExpr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_1, 3); -lean_inc(x_8); -lean_dec(x_1); -x_9 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_8, x_2, x_3, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_markUsedLetDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_st_ref_get(x_3, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_13, x_1); -x_15 = lean_box(x_14); -lean_ctor_set(x_10, 0, x_15); -return x_10; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_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_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Std_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__16(x_18, x_1); -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_17); -return x_21; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_isUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Compiler_LCNF_Simp_isUsed(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_4, x_5, x_6, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_9); -return x_10; +uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = 1; +x_9 = l_Lean_Compiler_LCNF_eraseFVar(x_1, x_8, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_10); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_eraseLocalDecl___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) { @@ -7575,6 +14382,119 @@ lean_dec(x_3); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpValue_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_1); +x_8 = l_Lean_Compiler_LCNF_Simp_simpProj_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Compiler_LCNF_Simp_simpAppApp_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_10); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_8); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_8, 0); +lean_dec(x_13); +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +return x_8; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = lean_ctor_get(x_9, 0); +lean_inc(x_18); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + x_19 = x_9; +} else { + lean_dec_ref(x_9); + x_19 = lean_box(0); +} +if (lean_is_scalar(x_19)) { + x_20 = lean_alloc_ctor(1, 1, 0); +} else { + x_20 = x_19; +} +lean_ctor_set(x_20, 0, x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_8); +if (x_22 == 0) +{ +return x_8; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_8, 0); +x_24 = lean_ctor_get(x_8, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_8); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpValue_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Compiler_LCNF_Simp_simpValue_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -8055,40 +14975,7 @@ x_9 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCN return x_9; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6(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: -{ -uint8_t x_11; -x_11 = lean_usize_dec_eq(x_2, x_3); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; -lean_dec(x_4); -x_12 = lean_array_uget(x_1, x_2); -x_13 = l_Lean_Compiler_LCNF_Simp_markUsedExpr(x_12, x_5, x_6, x_7, x_8, x_9, x_10); -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 = 1; -x_17 = lean_usize_add(x_2, x_16); -x_2 = x_17; -x_4 = x_14; -x_10 = x_15; -goto _start; -} -else -{ -lean_object* x_19; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_4); -lean_ctor_set(x_19, 1, x_10); -return x_19; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__8(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_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__7(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; @@ -8192,16 +15079,641 @@ return x_30; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__7(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_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; x_9 = lean_unsigned_to_nat(0u); -x_10 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__8(x_2, x_9, x_1, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simp___spec__7(x_2, x_9, x_1, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___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_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_12 = l_Lean_Compiler_LCNF_Simp_simp(x_1, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_44; +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_4, 0); +lean_inc(x_15); +lean_inc(x_15); +x_16 = l_Lean_Compiler_LCNF_Simp_isUsed(x_15, x_6, x_7, x_8, x_9, x_10, x_14); +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_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*4); +if (x_44 == 0) +{ +lean_object* x_45; +lean_dec(x_17); +lean_dec(x_15); +x_45 = lean_box(0); +x_19 = x_45; +goto block_43; +} +else +{ +uint8_t x_46; +x_46 = lean_unbox(x_17); +lean_dec(x_17); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_47 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_15, x_6, x_7, x_8, x_9, x_10, x_18); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set(x_47, 0, x_13); +return x_47; +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_dec(x_47); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_13); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_15); +x_52 = lean_box(0); +x_19 = x_52; +goto block_43; +} +} +block_43: +{ +lean_object* x_20; uint8_t x_21; +lean_dec(x_19); +lean_inc(x_4); +x_20 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_4, x_6, x_7, x_8, x_9, x_10, x_18); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; size_t x_23; size_t x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_ptr_addr(x_1); +lean_dec(x_1); +x_24 = lean_ptr_addr(x_13); +x_25 = lean_usize_dec_eq(x_23, x_24); +if (x_25 == 0) +{ +lean_object* x_26; +lean_dec(x_3); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_4); +lean_ctor_set(x_26, 1, x_13); +lean_ctor_set(x_20, 0, x_26); +return x_20; +} +else +{ +size_t x_27; size_t x_28; uint8_t x_29; +x_27 = lean_ptr_addr(x_2); +x_28 = lean_ptr_addr(x_4); +x_29 = lean_usize_dec_eq(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_3); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_4); +lean_ctor_set(x_30, 1, x_13); +lean_ctor_set(x_20, 0, x_30); +return x_20; +} +else +{ +lean_dec(x_13); +lean_dec(x_4); +lean_ctor_set(x_20, 0, x_3); +return x_20; +} +} +} +else +{ +lean_object* x_31; size_t x_32; size_t x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_dec(x_20); +x_32 = lean_ptr_addr(x_1); +lean_dec(x_1); +x_33 = lean_ptr_addr(x_13); +x_34 = lean_usize_dec_eq(x_32, x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_3); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_4); +lean_ctor_set(x_35, 1, x_13); +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 +{ +size_t x_37; size_t x_38; uint8_t x_39; +x_37 = lean_ptr_addr(x_2); +x_38 = lean_ptr_addr(x_4); +x_39 = lean_usize_dec_eq(x_37, x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_3); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_4); +lean_ctor_set(x_40, 1, x_13); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_31); +return x_41; +} +else +{ +lean_object* x_42; +lean_dec(x_13); +lean_dec(x_4); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_3); +lean_ctor_set(x_42, 1, x_31); +return x_42; +} +} +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_12); +if (x_53 == 0) +{ +return x_12; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_12, 0); +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_12); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = lean_ptr_addr(x_1); +x_14 = lean_ptr_addr(x_2); +x_15 = lean_usize_dec_eq(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_12); +return x_17; +} +else +{ +size_t x_18; size_t x_19; uint8_t x_20; +x_18 = lean_ptr_addr(x_4); +x_19 = lean_ptr_addr(x_3); +x_20 = lean_usize_dec_eq(x_18, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_2); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_12); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_5); +lean_ctor_set(x_23, 1, x_12); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_dec(x_6); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_13 = l_Lean_Compiler_LCNF_Simp_simp(x_1, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +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_5, 0); +lean_inc(x_16); +lean_inc(x_16); +x_17 = l_Lean_Compiler_LCNF_Simp_isUsed(x_16, x_7, x_8, x_9, x_10, x_11, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_16, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_14); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +lean_dec(x_16); +if (x_4 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_box(0); +x_28 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_1, x_14, x_5, x_2, x_3, x_27, x_7, x_8, x_9, x_10, x_11, x_26); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_17, 1); +lean_inc(x_29); +lean_dec(x_17); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_30 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_5, x_7, x_8, x_9, x_10, x_11, x_29); +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); +x_33 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_1, x_14, x_5, x_2, x_3, x_31, x_7, x_8, x_9, x_10, x_11, x_32); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_31); +lean_dec(x_2); +lean_dec(x_1); +return x_33; +} +} +} +else +{ +uint8_t x_34; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 0) +{ +return x_13; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_13, 0); +x_36 = lean_ctor_get(x_13, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_13); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = lean_ptr_addr(x_1); +x_14 = lean_ptr_addr(x_2); +x_15 = lean_usize_dec_eq(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_16 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_12); +return x_17; +} +else +{ +size_t x_18; size_t x_19; uint8_t x_20; +x_18 = lean_ptr_addr(x_4); +x_19 = lean_ptr_addr(x_3); +x_20 = lean_usize_dec_eq(x_18, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +x_21 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_2); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_12); +return x_22; +} +else +{ +lean_object* x_23; +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_5); +lean_ctor_set(x_23, 1, x_12); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_dec(x_6); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_13 = l_Lean_Compiler_LCNF_Simp_simp(x_1, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +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_5, 0); +lean_inc(x_16); +lean_inc(x_16); +x_17 = l_Lean_Compiler_LCNF_Simp_isUsed(x_16, x_7, x_8, x_9, x_10, x_11, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_16, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_14); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +lean_dec(x_16); +if (x_4 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_box(0); +x_28 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_1, x_14, x_5, x_2, x_3, x_27, x_7, x_8, x_9, x_10, x_11, x_26); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_17, 1); +lean_inc(x_29); +lean_dec(x_17); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_30 = l_Lean_Compiler_LCNF_Simp_markUsedFunDecl(x_5, x_7, x_8, x_9, x_10, x_11, x_29); +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); +x_33 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_1, x_14, x_5, x_2, x_3, x_31, x_7, x_8, x_9, x_10, x_11, x_32); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_31); +lean_dec(x_2); +lean_dec(x_1); +return x_33; +} +} +} +else +{ +uint8_t x_34; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 0) +{ +return x_13; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_13, 0); +x_36 = lean_ctor_get(x_13, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_13); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; @@ -8263,7 +15775,7 @@ static lean_object* _init_l_Lean_Compiler_LCNF_Simp_simp___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__1), 7, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__6), 7, 0); return x_1; } } @@ -8296,7 +15808,6 @@ x_16 = l_Lean_Expr_isFVar(x_15); if (x_16 == 0) { lean_object* x_17; -lean_dec(x_15); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); @@ -8321,256 +15832,60 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_11); -x_20 = l_Lean_Compiler_LCNF_Simp_simp(x_11, x_2, x_3, x_4, x_5, x_6, x_19); +lean_inc(x_15); +x_20 = l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f(x_15, x_2, x_3, x_4, x_5, x_6, x_19); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_60; +lean_object* x_21; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = lean_ctor_get(x_13, 0); -lean_inc(x_23); -lean_inc(x_23); -x_24 = l_Lean_Compiler_LCNF_Simp_isUsed(x_23, x_2, x_3, x_4, x_5, x_6, x_22); -x_25 = lean_ctor_get(x_24, 0); +x_23 = l_Lean_Compiler_LCNF_Simp_simpValue_x3f(x_15, x_2, x_3, x_4, x_5, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); +lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l_Lean_Compiler_LCNF_Simp_simp___lambda__1(x_11, x_10, x_1, x_13, x_26, x_2, x_3, x_4, x_5, x_6, x_25); +lean_dec(x_10); +return x_27; +} +else +{ +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; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); lean_dec(x_24); -x_60 = lean_ctor_get_uint8(x_13, sizeof(void*)*4); -if (x_60 == 0) -{ -lean_object* x_61; -lean_dec(x_25); -lean_dec(x_23); -x_61 = lean_box(0); -x_27 = x_61; -goto block_59; -} -else -{ -uint8_t x_62; -x_62 = lean_unbox(x_25); -lean_dec(x_25); -if (x_62 == 0) -{ -lean_object* x_63; uint8_t x_64; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_63 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_23, x_2, x_3, x_4, x_5, x_6, x_26); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_63, 0); -lean_dec(x_65); -lean_ctor_set(x_63, 0, x_21); -return x_63; -} -else -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_21); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -else -{ -lean_object* x_68; -lean_dec(x_23); -x_68 = lean_box(0); -x_27 = x_68; -goto block_59; -} -} -block_59: -{ -lean_object* x_28; uint8_t x_29; -lean_dec(x_27); -lean_inc(x_13); -x_28 = l_Lean_Compiler_LCNF_Simp_markUsedLetDecl(x_13, x_2, x_3, x_4, x_5, x_6, x_26); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; size_t x_31; size_t x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_28, 0); +x_30 = l_Lean_Compiler_LCNF_LetDecl_updateValue(x_13, x_29, x_4, x_5, x_6, x_28); +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); -x_31 = lean_ptr_addr(x_11); -lean_dec(x_11); -x_32 = lean_ptr_addr(x_21); -x_33 = lean_usize_dec_eq(x_31, x_32); -if (x_33 == 0) -{ -uint8_t x_34; +x_33 = lean_box(0); +x_34 = l_Lean_Compiler_LCNF_Simp_simp___lambda__1(x_11, x_10, x_1, x_31, x_33, x_2, x_3, x_4, x_5, x_6, x_32); lean_dec(x_10); -x_34 = !lean_is_exclusive(x_1); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_1, 1); -lean_dec(x_35); -x_36 = lean_ctor_get(x_1, 0); -lean_dec(x_36); -lean_ctor_set(x_1, 1, x_21); -lean_ctor_set(x_1, 0, x_13); -lean_ctor_set(x_28, 0, x_1); -return x_28; -} -else -{ -lean_object* x_37; -lean_dec(x_1); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_13); -lean_ctor_set(x_37, 1, x_21); -lean_ctor_set(x_28, 0, x_37); -return x_28; +return x_34; } } else { -size_t x_38; size_t x_39; uint8_t x_40; -x_38 = lean_ptr_addr(x_10); -lean_dec(x_10); -x_39 = lean_ptr_addr(x_13); -x_40 = lean_usize_dec_eq(x_38, x_39); -if (x_40 == 0) -{ -uint8_t x_41; -x_41 = !lean_is_exclusive(x_1); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_1, 1); -lean_dec(x_42); -x_43 = lean_ctor_get(x_1, 0); -lean_dec(x_43); -lean_ctor_set(x_1, 1, x_21); -lean_ctor_set(x_1, 0, x_13); -lean_ctor_set(x_28, 0, x_1); -return x_28; -} -else -{ -lean_object* x_44; -lean_dec(x_1); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_13); -lean_ctor_set(x_44, 1, x_21); -lean_ctor_set(x_28, 0, x_44); -return x_28; -} -} -else -{ -lean_dec(x_21); -lean_dec(x_13); -lean_ctor_set(x_28, 0, x_1); -return x_28; -} -} -} -else -{ -lean_object* x_45; size_t x_46; size_t x_47; uint8_t x_48; -x_45 = lean_ctor_get(x_28, 1); -lean_inc(x_45); -lean_dec(x_28); -x_46 = lean_ptr_addr(x_11); -lean_dec(x_11); -x_47 = lean_ptr_addr(x_21); -x_48 = lean_usize_dec_eq(x_46, x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_10); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_49 = x_1; -} else { - lean_dec_ref(x_1); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_13); -lean_ctor_set(x_50, 1, x_21); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_45); -return x_51; -} -else -{ -size_t x_52; size_t x_53; uint8_t x_54; -x_52 = lean_ptr_addr(x_10); -lean_dec(x_10); -x_53 = lean_ptr_addr(x_13); -x_54 = lean_usize_dec_eq(x_52, x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_55 = x_1; -} else { - lean_dec_ref(x_1); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_13); -lean_ctor_set(x_56, 1, x_21); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_45); -return x_57; -} -else -{ -lean_object* x_58; -lean_dec(x_21); -lean_dec(x_13); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_1); -lean_ctor_set(x_58, 1, x_45); -return x_58; -} -} -} -} -} -else -{ -uint8_t x_69; +uint8_t x_35; lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); @@ -8580,53 +15895,167 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_20); -if (x_69 == 0) +x_35 = !lean_is_exclusive(x_23); +if (x_35 == 0) +{ +return x_23; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_23, 0); +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_23); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_1); +x_39 = lean_ctor_get(x_21, 0); +lean_inc(x_39); +lean_dec(x_21); +x_40 = lean_ctor_get(x_20, 1); +lean_inc(x_40); +lean_dec(x_20); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_ctor_get(x_13, 0); +lean_inc(x_43); +lean_dec(x_13); +x_44 = l_Lean_Expr_fvar___override(x_42); +lean_inc(x_43); +x_45 = l_Lean_Compiler_LCNF_Simp_addSubst(x_43, x_44, x_2, x_3, x_4, x_5, x_6, x_40); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_43, x_2, x_3, x_4, x_5, x_6, x_46); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_49 = l_Lean_Compiler_LCNF_Simp_simp(x_11, x_2, x_3, x_4, x_5, x_6, x_48); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Lean_Compiler_LCNF_Simp_attachCodeDecls(x_41, x_50, x_2, x_3, x_4, x_5, x_6, x_51); +lean_dec(x_41); +return x_52; +} +else +{ +uint8_t x_53; +lean_dec(x_41); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_53 = !lean_is_exclusive(x_49); +if (x_53 == 0) +{ +return x_49; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_49, 0); +x_55 = lean_ctor_get(x_49, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_49); +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_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_20); +if (x_57 == 0) { return x_20; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_20, 0); -x_71 = lean_ctor_get(x_20, 1); -lean_inc(x_71); -lean_inc(x_70); +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_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; +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 { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_15); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_73 = lean_ctor_get(x_17, 1); -lean_inc(x_73); +x_61 = lean_ctor_get(x_17, 1); +lean_inc(x_61); lean_dec(x_17); -x_74 = lean_ctor_get(x_18, 0); -lean_inc(x_74); +x_62 = lean_ctor_get(x_18, 0); +lean_inc(x_62); lean_dec(x_18); -x_75 = lean_ctor_get(x_13, 0); -lean_inc(x_75); +x_63 = lean_ctor_get(x_13, 0); +lean_inc(x_63); lean_dec(x_13); -x_76 = l_Lean_Compiler_LCNF_eraseFVar(x_75, x_4, x_5, x_6, x_73); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_1 = x_74; -x_7 = x_77; +x_64 = 1; +x_65 = l_Lean_Compiler_LCNF_eraseFVar(x_63, x_64, x_4, x_5, x_6, x_61); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_1 = x_62; +x_7 = x_66; goto _start; } } else { -uint8_t x_79; +uint8_t x_68; +lean_dec(x_15); lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); @@ -8636,1358 +16065,1370 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_17); -if (x_79 == 0) +x_68 = !lean_is_exclusive(x_17); +if (x_68 == 0) { return x_17; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_17, 0); -x_81 = lean_ctor_get(x_17, 1); -lean_inc(x_81); -lean_inc(x_80); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_17, 0); +x_70 = lean_ctor_get(x_17, 1); +lean_inc(x_70); +lean_inc(x_69); lean_dec(x_17); -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; +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 { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_dec(x_10); lean_dec(x_1); -x_83 = lean_ctor_get(x_13, 0); -lean_inc(x_83); +x_72 = lean_ctor_get(x_13, 0); +lean_inc(x_72); lean_dec(x_13); -lean_inc(x_83); -x_84 = l_Lean_Compiler_LCNF_Simp_addSubst(x_83, x_15, x_2, x_3, x_4, x_5, x_6, x_14); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -lean_dec(x_84); -x_86 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_83, x_2, x_3, x_4, x_5, x_6, x_85); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); +lean_inc(x_72); +x_73 = l_Lean_Compiler_LCNF_Simp_addSubst(x_72, x_15, x_2, x_3, x_4, x_5, x_6, x_14); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_72, x_2, x_3, x_4, x_5, x_6, x_74); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); x_1 = x_11; -x_7 = x_87; +x_7 = x_76; goto _start; } } case 1: { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_89 = lean_ctor_get(x_8, 1); -lean_inc(x_89); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_78 = lean_ctor_get(x_8, 1); +lean_inc(x_78); lean_dec(x_8); -x_90 = lean_ctor_get(x_1, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_1, 1); -lean_inc(x_91); +x_79 = lean_ctor_get(x_1, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_1, 1); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +x_82 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_81, x_2, x_3, x_4, x_5, x_6, x_78); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_unbox(x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec(x_82); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_90); -x_92 = l_Lean_Compiler_LCNF_Simp_simpFunDecl(x_90, x_2, x_3, x_4, x_5, x_6, x_89); -if (lean_obj_tag(x_92) == 0) +lean_inc(x_79); +x_86 = l_Lean_Compiler_LCNF_Simp_simpFunDecl(x_79, x_2, x_3, x_4, x_5, x_6, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_91); -x_95 = l_Lean_Compiler_LCNF_Simp_simp(x_91, x_2, x_3, x_4, x_5, x_6, x_94); -if (lean_obj_tag(x_95) == 0) +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = lean_box(0); +x_90 = lean_unbox(x_83); +lean_dec(x_83); +x_91 = l_Lean_Compiler_LCNF_Simp_simp___lambda__3(x_80, x_79, x_1, x_90, x_87, x_89, x_2, x_3, x_4, x_5, x_6, x_88); +return x_91; +} +else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -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 = lean_ctor_get(x_93, 0); -lean_inc(x_98); -lean_inc(x_98); -x_99 = l_Lean_Compiler_LCNF_Simp_isUsed(x_98, x_2, x_3, x_4, x_5, x_6, x_97); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_unbox(x_100); -lean_dec(x_100); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; uint8_t x_104; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_1); -x_102 = lean_ctor_get(x_99, 1); -lean_inc(x_102); -lean_dec(x_99); -x_103 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_98, x_2, x_3, x_4, x_5, x_6, x_102); +uint8_t x_92; +lean_dec(x_83); +lean_dec(x_80); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_104 = !lean_is_exclusive(x_103); -if (x_104 == 0) +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_86); +if (x_92 == 0) +{ +return x_86; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_86, 0); +x_94 = lean_ctor_get(x_86, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_86); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_96 = lean_ctor_get(x_82, 1); +lean_inc(x_96); +lean_dec(x_82); +x_97 = lean_st_ref_get(x_6, x_96); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +x_99 = lean_st_ref_get(x_3, x_98); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = lean_ctor_get(x_100, 0); +lean_inc(x_102); +lean_dec(x_100); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_79); +x_103 = l_Lean_Compiler_LCNF_normFunDeclImp(x_79, x_102, x_4, x_5, x_6, x_101); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_box(0); +x_107 = lean_unbox(x_83); +lean_dec(x_83); +x_108 = l_Lean_Compiler_LCNF_Simp_simp___lambda__3(x_80, x_79, x_1, x_107, x_104, x_106, x_2, x_3, x_4, x_5, x_6, x_105); +return x_108; +} +else +{ +uint8_t x_109; +lean_dec(x_83); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_109 = !lean_is_exclusive(x_103); +if (x_109 == 0) { -lean_object* x_105; -x_105 = lean_ctor_get(x_103, 0); -lean_dec(x_105); -lean_ctor_set(x_103, 0, x_96); return x_103; } else { -lean_object* x_106; lean_object* x_107; -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_103, 0); +x_111 = lean_ctor_get(x_103, 1); +lean_inc(x_111); +lean_inc(x_110); lean_dec(x_103); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_96); -lean_ctor_set(x_107, 1, x_106); -return x_107; +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } -else -{ -uint8_t x_108; -lean_dec(x_98); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_99); -if (x_108 == 0) -{ -lean_object* x_109; size_t x_110; size_t x_111; uint8_t x_112; -x_109 = lean_ctor_get(x_99, 0); -lean_dec(x_109); -x_110 = lean_ptr_addr(x_91); -lean_dec(x_91); -x_111 = lean_ptr_addr(x_96); -x_112 = lean_usize_dec_eq(x_110, x_111); -if (x_112 == 0) -{ -uint8_t x_113; -lean_dec(x_90); -x_113 = !lean_is_exclusive(x_1); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_1, 1); -lean_dec(x_114); -x_115 = lean_ctor_get(x_1, 0); -lean_dec(x_115); -lean_ctor_set(x_1, 1, x_96); -lean_ctor_set(x_1, 0, x_93); -lean_ctor_set(x_99, 0, x_1); -return x_99; -} -else -{ -lean_object* x_116; -lean_dec(x_1); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_93); -lean_ctor_set(x_116, 1, x_96); -lean_ctor_set(x_99, 0, x_116); -return x_99; -} -} -else -{ -size_t x_117; size_t x_118; uint8_t x_119; -x_117 = lean_ptr_addr(x_90); -lean_dec(x_90); -x_118 = lean_ptr_addr(x_93); -x_119 = lean_usize_dec_eq(x_117, x_118); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = !lean_is_exclusive(x_1); -if (x_120 == 0) -{ -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_1, 1); -lean_dec(x_121); -x_122 = lean_ctor_get(x_1, 0); -lean_dec(x_122); -lean_ctor_set(x_1, 1, x_96); -lean_ctor_set(x_1, 0, x_93); -lean_ctor_set(x_99, 0, x_1); -return x_99; -} -else -{ -lean_object* x_123; -lean_dec(x_1); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_93); -lean_ctor_set(x_123, 1, x_96); -lean_ctor_set(x_99, 0, x_123); -return x_99; -} -} -else -{ -lean_dec(x_96); -lean_dec(x_93); -lean_ctor_set(x_99, 0, x_1); -return x_99; -} -} -} -else -{ -lean_object* x_124; size_t x_125; size_t x_126; uint8_t x_127; -x_124 = lean_ctor_get(x_99, 1); -lean_inc(x_124); -lean_dec(x_99); -x_125 = lean_ptr_addr(x_91); -lean_dec(x_91); -x_126 = lean_ptr_addr(x_96); -x_127 = lean_usize_dec_eq(x_125, x_126); -if (x_127 == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec(x_90); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_128 = x_1; -} else { - lean_dec_ref(x_1); - x_128 = lean_box(0); -} -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); -} else { - x_129 = x_128; -} -lean_ctor_set(x_129, 0, x_93); -lean_ctor_set(x_129, 1, x_96); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_124); -return x_130; -} -else -{ -size_t x_131; size_t x_132; uint8_t x_133; -x_131 = lean_ptr_addr(x_90); -lean_dec(x_90); -x_132 = lean_ptr_addr(x_93); -x_133 = lean_usize_dec_eq(x_131, x_132); -if (x_133 == 0) -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_134 = x_1; -} else { - lean_dec_ref(x_1); - x_134 = lean_box(0); -} -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(1, 2, 0); -} else { - x_135 = x_134; -} -lean_ctor_set(x_135, 0, x_93); -lean_ctor_set(x_135, 1, x_96); -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_124); -return x_136; -} -else -{ -lean_object* x_137; -lean_dec(x_96); -lean_dec(x_93); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_1); -lean_ctor_set(x_137, 1, x_124); -return x_137; -} -} -} -} -} -else -{ -uint8_t x_138; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_138 = !lean_is_exclusive(x_95); -if (x_138 == 0) -{ -return x_95; -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_95, 0); -x_140 = lean_ctor_get(x_95, 1); -lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_95); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -return x_141; -} -} -} -else -{ -uint8_t x_142; -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_142 = !lean_is_exclusive(x_92); -if (x_142 == 0) -{ -return x_92; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_92, 0); -x_144 = lean_ctor_get(x_92, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_92); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -return x_145; -} } } case 2: { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_146 = lean_ctor_get(x_8, 1); -lean_inc(x_146); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_113 = lean_ctor_get(x_8, 1); +lean_inc(x_113); lean_dec(x_8); -x_147 = lean_ctor_get(x_1, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_1, 1); -lean_inc(x_148); +x_114 = lean_ctor_get(x_1, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_1, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 0); +lean_inc(x_116); +x_117 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_116, x_2, x_3, x_4, x_5, x_6, x_113); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_unbox(x_118); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_117, 1); +lean_inc(x_120); +lean_dec(x_117); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_147); -x_149 = l_Lean_Compiler_LCNF_Simp_simpFunDecl(x_147, x_2, x_3, x_4, x_5, x_6, x_146); -if (lean_obj_tag(x_149) == 0) +lean_inc(x_114); +x_121 = l_Lean_Compiler_LCNF_Simp_simpFunDecl(x_114, x_2, x_3, x_4, x_5, x_6, x_120); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_124 = lean_box(0); +x_125 = lean_unbox(x_118); +lean_dec(x_118); +x_126 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_115, x_114, x_1, x_125, x_122, x_124, x_2, x_3, x_4, x_5, x_6, x_123); +return x_126; +} +else +{ +uint8_t x_127; +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_127 = !lean_is_exclusive(x_121); +if (x_127 == 0) +{ +return x_121; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_121, 0); +x_129 = lean_ctor_get(x_121, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_121); +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; +} +} +} +else +{ +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; +x_131 = lean_ctor_get(x_117, 1); +lean_inc(x_131); +lean_dec(x_117); +x_132 = lean_st_ref_get(x_6, x_131); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +lean_dec(x_132); +x_134 = lean_st_ref_get(x_3, x_133); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_137 = lean_ctor_get(x_135, 0); +lean_inc(x_137); +lean_dec(x_135); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_148); -x_152 = l_Lean_Compiler_LCNF_Simp_simp(x_148, x_2, x_3, x_4, x_5, x_6, x_151); -if (lean_obj_tag(x_152) == 0) +lean_inc(x_114); +x_138 = l_Lean_Compiler_LCNF_normFunDeclImp(x_114, x_137, x_4, x_5, x_6, x_136); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = lean_ctor_get(x_150, 0); -lean_inc(x_155); -lean_inc(x_155); -x_156 = l_Lean_Compiler_LCNF_Simp_isUsed(x_155, x_2, x_3, x_4, x_5, x_6, x_154); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_unbox(x_157); -lean_dec(x_157); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; uint8_t x_161; -lean_dec(x_150); -lean_dec(x_148); -lean_dec(x_147); -lean_dec(x_1); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_dec(x_156); -x_160 = l_Lean_Compiler_LCNF_Simp_eraseLocalDecl(x_155, x_2, x_3, x_4, x_5, x_6, x_159); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; -x_162 = lean_ctor_get(x_160, 0); -lean_dec(x_162); -lean_ctor_set(x_160, 0, x_153); -return x_160; +lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = lean_box(0); +x_142 = lean_unbox(x_118); +lean_dec(x_118); +x_143 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_115, x_114, x_1, x_142, x_139, x_141, x_2, x_3, x_4, x_5, x_6, x_140); +return x_143; } else { -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_160, 1); -lean_inc(x_163); -lean_dec(x_160); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_153); -lean_ctor_set(x_164, 1, x_163); -return x_164; -} -} -else -{ -uint8_t x_165; -lean_dec(x_155); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_165 = !lean_is_exclusive(x_156); -if (x_165 == 0) -{ -lean_object* x_166; size_t x_167; size_t x_168; uint8_t x_169; -x_166 = lean_ctor_get(x_156, 0); -lean_dec(x_166); -x_167 = lean_ptr_addr(x_148); -lean_dec(x_148); -x_168 = lean_ptr_addr(x_153); -x_169 = lean_usize_dec_eq(x_167, x_168); -if (x_169 == 0) -{ -uint8_t x_170; -lean_dec(x_147); -x_170 = !lean_is_exclusive(x_1); -if (x_170 == 0) -{ -lean_object* x_171; lean_object* x_172; -x_171 = lean_ctor_get(x_1, 1); -lean_dec(x_171); -x_172 = lean_ctor_get(x_1, 0); -lean_dec(x_172); -lean_ctor_set(x_1, 1, x_153); -lean_ctor_set(x_1, 0, x_150); -lean_ctor_set(x_156, 0, x_1); -return x_156; -} -else -{ -lean_object* x_173; -lean_dec(x_1); -x_173 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_173, 0, x_150); -lean_ctor_set(x_173, 1, x_153); -lean_ctor_set(x_156, 0, x_173); -return x_156; -} -} -else -{ -size_t x_174; size_t x_175; uint8_t x_176; -x_174 = lean_ptr_addr(x_147); -lean_dec(x_147); -x_175 = lean_ptr_addr(x_150); -x_176 = lean_usize_dec_eq(x_174, x_175); -if (x_176 == 0) -{ -uint8_t x_177; -x_177 = !lean_is_exclusive(x_1); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_1, 1); -lean_dec(x_178); -x_179 = lean_ctor_get(x_1, 0); -lean_dec(x_179); -lean_ctor_set(x_1, 1, x_153); -lean_ctor_set(x_1, 0, x_150); -lean_ctor_set(x_156, 0, x_1); -return x_156; -} -else -{ -lean_object* x_180; -lean_dec(x_1); -x_180 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_180, 0, x_150); -lean_ctor_set(x_180, 1, x_153); -lean_ctor_set(x_156, 0, x_180); -return x_156; -} -} -else -{ -lean_dec(x_153); -lean_dec(x_150); -lean_ctor_set(x_156, 0, x_1); -return x_156; -} -} -} -else -{ -lean_object* x_181; size_t x_182; size_t x_183; uint8_t x_184; -x_181 = lean_ctor_get(x_156, 1); -lean_inc(x_181); -lean_dec(x_156); -x_182 = lean_ptr_addr(x_148); -lean_dec(x_148); -x_183 = lean_ptr_addr(x_153); -x_184 = lean_usize_dec_eq(x_182, x_183); -if (x_184 == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_147); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_185 = x_1; -} else { - lean_dec_ref(x_1); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(2, 2, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_150); -lean_ctor_set(x_186, 1, x_153); -x_187 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_181); -return x_187; -} -else -{ -size_t x_188; size_t x_189; uint8_t x_190; -x_188 = lean_ptr_addr(x_147); -lean_dec(x_147); -x_189 = lean_ptr_addr(x_150); -x_190 = lean_usize_dec_eq(x_188, x_189); -if (x_190 == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_191 = x_1; -} else { - lean_dec_ref(x_1); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(2, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_150); -lean_ctor_set(x_192, 1, x_153); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_181); -return x_193; -} -else -{ -lean_object* x_194; -lean_dec(x_153); -lean_dec(x_150); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_1); -lean_ctor_set(x_194, 1, x_181); -return x_194; -} -} -} -} -} -else -{ -uint8_t x_195; -lean_dec(x_150); -lean_dec(x_148); -lean_dec(x_147); +uint8_t x_144; +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_114); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_195 = !lean_is_exclusive(x_152); -if (x_195 == 0) +x_144 = !lean_is_exclusive(x_138); +if (x_144 == 0) { -return x_152; +return x_138; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_152, 0); -x_197 = lean_ctor_get(x_152, 1); -lean_inc(x_197); -lean_inc(x_196); -lean_dec(x_152); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -return x_198; +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_138, 0); +x_146 = lean_ctor_get(x_138, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_138); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; } } } -else -{ -uint8_t x_199; -lean_dec(x_148); -lean_dec(x_147); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_199 = !lean_is_exclusive(x_149); -if (x_199 == 0) -{ -return x_149; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_149, 0); -x_201 = lean_ctor_get(x_149, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_149); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; -} -} } case 3: { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_203 = lean_ctor_get(x_8, 1); -lean_inc(x_203); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_148 = lean_ctor_get(x_8, 1); +lean_inc(x_148); lean_dec(x_8); -x_204 = lean_ctor_get(x_1, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_1, 1); -lean_inc(x_205); -x_206 = lean_st_ref_get(x_6, x_203); -x_207 = lean_ctor_get(x_206, 1); -lean_inc(x_207); -lean_dec(x_206); -x_208 = lean_st_ref_get(x_3, x_207); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = lean_ctor_get(x_209, 0); -lean_inc(x_211); -lean_dec(x_209); -lean_inc(x_204); -x_212 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_211, x_204); +x_149 = lean_ctor_get(x_1, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_1, 1); +lean_inc(x_150); +x_151 = lean_st_ref_get(x_6, x_148); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_153 = lean_st_ref_get(x_3, x_152); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = lean_ctor_get(x_154, 0); +lean_inc(x_156); +lean_dec(x_154); +lean_inc(x_149); +x_157 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_156, x_149); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_205); -x_213 = l_Lean_Compiler_LCNF_normExprs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_205, x_2, x_3, x_4, x_5, x_6, x_210); -if (lean_obj_tag(x_213) == 0) +lean_inc(x_150); +x_158 = l_Lean_Compiler_LCNF_normExprs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_150, x_2, x_3, x_4, x_5, x_6, x_155); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_216 = x_213; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_181; +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_161 = x_158; } else { - lean_dec_ref(x_213); - x_216 = lean_box(0); + lean_dec_ref(x_158); + x_161 = lean_box(0); } -lean_inc(x_212); -x_236 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_212, x_2, x_3, x_4, x_5, x_6, x_215); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -lean_dec(x_236); -x_238 = lean_array_get_size(x_214); -x_239 = lean_unsigned_to_nat(0u); -x_240 = lean_nat_dec_lt(x_239, x_238); -if (x_240 == 0) +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_159); +lean_inc(x_157); +x_181 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(x_157, x_159, x_2, x_3, x_4, x_5, x_6, x_160); +if (lean_obj_tag(x_181) == 0) { -lean_dec(x_238); +lean_object* x_182; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec(x_181); +lean_inc(x_157); +x_184 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_157, x_2, x_3, x_4, x_5, x_6, x_183); +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +lean_dec(x_184); +x_186 = lean_array_get_size(x_159); +x_187 = lean_unsigned_to_nat(0u); +x_188 = lean_nat_dec_lt(x_187, x_186); +if (x_188 == 0) +{ +lean_dec(x_186); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_217 = x_237; -goto block_235; +x_162 = x_185; +goto block_180; } else { -uint8_t x_241; -x_241 = lean_nat_dec_le(x_238, x_238); -if (x_241 == 0) +uint8_t x_189; +x_189 = lean_nat_dec_le(x_186, x_186); +if (x_189 == 0) { -lean_dec(x_238); +lean_dec(x_186); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_217 = x_237; -goto block_235; +x_162 = x_185; +goto block_180; } else { -size_t x_242; size_t x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_242 = 0; -x_243 = lean_usize_of_nat(x_238); -lean_dec(x_238); -x_244 = lean_box(0); -x_245 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6(x_214, x_242, x_243, x_244, x_2, x_3, x_4, x_5, x_6, x_237); +size_t x_190; size_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_190 = 0; +x_191 = lean_usize_of_nat(x_186); +lean_dec(x_186); +x_192 = lean_box(0); +x_193 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedCode___spec__1(x_159, x_190, x_191, x_192, x_2, x_3, x_4, x_5, x_6, x_185); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_246 = lean_ctor_get(x_245, 1); -lean_inc(x_246); -lean_dec(x_245); -x_217 = x_246; -goto block_235; +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +lean_dec(x_193); +x_162 = x_194; +goto block_180; } } -block_235: -{ -uint8_t x_218; -x_218 = lean_name_eq(x_204, x_212); -lean_dec(x_204); -if (x_218 == 0) -{ -uint8_t x_219; -lean_dec(x_205); -x_219 = !lean_is_exclusive(x_1); -if (x_219 == 0) -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_1, 1); -lean_dec(x_220); -x_221 = lean_ctor_get(x_1, 0); -lean_dec(x_221); -lean_ctor_set(x_1, 1, x_214); -lean_ctor_set(x_1, 0, x_212); -if (lean_is_scalar(x_216)) { - x_222 = lean_alloc_ctor(0, 2, 0); -} else { - x_222 = x_216; -} -lean_ctor_set(x_222, 0, x_1); -lean_ctor_set(x_222, 1, x_217); -return x_222; } else { -lean_object* x_223; lean_object* x_224; +lean_object* x_195; lean_object* x_196; +lean_dec(x_161); +lean_dec(x_159); +lean_dec(x_157); +lean_dec(x_150); +lean_dec(x_149); lean_dec(x_1); -x_223 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_223, 0, x_212); -lean_ctor_set(x_223, 1, x_214); -if (lean_is_scalar(x_216)) { - x_224 = lean_alloc_ctor(0, 2, 0); -} else { - x_224 = x_216; -} -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_217); -return x_224; +x_195 = lean_ctor_get(x_181, 1); +lean_inc(x_195); +lean_dec(x_181); +x_196 = lean_ctor_get(x_182, 0); +lean_inc(x_196); +lean_dec(x_182); +x_1 = x_196; +x_7 = x_195; +goto _start; } } else { -size_t x_225; size_t x_226; uint8_t x_227; -x_225 = lean_ptr_addr(x_205); -lean_dec(x_205); -x_226 = lean_ptr_addr(x_214); -x_227 = lean_usize_dec_eq(x_225, x_226); -if (x_227 == 0) -{ -uint8_t x_228; -x_228 = !lean_is_exclusive(x_1); -if (x_228 == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_1, 1); -lean_dec(x_229); -x_230 = lean_ctor_get(x_1, 0); -lean_dec(x_230); -lean_ctor_set(x_1, 1, x_214); -lean_ctor_set(x_1, 0, x_212); -if (lean_is_scalar(x_216)) { - x_231 = lean_alloc_ctor(0, 2, 0); -} else { - x_231 = x_216; -} -lean_ctor_set(x_231, 0, x_1); -lean_ctor_set(x_231, 1, x_217); -return x_231; -} -else -{ -lean_object* x_232; lean_object* x_233; -lean_dec(x_1); -x_232 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_232, 0, x_212); -lean_ctor_set(x_232, 1, x_214); -if (lean_is_scalar(x_216)) { - x_233 = lean_alloc_ctor(0, 2, 0); -} else { - x_233 = x_216; -} -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_217); -return x_233; -} -} -else -{ -lean_object* x_234; -lean_dec(x_214); -lean_dec(x_212); -if (lean_is_scalar(x_216)) { - x_234 = lean_alloc_ctor(0, 2, 0); -} else { - x_234 = x_216; -} -lean_ctor_set(x_234, 0, x_1); -lean_ctor_set(x_234, 1, x_217); -return x_234; -} -} -} -} -else -{ -uint8_t x_247; -lean_dec(x_212); -lean_dec(x_205); -lean_dec(x_204); +uint8_t x_198; +lean_dec(x_161); +lean_dec(x_159); +lean_dec(x_157); +lean_dec(x_150); +lean_dec(x_149); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_247 = !lean_is_exclusive(x_213); -if (x_247 == 0) +x_198 = !lean_is_exclusive(x_181); +if (x_198 == 0) { -return x_213; +return x_181; } else { -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_213, 0); -x_249 = lean_ctor_get(x_213, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_213); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_181, 0); +x_200 = lean_ctor_get(x_181, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_181); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +return x_201; +} +} +block_180: +{ +uint8_t x_163; +x_163 = lean_name_eq(x_149, x_157); +lean_dec(x_149); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_150); +x_164 = !lean_is_exclusive(x_1); +if (x_164 == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_1, 1); +lean_dec(x_165); +x_166 = lean_ctor_get(x_1, 0); +lean_dec(x_166); +lean_ctor_set(x_1, 1, x_159); +lean_ctor_set(x_1, 0, x_157); +if (lean_is_scalar(x_161)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_161; +} +lean_ctor_set(x_167, 0, x_1); +lean_ctor_set(x_167, 1, x_162); +return x_167; +} +else +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_1); +x_168 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_168, 0, x_157); +lean_ctor_set(x_168, 1, x_159); +if (lean_is_scalar(x_161)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_161; +} +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_162); +return x_169; +} +} +else +{ +size_t x_170; size_t x_171; uint8_t x_172; +x_170 = lean_ptr_addr(x_150); +lean_dec(x_150); +x_171 = lean_ptr_addr(x_159); +x_172 = lean_usize_dec_eq(x_170, x_171); +if (x_172 == 0) +{ +uint8_t x_173; +x_173 = !lean_is_exclusive(x_1); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_1, 1); +lean_dec(x_174); +x_175 = lean_ctor_get(x_1, 0); +lean_dec(x_175); +lean_ctor_set(x_1, 1, x_159); +lean_ctor_set(x_1, 0, x_157); +if (lean_is_scalar(x_161)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_161; +} +lean_ctor_set(x_176, 0, x_1); +lean_ctor_set(x_176, 1, x_162); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; +lean_dec(x_1); +x_177 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_177, 0, x_157); +lean_ctor_set(x_177, 1, x_159); +if (lean_is_scalar(x_161)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_161; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_162); +return x_178; +} +} +else +{ +lean_object* x_179; +lean_dec(x_159); +lean_dec(x_157); +if (lean_is_scalar(x_161)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_161; +} +lean_ctor_set(x_179, 0, x_1); +lean_ctor_set(x_179, 1, x_162); +return x_179; +} +} +} +} +else +{ +uint8_t x_202; +lean_dec(x_157); +lean_dec(x_150); +lean_dec(x_149); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_202 = !lean_is_exclusive(x_158); +if (x_202 == 0) +{ +return x_158; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_158, 0); +x_204 = lean_ctor_get(x_158, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_158); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } case 4: { -lean_object* x_251; lean_object* x_252; uint8_t x_253; -x_251 = lean_ctor_get(x_1, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_8, 1); -lean_inc(x_252); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_8, 1); +lean_inc(x_206); lean_dec(x_8); -x_253 = !lean_is_exclusive(x_251); -if (x_253 == 0) +x_207 = lean_ctor_get(x_1, 0); +lean_inc(x_207); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_207); +x_208 = l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(x_207, x_2, x_3, x_4, x_5, x_6, x_206); +if (lean_obj_tag(x_208) == 0) { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_254 = lean_ctor_get(x_251, 0); -x_255 = lean_ctor_get(x_251, 1); -x_256 = lean_ctor_get(x_251, 2); -x_257 = lean_ctor_get(x_251, 3); -x_258 = lean_st_ref_get(x_6, x_252); -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -lean_dec(x_258); -x_260 = lean_st_ref_get(x_3, x_259); -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_ctor_get(x_261, 0); -lean_inc(x_263); -lean_dec(x_261); -lean_inc(x_255); -x_264 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_263, x_255); -x_265 = lean_st_ref_get(x_6, x_262); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -lean_dec(x_265); -x_267 = lean_st_ref_get(x_3, x_266); -x_268 = lean_ctor_get(x_267, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); -lean_dec(x_267); -x_270 = lean_ctor_get(x_268, 0); -lean_inc(x_270); -lean_dec(x_268); -lean_inc(x_256); -x_271 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_270, x_256); -lean_inc(x_271); -x_272 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_271, x_2, x_3, x_4, x_5, x_6, x_269); -x_273 = lean_ctor_get(x_272, 1); -lean_inc(x_273); -lean_dec(x_272); -x_274 = l_Lean_Compiler_LCNF_Simp_simp___closed__1; -lean_inc(x_257); -x_275 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__7(x_257, x_274, x_2, x_3, x_4, x_5, x_6, x_273); -if (lean_obj_tag(x_275) == 0) +lean_object* x_209; +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +if (lean_obj_tag(x_209) == 0) { -uint8_t x_276; -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) +lean_object* x_210; uint8_t x_211; +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); +lean_dec(x_208); +x_211 = !lean_is_exclusive(x_207); +if (x_211 == 0) { -lean_object* x_277; size_t x_278; size_t x_279; uint8_t x_280; -x_277 = lean_ctor_get(x_275, 0); -x_278 = lean_ptr_addr(x_257); -lean_dec(x_257); -x_279 = lean_ptr_addr(x_277); -x_280 = lean_usize_dec_eq(x_278, x_279); -if (x_280 == 0) +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_212 = lean_ctor_get(x_207, 0); +x_213 = lean_ctor_get(x_207, 1); +x_214 = lean_ctor_get(x_207, 2); +x_215 = lean_ctor_get(x_207, 3); +x_216 = lean_st_ref_get(x_6, x_210); +x_217 = lean_ctor_get(x_216, 1); +lean_inc(x_217); +lean_dec(x_216); +x_218 = lean_st_ref_get(x_3, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_ctor_get(x_219, 0); +lean_inc(x_221); +lean_dec(x_219); +lean_inc(x_214); +x_222 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_221, x_214); +x_223 = lean_st_ref_get(x_6, x_220); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +lean_dec(x_223); +x_225 = lean_st_ref_get(x_3, x_224); +x_226 = lean_ctor_get(x_225, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_225, 1); +lean_inc(x_227); +lean_dec(x_225); +x_228 = lean_ctor_get(x_226, 0); +lean_inc(x_228); +lean_dec(x_226); +lean_inc(x_213); +x_229 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_228, x_213); +lean_inc(x_222); +x_230 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_222, x_2, x_3, x_4, x_5, x_6, x_227); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +lean_dec(x_230); +x_232 = l_Lean_Compiler_LCNF_Simp_simp___closed__1; +lean_inc(x_215); +x_233 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__6(x_215, x_232, x_2, x_3, x_4, x_5, x_6, x_231); +if (lean_obj_tag(x_233) == 0) { -uint8_t x_281; -lean_dec(x_256); -lean_dec(x_255); -x_281 = !lean_is_exclusive(x_1); -if (x_281 == 0) +uint8_t x_234; +x_234 = !lean_is_exclusive(x_233); +if (x_234 == 0) { -lean_object* x_282; -x_282 = lean_ctor_get(x_1, 0); -lean_dec(x_282); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -lean_ctor_set(x_275, 0, x_1); -return x_275; +lean_object* x_235; size_t x_236; size_t x_237; uint8_t x_238; +x_235 = lean_ctor_get(x_233, 0); +x_236 = lean_ptr_addr(x_215); +lean_dec(x_215); +x_237 = lean_ptr_addr(x_235); +x_238 = lean_usize_dec_eq(x_236, x_237); +if (x_238 == 0) +{ +uint8_t x_239; +lean_dec(x_214); +lean_dec(x_213); +x_239 = !lean_is_exclusive(x_1); +if (x_239 == 0) +{ +lean_object* x_240; +x_240 = lean_ctor_get(x_1, 0); +lean_dec(x_240); +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +lean_ctor_set(x_233, 0, x_1); +return x_233; } else { -lean_object* x_283; +lean_object* x_241; lean_dec(x_1); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -x_283 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_283, 0, x_251); -lean_ctor_set(x_275, 0, x_283); -return x_275; +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +x_241 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_241, 0, x_207); +lean_ctor_set(x_233, 0, x_241); +return x_233; } } else { -size_t x_284; size_t x_285; uint8_t x_286; -x_284 = lean_ptr_addr(x_255); -lean_dec(x_255); -x_285 = lean_ptr_addr(x_264); -x_286 = lean_usize_dec_eq(x_284, x_285); -if (x_286 == 0) +size_t x_242; size_t x_243; uint8_t x_244; +x_242 = lean_ptr_addr(x_213); +lean_dec(x_213); +x_243 = lean_ptr_addr(x_229); +x_244 = lean_usize_dec_eq(x_242, x_243); +if (x_244 == 0) { -uint8_t x_287; -lean_dec(x_256); -x_287 = !lean_is_exclusive(x_1); -if (x_287 == 0) +uint8_t x_245; +lean_dec(x_214); +x_245 = !lean_is_exclusive(x_1); +if (x_245 == 0) { -lean_object* x_288; -x_288 = lean_ctor_get(x_1, 0); -lean_dec(x_288); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -lean_ctor_set(x_275, 0, x_1); -return x_275; +lean_object* x_246; +x_246 = lean_ctor_get(x_1, 0); +lean_dec(x_246); +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +lean_ctor_set(x_233, 0, x_1); +return x_233; } else { -lean_object* x_289; +lean_object* x_247; lean_dec(x_1); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -x_289 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_289, 0, x_251); -lean_ctor_set(x_275, 0, x_289); -return x_275; +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +x_247 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_247, 0, x_207); +lean_ctor_set(x_233, 0, x_247); +return x_233; } } else { -uint8_t x_290; -x_290 = lean_name_eq(x_256, x_271); -lean_dec(x_256); -if (x_290 == 0) +uint8_t x_248; +x_248 = lean_name_eq(x_214, x_222); +lean_dec(x_214); +if (x_248 == 0) { -uint8_t x_291; -x_291 = !lean_is_exclusive(x_1); -if (x_291 == 0) +uint8_t x_249; +x_249 = !lean_is_exclusive(x_1); +if (x_249 == 0) { -lean_object* x_292; -x_292 = lean_ctor_get(x_1, 0); -lean_dec(x_292); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -lean_ctor_set(x_275, 0, x_1); -return x_275; +lean_object* x_250; +x_250 = lean_ctor_get(x_1, 0); +lean_dec(x_250); +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +lean_ctor_set(x_233, 0, x_1); +return x_233; } else { -lean_object* x_293; +lean_object* x_251; lean_dec(x_1); -lean_ctor_set(x_251, 3, x_277); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -x_293 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_293, 0, x_251); -lean_ctor_set(x_275, 0, x_293); -return x_275; +lean_ctor_set(x_207, 3, x_235); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +x_251 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_251, 0, x_207); +lean_ctor_set(x_233, 0, x_251); +return x_233; } } else { -lean_dec(x_277); -lean_dec(x_271); -lean_dec(x_264); -lean_free_object(x_251); -lean_dec(x_254); -lean_ctor_set(x_275, 0, x_1); -return x_275; +lean_dec(x_235); +lean_dec(x_229); +lean_dec(x_222); +lean_free_object(x_207); +lean_dec(x_212); +lean_ctor_set(x_233, 0, x_1); +return x_233; } } } } else { -lean_object* x_294; lean_object* x_295; size_t x_296; size_t x_297; uint8_t x_298; -x_294 = lean_ctor_get(x_275, 0); -x_295 = lean_ctor_get(x_275, 1); -lean_inc(x_295); -lean_inc(x_294); -lean_dec(x_275); -x_296 = lean_ptr_addr(x_257); -lean_dec(x_257); -x_297 = lean_ptr_addr(x_294); -x_298 = lean_usize_dec_eq(x_296, x_297); -if (x_298 == 0) +lean_object* x_252; lean_object* x_253; size_t x_254; size_t x_255; uint8_t x_256; +x_252 = lean_ctor_get(x_233, 0); +x_253 = lean_ctor_get(x_233, 1); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_233); +x_254 = lean_ptr_addr(x_215); +lean_dec(x_215); +x_255 = lean_ptr_addr(x_252); +x_256 = lean_usize_dec_eq(x_254, x_255); +if (x_256 == 0) { -lean_object* x_299; lean_object* x_300; lean_object* x_301; -lean_dec(x_256); -lean_dec(x_255); +lean_object* x_257; lean_object* x_258; lean_object* x_259; +lean_dec(x_214); +lean_dec(x_213); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_299 = x_1; + x_257 = x_1; } else { lean_dec_ref(x_1); + x_257 = lean_box(0); +} +lean_ctor_set(x_207, 3, x_252); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +if (lean_is_scalar(x_257)) { + x_258 = lean_alloc_ctor(4, 1, 0); +} else { + x_258 = x_257; +} +lean_ctor_set(x_258, 0, x_207); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_253); +return x_259; +} +else +{ +size_t x_260; size_t x_261; uint8_t x_262; +x_260 = lean_ptr_addr(x_213); +lean_dec(x_213); +x_261 = lean_ptr_addr(x_229); +x_262 = lean_usize_dec_eq(x_260, x_261); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_214); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_263 = x_1; +} else { + lean_dec_ref(x_1); + x_263 = lean_box(0); +} +lean_ctor_set(x_207, 3, x_252); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +if (lean_is_scalar(x_263)) { + x_264 = lean_alloc_ctor(4, 1, 0); +} else { + x_264 = x_263; +} +lean_ctor_set(x_264, 0, x_207); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_253); +return x_265; +} +else +{ +uint8_t x_266; +x_266 = lean_name_eq(x_214, x_222); +lean_dec(x_214); +if (x_266 == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_267 = x_1; +} else { + lean_dec_ref(x_1); + x_267 = lean_box(0); +} +lean_ctor_set(x_207, 3, x_252); +lean_ctor_set(x_207, 2, x_222); +lean_ctor_set(x_207, 1, x_229); +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(4, 1, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_207); +x_269 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_253); +return x_269; +} +else +{ +lean_object* x_270; +lean_dec(x_252); +lean_dec(x_229); +lean_dec(x_222); +lean_free_object(x_207); +lean_dec(x_212); +x_270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_270, 0, x_1); +lean_ctor_set(x_270, 1, x_253); +return x_270; +} +} +} +} +} +else +{ +uint8_t x_271; +lean_dec(x_229); +lean_dec(x_222); +lean_free_object(x_207); +lean_dec(x_215); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_212); +lean_dec(x_1); +x_271 = !lean_is_exclusive(x_233); +if (x_271 == 0) +{ +return x_233; +} +else +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_272 = lean_ctor_get(x_233, 0); +x_273 = lean_ctor_get(x_233, 1); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_233); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +return x_274; +} +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_275 = lean_ctor_get(x_207, 0); +x_276 = lean_ctor_get(x_207, 1); +x_277 = lean_ctor_get(x_207, 2); +x_278 = lean_ctor_get(x_207, 3); +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_207); +x_279 = lean_st_ref_get(x_6, x_210); +x_280 = lean_ctor_get(x_279, 1); +lean_inc(x_280); +lean_dec(x_279); +x_281 = lean_st_ref_get(x_3, x_280); +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +x_284 = lean_ctor_get(x_282, 0); +lean_inc(x_284); +lean_dec(x_282); +lean_inc(x_277); +x_285 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_284, x_277); +x_286 = lean_st_ref_get(x_6, x_283); +x_287 = lean_ctor_get(x_286, 1); +lean_inc(x_287); +lean_dec(x_286); +x_288 = lean_st_ref_get(x_3, x_287); +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); +lean_inc(x_290); +lean_dec(x_288); +x_291 = lean_ctor_get(x_289, 0); +lean_inc(x_291); +lean_dec(x_289); +lean_inc(x_276); +x_292 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_291, x_276); +lean_inc(x_285); +x_293 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_285, x_2, x_3, x_4, x_5, x_6, x_290); +x_294 = lean_ctor_get(x_293, 1); +lean_inc(x_294); +lean_dec(x_293); +x_295 = l_Lean_Compiler_LCNF_Simp_simp___closed__1; +lean_inc(x_278); +x_296 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__6(x_278, x_295, x_2, x_3, x_4, x_5, x_6, x_294); +if (lean_obj_tag(x_296) == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; size_t x_300; size_t x_301; uint8_t x_302; +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_299 = x_296; +} else { + lean_dec_ref(x_296); x_299 = lean_box(0); } -lean_ctor_set(x_251, 3, x_294); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); +x_300 = lean_ptr_addr(x_278); +lean_dec(x_278); +x_301 = lean_ptr_addr(x_297); +x_302 = lean_usize_dec_eq(x_300, x_301); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; +lean_dec(x_277); +lean_dec(x_276); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_303 = x_1; +} else { + lean_dec_ref(x_1); + x_303 = lean_box(0); +} +x_304 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_304, 0, x_275); +lean_ctor_set(x_304, 1, x_292); +lean_ctor_set(x_304, 2, x_285); +lean_ctor_set(x_304, 3, x_297); +if (lean_is_scalar(x_303)) { + x_305 = lean_alloc_ctor(4, 1, 0); +} else { + x_305 = x_303; +} +lean_ctor_set(x_305, 0, x_304); if (lean_is_scalar(x_299)) { - x_300 = lean_alloc_ctor(4, 1, 0); + x_306 = lean_alloc_ctor(0, 2, 0); } else { - x_300 = x_299; + x_306 = x_299; } -lean_ctor_set(x_300, 0, x_251); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_295); -return x_301; +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_298); +return x_306; } else { -size_t x_302; size_t x_303; uint8_t x_304; -x_302 = lean_ptr_addr(x_255); -lean_dec(x_255); -x_303 = lean_ptr_addr(x_264); -x_304 = lean_usize_dec_eq(x_302, x_303); -if (x_304 == 0) +size_t x_307; size_t x_308; uint8_t x_309; +x_307 = lean_ptr_addr(x_276); +lean_dec(x_276); +x_308 = lean_ptr_addr(x_292); +x_309 = lean_usize_dec_eq(x_307, x_308); +if (x_309 == 0) { -lean_object* x_305; lean_object* x_306; lean_object* x_307; -lean_dec(x_256); +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_277); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_305 = x_1; + x_310 = x_1; } else { lean_dec_ref(x_1); - x_305 = lean_box(0); + x_310 = lean_box(0); } -lean_ctor_set(x_251, 3, x_294); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(4, 1, 0); +x_311 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_311, 0, x_275); +lean_ctor_set(x_311, 1, x_292); +lean_ctor_set(x_311, 2, x_285); +lean_ctor_set(x_311, 3, x_297); +if (lean_is_scalar(x_310)) { + x_312 = lean_alloc_ctor(4, 1, 0); } else { - x_306 = x_305; + x_312 = x_310; } -lean_ctor_set(x_306, 0, x_251); -x_307 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_295); -return x_307; +lean_ctor_set(x_312, 0, x_311); +if (lean_is_scalar(x_299)) { + x_313 = lean_alloc_ctor(0, 2, 0); +} else { + x_313 = x_299; +} +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_298); +return x_313; } else { -uint8_t x_308; -x_308 = lean_name_eq(x_256, x_271); -lean_dec(x_256); -if (x_308 == 0) +uint8_t x_314; +x_314 = lean_name_eq(x_277, x_285); +lean_dec(x_277); +if (x_314 == 0) { -lean_object* x_309; lean_object* x_310; lean_object* x_311; +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_309 = x_1; + x_315 = x_1; } else { lean_dec_ref(x_1); - x_309 = lean_box(0); + x_315 = lean_box(0); } -lean_ctor_set(x_251, 3, x_294); -lean_ctor_set(x_251, 2, x_271); -lean_ctor_set(x_251, 1, x_264); -if (lean_is_scalar(x_309)) { - x_310 = lean_alloc_ctor(4, 1, 0); +x_316 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_316, 0, x_275); +lean_ctor_set(x_316, 1, x_292); +lean_ctor_set(x_316, 2, x_285); +lean_ctor_set(x_316, 3, x_297); +if (lean_is_scalar(x_315)) { + x_317 = lean_alloc_ctor(4, 1, 0); } else { - x_310 = x_309; + x_317 = x_315; } -lean_ctor_set(x_310, 0, x_251); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_295); -return x_311; +lean_ctor_set(x_317, 0, x_316); +if (lean_is_scalar(x_299)) { + x_318 = lean_alloc_ctor(0, 2, 0); +} else { + x_318 = x_299; +} +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_298); +return x_318; } else { -lean_object* x_312; -lean_dec(x_294); -lean_dec(x_271); -lean_dec(x_264); -lean_free_object(x_251); -lean_dec(x_254); -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_1); -lean_ctor_set(x_312, 1, x_295); -return x_312; -} -} -} -} -} -else -{ -uint8_t x_313; -lean_dec(x_271); -lean_dec(x_264); -lean_free_object(x_251); -lean_dec(x_257); -lean_dec(x_256); -lean_dec(x_255); -lean_dec(x_254); -lean_dec(x_1); -x_313 = !lean_is_exclusive(x_275); -if (x_313 == 0) -{ -return x_275; -} -else -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_314 = lean_ctor_get(x_275, 0); -x_315 = lean_ctor_get(x_275, 1); -lean_inc(x_315); -lean_inc(x_314); +lean_object* x_319; +lean_dec(x_297); +lean_dec(x_292); +lean_dec(x_285); lean_dec(x_275); -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_314); -lean_ctor_set(x_316, 1, x_315); -return x_316; +if (lean_is_scalar(x_299)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_299; +} +lean_ctor_set(x_319, 0, x_1); +lean_ctor_set(x_319, 1, x_298); +return x_319; +} } } } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_317 = lean_ctor_get(x_251, 0); -x_318 = lean_ctor_get(x_251, 1); -x_319 = lean_ctor_get(x_251, 2); -x_320 = lean_ctor_get(x_251, 3); +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_292); +lean_dec(x_285); +lean_dec(x_278); +lean_dec(x_277); +lean_dec(x_276); +lean_dec(x_275); +lean_dec(x_1); +x_320 = lean_ctor_get(x_296, 0); lean_inc(x_320); -lean_inc(x_319); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_251); -x_321 = lean_st_ref_get(x_6, x_252); -x_322 = lean_ctor_get(x_321, 1); -lean_inc(x_322); -lean_dec(x_321); -x_323 = lean_st_ref_get(x_3, x_322); -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -lean_dec(x_323); -x_326 = lean_ctor_get(x_324, 0); -lean_inc(x_326); -lean_dec(x_324); -lean_inc(x_318); -x_327 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_326, x_318); -x_328 = lean_st_ref_get(x_6, x_325); -x_329 = lean_ctor_get(x_328, 1); -lean_inc(x_329); -lean_dec(x_328); -x_330 = lean_st_ref_get(x_3, x_329); -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); -lean_inc(x_332); -lean_dec(x_330); -x_333 = lean_ctor_get(x_331, 0); -lean_inc(x_333); -lean_dec(x_331); -lean_inc(x_319); -x_334 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_333, x_319); -lean_inc(x_334); -x_335 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_334, x_2, x_3, x_4, x_5, x_6, x_332); -x_336 = lean_ctor_get(x_335, 1); -lean_inc(x_336); -lean_dec(x_335); -x_337 = l_Lean_Compiler_LCNF_Simp_simp___closed__1; -lean_inc(x_320); -x_338 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__7(x_320, x_337, x_2, x_3, x_4, x_5, x_6, x_336); -if (lean_obj_tag(x_338) == 0) +x_321 = lean_ctor_get(x_296, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_322 = x_296; +} else { + lean_dec_ref(x_296); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; size_t x_342; size_t x_343; uint8_t x_344; +uint8_t x_324; +lean_dec(x_207); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_324 = !lean_is_exclusive(x_208); +if (x_324 == 0) +{ +lean_object* x_325; lean_object* x_326; +x_325 = lean_ctor_get(x_208, 0); +lean_dec(x_325); +x_326 = lean_ctor_get(x_209, 0); +lean_inc(x_326); +lean_dec(x_209); +lean_ctor_set(x_208, 0, x_326); +return x_208; +} +else +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_327 = lean_ctor_get(x_208, 1); +lean_inc(x_327); +lean_dec(x_208); +x_328 = lean_ctor_get(x_209, 0); +lean_inc(x_328); +lean_dec(x_209); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_327); +return x_329; +} +} +} +else +{ +uint8_t x_330; +lean_dec(x_207); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_330 = !lean_is_exclusive(x_208); +if (x_330 == 0) +{ +return x_208; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_331 = lean_ctor_get(x_208, 0); +x_332 = lean_ctor_get(x_208, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_208); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_331); +lean_ctor_set(x_333, 1, x_332); +return x_333; +} +} +} +case 5: +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; +x_334 = lean_ctor_get(x_8, 1); +lean_inc(x_334); +lean_dec(x_8); +x_335 = lean_ctor_get(x_1, 0); +lean_inc(x_335); +x_336 = lean_st_ref_get(x_6, x_334); +x_337 = lean_ctor_get(x_336, 1); +lean_inc(x_337); +lean_dec(x_336); +x_338 = lean_st_ref_get(x_3, x_337); x_339 = lean_ctor_get(x_338, 0); lean_inc(x_339); x_340 = lean_ctor_get(x_338, 1); lean_inc(x_340); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_341 = x_338; -} else { - lean_dec_ref(x_338); - x_341 = lean_box(0); -} -x_342 = lean_ptr_addr(x_320); -lean_dec(x_320); -x_343 = lean_ptr_addr(x_339); -x_344 = lean_usize_dec_eq(x_342, x_343); +lean_dec(x_338); +x_341 = lean_ctor_get(x_339, 0); +lean_inc(x_341); +lean_dec(x_339); +lean_inc(x_335); +x_342 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_341, x_335); +lean_inc(x_342); +x_343 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_342, x_2, x_3, x_4, x_5, x_6, x_340); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_344 = !lean_is_exclusive(x_343); if (x_344 == 0) { -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -lean_dec(x_319); -lean_dec(x_318); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_345 = x_1; -} else { - lean_dec_ref(x_1); - x_345 = lean_box(0); -} -x_346 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_346, 0, x_317); -lean_ctor_set(x_346, 1, x_327); -lean_ctor_set(x_346, 2, x_334); -lean_ctor_set(x_346, 3, x_339); -if (lean_is_scalar(x_345)) { - x_347 = lean_alloc_ctor(4, 1, 0); -} else { - x_347 = x_345; -} -lean_ctor_set(x_347, 0, x_346); -if (lean_is_scalar(x_341)) { - x_348 = lean_alloc_ctor(0, 2, 0); -} else { - x_348 = x_341; -} -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_340); -return x_348; +lean_object* x_345; uint8_t x_346; +x_345 = lean_ctor_get(x_343, 0); +lean_dec(x_345); +x_346 = lean_name_eq(x_335, x_342); +lean_dec(x_335); +if (x_346 == 0) +{ +uint8_t x_347; +x_347 = !lean_is_exclusive(x_1); +if (x_347 == 0) +{ +lean_object* x_348; +x_348 = lean_ctor_get(x_1, 0); +lean_dec(x_348); +lean_ctor_set(x_1, 0, x_342); +lean_ctor_set(x_343, 0, x_1); +return x_343; } else { -size_t x_349; size_t x_350; uint8_t x_351; -x_349 = lean_ptr_addr(x_318); -lean_dec(x_318); -x_350 = lean_ptr_addr(x_327); -x_351 = lean_usize_dec_eq(x_349, x_350); +lean_object* x_349; +lean_dec(x_1); +x_349 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_349, 0, x_342); +lean_ctor_set(x_343, 0, x_349); +return x_343; +} +} +else +{ +lean_dec(x_342); +lean_ctor_set(x_343, 0, x_1); +return x_343; +} +} +else +{ +lean_object* x_350; uint8_t x_351; +x_350 = lean_ctor_get(x_343, 1); +lean_inc(x_350); +lean_dec(x_343); +x_351 = lean_name_eq(x_335, x_342); +lean_dec(x_335); if (x_351 == 0) { -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; -lean_dec(x_319); +lean_object* x_352; lean_object* x_353; lean_object* x_354; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); x_352 = x_1; @@ -9995,335 +17436,918 @@ if (lean_is_exclusive(x_1)) { lean_dec_ref(x_1); x_352 = lean_box(0); } -x_353 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_353, 0, x_317); -lean_ctor_set(x_353, 1, x_327); -lean_ctor_set(x_353, 2, x_334); -lean_ctor_set(x_353, 3, x_339); if (lean_is_scalar(x_352)) { - x_354 = lean_alloc_ctor(4, 1, 0); + x_353 = lean_alloc_ctor(5, 1, 0); } else { - x_354 = x_352; + x_353 = x_352; } +lean_ctor_set(x_353, 0, x_342); +x_354 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_354, 0, x_353); -if (lean_is_scalar(x_341)) { - x_355 = lean_alloc_ctor(0, 2, 0); -} else { - x_355 = x_341; +lean_ctor_set(x_354, 1, x_350); +return x_354; } -lean_ctor_set(x_355, 0, x_354); -lean_ctor_set(x_355, 1, x_340); +else +{ +lean_object* x_355; +lean_dec(x_342); +x_355 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_355, 0, x_1); +lean_ctor_set(x_355, 1, x_350); return x_355; } -else -{ -uint8_t x_356; -x_356 = lean_name_eq(x_319, x_334); -lean_dec(x_319); -if (x_356 == 0) -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_357 = x_1; -} else { - lean_dec_ref(x_1); - x_357 = lean_box(0); -} -x_358 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_358, 0, x_317); -lean_ctor_set(x_358, 1, x_327); -lean_ctor_set(x_358, 2, x_334); -lean_ctor_set(x_358, 3, x_339); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(4, 1, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_358); -if (lean_is_scalar(x_341)) { - x_360 = lean_alloc_ctor(0, 2, 0); -} else { - x_360 = x_341; -} -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_340); -return x_360; -} -else -{ -lean_object* x_361; -lean_dec(x_339); -lean_dec(x_334); -lean_dec(x_327); -lean_dec(x_317); -if (lean_is_scalar(x_341)) { - x_361 = lean_alloc_ctor(0, 2, 0); -} else { - x_361 = x_341; -} -lean_ctor_set(x_361, 0, x_1); -lean_ctor_set(x_361, 1, x_340); -return x_361; -} -} -} -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -lean_dec(x_334); -lean_dec(x_327); -lean_dec(x_320); -lean_dec(x_319); -lean_dec(x_318); -lean_dec(x_317); -lean_dec(x_1); -x_362 = lean_ctor_get(x_338, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_338, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_364 = x_338; -} else { - lean_dec_ref(x_338); - x_364 = lean_box(0); -} -if (lean_is_scalar(x_364)) { - x_365 = lean_alloc_ctor(1, 2, 0); -} else { - x_365 = x_364; -} -lean_ctor_set(x_365, 0, x_362); -lean_ctor_set(x_365, 1, x_363); -return x_365; -} -} -} -case 5: -{ -lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; uint8_t x_376; -x_366 = lean_ctor_get(x_8, 1); -lean_inc(x_366); -lean_dec(x_8); -x_367 = lean_ctor_get(x_1, 0); -lean_inc(x_367); -x_368 = lean_st_ref_get(x_6, x_366); -x_369 = lean_ctor_get(x_368, 1); -lean_inc(x_369); -lean_dec(x_368); -x_370 = lean_st_ref_get(x_3, x_369); -x_371 = lean_ctor_get(x_370, 0); -lean_inc(x_371); -x_372 = lean_ctor_get(x_370, 1); -lean_inc(x_372); -lean_dec(x_370); -x_373 = lean_ctor_get(x_371, 0); -lean_inc(x_373); -lean_dec(x_371); -lean_inc(x_367); -x_374 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_373, x_367); -lean_inc(x_374); -x_375 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_374, x_2, x_3, x_4, x_5, x_6, x_372); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_376 = !lean_is_exclusive(x_375); -if (x_376 == 0) -{ -lean_object* x_377; uint8_t x_378; -x_377 = lean_ctor_get(x_375, 0); -lean_dec(x_377); -x_378 = lean_name_eq(x_367, x_374); -lean_dec(x_367); -if (x_378 == 0) -{ -uint8_t x_379; -x_379 = !lean_is_exclusive(x_1); -if (x_379 == 0) -{ -lean_object* x_380; -x_380 = lean_ctor_get(x_1, 0); -lean_dec(x_380); -lean_ctor_set(x_1, 0, x_374); -lean_ctor_set(x_375, 0, x_1); -return x_375; -} -else -{ -lean_object* x_381; -lean_dec(x_1); -x_381 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_381, 0, x_374); -lean_ctor_set(x_375, 0, x_381); -return x_375; -} -} -else -{ -lean_dec(x_374); -lean_ctor_set(x_375, 0, x_1); -return x_375; -} -} -else -{ -lean_object* x_382; uint8_t x_383; -x_382 = lean_ctor_get(x_375, 1); -lean_inc(x_382); -lean_dec(x_375); -x_383 = lean_name_eq(x_367, x_374); -lean_dec(x_367); -if (x_383 == 0) -{ -lean_object* x_384; lean_object* x_385; lean_object* x_386; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_384 = x_1; -} else { - lean_dec_ref(x_1); - x_384 = lean_box(0); -} -if (lean_is_scalar(x_384)) { - x_385 = lean_alloc_ctor(5, 1, 0); -} else { - x_385 = x_384; -} -lean_ctor_set(x_385, 0, x_374); -x_386 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_386, 0, x_385); -lean_ctor_set(x_386, 1, x_382); -return x_386; -} -else -{ -lean_object* x_387; -lean_dec(x_374); -x_387 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_387, 0, x_1); -lean_ctor_set(x_387, 1, x_382); -return x_387; -} } } default: { -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_388 = lean_ctor_get(x_8, 1); -lean_inc(x_388); +x_356 = lean_ctor_get(x_8, 1); +lean_inc(x_356); lean_dec(x_8); -x_389 = lean_ctor_get(x_1, 0); -lean_inc(x_389); -x_390 = lean_st_ref_get(x_6, x_388); +x_357 = lean_ctor_get(x_1, 0); +lean_inc(x_357); +x_358 = lean_st_ref_get(x_6, x_356); lean_dec(x_6); -x_391 = lean_ctor_get(x_390, 1); -lean_inc(x_391); -lean_dec(x_390); -x_392 = lean_st_ref_get(x_3, x_391); +x_359 = lean_ctor_get(x_358, 1); +lean_inc(x_359); +lean_dec(x_358); +x_360 = lean_st_ref_get(x_3, x_359); lean_dec(x_3); -x_393 = !lean_is_exclusive(x_392); -if (x_393 == 0) +x_361 = !lean_is_exclusive(x_360); +if (x_361 == 0) { -lean_object* x_394; lean_object* x_395; lean_object* x_396; size_t x_397; size_t x_398; uint8_t x_399; -x_394 = lean_ctor_get(x_392, 0); -x_395 = lean_ctor_get(x_394, 0); -lean_inc(x_395); -lean_dec(x_394); -lean_inc(x_389); -x_396 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_395, x_389); -x_397 = lean_ptr_addr(x_389); -lean_dec(x_389); -x_398 = lean_ptr_addr(x_396); -x_399 = lean_usize_dec_eq(x_397, x_398); -if (x_399 == 0) +lean_object* x_362; lean_object* x_363; lean_object* x_364; size_t x_365; size_t x_366; uint8_t x_367; +x_362 = lean_ctor_get(x_360, 0); +x_363 = lean_ctor_get(x_362, 0); +lean_inc(x_363); +lean_dec(x_362); +lean_inc(x_357); +x_364 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_363, x_357); +x_365 = lean_ptr_addr(x_357); +lean_dec(x_357); +x_366 = lean_ptr_addr(x_364); +x_367 = lean_usize_dec_eq(x_365, x_366); +if (x_367 == 0) { -uint8_t x_400; -x_400 = !lean_is_exclusive(x_1); -if (x_400 == 0) +uint8_t x_368; +x_368 = !lean_is_exclusive(x_1); +if (x_368 == 0) { -lean_object* x_401; -x_401 = lean_ctor_get(x_1, 0); -lean_dec(x_401); -lean_ctor_set(x_1, 0, x_396); -lean_ctor_set(x_392, 0, x_1); -return x_392; +lean_object* x_369; +x_369 = lean_ctor_get(x_1, 0); +lean_dec(x_369); +lean_ctor_set(x_1, 0, x_364); +lean_ctor_set(x_360, 0, x_1); +return x_360; } else { -lean_object* x_402; +lean_object* x_370; lean_dec(x_1); -x_402 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_402, 0, x_396); -lean_ctor_set(x_392, 0, x_402); -return x_392; +x_370 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_370, 0, x_364); +lean_ctor_set(x_360, 0, x_370); +return x_360; } } else { -lean_dec(x_396); -lean_ctor_set(x_392, 0, x_1); -return x_392; +lean_dec(x_364); +lean_ctor_set(x_360, 0, x_1); +return x_360; } } else { -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; size_t x_407; size_t x_408; uint8_t x_409; -x_403 = lean_ctor_get(x_392, 0); -x_404 = lean_ctor_get(x_392, 1); -lean_inc(x_404); -lean_inc(x_403); -lean_dec(x_392); -x_405 = lean_ctor_get(x_403, 0); -lean_inc(x_405); -lean_dec(x_403); -lean_inc(x_389); -x_406 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_405, x_389); -x_407 = lean_ptr_addr(x_389); -lean_dec(x_389); -x_408 = lean_ptr_addr(x_406); -x_409 = lean_usize_dec_eq(x_407, x_408); -if (x_409 == 0) +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; size_t x_375; size_t x_376; uint8_t x_377; +x_371 = lean_ctor_get(x_360, 0); +x_372 = lean_ctor_get(x_360, 1); +lean_inc(x_372); +lean_inc(x_371); +lean_dec(x_360); +x_373 = lean_ctor_get(x_371, 0); +lean_inc(x_373); +lean_dec(x_371); +lean_inc(x_357); +x_374 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_373, x_357); +x_375 = lean_ptr_addr(x_357); +lean_dec(x_357); +x_376 = lean_ptr_addr(x_374); +x_377 = lean_usize_dec_eq(x_375, x_376); +if (x_377 == 0) { -lean_object* x_410; lean_object* x_411; lean_object* x_412; +lean_object* x_378; lean_object* x_379; lean_object* x_380; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_410 = x_1; + x_378 = x_1; } else { lean_dec_ref(x_1); - x_410 = lean_box(0); + x_378 = lean_box(0); } -if (lean_is_scalar(x_410)) { - x_411 = lean_alloc_ctor(6, 1, 0); +if (lean_is_scalar(x_378)) { + x_379 = lean_alloc_ctor(6, 1, 0); } else { - x_411 = x_410; + x_379 = x_378; } -lean_ctor_set(x_411, 0, x_406); -x_412 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_404); -return x_412; +lean_ctor_set(x_379, 0, x_374); +x_380 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_372); +return x_380; } else { -lean_object* x_413; -lean_dec(x_406); -x_413 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_413, 0, x_1); -lean_ctor_set(x_413, 1, x_404); -return x_413; +lean_object* x_381; +lean_dec(x_374); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_1); +lean_ctor_set(x_381, 1, x_372); +return x_381; } } } } } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___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: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_3, x_2); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_4); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_array_uget(x_1, x_3); +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_4, 2); +lean_inc(x_16); +x_17 = lean_nat_dec_lt(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_4); +lean_ctor_set(x_18, 1, x_10); +return x_18; +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_4); +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; lean_object* x_26; lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; +x_20 = lean_ctor_get(x_4, 2); +lean_dec(x_20); +x_21 = lean_ctor_get(x_4, 1); +lean_dec(x_21); +x_22 = lean_ctor_get(x_4, 0); +lean_dec(x_22); +x_23 = lean_array_fget(x_14, x_15); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_15, x_24); +lean_dec(x_15); +lean_ctor_set(x_4, 1, x_25); +x_26 = lean_ctor_get(x_13, 0); +lean_inc(x_26); +lean_dec(x_13); +x_27 = l_Lean_Compiler_LCNF_Simp_addSubst(x_26, x_23, x_5, x_6, x_7, x_8, x_9, x_10); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = 1; +x_30 = lean_usize_add(x_3, x_29); +x_3 = x_30; +x_10 = x_28; +goto _start; +} +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; size_t x_39; size_t x_40; +lean_dec(x_4); +x_32 = lean_array_fget(x_14, x_15); +x_33 = lean_unsigned_to_nat(1u); +x_34 = lean_nat_add(x_15, x_33); +lean_dec(x_15); +x_35 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_35, 0, x_14); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_35, 2, x_16); +x_36 = lean_ctor_get(x_13, 0); +lean_inc(x_36); +lean_dec(x_13); +x_37 = l_Lean_Compiler_LCNF_Simp_addSubst(x_36, x_32, x_5, x_6, x_7, x_8, x_9, x_10); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = 1; +x_40 = lean_usize_add(x_3, x_39); +x_3 = x_40; +x_4 = x_35; +x_10 = x_38; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_st_ref_get(x_6, x_7); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_3, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_14, x_8); +x_16 = l_Lean_Expr_fvar___override(x_15); +x_17 = 1; +x_18 = l_Lean_Compiler_LCNF_Simp_findExpr(x_16, x_17, x_4, x_5, x_6, x_13); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +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_st_ref_get(x_6, x_20); +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); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Expr_constructorApp_x3f(x_25, x_19); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = lean_box(0); +lean_ctor_set(x_21, 0, x_27); +return x_21; +} +else +{ +uint8_t x_28; +lean_free_object(x_21); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) +{ +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; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(x_1, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = l_Lean_Compiler_LCNF_eraseFVarsAt(x_37, x_4, x_5, x_6, x_24); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_39); +if (lean_obj_tag(x_35) == 0) +{ +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; size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_ctor_get(x_35, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_35, 2); +lean_inc(x_43); +lean_dec(x_35); +x_44 = lean_ctor_get(x_30, 3); +lean_inc(x_44); +lean_dec(x_30); +x_45 = lean_array_get_size(x_31); +x_46 = l_Array_toSubarray___rarg(x_31, x_44, x_45); +x_47 = lean_array_get_size(x_42); +x_48 = lean_usize_of_nat(x_47); +lean_dec(x_47); +x_49 = 0; +x_50 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1(x_42, x_48, x_49, x_46, x_2, x_3, x_4, x_5, x_6, x_41); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_52 = l_Lean_Compiler_LCNF_Simp_simp(x_43, x_2, x_3, x_4, x_5, x_6, x_51); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Compiler_LCNF_eraseParams(x_42, x_4, x_5, x_6, x_54); +lean_dec(x_42); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_57); +lean_ctor_set(x_26, 0, x_53); +lean_ctor_set(x_55, 0, x_26); +return x_55; +} +else +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +lean_ctor_set(x_26, 0, x_53); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_26); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +else +{ +uint8_t x_60; +lean_dec(x_42); +lean_free_object(x_26); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_60 = !lean_is_exclusive(x_52); +if (x_60 == 0) +{ +return x_52; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_52, 0); +x_62 = lean_ctor_get(x_52, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_52); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_31); +lean_dec(x_30); +x_64 = lean_ctor_get(x_40, 1); +lean_inc(x_64); +lean_dec(x_40); +x_65 = lean_ctor_get(x_35, 0); +lean_inc(x_65); +lean_dec(x_35); +x_66 = l_Lean_Compiler_LCNF_Simp_simp(x_65, x_2, x_3, x_4, x_5, x_6, x_64); +if (lean_obj_tag(x_66) == 0) +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_66, 0); +lean_ctor_set(x_26, 0, x_68); +lean_ctor_set(x_66, 0, x_26); +return x_66; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_66, 0); +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_66); +lean_ctor_set(x_26, 0, x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_26); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +else +{ +uint8_t x_72; +lean_free_object(x_26); +x_72 = !lean_is_exclusive(x_66); +if (x_72 == 0) +{ +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_66, 0); +x_74 = lean_ctor_get(x_66, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_66); +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; +} +} +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_76 = lean_ctor_get(x_26, 0); +lean_inc(x_76); +lean_dec(x_26); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_ctor_get(x_77, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +lean_dec(x_79); +x_81 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(x_1, x_80); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_85 = l_Lean_Compiler_LCNF_eraseFVarsAt(x_84, x_4, x_5, x_6, x_24); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_86); +if (lean_obj_tag(x_82) == 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_object* x_94; size_t x_95; size_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_ctor_get(x_82, 1); +lean_inc(x_89); +x_90 = lean_ctor_get(x_82, 2); +lean_inc(x_90); +lean_dec(x_82); +x_91 = lean_ctor_get(x_77, 3); +lean_inc(x_91); +lean_dec(x_77); +x_92 = lean_array_get_size(x_78); +x_93 = l_Array_toSubarray___rarg(x_78, x_91, x_92); +x_94 = lean_array_get_size(x_89); +x_95 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_96 = 0; +x_97 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1(x_89, x_95, x_96, x_93, x_2, x_3, x_4, x_5, x_6, x_88); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_99 = l_Lean_Compiler_LCNF_Simp_simp(x_90, x_2, x_3, x_4, x_5, x_6, x_98); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = l_Lean_Compiler_LCNF_eraseParams(x_89, x_4, x_5, x_6, x_101); +lean_dec(x_89); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_104 = x_102; +} else { + lean_dec_ref(x_102); + x_104 = lean_box(0); +} +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_100); +if (lean_is_scalar(x_104)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_104; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_103); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_89); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_107 = lean_ctor_get(x_99, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_99, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_109 = x_99; +} else { + lean_dec_ref(x_99); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_78); +lean_dec(x_77); +x_111 = lean_ctor_get(x_87, 1); +lean_inc(x_111); +lean_dec(x_87); +x_112 = lean_ctor_get(x_82, 0); +lean_inc(x_112); +lean_dec(x_82); +x_113 = l_Lean_Compiler_LCNF_Simp_simp(x_112, x_2, x_3, x_4, x_5, x_6, x_111); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +x_117 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_117, 0, x_114); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_116; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_115); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_113, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_113, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_121 = x_113; +} else { + lean_dec_ref(x_113); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +} +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_21, 0); +x_124 = lean_ctor_get(x_21, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_21); +x_125 = lean_ctor_get(x_123, 0); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l_Lean_Expr_constructorApp_x3f(x_125, x_19); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_127 = lean_box(0); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_124); +return x_128; +} +else +{ +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; +x_129 = lean_ctor_get(x_126, 0); +lean_inc(x_129); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + x_130 = x_126; +} else { + lean_dec_ref(x_126); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_129, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_129, 1); +lean_inc(x_132); +lean_dec(x_129); +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +x_135 = l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21(x_1, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_138, 0, x_137); +x_139 = l_Lean_Compiler_LCNF_eraseFVarsAt(x_138, x_4, x_5, x_6, x_124); +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); +lean_dec(x_139); +x_141 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_140); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; size_t x_149; size_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_ctor_get(x_136, 1); +lean_inc(x_143); +x_144 = lean_ctor_get(x_136, 2); +lean_inc(x_144); +lean_dec(x_136); +x_145 = lean_ctor_get(x_131, 3); +lean_inc(x_145); +lean_dec(x_131); +x_146 = lean_array_get_size(x_132); +x_147 = l_Array_toSubarray___rarg(x_132, x_145, x_146); +x_148 = lean_array_get_size(x_143); +x_149 = lean_usize_of_nat(x_148); +lean_dec(x_148); +x_150 = 0; +x_151 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1(x_143, x_149, x_150, x_147, x_2, x_3, x_4, x_5, x_6, x_142); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_153 = l_Lean_Compiler_LCNF_Simp_simp(x_144, x_2, x_3, x_4, x_5, x_6, x_152); +if (lean_obj_tag(x_153) == 0) +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l_Lean_Compiler_LCNF_eraseParams(x_143, x_4, x_5, x_6, x_155); +lean_dec(x_143); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; +} else { + lean_dec_ref(x_156); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_159 = lean_alloc_ctor(1, 1, 0); +} else { + x_159 = x_130; +} +lean_ctor_set(x_159, 0, x_154); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_158; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_157); +return x_160; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_143); +lean_dec(x_130); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_161 = lean_ctor_get(x_153, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_153, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_163 = x_153; +} else { + lean_dec_ref(x_153); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_132); +lean_dec(x_131); +x_165 = lean_ctor_get(x_141, 1); +lean_inc(x_165); +lean_dec(x_141); +x_166 = lean_ctor_get(x_136, 0); +lean_inc(x_166); +lean_dec(x_136); +x_167 = l_Lean_Compiler_LCNF_Simp_simp(x_166, x_2, x_3, x_4, x_5, x_6, x_165); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_170 = x_167; +} else { + lean_dec_ref(x_167); + x_170 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_171 = lean_alloc_ctor(1, 1, 0); +} else { + x_171 = x_130; +} +lean_ctor_set(x_171, 0, x_168); +if (lean_is_scalar(x_170)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_170; +} +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_169); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_130); +x_173 = lean_ctor_get(x_167, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_167, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_175 = x_167; +} else { + lean_dec_ref(x_167); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +} +} +else +{ +uint8_t x_177; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_177 = !lean_is_exclusive(x_18); +if (x_177 == 0) +{ +return x_18; +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_18, 0); +x_179 = lean_ctor_get(x_18, 1); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_18); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +return x_180; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_normParam___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -10363,7 +18387,69 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Compiler_LCNF_Simp_simp___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_5); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_4); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l_Lean_Compiler_LCNF_Simp_simp___lambda__3(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_simp___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___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: { size_t x_11; size_t x_12; lean_object* x_13; @@ -10371,7 +18457,7 @@ x_11 = lean_unbox_usize(x_2); lean_dec(x_2); x_12 = lean_unbox_usize(x_3); lean_dec(x_3); -x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_simp___spec__6(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f___spec__1(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11294,7 +19380,7 @@ return x_29; } } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11304,7 +19390,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11314,17 +19400,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2; x_2 = l_Lean_Compiler_LCNF_Decl_simp_x3f___lambda__2___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4() { _start: { lean_object* x_1; @@ -11332,17 +19418,17 @@ x_1 = lean_mk_string_from_bytes("projInst", 8); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__5; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; @@ -11363,7 +19449,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); -x_9 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1; +x_9 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1; x_10 = l_Lean_registerTraceClass(x_9, x_3, x_8); if (lean_obj_tag(x_10) == 0) { @@ -11371,7 +19457,7 @@ 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_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2; +x_12 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2; x_13 = l_Lean_registerTraceClass(x_12, x_3, x_11); if (lean_obj_tag(x_13) == 0) { @@ -11379,7 +19465,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3; +x_15 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3; x_16 = l_Lean_registerTraceClass(x_15, x_3, x_14); if (lean_obj_tag(x_16) == 0) { @@ -11387,7 +19473,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5; +x_18 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5; x_19 = l_Lean_registerTraceClass(x_18, x_3, x_17); return x_19; } @@ -11680,14 +19766,36 @@ l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__9 = _init_l_Lean_C lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__9); l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__10 = _init_l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__10(); lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineApp_x3f___lambda__5___closed__10); -l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__1 = _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__1(); -lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__1); -l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2 = _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2(); -lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__2); -l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3 = _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3(); -lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__3); -l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4 = _init_l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4(); -lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpProj_x3f___closed__4); +l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1 = _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__1); +l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2 = _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__2); +l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3 = _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__3); +l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4 = _init_l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_attachCodeDecls_go___closed__4); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__1); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__2); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__3); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__4); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__5); +l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6 = _init_l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6(); +lean_mark_persistent(l_panic___at_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___spec__1___closed__6); +l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1 = _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__1); +l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2 = _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__2); +l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3 = _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__3); +l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4 = _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__4); +l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5 = _init_l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_inlineProjInst_x3f_visit___closed__5); l_Lean_Compiler_LCNF_Simp_simpAppApp_x3f___closed__1 = _init_l_Lean_Compiler_LCNF_Simp_simpAppApp_x3f___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpAppApp_x3f___closed__1); l_Lean_Compiler_LCNF_normParams___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__1___closed__1 = _init_l_Lean_Compiler_LCNF_normParams___at_Lean_Compiler_LCNF_Simp_simpFunDecl___spec__1___closed__1(); @@ -11732,17 +19840,17 @@ l_Lean_Compiler_LCNF_Decl_simp_x3f___closed__4 = _init_l_Lean_Compiler_LCNF_Decl lean_mark_persistent(l_Lean_Compiler_LCNF_Decl_simp_x3f___closed__4); l_Lean_Compiler_LCNF_Decl_simp___closed__1 = _init_l_Lean_Compiler_LCNF_Decl_simp___closed__1(); lean_mark_persistent(l_Lean_Compiler_LCNF_Decl_simp___closed__1); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__1); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__2); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__3); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__4); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491____closed__5); -res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_4491_(lean_io_mk_world()); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__1); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__2); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__3); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__4); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253____closed__5); +res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp___hyg_7253_(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/Compiler/LCNF/ToDecl.c b/stage0/stdlib/Lean/Compiler/LCNF/ToDecl.c index b6e8ed6463..1ec029a939 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/ToDecl.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/ToDecl.c @@ -112,6 +112,7 @@ lean_object* l_Lean_Meta_etaExpand(lean_object*, lean_object*, lean_object*, lea static lean_object* l_Lean_Compiler_LCNF_inlineMatchers___closed__20; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_macroInline(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrAux(lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_inlineMatchers___closed__10; static lean_object* l_Lean_Compiler_LCNF_inlineMatchers___closed__24; @@ -2736,7 +2737,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_toDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_120; lean_object* x_121; lean_object* x_122; x_6 = lean_st_ref_get(x_4, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); @@ -2746,42 +2747,42 @@ lean_dec(x_6); x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); lean_dec(x_7); -x_119 = l_Lean_Compiler_LCNF_toDecl___closed__8; +x_120 = l_Lean_Compiler_LCNF_toDecl___closed__8; lean_inc(x_1); -x_120 = l_Lean_Name_str___override(x_1, x_119); +x_121 = l_Lean_Name_str___override(x_1, x_120); lean_inc(x_9); -x_121 = lean_environment_find(x_9, x_120); -if (lean_obj_tag(x_121) == 0) +x_122 = lean_environment_find(x_9, x_121); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_122; +lean_object* x_123; lean_inc(x_1); -x_122 = lean_environment_find(x_9, x_1); -x_10 = x_122; -goto block_118; +x_123 = lean_environment_find(x_9, x_1); +x_10 = x_123; +goto block_119; } else { -uint8_t x_123; +uint8_t x_124; lean_dec(x_9); -x_123 = !lean_is_exclusive(x_121); -if (x_123 == 0) +x_124 = !lean_is_exclusive(x_122); +if (x_124 == 0) { -x_10 = x_121; -goto block_118; +x_10 = x_122; +goto block_119; } else { -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_121, 0); -lean_inc(x_124); -lean_dec(x_121); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_124); -x_10 = x_125; -goto block_118; +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_122, 0); +lean_inc(x_125); +lean_dec(x_122); +x_126 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_126, 0, x_125); +x_10 = x_126; +goto block_119; } } -block_118: +block_119: { if (lean_obj_tag(x_10) == 0) { @@ -2918,6 +2919,9 @@ lean_dec(x_31); x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); x_57 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF(x_51, x_2, x_3, x_4, x_56); if (lean_obj_tag(x_57) == 0) { @@ -2931,177 +2935,188 @@ x_59 = lean_ctor_get(x_58, 1); lean_inc(x_59); if (lean_obj_tag(x_59) == 5) { -uint8_t x_60; +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; uint8_t x_67; lean_dec(x_59); -x_60 = !lean_is_exclusive(x_57); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_61 = lean_ctor_get(x_57, 0); -lean_dec(x_61); -x_62 = lean_ctor_get(x_58, 0); -lean_inc(x_62); +x_60 = lean_ctor_get(x_58, 0); +lean_inc(x_60); lean_dec(x_58); -x_63 = l_Lean_ConstantInfo_levelParams(x_17); -lean_dec(x_17); -x_64 = lean_ctor_get(x_62, 2); -lean_inc(x_64); -x_65 = lean_ctor_get(x_62, 4); -lean_inc(x_65); -lean_dec(x_62); -x_66 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_66, 0, x_1); -lean_ctor_set(x_66, 1, x_63); -lean_ctor_set(x_66, 2, x_35); -lean_ctor_set(x_66, 3, x_64); -lean_ctor_set(x_66, 4, x_65); -lean_ctor_set(x_57, 0, x_66); -return x_57; -} -else -{ -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; -x_67 = lean_ctor_get(x_57, 1); -lean_inc(x_67); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); lean_dec(x_57); -x_68 = lean_ctor_get(x_58, 0); -lean_inc(x_68); -lean_dec(x_58); +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_60, 2); +lean_inc(x_63); +x_64 = lean_ctor_get(x_60, 4); +lean_inc(x_64); +lean_dec(x_60); +x_65 = 0; +x_66 = l_Lean_Compiler_LCNF_eraseFVar(x_62, x_65, x_2, x_3, x_4, x_61); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_66, 0); +lean_dec(x_68); x_69 = l_Lean_ConstantInfo_levelParams(x_17); lean_dec(x_17); -x_70 = lean_ctor_get(x_68, 2); -lean_inc(x_70); -x_71 = lean_ctor_get(x_68, 4); +x_70 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set(x_70, 2, x_35); +lean_ctor_set(x_70, 3, x_63); +lean_ctor_set(x_70, 4, x_64); +lean_ctor_set(x_66, 0, x_70); +return x_66; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_66, 1); lean_inc(x_71); -lean_dec(x_68); -x_72 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_72, 0, x_1); -lean_ctor_set(x_72, 1, x_69); -lean_ctor_set(x_72, 2, x_35); -lean_ctor_set(x_72, 3, x_70); -lean_ctor_set(x_72, 4, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_67); -return x_73; +lean_dec(x_66); +x_72 = l_Lean_ConstantInfo_levelParams(x_17); +lean_dec(x_17); +x_73 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_35); +lean_ctor_set(x_73, 3, x_63); +lean_ctor_set(x_73, 4, x_64); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_71); +return x_74; } } else { -uint8_t x_74; +uint8_t x_75; lean_dec(x_59); -x_74 = !lean_is_exclusive(x_57); -if (x_74 == 0) +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_75 = !lean_is_exclusive(x_57); +if (x_75 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_57, 0); -lean_dec(x_75); -x_76 = l_Lean_ConstantInfo_levelParams(x_17); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_57, 0); +lean_dec(x_76); +x_77 = l_Lean_ConstantInfo_levelParams(x_17); lean_dec(x_17); -x_77 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; -x_78 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_78, 0, x_1); -lean_ctor_set(x_78, 1, x_76); -lean_ctor_set(x_78, 2, x_35); -lean_ctor_set(x_78, 3, x_77); -lean_ctor_set(x_78, 4, x_58); -lean_ctor_set(x_57, 0, x_78); +x_78 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; +x_79 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_79, 0, x_1); +lean_ctor_set(x_79, 1, x_77); +lean_ctor_set(x_79, 2, x_35); +lean_ctor_set(x_79, 3, x_78); +lean_ctor_set(x_79, 4, x_58); +lean_ctor_set(x_57, 0, x_79); return x_57; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = lean_ctor_get(x_57, 1); -lean_inc(x_79); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_80 = lean_ctor_get(x_57, 1); +lean_inc(x_80); lean_dec(x_57); -x_80 = l_Lean_ConstantInfo_levelParams(x_17); +x_81 = l_Lean_ConstantInfo_levelParams(x_17); lean_dec(x_17); -x_81 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; -x_82 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_82, 0, x_1); -lean_ctor_set(x_82, 1, x_80); -lean_ctor_set(x_82, 2, x_35); -lean_ctor_set(x_82, 3, x_81); -lean_ctor_set(x_82, 4, x_58); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_79); -return x_83; +x_82 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; +x_83 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_83, 0, x_1); +lean_ctor_set(x_83, 1, x_81); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_82); +lean_ctor_set(x_83, 4, x_58); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_80); +return x_84; } } } else { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_57); -if (x_84 == 0) +uint8_t x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_85 = !lean_is_exclusive(x_57); +if (x_85 == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_57, 0); -lean_dec(x_85); -x_86 = l_Lean_ConstantInfo_levelParams(x_17); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_57, 0); +lean_dec(x_86); +x_87 = l_Lean_ConstantInfo_levelParams(x_17); lean_dec(x_17); -x_87 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; -x_88 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_88, 0, x_1); -lean_ctor_set(x_88, 1, x_86); -lean_ctor_set(x_88, 2, x_35); -lean_ctor_set(x_88, 3, x_87); -lean_ctor_set(x_88, 4, x_58); -lean_ctor_set(x_57, 0, x_88); +x_88 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; +x_89 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_89, 0, x_1); +lean_ctor_set(x_89, 1, x_87); +lean_ctor_set(x_89, 2, x_35); +lean_ctor_set(x_89, 3, x_88); +lean_ctor_set(x_89, 4, x_58); +lean_ctor_set(x_57, 0, x_89); return x_57; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_89 = lean_ctor_get(x_57, 1); -lean_inc(x_89); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_90 = lean_ctor_get(x_57, 1); +lean_inc(x_90); lean_dec(x_57); -x_90 = l_Lean_ConstantInfo_levelParams(x_17); +x_91 = l_Lean_ConstantInfo_levelParams(x_17); lean_dec(x_17); -x_91 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; -x_92 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_92, 0, x_1); -lean_ctor_set(x_92, 1, x_90); -lean_ctor_set(x_92, 2, x_35); -lean_ctor_set(x_92, 3, x_91); -lean_ctor_set(x_92, 4, x_58); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_89); -return x_93; +x_92 = l_Lean_Compiler_LCNF_inlineMatchers___lambda__2___closed__1; +x_93 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_93, 0, x_1); +lean_ctor_set(x_93, 1, x_91); +lean_ctor_set(x_93, 2, x_35); +lean_ctor_set(x_93, 3, x_92); +lean_ctor_set(x_93, 4, x_58); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_90); +return x_94; } } } else { -uint8_t x_94; +uint8_t x_95; lean_dec(x_35); lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_57); -if (x_94 == 0) +x_95 = !lean_is_exclusive(x_57); +if (x_95 == 0) { return x_57; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_57, 0); -x_96 = lean_ctor_get(x_57, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_57, 0); +x_97 = lean_ctor_get(x_57, 1); +lean_inc(x_97); lean_inc(x_96); -lean_inc(x_95); lean_dec(x_57); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } else { -uint8_t x_98; +uint8_t x_99; lean_dec(x_35); lean_dec(x_31); lean_dec(x_17); @@ -3109,29 +3124,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_50); -if (x_98 == 0) +x_99 = !lean_is_exclusive(x_50); +if (x_99 == 0) { return x_50; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_50, 0); -x_100 = lean_ctor_get(x_50, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_50, 0); +x_101 = lean_ctor_get(x_50, 1); +lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); lean_dec(x_50); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +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_102; +uint8_t x_103; lean_dec(x_35); lean_dec(x_31); lean_dec(x_17); @@ -3139,29 +3154,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_102 = !lean_is_exclusive(x_47); -if (x_102 == 0) +x_103 = !lean_is_exclusive(x_47); +if (x_103 == 0) { return x_47; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_47, 0); -x_104 = lean_ctor_get(x_47, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_47, 0); +x_105 = lean_ctor_get(x_47, 1); +lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); lean_dec(x_47); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -uint8_t x_106; +uint8_t x_107; lean_dec(x_35); lean_dec(x_31); lean_dec(x_17); @@ -3169,29 +3184,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_43); -if (x_106 == 0) +x_107 = !lean_is_exclusive(x_43); +if (x_107 == 0) { return x_43; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_43, 0); -x_108 = lean_ctor_get(x_43, 1); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_43, 0); +x_109 = lean_ctor_get(x_43, 1); +lean_inc(x_109); lean_inc(x_108); -lean_inc(x_107); lean_dec(x_43); -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; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } else { -uint8_t x_110; +uint8_t x_111; lean_dec(x_35); lean_dec(x_31); lean_dec(x_17); @@ -3199,29 +3214,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_110 = !lean_is_exclusive(x_38); -if (x_110 == 0) +x_111 = !lean_is_exclusive(x_38); +if (x_111 == 0) { return x_38; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_38, 0); -x_112 = lean_ctor_get(x_38, 1); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_38, 0); +x_113 = lean_ctor_get(x_38, 1); +lean_inc(x_113); lean_inc(x_112); -lean_inc(x_111); lean_dec(x_38); -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; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } else { -uint8_t x_114; +uint8_t x_115; lean_dec(x_31); lean_dec(x_25); lean_dec(x_17); @@ -3229,23 +3244,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_114 = !lean_is_exclusive(x_34); -if (x_114 == 0) +x_115 = !lean_is_exclusive(x_34); +if (x_115 == 0) { return x_34; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_34, 0); -x_116 = lean_ctor_get(x_34, 1); +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_34, 0); +x_117 = lean_ctor_get(x_34, 1); +lean_inc(x_117); lean_inc(x_116); -lean_inc(x_115); lean_dec(x_34); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c b/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c index 82bb04b60d..5b68ca78dc 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c @@ -40,6 +40,7 @@ static lean_object* l_Lean_Compiler_LCNF_ToLCNF_liftMetaM___rarg___closed__9; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_mkOverApplication(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitApp___closed__21; +uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Compiler_LCNF_mkLcCast(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__6; @@ -201,7 +202,6 @@ lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_obje static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitApp___closed__8; static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitProjFn___spec__1___closed__3; lean_object* l_Lean_Expr_sort___override(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitApp___closed__4; LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at___private_Lean_Compiler_LCNF_ToLCNF_0__Lean_Compiler_LCNF_ToLCNF_isTypeFormerType___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__1; @@ -238,6 +238,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_ToLCNF_t LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_visitLambda_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeFormerType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__2(lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ToLCNF_0__Lean_Compiler_LCNF_ToLCNF_isTypeFormerType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -248,6 +249,7 @@ lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean lean_object* l_Lean_Expr_toCtorIfLit(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCases___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_etaIfUnderApplied(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); extern lean_object* l_Lean_projectionFnInfoExt; lean_object* l_Lean_Compiler_LCNF_Code_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -268,6 +270,7 @@ static lean_object* l_Lean_Compiler_LCNF_ToLCNF_State_lctx___default___closed__7 lean_object* l_Lean_Expr_fvar___override(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Compiler_LCNF_ToLCNF_etaExpandN___spec__1(lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitProjFn___spec__1___closed__2; LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Compiler_LCNF_ToLCNF_State_typeCache___default___spec__1___boxed(lean_object*); @@ -297,6 +300,7 @@ lean_object* l_Lean_Compiler_LCNF_mkFreshBinderName(lean_object*, lean_object*, lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Compiler_LCNF_ToLCNF_toLCNFType___spec__8(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitMData___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitLambda___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_instInhabitedElement___closed__4; LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Compiler_LCNF_ToLCNF_toLCNFType___spec__4(lean_object*, lean_object*); @@ -385,7 +389,6 @@ lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__8(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitNoConfusion___lambda__2___closed__4; -LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_cleanupBinderName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); @@ -405,6 +408,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Compiler_LCNF_ToLCNF_t LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCases___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_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_State_seq___default; lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_eraseFVarsAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_pushElement(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_ToLCNF_liftMetaM___rarg___closed__7; @@ -534,7 +538,94 @@ x_1 = l_Lean_Compiler_LCNF_ToLCNF_instInhabitedElement___closed__5; return x_1; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___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) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_eq(x_2, x_3); +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_array_uget(x_1, x_2); +switch (lean_obj_tag(x_10)) { +case 3: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = l_Lean_Compiler_LCNF_eraseFVarsAt(x_12, x_5, x_6, x_7, x_8); +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 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_2 = x_17; +x_4 = x_14; +x_8 = x_15; +goto _start; +} +case 4: +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; +x_19 = lean_ctor_get(x_10, 0); +lean_inc(x_19); +lean_dec(x_10); +x_20 = 1; +x_21 = l_Lean_Compiler_LCNF_eraseFVar(x_19, x_20, x_5, x_6, x_7, x_8); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = 1; +x_25 = lean_usize_add(x_2, x_24); +x_2 = x_25; +x_4 = x_22; +x_8 = x_23; +goto _start; +} +default: +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; +x_27 = lean_ctor_get(x_10, 0); +lean_inc(x_27); +lean_dec(x_10); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +lean_dec(x_27); +x_29 = 1; +x_30 = l_Lean_Compiler_LCNF_eraseFVar(x_28, x_29, x_5, x_6, x_7, x_8); +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); +x_33 = 1; +x_34 = lean_usize_add(x_2, x_33); +x_2 = x_34; +x_4 = x_31; +x_8 = x_32; +goto _start; +} +} +} +else +{ +lean_object* x_36; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_4); +lean_ctor_set(x_36, 1, x_8); +return x_36; +} +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__2(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -628,1117 +719,1303 @@ return x_6; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go(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; -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_lt(x_8, x_2); -if (x_9 == 0) +lean_object* x_8; lean_object* x_62; uint8_t x_63; +x_62 = lean_unsigned_to_nat(0u); +x_63 = lean_nat_dec_lt(x_62, x_2); +if (x_63 == 0) { -lean_object* x_10; +lean_object* x_64; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_3); -lean_ctor_set(x_10, 1, x_7); -return x_10; +lean_dec(x_1); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_3); +lean_ctor_set(x_64, 1, x_7); +return x_64; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_174; uint8_t x_175; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_sub(x_2, x_11); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_234; uint8_t x_235; +x_65 = lean_unsigned_to_nat(1u); +x_66 = lean_nat_sub(x_2, x_65); +x_234 = lean_array_get_size(x_1); +x_235 = lean_nat_dec_lt(x_66, x_234); +lean_dec(x_234); +if (x_235 == 0) +{ +lean_object* x_236; lean_object* x_237; +x_236 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__6; +x_237 = l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__2(x_236); +switch (lean_obj_tag(x_237)) { +case 0: +{ +lean_object* x_238; lean_object* x_239; lean_dec(x_2); -x_174 = lean_array_get_size(x_1); -x_175 = lean_nat_dec_lt(x_12, x_174); -lean_dec(x_174); -if (x_175 == 0) -{ -lean_object* x_176; lean_object* x_177; -x_176 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__6; -x_177 = l_panic___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(x_176); -switch (lean_obj_tag(x_177)) { -case 0: -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -lean_dec(x_177); -x_179 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_3); -x_2 = x_12; -x_3 = x_179; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_3); +x_2 = x_66; +x_3 = x_239; goto _start; } case 1: { -lean_object* x_181; lean_object* x_182; -x_181 = lean_ctor_get(x_177, 0); -lean_inc(x_181); -lean_dec(x_177); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_3); -x_2 = x_12; -x_3 = x_182; +lean_object* x_241; lean_object* x_242; +lean_dec(x_2); +x_241 = lean_ctor_get(x_237, 0); +lean_inc(x_241); +lean_dec(x_237); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_3); +x_2 = x_66; +x_3 = x_242; goto _start; } case 2: { -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_177, 0); -lean_inc(x_184); -lean_dec(x_177); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_3); -x_2 = x_12; -x_3 = x_185; +lean_object* x_244; lean_object* x_245; +lean_dec(x_2); +x_244 = lean_ctor_get(x_237, 0); +lean_inc(x_244); +lean_dec(x_237); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_3); +x_2 = x_66; +x_3 = x_245; goto _start; } case 3: { -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_177, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_177, 1); -lean_inc(x_188); -lean_dec(x_177); -x_13 = x_187; -x_14 = x_188; -goto block_173; +lean_object* x_247; lean_object* x_248; +lean_dec(x_2); +x_247 = lean_ctor_get(x_237, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_237, 1); +lean_inc(x_248); +lean_dec(x_237); +x_67 = x_247; +x_68 = x_248; +goto block_233; } default: { -lean_object* x_189; -lean_dec(x_12); -x_189 = l_Lean_Compiler_LCNF_Code_inferType(x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_189) == 0) -{ -uint8_t x_190; -x_190 = !lean_is_exclusive(x_189); -if (x_190 == 0) -{ -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_189, 0); -x_192 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_189, 0, x_192); -return x_189; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_193 = lean_ctor_get(x_189, 0); -x_194 = lean_ctor_get(x_189, 1); -lean_inc(x_194); -lean_inc(x_193); -lean_dec(x_189); -x_195 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_195, 0, x_193); -x_196 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_196, 0, x_195); -lean_ctor_set(x_196, 1, x_194); -return x_196; -} -} -else -{ -uint8_t x_197; -x_197 = !lean_is_exclusive(x_189); -if (x_197 == 0) -{ -return x_189; -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_189, 0); -x_199 = lean_ctor_get(x_189, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_189); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; -} -} +lean_object* x_249; +lean_dec(x_237); +lean_dec(x_66); +x_249 = lean_box(0); +x_8 = x_249; +goto block_61; } } } else { -lean_object* x_201; -x_201 = lean_array_fget(x_1, x_12); -switch (lean_obj_tag(x_201)) { +lean_object* x_250; +x_250 = lean_array_fget(x_1, x_66); +switch (lean_obj_tag(x_250)) { case 0: { -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -lean_dec(x_201); -x_203 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_3); -x_2 = x_12; -x_3 = x_203; +lean_object* x_251; lean_object* x_252; +lean_dec(x_2); +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +lean_dec(x_250); +x_252 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_3); +x_2 = x_66; +x_3 = x_252; goto _start; } case 1: { -lean_object* x_205; lean_object* x_206; -x_205 = lean_ctor_get(x_201, 0); -lean_inc(x_205); -lean_dec(x_201); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_3); -x_2 = x_12; -x_3 = x_206; +lean_object* x_254; lean_object* x_255; +lean_dec(x_2); +x_254 = lean_ctor_get(x_250, 0); +lean_inc(x_254); +lean_dec(x_250); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_3); +x_2 = x_66; +x_3 = x_255; goto _start; } case 2: { -lean_object* x_208; lean_object* x_209; -x_208 = lean_ctor_get(x_201, 0); -lean_inc(x_208); -lean_dec(x_201); -x_209 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_3); -x_2 = x_12; -x_3 = x_209; +lean_object* x_257; lean_object* x_258; +lean_dec(x_2); +x_257 = lean_ctor_get(x_250, 0); +lean_inc(x_257); +lean_dec(x_250); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_3); +x_2 = x_66; +x_3 = x_258; goto _start; } case 3: { -lean_object* x_211; lean_object* x_212; -x_211 = lean_ctor_get(x_201, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_201, 1); -lean_inc(x_212); -lean_dec(x_201); -x_13 = x_211; -x_14 = x_212; -goto block_173; +lean_object* x_260; lean_object* x_261; +lean_dec(x_2); +x_260 = lean_ctor_get(x_250, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_250, 1); +lean_inc(x_261); +lean_dec(x_250); +x_67 = x_260; +x_68 = x_261; +goto block_233; } default: { -lean_object* x_213; -lean_dec(x_12); -x_213 = l_Lean_Compiler_LCNF_Code_inferType(x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_213) == 0) -{ -uint8_t x_214; -x_214 = !lean_is_exclusive(x_213); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; -x_215 = lean_ctor_get(x_213, 0); -x_216 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_213, 0, x_216); -return x_213; -} -else -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_217 = lean_ctor_get(x_213, 0); -x_218 = lean_ctor_get(x_213, 1); -lean_inc(x_218); -lean_inc(x_217); -lean_dec(x_213); -x_219 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_219, 0, x_217); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_218); -return x_220; -} -} -else -{ -uint8_t x_221; -x_221 = !lean_is_exclusive(x_213); -if (x_221 == 0) -{ -return x_213; -} -else -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_213, 0); -x_223 = lean_ctor_get(x_213, 1); -lean_inc(x_223); -lean_inc(x_222); -lean_dec(x_213); -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -return x_224; +lean_object* x_262; +lean_dec(x_250); +lean_dec(x_66); +x_262 = lean_box(0); +x_8 = x_262; +goto block_61; } } } -} -} -block_173: +block_233: { switch (lean_obj_tag(x_3)) { case 2: { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_16 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_13, x_3, x_15, x_4, x_5, x_6, x_7); -x_17 = !lean_is_exclusive(x_3); -if (x_17 == 0) +x_70 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_67, x_3, x_69, x_4, x_5, x_6, x_7); +x_71 = !lean_is_exclusive(x_3); +if (x_71 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_3, 1); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 0); -lean_dec(x_19); -if (lean_obj_tag(x_16) == 0) +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_3, 1); +lean_dec(x_72); +x_73 = lean_ctor_get(x_3, 0); +lean_dec(x_73); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_16, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_22, 0, x_14); -lean_inc(x_20); -x_23 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_23, 0, x_20); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_74 = lean_ctor_get(x_70, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_76, 0, x_68); +lean_inc(x_74); +x_77 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_77, 0, x_74); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_24 = l_Lean_Compiler_LCNF_Code_bind(x_22, x_23, x_4, x_5, x_6, x_21); -if (lean_obj_tag(x_24) == 0) +x_78 = l_Lean_Compiler_LCNF_Code_bind(x_76, x_77, x_4, x_5, x_6, x_75); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_ctor_set(x_3, 1, x_25); -lean_ctor_set(x_3, 0, x_20); -x_2 = x_12; -x_7 = x_26; +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +lean_ctor_set(x_3, 1, x_79); +lean_ctor_set(x_3, 0, x_74); +x_2 = x_66; +x_7 = x_80; goto _start; } else { -uint8_t x_28; -lean_dec(x_20); +uint8_t x_82; +lean_dec(x_74); lean_free_object(x_3); -lean_dec(x_12); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_28 = !lean_is_exclusive(x_24); -if (x_28 == 0) +lean_dec(x_1); +x_82 = !lean_is_exclusive(x_78); +if (x_82 == 0) { -return x_24; +return x_78; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_24, 0); -x_30 = lean_ctor_get(x_24, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_24); -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; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_78, 0); +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_78); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; } } } else { -uint8_t x_32; +uint8_t x_86; lean_free_object(x_3); -lean_dec(x_14); -lean_dec(x_12); +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_32 = !lean_is_exclusive(x_16); -if (x_32 == 0) +lean_dec(x_1); +x_86 = !lean_is_exclusive(x_70); +if (x_86 == 0) { -return x_16; +return x_70; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_16, 0); -x_34 = lean_ctor_get(x_16, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_16); -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; +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { lean_dec(x_3); -if (lean_obj_tag(x_16) == 0) +if (lean_obj_tag(x_70) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_16, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_16, 1); -lean_inc(x_37); -lean_dec(x_16); -x_38 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_38, 0, x_14); -lean_inc(x_36); -x_39 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_39, 0, x_36); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_90 = lean_ctor_get(x_70, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_70, 1); +lean_inc(x_91); +lean_dec(x_70); +x_92 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_92, 0, x_68); +lean_inc(x_90); +x_93 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_93, 0, x_90); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_40 = l_Lean_Compiler_LCNF_Code_bind(x_38, x_39, x_4, x_5, x_6, x_37); -if (lean_obj_tag(x_40) == 0) +x_94 = l_Lean_Compiler_LCNF_Code_bind(x_92, x_93, x_4, x_5, x_6, x_91); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_43, 0, x_36); -lean_ctor_set(x_43, 1, x_41); -x_2 = x_12; -x_3 = x_43; -x_7 = x_42; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_97, 0, x_90); +lean_ctor_set(x_97, 1, x_95); +x_2 = x_66; +x_3 = x_97; +x_7 = x_96; goto _start; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_36); -lean_dec(x_12); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_90); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_45 = lean_ctor_get(x_40, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_47 = x_40; +lean_dec(x_1); +x_99 = lean_ctor_get(x_94, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_94, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_101 = x_94; } else { - lean_dec_ref(x_40); - x_47 = lean_box(0); + lean_dec_ref(x_94); + x_101 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_102 = x_101; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_14); -lean_dec(x_12); +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_49 = lean_ctor_get(x_16, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_16, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_16)) { - lean_ctor_release(x_16, 0); - lean_ctor_release(x_16, 1); - x_51 = x_16; +lean_dec(x_1); +x_103 = lean_ctor_get(x_70, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_70, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_105 = x_70; } else { - lean_dec_ref(x_16); - x_51 = lean_box(0); + lean_dec_ref(x_70); + x_105 = lean_box(0); } -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_52 = x_51; + x_106 = x_105; } -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; } } } case 4: { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; +lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_107 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_54 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_13, x_3, x_53, x_4, x_5, x_6, x_7); -x_55 = !lean_is_exclusive(x_3); -if (x_55 == 0) +x_108 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_67, x_3, x_107, x_4, x_5, x_6, x_7); +x_109 = !lean_is_exclusive(x_3); +if (x_109 == 0) { -lean_object* x_56; -x_56 = lean_ctor_get(x_3, 0); -lean_dec(x_56); -if (lean_obj_tag(x_54) == 0) +lean_object* x_110; +x_110 = lean_ctor_get(x_3, 0); +lean_dec(x_110); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_54, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -lean_ctor_set(x_3, 0, x_14); -lean_inc(x_57); -x_59 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_59, 0, x_57); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_111 = lean_ctor_get(x_108, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_108, 1); +lean_inc(x_112); +lean_dec(x_108); +lean_ctor_set(x_3, 0, x_68); +lean_inc(x_111); +x_113 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_113, 0, x_111); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_60 = l_Lean_Compiler_LCNF_Code_bind(x_3, x_59, x_4, x_5, x_6, x_58); -if (lean_obj_tag(x_60) == 0) +x_114 = l_Lean_Compiler_LCNF_Code_bind(x_3, x_113, x_4, x_5, x_6, x_112); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_63, 0, x_57); -lean_ctor_set(x_63, 1, x_61); -x_2 = x_12; -x_3 = x_63; -x_7 = x_62; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_117, 0, x_111); +lean_ctor_set(x_117, 1, x_115); +x_2 = x_66; +x_3 = x_117; +x_7 = x_116; goto _start; } else { -uint8_t x_65; -lean_dec(x_57); -lean_dec(x_12); +uint8_t x_119; +lean_dec(x_111); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_65 = !lean_is_exclusive(x_60); -if (x_65 == 0) +lean_dec(x_1); +x_119 = !lean_is_exclusive(x_114); +if (x_119 == 0) { -return x_60; +return x_114; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_60, 0); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_60); -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; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_114, 0); +x_121 = lean_ctor_get(x_114, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_114); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; } } } else { -uint8_t x_69; +uint8_t x_123; lean_free_object(x_3); -lean_dec(x_14); -lean_dec(x_12); +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_69 = !lean_is_exclusive(x_54); -if (x_69 == 0) +lean_dec(x_1); +x_123 = !lean_is_exclusive(x_108); +if (x_123 == 0) { -return x_54; +return x_108; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_54, 0); -x_71 = lean_ctor_get(x_54, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_54); -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; +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_108, 0); +x_125 = lean_ctor_get(x_108, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_108); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } else { lean_dec(x_3); -if (lean_obj_tag(x_54) == 0) +if (lean_obj_tag(x_108) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_73 = lean_ctor_get(x_54, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_54, 1); -lean_inc(x_74); -lean_dec(x_54); -x_75 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_75, 0, x_14); -lean_inc(x_73); -x_76 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_76, 0, x_73); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_108, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_108, 1); +lean_inc(x_128); +lean_dec(x_108); +x_129 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_129, 0, x_68); +lean_inc(x_127); +x_130 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_130, 0, x_127); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_77 = l_Lean_Compiler_LCNF_Code_bind(x_75, x_76, x_4, x_5, x_6, x_74); -if (lean_obj_tag(x_77) == 0) +x_131 = l_Lean_Compiler_LCNF_Code_bind(x_129, x_130, x_4, x_5, x_6, x_128); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_80, 0, x_73); -lean_ctor_set(x_80, 1, x_78); -x_2 = x_12; -x_3 = x_80; -x_7 = x_79; +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_134, 0, x_127); +lean_ctor_set(x_134, 1, x_132); +x_2 = x_66; +x_3 = x_134; +x_7 = x_133; goto _start; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_73); -lean_dec(x_12); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_127); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_82 = lean_ctor_get(x_77, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_77, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_84 = x_77; +lean_dec(x_1); +x_136 = lean_ctor_get(x_131, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_131, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_138 = x_131; } else { - lean_dec_ref(x_77); - x_84 = lean_box(0); + lean_dec_ref(x_131); + x_138 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; + x_139 = x_138; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); -return x_85; +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_14); -lean_dec(x_12); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_86 = lean_ctor_get(x_54, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_54, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_88 = x_54; +lean_dec(x_1); +x_140 = lean_ctor_get(x_108, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_108, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_142 = x_108; } else { - lean_dec_ref(x_54); - x_88 = lean_box(0); + lean_dec_ref(x_108); + x_142 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_143 = x_142; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; } } } case 5: { -lean_object* x_90; uint8_t x_91; -x_90 = lean_ctor_get(x_3, 0); -lean_inc(x_90); -x_91 = lean_name_eq(x_13, x_90); -lean_dec(x_90); -lean_dec(x_13); -if (x_91 == 0) +lean_object* x_144; uint8_t x_145; +x_144 = lean_ctor_get(x_3, 0); +lean_inc(x_144); +x_145 = lean_name_eq(x_67, x_144); +lean_dec(x_144); +if (x_145 == 0) { -lean_dec(x_14); -x_2 = x_12; +lean_dec(x_68); +lean_dec(x_67); +x_2 = x_66; goto _start; } else { -uint8_t x_93; -x_93 = !lean_is_exclusive(x_3); -if (x_93 == 0) +uint8_t x_147; +x_147 = !lean_is_exclusive(x_3); +if (x_147 == 0) { -lean_object* x_94; -x_94 = lean_ctor_get(x_3, 0); -lean_dec(x_94); +lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_3, 0); +lean_dec(x_148); +x_149 = 1; +x_150 = l_Lean_Compiler_LCNF_eraseFVar(x_67, x_149, x_4, x_5, x_6, x_7); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec(x_150); lean_ctor_set_tag(x_3, 4); -lean_ctor_set(x_3, 0, x_14); -x_2 = x_12; +lean_ctor_set(x_3, 0, x_68); +x_2 = x_66; +x_7 = x_151; goto _start; } else { -lean_object* x_96; +uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_dec(x_3); -x_96 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_96, 0, x_14); -x_2 = x_12; -x_3 = x_96; +x_153 = 1; +x_154 = l_Lean_Compiler_LCNF_eraseFVar(x_67, x_153, x_4, x_5, x_6, x_7); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_156 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_156, 0, x_68); +x_2 = x_66; +x_3 = x_156; +x_7 = x_155; goto _start; } } } case 6: { -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; +lean_object* x_158; lean_object* x_159; uint8_t x_160; +x_158 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_99 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_13, x_3, x_98, x_4, x_5, x_6, x_7); -x_100 = !lean_is_exclusive(x_3); -if (x_100 == 0) +x_159 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_67, x_3, x_158, x_4, x_5, x_6, x_7); +x_160 = !lean_is_exclusive(x_3); +if (x_160 == 0) { -lean_object* x_101; -x_101 = lean_ctor_get(x_3, 0); -lean_dec(x_101); -if (lean_obj_tag(x_99) == 0) +lean_object* x_161; +x_161 = lean_ctor_get(x_3, 0); +lean_dec(x_161); +if (lean_obj_tag(x_159) == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_99, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_99, 1); -lean_inc(x_103); -lean_dec(x_99); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_159, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_159, 1); +lean_inc(x_163); +lean_dec(x_159); lean_ctor_set_tag(x_3, 4); -lean_ctor_set(x_3, 0, x_14); -lean_inc(x_102); -x_104 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_104, 0, x_102); +lean_ctor_set(x_3, 0, x_68); +lean_inc(x_162); +x_164 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_164, 0, x_162); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_105 = l_Lean_Compiler_LCNF_Code_bind(x_3, x_104, x_4, x_5, x_6, x_103); -if (lean_obj_tag(x_105) == 0) +x_165 = l_Lean_Compiler_LCNF_Code_bind(x_3, x_164, x_4, x_5, x_6, x_163); +if (lean_obj_tag(x_165) == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_108, 0, x_102); -lean_ctor_set(x_108, 1, x_106); -x_2 = x_12; -x_3 = x_108; -x_7 = x_107; +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 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_168, 0, x_162); +lean_ctor_set(x_168, 1, x_166); +x_2 = x_66; +x_3 = x_168; +x_7 = x_167; goto _start; } else { -uint8_t x_110; -lean_dec(x_102); -lean_dec(x_12); +uint8_t x_170; +lean_dec(x_162); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_110 = !lean_is_exclusive(x_105); -if (x_110 == 0) +lean_dec(x_1); +x_170 = !lean_is_exclusive(x_165); +if (x_170 == 0) { -return x_105; +return x_165; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_105, 0); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_105); -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; +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_165, 0); +x_172 = lean_ctor_get(x_165, 1); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_165); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +return x_173; } } } else { -uint8_t x_114; +uint8_t x_174; lean_free_object(x_3); -lean_dec(x_14); -lean_dec(x_12); +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_114 = !lean_is_exclusive(x_99); -if (x_114 == 0) +lean_dec(x_1); +x_174 = !lean_is_exclusive(x_159); +if (x_174 == 0) { -return x_99; +return x_159; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_99, 0); -x_116 = lean_ctor_get(x_99, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_99); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_159, 0); +x_176 = lean_ctor_get(x_159, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_159); +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 { lean_dec(x_3); -if (lean_obj_tag(x_99) == 0) +if (lean_obj_tag(x_159) == 0) { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_118 = lean_ctor_get(x_99, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_99, 1); -lean_inc(x_119); -lean_dec(x_99); -x_120 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_120, 0, x_14); -lean_inc(x_118); -x_121 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_121, 0, x_118); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_178 = lean_ctor_get(x_159, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_159, 1); +lean_inc(x_179); +lean_dec(x_159); +x_180 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_180, 0, x_68); +lean_inc(x_178); +x_181 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_181, 0, x_178); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_122 = l_Lean_Compiler_LCNF_Code_bind(x_120, x_121, x_4, x_5, x_6, x_119); -if (lean_obj_tag(x_122) == 0) +x_182 = l_Lean_Compiler_LCNF_Code_bind(x_180, x_181, x_4, x_5, x_6, x_179); +if (lean_obj_tag(x_182) == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); -x_125 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_125, 0, x_118); -lean_ctor_set(x_125, 1, x_123); -x_2 = x_12; -x_3 = x_125; -x_7 = x_124; +lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_185 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_185, 0, x_178); +lean_ctor_set(x_185, 1, x_183); +x_2 = x_66; +x_3 = x_185; +x_7 = x_184; goto _start; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec(x_118); -lean_dec(x_12); +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_178); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_127 = lean_ctor_get(x_122, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_122, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_129 = x_122; +lean_dec(x_1); +x_187 = lean_ctor_get(x_182, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_182, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_189 = x_182; } else { - lean_dec_ref(x_122); - x_129 = lean_box(0); + lean_dec_ref(x_182); + x_189 = lean_box(0); } -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_189)) { + x_190 = lean_alloc_ctor(1, 2, 0); } else { - x_130 = x_129; + x_190 = x_189; } -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_ctor_set(x_190, 0, x_187); +lean_ctor_set(x_190, 1, x_188); +return x_190; } } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_14); -lean_dec(x_12); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_131 = lean_ctor_get(x_99, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_99, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_133 = x_99; +lean_dec(x_1); +x_191 = lean_ctor_get(x_159, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_159, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_193 = x_159; } else { - lean_dec_ref(x_99); - x_133 = lean_box(0); + lean_dec_ref(x_159); + x_193 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(1, 2, 0); } else { - x_134 = x_133; + x_194 = x_193; } -lean_ctor_set(x_134, 0, x_131); -lean_ctor_set(x_134, 1, x_132); -return x_134; +lean_ctor_set(x_194, 0, x_191); +lean_ctor_set(x_194, 1, x_192); +return x_194; } } } default: { -lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_135 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; +lean_object* x_195; lean_object* x_196; uint8_t x_197; +x_195 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___closed__2; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_136 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_13, x_3, x_135, x_4, x_5, x_6, x_7); -x_137 = !lean_is_exclusive(x_3); -if (x_137 == 0) +x_196 = l_Lean_Compiler_LCNF_mkAuxJpDecl_x27(x_67, x_3, x_195, x_4, x_5, x_6, x_7); +x_197 = !lean_is_exclusive(x_3); +if (x_197 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_3, 1); -lean_dec(x_138); -x_139 = lean_ctor_get(x_3, 0); -lean_dec(x_139); -if (lean_obj_tag(x_136) == 0) +lean_object* x_198; lean_object* x_199; +x_198 = lean_ctor_get(x_3, 1); +lean_dec(x_198); +x_199 = lean_ctor_get(x_3, 0); +lean_dec(x_199); +if (lean_obj_tag(x_196) == 0) { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_140 = lean_ctor_get(x_136, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_136, 1); -lean_inc(x_141); -lean_dec(x_136); -x_142 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_142, 0, x_14); -lean_inc(x_140); -x_143 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_143, 0, x_140); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_200 = lean_ctor_get(x_196, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_196, 1); +lean_inc(x_201); +lean_dec(x_196); +x_202 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_202, 0, x_68); +lean_inc(x_200); +x_203 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_203, 0, x_200); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_144 = l_Lean_Compiler_LCNF_Code_bind(x_142, x_143, x_4, x_5, x_6, x_141); -if (lean_obj_tag(x_144) == 0) +x_204 = l_Lean_Compiler_LCNF_Code_bind(x_202, x_203, x_4, x_5, x_6, x_201); +if (lean_obj_tag(x_204) == 0) { -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -lean_dec(x_144); +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); lean_ctor_set_tag(x_3, 2); -lean_ctor_set(x_3, 1, x_145); -lean_ctor_set(x_3, 0, x_140); -x_2 = x_12; -x_7 = x_146; +lean_ctor_set(x_3, 1, x_205); +lean_ctor_set(x_3, 0, x_200); +x_2 = x_66; +x_7 = x_206; goto _start; } else { -uint8_t x_148; -lean_dec(x_140); +uint8_t x_208; +lean_dec(x_200); lean_free_object(x_3); -lean_dec(x_12); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_148 = !lean_is_exclusive(x_144); -if (x_148 == 0) +lean_dec(x_1); +x_208 = !lean_is_exclusive(x_204); +if (x_208 == 0) { -return x_144; +return x_204; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_144, 0); -x_150 = lean_ctor_get(x_144, 1); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_144); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_204, 0); +x_210 = lean_ctor_get(x_204, 1); +lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_204); +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +return x_211; } } } else { -uint8_t x_152; +uint8_t x_212; lean_free_object(x_3); -lean_dec(x_14); -lean_dec(x_12); +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_152 = !lean_is_exclusive(x_136); -if (x_152 == 0) +lean_dec(x_1); +x_212 = !lean_is_exclusive(x_196); +if (x_212 == 0) { -return x_136; +return x_196; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_136, 0); -x_154 = lean_ctor_get(x_136, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_136); -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -return x_155; +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_196, 0); +x_214 = lean_ctor_get(x_196, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_196); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; } } } else { lean_dec(x_3); -if (lean_obj_tag(x_136) == 0) +if (lean_obj_tag(x_196) == 0) { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_156 = lean_ctor_get(x_136, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_136, 1); -lean_inc(x_157); -lean_dec(x_136); -x_158 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_158, 0, x_14); -lean_inc(x_156); -x_159 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); -lean_closure_set(x_159, 0, x_156); +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_216 = lean_ctor_get(x_196, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_196, 1); +lean_inc(x_217); +lean_dec(x_196); +x_218 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_218, 0, x_68); +lean_inc(x_216); +x_219 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___lambda__1___boxed), 6, 1); +lean_closure_set(x_219, 0, x_216); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_160 = l_Lean_Compiler_LCNF_Code_bind(x_158, x_159, x_4, x_5, x_6, x_157); -if (lean_obj_tag(x_160) == 0) +x_220 = l_Lean_Compiler_LCNF_Code_bind(x_218, x_219, x_4, x_5, x_6, x_217); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); -x_163 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_163, 0, x_156); -lean_ctor_set(x_163, 1, x_161); -x_2 = x_12; -x_3 = x_163; -x_7 = x_162; +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_223, 0, x_216); +lean_ctor_set(x_223, 1, x_221); +x_2 = x_66; +x_3 = x_223; +x_7 = x_222; goto _start; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_156); -lean_dec(x_12); +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +lean_dec(x_216); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_165 = lean_ctor_get(x_160, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_160, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_167 = x_160; +lean_dec(x_1); +x_225 = lean_ctor_get(x_220, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_227 = x_220; } else { - lean_dec_ref(x_160); - x_167 = lean_box(0); + lean_dec_ref(x_220); + x_227 = lean_box(0); } -if (lean_is_scalar(x_167)) { - x_168 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_227)) { + x_228 = lean_alloc_ctor(1, 2, 0); } else { - x_168 = x_167; + x_228 = x_227; } -lean_ctor_set(x_168, 0, x_165); -lean_ctor_set(x_168, 1, x_166); -return x_168; +lean_ctor_set(x_228, 0, x_225); +lean_ctor_set(x_228, 1, x_226); +return x_228; } } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -lean_dec(x_14); -lean_dec(x_12); +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_68); +lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_169 = lean_ctor_get(x_136, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_136, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_171 = x_136; +lean_dec(x_1); +x_229 = lean_ctor_get(x_196, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_196, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_231 = x_196; } else { - lean_dec_ref(x_136); - x_171 = lean_box(0); + lean_dec_ref(x_196); + x_231 = lean_box(0); } -if (lean_is_scalar(x_171)) { - x_172 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); } else { - x_172 = x_171; + x_232 = x_231; } -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_170); -return x_172; +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; } } } } } } +block_61: +{ +lean_object* x_9; +lean_dec(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_9 = l_Lean_Compiler_LCNF_Code_inferType(x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(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_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_Lean_Compiler_LCNF_eraseFVarsAt(x_3, x_4, x_5, x_6, x_11); +x_13 = !lean_is_exclusive(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; uint8_t x_21; +x_14 = lean_ctor_get(x_12, 1); +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_toSubarray___rarg(x_1, x_16, x_2); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 2); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_nat_dec_lt(x_19, x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_22 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_12, 0, x_22); +return x_12; +} +else +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_array_get_size(x_18); +x_24 = lean_nat_dec_le(x_20, x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_25 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_12, 0, x_25); +return x_12; +} +else +{ +size_t x_26; size_t x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_free_object(x_12); +x_26 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_27 = lean_usize_of_nat(x_20); +lean_dec(x_20); +x_28 = lean_box(0); +x_29 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(x_18, x_26, x_27, x_28, x_4, x_5, x_6, x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_18); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_32, 0, x_10); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_34, 0, x_10); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_36 = lean_ctor_get(x_12, 1); +lean_inc(x_36); +lean_dec(x_12); +x_37 = lean_unsigned_to_nat(0u); +x_38 = l_Array_toSubarray___rarg(x_1, x_37, x_2); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_43 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_43, 0, x_10); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_36); +return x_44; +} +else +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_array_get_size(x_39); +x_46 = lean_nat_dec_le(x_41, x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_47 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_47, 0, x_10); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_36); +return x_48; +} +else +{ +size_t x_49; size_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_49 = lean_usize_of_nat(x_40); +lean_dec(x_40); +x_50 = lean_usize_of_nat(x_41); +lean_dec(x_41); +x_51 = lean_box(0); +x_52 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(x_39, x_49, x_50, x_51, x_4, x_5, x_6, x_36); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_39); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +x_55 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_55, 0, x_10); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; +} +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_9); +if (x_57 == 0) +{ +return x_9; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_9, 0); +x_59 = lean_ctor_get(x_9, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_9); +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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___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: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___spec__1(x_1, x_9, x_10, 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_1); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___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) { @@ -1753,15 +2030,6 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} static lean_object* _init_l_Lean_Compiler_LCNF_ToLCNF_seqToCode___closed__1() { _start: { @@ -1793,7 +2061,6 @@ x_8 = lean_array_get_size(x_1); x_9 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_9, 0, x_7); x_10 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go(x_1, x_8, x_9, x_3, x_4, x_5, x_6); -lean_dec(x_1); return x_10; } else @@ -1823,7 +2090,6 @@ lean_dec(x_13); x_19 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_19, 0, x_18); x_20 = l_Lean_Compiler_LCNF_ToLCNF_seqToCode_go(x_16, x_17, x_19, x_3, x_4, x_5, x_14); -lean_dec(x_16); return x_20; } else @@ -2459,41 +2725,41 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_ToLCNF_mkUnreachable(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; uint8_t x_11; -x_7 = lean_box(4); -x_8 = l_Lean_Compiler_LCNF_ToLCNF_pushElement(x_7, x_2, x_3, x_4, x_5, x_6); -x_9 = lean_ctor_get(x_8, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_7 = l_Lean_Compiler_LCNF_mkAuxParam(x_1, x_3, x_4, x_5, x_6); +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 = lean_ctor_get(x_8, 0); +lean_inc(x_10); lean_dec(x_8); -x_10 = l_Lean_Compiler_LCNF_mkAuxParam(x_1, x_3, x_4, x_5, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_inc(x_10); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = l_Lean_Compiler_LCNF_ToLCNF_pushElement(x_11, x_2, x_3, x_4, x_5, x_9); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Lean_Expr_fvar___override(x_13); -lean_ctor_set(x_10, 0, x_14); -return x_10; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +x_15 = l_Lean_Expr_fvar___override(x_10); +lean_ctor_set(x_12, 0, x_15); +return x_12; } 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_10, 0); -x_16 = lean_ctor_get(x_10, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 1); lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_10); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Expr_fvar___override(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_16); -return x_19; +lean_dec(x_12); +x_17 = l_Lean_Expr_fvar___override(x_10); +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; } } } @@ -6840,7 +7106,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(244u); +x_3 = lean_unsigned_to_nat(253u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6887,7 +7153,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(242u); +x_3 = lean_unsigned_to_nat(251u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10229,7 +10495,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitProjFn___closed__1; -x_3 = lean_unsigned_to_nat(445u); +x_3 = lean_unsigned_to_nat(454u); x_4 = lean_unsigned_to_nat(45u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10796,7 +11062,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitNoConfusion___closed__1; -x_3 = lean_unsigned_to_nat(402u); +x_3 = lean_unsigned_to_nat(411u); x_4 = lean_unsigned_to_nat(42u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10809,7 +11075,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitNoConfusion___closed__1; -x_3 = lean_unsigned_to_nat(404u); +x_3 = lean_unsigned_to_nat(413u); x_4 = lean_unsigned_to_nat(56u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12519,7 +12785,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCases___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(336u); +x_3 = lean_unsigned_to_nat(345u); x_4 = lean_unsigned_to_nat(55u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14598,7 +14864,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_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__1; x_2 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitQuotLift___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(363u); +x_3 = lean_unsigned_to_nat(372u); x_4 = lean_unsigned_to_nat(42u); x_5 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/TypeName.c b/stage0/stdlib/Lean/Elab/Deriving/TypeName.c index 80f973201f..9cd3b648bf 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/TypeName.c +++ b/stage0/stdlib/Lean/Elab/Deriving/TypeName.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Deriving.TypeName -// Imports: Init Lean.Elab.Deriving.Basic Bootstrap.Dynamic +// Imports: Init Lean.Elab.Deriving.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,7 +16,6 @@ extern "C" { lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__34; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__48; size_t lean_usize_add(size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__78; @@ -31,9 +30,8 @@ lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__5; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__29; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__4; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__22; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4; lean_object* l_Lean_Elab_registerDerivingHandler(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__14; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -58,17 +56,15 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_T static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__35; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__70; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__64; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__60; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__47; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__72; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__23; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__2; @@ -85,8 +81,8 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_T static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__40; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__67; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__69; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__82; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__19; lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__51; @@ -106,6 +102,7 @@ lean_object* l_String_intercalate(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__68; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__75; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__2; @@ -115,10 +112,7 @@ lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, l static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__66; lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_quoteNameMk(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__53; @@ -127,15 +121,14 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_T static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__73; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__43; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870_(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__10; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__32; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__20; +lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__49; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__52; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__62; @@ -474,26 +467,104 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deri _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("TypeName", 8); +x_1 = lean_mk_string_from_bytes("explicit", 8); return x_1; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__37() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__36; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__36; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__38() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("@", 1); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__39() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("declValSimple", 13); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__40() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__39; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__41() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(":=", 2); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("dotIdent", 8); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__43() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__44() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(".", 1); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("mk", 2); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__46() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__47() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__36; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__37; +x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__46; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -501,104 +572,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__39() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__36; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__40() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Std", 3); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__41() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__40; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__41; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__36; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__43() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__44() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__44; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__46() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__43; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45; -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_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__47() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("explicit", 8); -return x_1; -} -} static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__48() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__47; +x_1 = lean_box(0); +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__45; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -607,130 +586,29 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deri _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("@", 1); +x_1 = lean_mk_string_from_bytes("hole", 4); return x_1; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__50() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declValSimple", 13); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__49; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__51() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__50; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__52() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(":=", 2); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__53() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("dotIdent", 8); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__54() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__53; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__55() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(".", 1); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("mk", 2); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__57() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__58() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__57; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__59() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__60() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("hole", 4); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__61() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__60; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__62() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string_from_bytes("_", 1); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__63() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__52() { _start: { lean_object* x_1; lean_object* x_2; @@ -739,7 +617,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__64() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__53() { _start: { lean_object* x_1; lean_object* x_2; @@ -748,7 +626,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__54() { _start: { lean_object* x_1; @@ -756,17 +634,17 @@ x_1 = lean_mk_string_from_bytes("attributes", 10); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__66() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__55() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__54; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__67() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56() { _start: { lean_object* x_1; @@ -774,7 +652,7 @@ x_1 = lean_mk_string_from_bytes("@[", 2); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__68() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__57() { _start: { lean_object* x_1; @@ -782,17 +660,17 @@ x_1 = lean_mk_string_from_bytes("attrInstance", 12); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__69() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__58() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__68; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__57; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__70() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__59() { _start: { lean_object* x_1; @@ -800,11 +678,114 @@ x_1 = lean_mk_string_from_bytes("attrKind", 8); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__71() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__60() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__59; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__61() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Attr", 4); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__62() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__6; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__61; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__63() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("simple", 6); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__64() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__62; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__63; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("implementedBy", 13); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__66() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__67() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__66; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__68() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__65; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__69() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("]", 1); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__70() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("opaque", 6); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__71() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__70; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -814,34 +795,39 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deri _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Attr", 4); +x_1 = lean_mk_string_from_bytes("inst", 4); return x_1; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__73() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__6; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__72; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__72; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__74() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simple", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__72; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__73; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__75() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__73; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__74; +x_1 = lean_box(0); +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__72; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -850,129 +836,21 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deri _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("implementedBy", 13); +x_1 = lean_mk_string_from_bytes("declSig", 7); return x_1; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__77() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__76; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__78() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__76; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__77; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__76; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__80() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("]", 1); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("opaque", 6); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__82() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("inst", 4); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declSig", 7); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__78() { _start: { lean_object* x_1; lean_object* x_2; @@ -981,7 +859,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79() { _start: { lean_object* x_1; @@ -989,17 +867,17 @@ x_1 = lean_mk_string_from_bytes("instance", 8); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__80() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__8; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81() { _start: { lean_object* x_1; lean_object* x_2; @@ -1008,7 +886,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__82() { _start: { lean_object* x_1; @@ -1016,17 +894,17 @@ x_1 = lean_mk_string_from_bytes("quotedName", 10); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__30; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__82; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84() { _start: { lean_object* x_1; @@ -1034,512 +912,527 @@ x_1 = lean_mk_string_from_bytes("`", 1); return x_1; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; 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_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_5 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfInstance___spec__11(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; 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_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_6 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfInstance___spec__11(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_Command_getCurrMacroScope(x_3, x_4, x_8); +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_Lean_Elab_Command_getMainModule___rarg(x_4, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - lean_ctor_release(x_11, 1); - x_14 = x_11; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_15 = x_12; } else { - lean_dec_ref(x_11); - x_14 = lean_box(0); + lean_dec_ref(x_12); + x_15 = lean_box(0); } -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__2; -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__13; -lean_inc(x_6); -x_17 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_17, 0, x_6); -lean_ctor_set(x_17, 1, x_15); -lean_ctor_set(x_17, 2, x_16); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__14; -lean_inc(x_6); -x_19 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_19, 0, x_6); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__16; -x_21 = lean_array_push(x_20, x_19); -x_22 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__15; -lean_inc(x_6); -x_23 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_23, 0, x_6); -lean_ctor_set(x_23, 1, x_22); -lean_ctor_set(x_23, 2, x_21); -x_24 = lean_array_push(x_20, x_23); -lean_inc(x_6); -x_25 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_25, 0, x_6); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_24); -x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__17; -lean_inc(x_17); -x_27 = lean_array_push(x_26, x_17); -lean_inc(x_17); -lean_inc(x_27); -x_28 = lean_array_push(x_27, x_17); -lean_inc(x_17); -x_29 = lean_array_push(x_28, x_17); -lean_inc(x_17); -x_30 = lean_array_push(x_29, x_17); -lean_inc(x_30); -x_31 = lean_array_push(x_30, x_25); -lean_inc(x_17); -x_32 = lean_array_push(x_31, x_17); -x_33 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__12; -lean_inc(x_6); -x_34 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_34, 0, x_6); -lean_ctor_set(x_34, 1, x_33); -lean_ctor_set(x_34, 2, x_32); -x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__18; -lean_inc(x_6); -x_36 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_36, 0, x_6); -lean_ctor_set(x_36, 1, x_35); -x_37 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__25; -lean_inc(x_9); -lean_inc(x_12); -x_38 = l_Lean_addMacroScope(x_12, x_37, x_9); -x_39 = lean_box(0); -x_40 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__24; -lean_inc(x_6); -x_41 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_41, 0, x_6); -lean_ctor_set(x_41, 1, x_40); -lean_ctor_set(x_41, 2, x_38); -lean_ctor_set(x_41, 3, x_39); -x_42 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__26; -lean_inc(x_41); -x_43 = lean_array_push(x_42, x_41); -lean_inc(x_17); -x_44 = lean_array_push(x_43, x_17); -x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__21; -lean_inc(x_6); -x_46 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_46, 0, x_6); -lean_ctor_set(x_46, 1, x_45); -lean_ctor_set(x_46, 2, x_44); -x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__33; -lean_inc(x_6); -x_48 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_48, 0, x_6); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__39; -lean_inc(x_9); -lean_inc(x_12); -x_50 = l_Lean_addMacroScope(x_12, x_49, x_9); -x_51 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__38; -x_52 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__46; -lean_inc(x_6); -x_53 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_53, 0, x_6); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set(x_53, 2, x_50); -lean_ctor_set(x_53, 3, x_52); -x_54 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__49; -lean_inc(x_6); -x_55 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_55, 0, x_6); -lean_ctor_set(x_55, 1, x_54); -x_56 = lean_box(0); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__2; +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__13; +lean_inc(x_7); +x_18 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_18, 1, x_16); +lean_ctor_set(x_18, 2, x_17); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__14; +lean_inc(x_7); +x_20 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__16; +x_22 = lean_array_push(x_21, x_20); +x_23 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__15; +lean_inc(x_7); +x_24 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_24, 0, x_7); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_24, 2, x_22); +x_25 = lean_array_push(x_21, x_24); +lean_inc(x_7); +x_26 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_26, 2, x_25); +x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__17; +lean_inc(x_18); +x_28 = lean_array_push(x_27, x_18); +lean_inc(x_18); +lean_inc(x_28); +x_29 = lean_array_push(x_28, x_18); +lean_inc(x_18); +x_30 = lean_array_push(x_29, x_18); +lean_inc(x_18); +x_31 = lean_array_push(x_30, x_18); +lean_inc(x_31); +x_32 = lean_array_push(x_31, x_26); +lean_inc(x_18); +x_33 = lean_array_push(x_32, x_18); +x_34 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__12; +lean_inc(x_7); +x_35 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_35, 0, x_7); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_35, 2, x_33); +x_36 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__18; +lean_inc(x_7); +x_37 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_37, 0, x_7); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__25; +lean_inc(x_10); +lean_inc(x_13); +x_39 = l_Lean_addMacroScope(x_13, x_38, x_10); +x_40 = lean_box(0); +x_41 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__24; +lean_inc(x_7); +x_42 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_42, 0, x_7); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_42, 2, x_39); +lean_ctor_set(x_42, 3, x_40); +x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__26; +lean_inc(x_42); +x_44 = lean_array_push(x_43, x_42); +lean_inc(x_18); +x_45 = lean_array_push(x_44, x_18); +x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__21; +lean_inc(x_7); +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_7); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_45); +x_48 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__33; +lean_inc(x_7); +x_49 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_49, 0, x_7); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__38; +lean_inc(x_7); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_7); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_box(0); lean_inc(x_1); -x_57 = l_Lean_mkCIdentFrom(x_56, x_1); -x_58 = lean_array_push(x_42, x_55); -x_59 = lean_array_push(x_58, x_57); -x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__48; -lean_inc(x_6); -x_61 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_61, 0, x_6); -lean_ctor_set(x_61, 1, x_60); -lean_ctor_set(x_61, 2, x_59); -x_62 = lean_array_push(x_20, x_61); -lean_inc(x_6); +x_53 = l_Lean_mkCIdentFrom(x_52, x_1); +x_54 = lean_array_push(x_43, x_51); +x_55 = lean_array_push(x_54, x_53); +x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__37; +lean_inc(x_7); +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_7); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_55); +x_58 = lean_array_push(x_21, x_57); +lean_inc(x_7); +x_59 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_59, 0, x_7); +lean_ctor_set(x_59, 1, x_16); +lean_ctor_set(x_59, 2, x_58); +x_60 = lean_array_push(x_43, x_2); +x_61 = lean_array_push(x_60, x_59); +x_62 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__35; +lean_inc(x_7); x_63 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_63, 0, x_6); -lean_ctor_set(x_63, 1, x_15); -lean_ctor_set(x_63, 2, x_62); -x_64 = lean_array_push(x_42, x_53); +lean_ctor_set(x_63, 0, x_7); +lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 2, x_61); +x_64 = lean_array_push(x_43, x_49); x_65 = lean_array_push(x_64, x_63); -x_66 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__35; -lean_inc(x_6); +x_66 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__32; +lean_inc(x_7); x_67 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_67, 0, x_6); +lean_ctor_set(x_67, 0, x_7); lean_ctor_set(x_67, 1, x_66); lean_ctor_set(x_67, 2, x_65); -x_68 = lean_array_push(x_42, x_48); -x_69 = lean_array_push(x_68, x_67); -x_70 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__32; -lean_inc(x_6); -x_71 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_71, 0, x_6); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_71, 2, x_69); -lean_inc(x_71); -x_72 = lean_array_push(x_20, x_71); -lean_inc(x_6); +lean_inc(x_67); +x_68 = lean_array_push(x_21, x_67); +lean_inc(x_7); +x_69 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_69, 0, x_7); +lean_ctor_set(x_69, 1, x_16); +lean_ctor_set(x_69, 2, x_68); +lean_inc(x_18); +x_70 = lean_array_push(x_43, x_18); +lean_inc(x_70); +x_71 = lean_array_push(x_70, x_69); +x_72 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__28; +lean_inc(x_7); x_73 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_73, 0, x_6); -lean_ctor_set(x_73, 1, x_15); -lean_ctor_set(x_73, 2, x_72); -lean_inc(x_17); -x_74 = lean_array_push(x_42, x_17); -lean_inc(x_74); -x_75 = lean_array_push(x_74, x_73); -x_76 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__28; -lean_inc(x_6); -x_77 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_77, 0, x_6); +lean_ctor_set(x_73, 0, x_7); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_71); +x_74 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__41; +lean_inc(x_7); +x_75 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_75, 0, x_7); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__44; +lean_inc(x_7); +x_77 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_77, 0, x_7); lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_77, 2, x_75); -x_78 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__52; -lean_inc(x_6); -x_79 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_79, 0, x_6); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__55; -lean_inc(x_6); -x_81 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_81, 0, x_6); +x_78 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__48; +lean_inc(x_10); +lean_inc(x_13); +x_79 = l_Lean_addMacroScope(x_13, x_78, x_10); +x_80 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__47; +lean_inc(x_7); +x_81 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_81, 0, x_7); lean_ctor_set(x_81, 1, x_80); -x_82 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__59; -lean_inc(x_9); -lean_inc(x_12); -x_83 = l_Lean_addMacroScope(x_12, x_82, x_9); -x_84 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__58; -lean_inc(x_6); -x_85 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_85, 0, x_6); +lean_ctor_set(x_81, 2, x_79); +lean_ctor_set(x_81, 3, x_40); +x_82 = lean_array_push(x_43, x_77); +x_83 = lean_array_push(x_82, x_81); +x_84 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__43; +lean_inc(x_7); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_7); lean_ctor_set(x_85, 1, x_84); lean_ctor_set(x_85, 2, x_83); -lean_ctor_set(x_85, 3, x_39); -x_86 = lean_array_push(x_42, x_81); -x_87 = lean_array_push(x_86, x_85); -x_88 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__54; -lean_inc(x_6); -x_89 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_89, 0, x_6); -lean_ctor_set(x_89, 1, x_88); -lean_ctor_set(x_89, 2, x_87); -x_90 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__62; -lean_inc(x_6); -x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_6); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_array_push(x_20, x_91); -x_93 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__61; -lean_inc(x_6); -x_94 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_94, 0, x_6); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_92); +x_86 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__51; +lean_inc(x_7); +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_7); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_array_push(x_21, x_87); +x_89 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__50; +lean_inc(x_7); +x_90 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_90, 0, x_7); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_90, 2, x_88); lean_inc(x_1); -x_95 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_39, x_1); -x_96 = lean_array_push(x_42, x_94); -x_97 = lean_array_push(x_42, x_89); -x_98 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__63; -x_99 = lean_array_push(x_98, x_79); -x_100 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__64; -x_101 = lean_array_push(x_100, x_36); -x_102 = lean_array_push(x_101, x_46); -x_103 = lean_array_push(x_102, x_77); -x_104 = lean_array_push(x_42, x_34); -x_105 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__67; -lean_inc(x_6); -x_106 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_106, 0, x_6); -lean_ctor_set(x_106, 1, x_105); -lean_inc(x_17); -x_107 = lean_array_push(x_20, x_17); -x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__71; -lean_inc(x_6); -x_109 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_109, 0, x_6); +x_91 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_40, x_1); +x_92 = lean_array_push(x_43, x_90); +x_93 = lean_array_push(x_43, x_85); +x_94 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__52; +x_95 = lean_array_push(x_94, x_75); +x_96 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__53; +x_97 = lean_array_push(x_96, x_37); +x_98 = lean_array_push(x_97, x_47); +x_99 = lean_array_push(x_98, x_73); +x_100 = lean_array_push(x_43, x_35); +x_101 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__56; +lean_inc(x_7); +x_102 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_102, 0, x_7); +lean_ctor_set(x_102, 1, x_101); +lean_inc(x_18); +x_103 = lean_array_push(x_21, x_18); +x_104 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__60; +lean_inc(x_7); +x_105 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_105, 0, x_7); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_103); +x_106 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__68; +lean_inc(x_10); +lean_inc(x_13); +x_107 = l_Lean_addMacroScope(x_13, x_106, x_10); +x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__67; +lean_inc(x_7); +x_109 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_109, 0, x_7); lean_ctor_set(x_109, 1, x_108); lean_ctor_set(x_109, 2, x_107); -x_110 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79; -lean_inc(x_9); -lean_inc(x_12); -x_111 = l_Lean_addMacroScope(x_12, x_110, x_9); -x_112 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__78; -lean_inc(x_6); -x_113 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_113, 0, x_6); -lean_ctor_set(x_113, 1, x_112); -lean_ctor_set(x_113, 2, x_111); -lean_ctor_set(x_113, 3, x_39); -x_114 = lean_array_push(x_20, x_41); -lean_inc(x_6); +lean_ctor_set(x_109, 3, x_40); +x_110 = lean_array_push(x_21, x_42); +lean_inc(x_7); +x_111 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_111, 0, x_7); +lean_ctor_set(x_111, 1, x_16); +lean_ctor_set(x_111, 2, x_110); +x_112 = lean_array_push(x_43, x_109); +x_113 = lean_array_push(x_112, x_111); +x_114 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__64; +lean_inc(x_7); x_115 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_115, 0, x_6); -lean_ctor_set(x_115, 1, x_15); -lean_ctor_set(x_115, 2, x_114); -x_116 = lean_array_push(x_42, x_113); +lean_ctor_set(x_115, 0, x_7); +lean_ctor_set(x_115, 1, x_114); +lean_ctor_set(x_115, 2, x_113); +lean_inc(x_105); +x_116 = lean_array_push(x_43, x_105); x_117 = lean_array_push(x_116, x_115); -x_118 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__75; -lean_inc(x_6); +x_118 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__58; +lean_inc(x_7); x_119 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_119, 0, x_6); +lean_ctor_set(x_119, 0, x_7); lean_ctor_set(x_119, 1, x_118); lean_ctor_set(x_119, 2, x_117); -lean_inc(x_109); -x_120 = lean_array_push(x_42, x_109); -x_121 = lean_array_push(x_120, x_119); +x_120 = lean_array_push(x_21, x_119); +lean_inc(x_7); +x_121 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_121, 0, x_7); +lean_ctor_set(x_121, 1, x_16); +lean_ctor_set(x_121, 2, x_120); x_122 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__69; -lean_inc(x_6); -x_123 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_123, 0, x_6); +lean_inc(x_7); +x_123 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_123, 0, x_7); lean_ctor_set(x_123, 1, x_122); -lean_ctor_set(x_123, 2, x_121); -x_124 = lean_array_push(x_20, x_123); -lean_inc(x_6); -x_125 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_125, 0, x_6); -lean_ctor_set(x_125, 1, x_15); -lean_ctor_set(x_125, 2, x_124); -x_126 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__80; -lean_inc(x_6); -x_127 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_127, 0, x_6); -lean_ctor_set(x_127, 1, x_126); -x_128 = lean_array_push(x_98, x_106); -x_129 = lean_array_push(x_128, x_125); -x_130 = lean_array_push(x_129, x_127); -x_131 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__66; -lean_inc(x_6); -x_132 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_132, 0, x_6); -lean_ctor_set(x_132, 1, x_131); -lean_ctor_set(x_132, 2, x_130); -x_133 = lean_array_push(x_20, x_132); -lean_inc(x_6); -x_134 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_134, 0, x_6); -lean_ctor_set(x_134, 1, x_15); -lean_ctor_set(x_134, 2, x_133); -x_135 = lean_array_push(x_27, x_134); -lean_inc(x_17); -x_136 = lean_array_push(x_135, x_17); -lean_inc(x_17); -x_137 = lean_array_push(x_136, x_17); -lean_inc(x_17); -x_138 = lean_array_push(x_137, x_17); -lean_inc(x_17); -x_139 = lean_array_push(x_138, x_17); -lean_inc(x_6); -x_140 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_140, 0, x_6); -lean_ctor_set(x_140, 1, x_33); -lean_ctor_set(x_140, 2, x_139); -x_141 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81; -lean_inc(x_6); -x_142 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_142, 0, x_6); +x_124 = lean_array_push(x_94, x_102); +x_125 = lean_array_push(x_124, x_121); +x_126 = lean_array_push(x_125, x_123); +x_127 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__55; +lean_inc(x_7); +x_128 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_128, 0, x_7); +lean_ctor_set(x_128, 1, x_127); +lean_ctor_set(x_128, 2, x_126); +x_129 = lean_array_push(x_21, x_128); +lean_inc(x_7); +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_7); +lean_ctor_set(x_130, 1, x_16); +lean_ctor_set(x_130, 2, x_129); +x_131 = lean_array_push(x_28, x_130); +lean_inc(x_18); +x_132 = lean_array_push(x_131, x_18); +lean_inc(x_18); +x_133 = lean_array_push(x_132, x_18); +lean_inc(x_18); +x_134 = lean_array_push(x_133, x_18); +lean_inc(x_18); +x_135 = lean_array_push(x_134, x_18); +lean_inc(x_7); +x_136 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_136, 0, x_7); +lean_ctor_set(x_136, 1, x_34); +lean_ctor_set(x_136, 2, x_135); +x_137 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__70; +lean_inc(x_7); +x_138 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_138, 0, x_7); +lean_ctor_set(x_138, 1, x_137); +x_139 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__75; +x_140 = l_Lean_addMacroScope(x_13, x_139, x_10); +x_141 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__74; +lean_inc(x_7); +x_142 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_142, 0, x_7); lean_ctor_set(x_142, 1, x_141); -x_143 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86; -x_144 = l_Lean_addMacroScope(x_12, x_143, x_9); -x_145 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85; -lean_inc(x_6); -x_146 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_146, 0, x_6); -lean_ctor_set(x_146, 1, x_145); -lean_ctor_set(x_146, 2, x_144); -lean_ctor_set(x_146, 3, x_39); -lean_inc(x_146); -x_147 = lean_array_push(x_42, x_146); -lean_inc(x_17); -x_148 = lean_array_push(x_147, x_17); -lean_inc(x_6); -x_149 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_149, 0, x_6); -lean_ctor_set(x_149, 1, x_45); -lean_ctor_set(x_149, 2, x_148); -x_150 = lean_array_push(x_74, x_71); -x_151 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88; -lean_inc(x_6); -x_152 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_152, 0, x_6); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_152, 2, x_150); -x_153 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89; -x_154 = lean_array_push(x_153, x_142); -x_155 = lean_array_push(x_154, x_149); -lean_inc(x_152); -x_156 = lean_array_push(x_155, x_152); -lean_inc(x_17); -x_157 = lean_array_push(x_156, x_17); -x_158 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__82; -lean_inc(x_6); +lean_ctor_set(x_142, 2, x_140); +lean_ctor_set(x_142, 3, x_40); +lean_inc(x_142); +x_143 = lean_array_push(x_43, x_142); +lean_inc(x_18); +x_144 = lean_array_push(x_143, x_18); +lean_inc(x_7); +x_145 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_145, 0, x_7); +lean_ctor_set(x_145, 1, x_46); +lean_ctor_set(x_145, 2, x_144); +x_146 = lean_array_push(x_70, x_67); +x_147 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__77; +lean_inc(x_7); +x_148 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_148, 0, x_7); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_148, 2, x_146); +x_149 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__78; +x_150 = lean_array_push(x_149, x_138); +x_151 = lean_array_push(x_150, x_145); +lean_inc(x_148); +x_152 = lean_array_push(x_151, x_148); +lean_inc(x_18); +x_153 = lean_array_push(x_152, x_18); +x_154 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__71; +lean_inc(x_7); +x_155 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_155, 0, x_7); +lean_ctor_set(x_155, 1, x_154); +lean_ctor_set(x_155, 2, x_153); +x_156 = lean_array_push(x_43, x_136); +x_157 = lean_array_push(x_156, x_155); +x_158 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__10; +lean_inc(x_7); x_159 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_159, 0, x_6); +lean_ctor_set(x_159, 0, x_7); lean_ctor_set(x_159, 1, x_158); lean_ctor_set(x_159, 2, x_157); -x_160 = lean_array_push(x_42, x_140); -x_161 = lean_array_push(x_160, x_159); -x_162 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__10; -lean_inc(x_6); -x_163 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_163, 0, x_6); -lean_ctor_set(x_163, 1, x_162); -lean_ctor_set(x_163, 2, x_161); -lean_inc(x_17); -x_164 = lean_array_push(x_30, x_17); -lean_inc(x_17); -x_165 = lean_array_push(x_164, x_17); -lean_inc(x_6); -x_166 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_166, 0, x_6); -lean_ctor_set(x_166, 1, x_33); -lean_ctor_set(x_166, 2, x_165); -x_167 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90; -lean_inc(x_6); -x_168 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_168, 0, x_6); +lean_inc(x_18); +x_160 = lean_array_push(x_31, x_18); +lean_inc(x_18); +x_161 = lean_array_push(x_160, x_18); +lean_inc(x_7); +x_162 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_162, 0, x_7); +lean_ctor_set(x_162, 1, x_34); +lean_ctor_set(x_162, 2, x_161); +x_163 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__79; +lean_inc(x_7); +x_164 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_164, 0, x_7); +lean_ctor_set(x_164, 1, x_163); +lean_inc(x_95); +x_165 = lean_array_push(x_95, x_142); +lean_inc(x_18); +x_166 = lean_array_push(x_165, x_18); +x_167 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__40; +lean_inc(x_7); +x_168 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_168, 0, x_7); lean_ctor_set(x_168, 1, x_167); -lean_inc(x_99); -x_169 = lean_array_push(x_99, x_146); -lean_inc(x_17); -x_170 = lean_array_push(x_169, x_17); -x_171 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__51; -lean_inc(x_6); -x_172 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_172, 0, x_6); -lean_ctor_set(x_172, 1, x_171); -lean_ctor_set(x_172, 2, x_170); -x_173 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92; -x_174 = lean_array_push(x_173, x_109); +lean_ctor_set(x_168, 2, x_166); +x_169 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__81; +x_170 = lean_array_push(x_169, x_105); +x_171 = lean_array_push(x_170, x_164); +lean_inc(x_18); +x_172 = lean_array_push(x_171, x_18); +lean_inc(x_18); +x_173 = lean_array_push(x_172, x_18); +x_174 = lean_array_push(x_173, x_148); x_175 = lean_array_push(x_174, x_168); -lean_inc(x_17); -x_176 = lean_array_push(x_175, x_17); -lean_inc(x_17); -x_177 = lean_array_push(x_176, x_17); -x_178 = lean_array_push(x_177, x_152); -x_179 = lean_array_push(x_178, x_172); -lean_inc(x_17); -x_180 = lean_array_push(x_179, x_17); -lean_inc(x_17); -x_181 = lean_array_push(x_180, x_17); -x_182 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91; -lean_inc(x_6); -x_183 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_183, 0, x_6); -lean_ctor_set(x_183, 1, x_182); -lean_ctor_set(x_183, 2, x_181); -x_184 = lean_array_push(x_42, x_166); -x_185 = lean_array_push(x_184, x_183); -lean_inc(x_6); -x_186 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_186, 0, x_6); -lean_ctor_set(x_186, 1, x_162); -lean_ctor_set(x_186, 2, x_185); -if (lean_obj_tag(x_95) == 0) +lean_inc(x_18); +x_176 = lean_array_push(x_175, x_18); +lean_inc(x_18); +x_177 = lean_array_push(x_176, x_18); +x_178 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__80; +lean_inc(x_7); +x_179 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_179, 0, x_7); +lean_ctor_set(x_179, 1, x_178); +lean_ctor_set(x_179, 2, x_177); +x_180 = lean_array_push(x_43, x_162); +x_181 = lean_array_push(x_180, x_179); +lean_inc(x_7); +x_182 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_182, 0, x_7); +lean_ctor_set(x_182, 1, x_158); +lean_ctor_set(x_182, 2, x_181); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_209; -x_209 = l_Lean_quoteNameMk(x_1); -x_187 = x_209; -goto block_208; +lean_object* x_205; +x_205 = l_Lean_quoteNameMk(x_1); +x_183 = x_205; +goto block_204; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_dec(x_1); -x_210 = lean_ctor_get(x_95, 0); -lean_inc(x_210); -lean_dec(x_95); -x_211 = l_String_intercalate(x_80, x_210); -x_212 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95; -x_213 = lean_string_append(x_212, x_211); -lean_dec(x_211); -x_214 = lean_box(2); -x_215 = l_Lean_Syntax_mkNameLit(x_213, x_214); -x_216 = lean_array_push(x_20, x_215); -x_217 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94; -x_218 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_218, 0, x_214); -lean_ctor_set(x_218, 1, x_217); -lean_ctor_set(x_218, 2, x_216); -x_187 = x_218; -goto block_208; +x_206 = lean_ctor_get(x_91, 0); +lean_inc(x_206); +lean_dec(x_91); +x_207 = l_String_intercalate(x_76, x_206); +x_208 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84; +x_209 = lean_string_append(x_208, x_207); +lean_dec(x_207); +x_210 = lean_box(2); +x_211 = l_Lean_Syntax_mkNameLit(x_209, x_210); +x_212 = lean_array_push(x_21, x_211); +x_213 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83; +x_214 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_214, 0, x_210); +lean_ctor_set(x_214, 1, x_213); +lean_ctor_set(x_214, 2, x_212); +x_183 = x_214; +goto block_204; } -block_208: +block_204: { -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; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_188 = lean_array_push(x_96, x_187); -lean_inc(x_6); -x_189 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_189, 0, x_6); -lean_ctor_set(x_189, 1, x_15); -lean_ctor_set(x_189, 2, x_188); -x_190 = lean_array_push(x_97, x_189); -lean_inc(x_6); -x_191 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_191, 0, x_6); -lean_ctor_set(x_191, 1, x_66); -lean_ctor_set(x_191, 2, x_190); -x_192 = lean_array_push(x_99, x_191); -lean_inc(x_17); -x_193 = lean_array_push(x_192, x_17); -lean_inc(x_6); -x_194 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_194, 0, x_6); -lean_ctor_set(x_194, 1, x_171); -lean_ctor_set(x_194, 2, x_193); -x_195 = lean_array_push(x_103, x_194); -lean_inc(x_17); -x_196 = lean_array_push(x_195, x_17); -lean_inc(x_17); -x_197 = lean_array_push(x_196, x_17); -x_198 = lean_array_push(x_197, x_17); -x_199 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__19; -lean_inc(x_6); -x_200 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_200, 0, x_6); -lean_ctor_set(x_200, 1, x_199); -lean_ctor_set(x_200, 2, x_198); -x_201 = lean_array_push(x_104, x_200); -lean_inc(x_6); +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 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; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_184 = lean_array_push(x_92, x_183); +lean_inc(x_7); +x_185 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_185, 0, x_7); +lean_ctor_set(x_185, 1, x_16); +lean_ctor_set(x_185, 2, x_184); +x_186 = lean_array_push(x_93, x_185); +lean_inc(x_7); +x_187 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_187, 0, x_7); +lean_ctor_set(x_187, 1, x_62); +lean_ctor_set(x_187, 2, x_186); +x_188 = lean_array_push(x_95, x_187); +lean_inc(x_18); +x_189 = lean_array_push(x_188, x_18); +lean_inc(x_7); +x_190 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_190, 0, x_7); +lean_ctor_set(x_190, 1, x_167); +lean_ctor_set(x_190, 2, x_189); +x_191 = lean_array_push(x_99, x_190); +lean_inc(x_18); +x_192 = lean_array_push(x_191, x_18); +lean_inc(x_18); +x_193 = lean_array_push(x_192, x_18); +x_194 = lean_array_push(x_193, x_18); +x_195 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__19; +lean_inc(x_7); +x_196 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_196, 0, x_7); +lean_ctor_set(x_196, 1, x_195); +lean_ctor_set(x_196, 2, x_194); +x_197 = lean_array_push(x_100, x_196); +lean_inc(x_7); +x_198 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_198, 0, x_7); +lean_ctor_set(x_198, 1, x_158); +lean_ctor_set(x_198, 2, x_197); +x_199 = lean_array_push(x_94, x_198); +x_200 = lean_array_push(x_199, x_159); +x_201 = lean_array_push(x_200, x_182); x_202 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_202, 0, x_6); -lean_ctor_set(x_202, 1, x_162); +lean_ctor_set(x_202, 0, x_7); +lean_ctor_set(x_202, 1, x_16); lean_ctor_set(x_202, 2, x_201); -x_203 = lean_array_push(x_98, x_202); -x_204 = lean_array_push(x_203, x_163); -x_205 = lean_array_push(x_204, x_186); -x_206 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_206, 0, x_6); -lean_ctor_set(x_206, 1, x_15); -lean_ctor_set(x_206, 2, x_205); -if (lean_is_scalar(x_14)) { - x_207 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_15)) { + x_203 = lean_alloc_ctor(0, 2, 0); } else { - x_207 = x_14; + x_203 = x_15; } -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_13); -return x_207; +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_14); +return x_203; } } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("TypeName", 8); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2; +x_2 = lean_mk_syntax_ident(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = lean_box(0); x_2 = lean_alloc_ctor(1, 1, 0); @@ -1550,92 +1443,94 @@ return x_2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___boxed), 4, 1); -lean_closure_set(x_6, 0, x_1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3; +x_7 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___boxed), 5, 2); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_6); lean_inc(x_4); lean_inc(x_3); -x_7 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_6, x_3, x_4, x_5); -if (lean_obj_tag(x_7) == 0) +x_8 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_7, x_3, x_4, x_5); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_Elab_Command_elabCommand(x_8, x_3, x_4, x_9); -if (lean_obj_tag(x_10) == 0) +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Elab_Command_elabCommand(x_9, x_3, x_4, x_10); +if (lean_obj_tag(x_11) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_dec(x_12); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1; -lean_ctor_set(x_10, 0, x_13); -return x_10; +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4; +lean_ctor_set(x_11, 0, x_14); +return x_11; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; } } else { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_10); -if (x_17 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) { -return x_10; +return x_11; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_10, 0); -x_19 = lean_ctor_get(x_10, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_10); -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_dec(x_11); +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_21; +uint8_t x_22; lean_dec(x_4); lean_dec(x_3); -x_21 = !lean_is_exclusive(x_7); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_8); +if (x_22 == 0) { -return x_7; +return x_8; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_7, 0); -x_23 = lean_ctor_get(x_7, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_8, 0); +x_24 = lean_ctor_get(x_8, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_7); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_dec(x_8); +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; } } } @@ -1922,14 +1817,14 @@ return x_21; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___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) { _start: { -lean_object* x_5; -x_5 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -return x_5; +return x_6; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -1963,7 +1858,7 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1() { _start: { lean_object* x_1; @@ -1971,19 +1866,18 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_TypeName_0__Lean return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__42; -x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); return x_4; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Deriving_Basic(uint8_t builtin, lean_object*); -lean_object* initialize_Bootstrap_Dynamic(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Deriving_TypeName(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1995,9 +1889,6 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Deriving_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Bootstrap_Dynamic(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__2(); @@ -2166,30 +2057,14 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__83); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__84); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__85); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__86); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__87); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__88); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__89); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__90); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__91); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__92); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__93); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__94); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__1___closed__95); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___lambda__2___closed__4); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__2(); @@ -2198,9 +2073,9 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__3); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__4(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Deriving_TypeName_0__Lean_Elab_deriveTypeNameInstance___spec__1___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903____closed__1); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_903_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870____closed__1); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_TypeName___hyg_870_(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/Server/AsyncList.c b/stage0/stdlib/Lean/Server/AsyncList.c index 5a87f69175..b2e8efa7dd 100644 --- a/stage0/stdlib/Lean/Server/AsyncList.c +++ b/stage0/stdlib/Lean/Server/AsyncList.c @@ -23,16 +23,16 @@ LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f(lean_object*, lean_object*) LEAN_EXPORT lean_object* l_IO_AsyncList_instInhabitedAsyncList(lean_object*, lean_object*); static lean_object* l_IO_AsyncList_waitFind_x3f___rarg___closed__2; LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__1(lean_object*, lean_object*); static lean_object* l_IO_AsyncList_instAppendAsyncList___closed__1; static lean_object* l_IO_AsyncList_instCoeListAsyncList___closed__1; lean_object* l_Except_map___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_IO_AsyncList_ofList___spec__1(lean_object*, lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_AsyncList_waitHead_x3f___rarg___lambda__1(lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_instCoeListAsyncList(lean_object*, lean_object*); @@ -43,20 +43,20 @@ extern lean_object* l_Task_Priority_default; lean_object* lean_io_has_finished(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_ofList___rarg(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync_step(lean_object*, lean_object*, lean_object*); -lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_append(lean_object*, lean_object*); +lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_AsyncList_waitHead_x3f___rarg___closed__1; LEAN_EXPORT lean_object* l_IO_AsyncList_getAll(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync_step___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_instAppendAsyncList(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_ofList(lean_object*, lean_object*); lean_object* l_EIO_toBaseIO___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg___lambda__1(lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_instInhabitedAsyncList(lean_object* x_1, lean_object* x_2) { @@ -577,36 +577,33 @@ return x_9; } } } -LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 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_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_1); -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); lean_dec(x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(1, 1, 0); +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_3); +x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_7, 1, x_6); -x_8 = lean_task_pure(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_3); -return x_9; +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_task_pure(x_6); +return x_7; } else { -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); lean_dec(x_2); -x_11 = l_IO_AsyncList_waitAll___rarg(x_1, x_10, x_3); -return x_11; +x_9 = l_IO_AsyncList_waitAll___rarg(x_1, x_8); +return x_9; } } } @@ -619,125 +616,68 @@ x_2 = lean_task_pure(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); lean_dec(x_2); lean_inc(x_1); -lean_inc(x_4); -x_6 = lean_apply_1(x_1, x_4); -x_7 = lean_unbox(x_6); -lean_dec(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_inc(x_3); +x_5 = lean_apply_1(x_1, x_3); +x_6 = lean_unbox(x_5); lean_dec(x_5); -lean_dec(x_1); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_task_pure(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_3); -return x_13; -} -else +if (x_6 == 0) { -lean_object* x_14; -x_14 = l_IO_AsyncList_waitAll___rarg(x_1, x_5, x_3); -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; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg___lambda__1), 2, 1); -lean_closure_set(x_17, 0, x_4); -x_18 = l_Task_Priority_default; -x_19 = lean_task_map(x_17, x_16, x_18); -lean_ctor_set(x_14, 0, x_19); -return x_14; -} -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; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg___lambda__1), 2, 1); -lean_closure_set(x_22, 0, x_4); -x_23 = l_Task_Priority_default; -x_24 = lean_task_map(x_22, x_20, x_23); -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_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_dec(x_4); -x_26 = !lean_is_exclusive(x_14); -if (x_26 == 0) -{ -return x_14; +lean_dec(x_1); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_task_pure(x_10); +return x_11; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_14); -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; -} -} +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg___lambda__1), 2, 1); +lean_closure_set(x_12, 0, x_3); +x_13 = l_IO_AsyncList_waitAll___rarg(x_1, x_4); +x_14 = l_Task_Priority_default; +x_15 = lean_task_map(x_12, x_13, x_14); +return x_15; } } case 1: { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_2, 0); -lean_inc(x_30); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_2, 0); +lean_inc(x_16); lean_dec(x_2); -x_31 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg___lambda__2), 3, 1); -lean_closure_set(x_31, 0, x_1); -x_32 = l_Task_Priority_default; -x_33 = lean_io_bind_task(x_30, x_31, x_32, x_3); -return x_33; +x_17 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg___lambda__2), 2, 1); +lean_closure_set(x_17, 0, x_1); +x_18 = l_Task_Priority_default; +x_19 = lean_task_bind(x_16, x_17, x_18); +return x_19; } default: { -lean_object* x_34; lean_object* x_35; +lean_object* x_20; lean_dec(x_1); -x_34 = l_IO_AsyncList_waitAll___rarg___closed__1; -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_3); -return x_35; +x_20 = l_IO_AsyncList_waitAll___rarg___closed__1; +return x_20; } } } @@ -746,50 +686,44 @@ LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll(lean_object* x_1, lean_object* x _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg), 3, 0); +x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitAll___rarg), 2, 0); return x_3; } } -LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { -uint8_t x_4; +uint8_t x_3; lean_dec(x_1); -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) { -lean_object* x_5; lean_object* x_6; -x_5 = lean_task_pure(x_2); -x_6 = lean_alloc_ctor(0, 2, 0); +lean_object* x_4; +x_4 = lean_task_pure(x_2); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_3); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = lean_task_pure(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_3); -return x_10; +x_7 = lean_task_pure(x_6); +return x_7; } } else { -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); lean_dec(x_2); -x_12 = l_IO_AsyncList_waitFind_x3f___rarg(x_1, x_11, x_3); -return x_12; +x_9 = l_IO_AsyncList_waitFind_x3f___rarg(x_1, x_8); +return x_9; } } } @@ -812,66 +746,60 @@ x_2 = lean_task_pure(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); lean_dec(x_2); lean_inc(x_1); -lean_inc(x_4); -x_6 = lean_apply_1(x_1, x_4); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_inc(x_3); +x_5 = lean_apply_1(x_1, x_3); +x_6 = lean_unbox(x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_dec(x_4); -x_2 = x_5; +lean_dec(x_3); +x_2 = x_4; goto _start; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_dec(x_5); +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); lean_dec(x_1); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_3); x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_4); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_task_pure(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_3); -return x_12; +lean_ctor_set(x_9, 0, x_8); +x_10 = lean_task_pure(x_9); +return x_10; } } case 1: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); lean_dec(x_2); -x_14 = lean_alloc_closure((void*)(l_IO_AsyncList_waitFind_x3f___rarg___lambda__1), 3, 1); -lean_closure_set(x_14, 0, x_1); -x_15 = l_Task_Priority_default; -x_16 = lean_io_bind_task(x_13, x_14, x_15, x_3); -return x_16; +x_12 = lean_alloc_closure((void*)(l_IO_AsyncList_waitFind_x3f___rarg___lambda__1), 2, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = l_Task_Priority_default; +x_14 = lean_task_bind(x_11, x_12, x_13); +return x_14; } default: { -lean_object* x_17; lean_object* x_18; +lean_object* x_15; lean_dec(x_1); -x_17 = l_IO_AsyncList_waitFind_x3f___rarg___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_3); -return x_18; +x_15 = l_IO_AsyncList_waitFind_x3f___rarg___closed__2; +return x_15; } } } @@ -880,7 +808,7 @@ LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f(lean_object* x_1, lean_obje _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitFind_x3f___rarg), 3, 0); +x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitFind_x3f___rarg), 2, 0); return x_3; } } @@ -1170,20 +1098,20 @@ x_1 = lean_alloc_closure((void*)(l_IO_AsyncList_waitHead_x3f___rarg___lambda__1_ return x_1; } } -LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; -x_3 = l_IO_AsyncList_waitHead_x3f___rarg___closed__1; -x_4 = l_IO_AsyncList_waitFind_x3f___rarg(x_3, x_1, x_2); -return x_4; +lean_object* x_2; lean_object* x_3; +x_2 = l_IO_AsyncList_waitHead_x3f___rarg___closed__1; +x_3 = l_IO_AsyncList_waitFind_x3f___rarg(x_2, x_1); +return x_3; } } LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitHead_x3f___rarg), 2, 0); +x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitHead_x3f___rarg), 1, 0); return x_3; } } diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 49d6f890ab..51dfb73318 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -396,7 +396,7 @@ lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__25; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Server_FileWorker_queueRequest___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_erase___at_Lean_Server_FileWorker_mainLoop___spec__2(uint64_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7380,7 +7380,7 @@ lean_inc(x_9); x_10 = l_Lean_Parser_parseHeader(x_9, x_7); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_11, 1); @@ -7404,131 +7404,126 @@ x_19 = lean_ctor_get(x_8, 1); lean_inc(x_19); x_20 = l_Lean_Server_FileWorker_updateDocument___closed__1; lean_inc(x_19); -x_21 = l_IO_AsyncList_waitFind_x3f___rarg(x_20, x_19, x_18); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); +x_21 = l_IO_AsyncList_waitFind_x3f___rarg(x_20, x_19); lean_inc(x_17); lean_inc(x_1); -x_24 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_updateDocument___lambda__3___boxed), 10, 8); -lean_closure_set(x_24, 0, x_8); -lean_closure_set(x_24, 1, x_14); -lean_closure_set(x_24, 2, x_15); -lean_closure_set(x_24, 3, x_1); -lean_closure_set(x_24, 4, x_19); -lean_closure_set(x_24, 5, x_17); -lean_closure_set(x_24, 6, x_2); -lean_closure_set(x_24, 7, x_9); -x_25 = l_Task_Priority_default; -x_26 = lean_io_map_task(x_24, x_22, x_25, x_23); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +x_22 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_updateDocument___lambda__3___boxed), 10, 8); +lean_closure_set(x_22, 0, x_8); +lean_closure_set(x_22, 1, x_14); +lean_closure_set(x_22, 2, x_15); +lean_closure_set(x_22, 3, x_1); +lean_closure_set(x_22, 4, x_19); +lean_closure_set(x_22, 5, x_17); +lean_closure_set(x_22, 6, x_2); +lean_closure_set(x_22, 7, x_9); +x_23 = l_Task_Priority_default; +x_24 = lean_io_map_task(x_22, x_21, x_23, x_18); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_st_ref_take(x_3, x_26); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_st_ref_take(x_3, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_27); -x_33 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_33, 0, x_1); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_33, 2, x_17); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_25); +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_31, 2, x_17); +x_32 = !lean_is_exclusive(x_28); +if (x_32 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_30, 0); -lean_dec(x_35); -lean_ctor_set(x_30, 0, x_33); -x_36 = lean_st_ref_set(x_3, x_30, x_31); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_28, 0); +lean_dec(x_33); +lean_ctor_set(x_28, 0, x_31); +x_34 = lean_st_ref_set(x_3, x_28, x_29); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = lean_box(0); -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); lean_dec(x_36); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; +x_37 = lean_box(0); +lean_ctor_set(x_34, 0, x_37); +return x_34; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 1); +lean_inc(x_38); +lean_dec(x_34); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } else { -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_43 = lean_ctor_get(x_30, 1); -x_44 = lean_ctor_get(x_30, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_30); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_33); -lean_ctor_set(x_45, 1, x_43); -lean_ctor_set(x_45, 2, x_44); -x_46 = lean_st_ref_set(x_3, x_45, x_31); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_41 = lean_ctor_get(x_28, 1); +x_42 = lean_ctor_get(x_28, 2); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_28); +x_43 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_43, 0, x_31); +lean_ctor_set(x_43, 1, x_41); +lean_ctor_set(x_43, 2, x_42); +x_44 = lean_st_ref_set(x_3, x_43, x_29); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +x_47 = lean_box(0); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { x_48 = x_46; -} else { - lean_dec_ref(x_46); - x_48 = lean_box(0); } -x_49 = lean_box(0); -if (lean_is_scalar(x_48)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_48; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_47); -return x_50; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; } } else { -uint8_t x_51; +uint8_t x_49; lean_dec(x_9); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_10); -if (x_51 == 0) +x_49 = !lean_is_exclusive(x_10); +if (x_49 == 0) { return x_10; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_10, 0); -x_53 = lean_ctor_get(x_10, 1); -lean_inc(x_53); -lean_inc(x_52); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_10, 0); +x_51 = lean_ctor_get(x_10, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_10); -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; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } diff --git a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c index e28acb026c..91e9dbd18b 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c @@ -15,123 +15,124 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_initializing(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_String_csize(uint32_t); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensRange(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__2(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6; static lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1___closed__3; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__6; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__3; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Server_References_updateWorkerRefs___spec__3(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lambda__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_2069_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_getInteractiveGoals___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__19; static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2; uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_io_error_to_string(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1908_(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__7; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_516_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__19(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___closed__2; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___boxed(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7; static lean_object* l_Lean_Server_FileWorker_handleHover___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__3; LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__19(lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__22(lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__9___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_SemanticTokenType_toCtorIdx(uint8_t); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__10; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestError_ofIoError(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__11; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__4___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__2(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__2; static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__10___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__2(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Completion_find_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__12; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__1(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18; static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_addToken___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__1(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1; static lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1___closed__4; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__22(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__4; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22; static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_infoTree(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainTermGoalParams____x40_Lean_Data_Lsp_Extra___hyg_743_(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__6; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__17; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___closed__1; @@ -140,58 +141,60 @@ static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__5___c LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__8; lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__4; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__11; lean_object* l_IO_sleep(uint32_t, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withPPShowLetValues___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__4; static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__9; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25; lean_object* l_ReaderT_pure___at_Lean_Meta_Match_mkMatcher___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2; static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__5; LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_join___rarg(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__5; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__3; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__2(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withPPForTacticGoal___at_Lean_Server_FileWorker_getInteractiveGoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13(size_t, size_t, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__3; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1; uint8_t l_String_Range_includes(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2; lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainTermGoal____x40_Lean_Data_Lsp_Extra___hyg_918_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveGoal_pretty(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,112 +202,104 @@ static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___c lean_object* l_panic___at_Lean_FileMap_toPosition_loop___spec__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__1(lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__6; -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Except_map___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1806_(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_24_(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__3; static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___closed__1; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1; lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_findInfo_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_String_Range_contains(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__2; static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1; lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1068_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSymbol_go___spec__3(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34(lean_object*, lean_object*, lean_object*); lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__10; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8; lean_object* l_Lean_Syntax_findStack_x3f(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonSemanticTokens____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5645_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___closed__3; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17; lean_object* l_Lean_Meta_withPPShowLetValuesImp___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1; lean_object* l_Std_PersistentHashMap_insert___at_Lean_Server_registerLspRequestHandler___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonFoldingRangeParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5689_(lean_object*); -lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__1(lean_object*); lean_object* l_Lean_Server_documentUriFromModule(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightKeyword(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDefinition___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10; static lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonSemanticTokensRangeParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5467_(lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2___closed__2; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12(lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__5; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_requestHandlers; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_bindTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__5; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__11(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_Server_registerLspRequestHandler___spec__6(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__12; @@ -313,243 +308,238 @@ lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__3; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonSemanticTokensParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5379_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1; uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_RefInfo_instCoeRefInfoRefInfo___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__1(lean_object*); lean_object* l_Lean_Server_RequestM_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__1(lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__4(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_692_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2845_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDocumentHighlight____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2797_(lean_object*); lean_object* lean_local_ctx_pop(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__32(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1; static lean_object* l_Lean_Server_FileWorker_handleCompletion___closed__1; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3(lean_object*, 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_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___boxed(lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_stx(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__1(lean_object*); lean_object* l_Lean_Elab_Info_toElabInfo_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonCompletionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1687_(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__7; lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleCompletion___closed__2; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__15; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__18; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleCompletion___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Char_isAlpha(uint32_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__25(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__5; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonCompletionList____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1636_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__4; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___boxed(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__7; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__1___closed__1; static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__6___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__14; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__3___boxed(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__3; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27(lean_object*, lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__6___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2; lean_object* l_String_intercalate(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__32(lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__10; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__25(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1; lean_object* l_Std_HashMap_ofList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPInaccessibleNames___at_Lean_Server_FileWorker_getInteractiveGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___closed__4; lean_object* l_Lean_Lsp_ModuleRefs_findAt(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__9; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lambda__3(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPInaccessibleNames___at_Lean_Server_FileWorker_getInteractiveGoals___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__5(lean_object*); lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__4; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2; lean_object* l_Lean_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__11(lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__16; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__2(lean_object*); lean_object* l_Lean_Meta_withPPInaccessibleNamesImp___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__35(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1; lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25; lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*, uint8_t, uint8_t); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26; lean_object* lean_nat_shiftl(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightKeyword___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5; LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__28(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9; static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__1; lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_addToken(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1; lean_object* l_Lean_Expr_constName_x3f(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__8(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*); lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__9(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Option_map___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Server_GoTo_0__Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_8_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__7; lean_object* l_Std_HashMap_toList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__14; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_noHighlightKinds; lean_object* l_Lean_Server_RequestM_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__15(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30(size_t, size_t, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__2(lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__13; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1; lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__6; static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__5___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_contains___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__9; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lambda__1___boxed(lean_object*); lean_object* l_List_getLast_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__8(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___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_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__6; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lambda__1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleFoldingRange_isImport(lean_object*); @@ -557,52 +547,61 @@ lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, le static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2___closed__1; lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1; LEAN_EXPORT lean_object* l_List_spanAux___at_Lean_Server_FileWorker_handleFoldingRange_addRanges___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleSemanticTokens___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonFoldingRange____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5815_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__8; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2(lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__2(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__8; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_lctx(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__4; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__11; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__2(lean_object*); lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__5; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2; static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; static lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1___closed__1; lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1___closed__1; @@ -610,36 +609,37 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSem LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__13; lean_object* l_Lean_Server_Snapshots_Snapshot_env(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPShowLetValues___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__28(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__35(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__1(lean_object*); lean_object* l_List_getLastD___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1; lean_object* l_Lean_Widget_goalToInteractive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at_Lean_Server_FileWorker_handleHover___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentHighlightParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2650_(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24; +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__15(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -12288,7 +12288,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_3 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_1, x_2); x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); @@ -12298,16 +12298,11 @@ lean_dec(x_3); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); x_7 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1; -x_8 = l_IO_AsyncList_waitAll___rarg(x_7, x_6, x_5); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2___boxed), 4, 1); -lean_closure_set(x_11, 0, x_4); -x_12 = l_Lean_Server_RequestM_mapTask___rarg(x_9, x_11, x_1, x_10); -return x_12; +x_8 = l_IO_AsyncList_waitAll___rarg(x_7, x_6); +x_9 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2___boxed), 4, 1); +lean_closure_set(x_9, 0, x_4); +x_10 = l_Lean_Server_RequestM_mapTask___rarg(x_8, x_9, x_1, x_5); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object* x_1) { @@ -14516,7 +14511,7 @@ return x_23; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_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_5 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -14534,18 +14529,13 @@ lean_closure_set(x_10, 0, x_2); x_11 = lean_ctor_get(x_6, 1); lean_inc(x_11); lean_dec(x_6); -x_12 = l_IO_AsyncList_waitAll___rarg(x_10, x_11, x_7); -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_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2), 6, 3); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_2); -lean_closure_set(x_15, 2, x_9); -x_16 = l_Lean_Server_RequestM_mapTask___rarg(x_13, x_15, x_3, x_14); -return x_16; +x_12 = l_IO_AsyncList_waitAll___rarg(x_10, x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2), 6, 3); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_9); +x_14 = l_Lean_Server_RequestM_mapTask___rarg(x_12, x_13, x_3, x_7); +return x_14; } } LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___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) { @@ -15965,7 +15955,7 @@ return x_18; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_3 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_1, x_2); x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); @@ -15975,16 +15965,11 @@ lean_dec(x_3); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); x_7 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1; -x_8 = l_IO_AsyncList_waitAll___rarg(x_7, x_6, x_5); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleFoldingRange___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_11, 0, x_4); -x_12 = l_Lean_Server_RequestM_mapTask___rarg(x_9, x_11, x_1, x_10); -return x_12; +x_8 = l_IO_AsyncList_waitAll___rarg(x_7, x_6); +x_9 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleFoldingRange___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_9, 0, x_4); +x_10 = l_Lean_Server_RequestM_mapTask___rarg(x_8, x_9, x_1, x_5); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange(lean_object* x_1) { @@ -16218,65 +16203,65 @@ lean_object* x_4; x_4 = l_liftExcept___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1(x_1, x_2, x_3); if (lean_obj_tag(x_4) == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_ctor_get(x_5, 1); +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (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; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); -lean_dec(x_5); +lean_dec(x_6); x_8 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1; -x_9 = l_IO_AsyncList_waitAll___rarg(x_8, x_7, x_6); -x_10 = !lean_is_exclusive(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_ctor_get(x_9, 0); -x_12 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; -x_13 = l_Task_Priority_default; -x_14 = lean_task_map(x_12, x_11, x_13); -lean_ctor_set(x_9, 0, x_14); -return x_9; +x_9 = l_IO_AsyncList_waitAll___rarg(x_8, x_7); +x_10 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; +x_11 = l_Task_Priority_default; +x_12 = lean_task_map(x_10, x_9, x_11); +lean_ctor_set(x_4, 0, x_12); +return x_4; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); +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_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_ctor_get(x_13, 1); lean_inc(x_15); -lean_dec(x_9); -x_17 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; -x_18 = l_Task_Priority_default; -x_19 = lean_task_map(x_17, x_15, x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); -return x_20; +lean_dec(x_13); +x_16 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1; +x_17 = l_IO_AsyncList_waitAll___rarg(x_16, x_15); +x_18 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; +x_19 = l_Task_Priority_default; +x_20 = lean_task_map(x_18, x_17, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_14); +return x_21; } } else { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_4); -if (x_21 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +if (x_22 == 0) { return x_4; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_4, 0); -x_23 = lean_ctor_get(x_4, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_4, 0); +x_24 = lean_ctor_get(x_4, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); lean_dec(x_4); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +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; } } } @@ -16336,7 +16321,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1() { _start: { lean_object* x_1; @@ -16344,7 +16329,7 @@ x_1 = lean_mk_string_from_bytes("Cannot parse request params: ", 29); return x_1; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2() { _start: { lean_object* x_1; @@ -16352,7 +16337,7 @@ x_1 = lean_mk_string_from_bytes("\n", 1); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -16366,10 +16351,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -16389,10 +16374,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -16429,7 +16414,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16454,11 +16439,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -16508,7 +16493,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -16517,38 +16502,38 @@ x_2 = l_Lean_Json_mkObj(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1; +x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1; return x_2; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -16567,7 +16552,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -16581,7 +16566,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -16639,7 +16624,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -16647,28 +16632,28 @@ x_1 = l_Lean_Server_requestHandlers; return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -16694,7 +16679,7 @@ return x_17; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -16702,7 +16687,7 @@ x_1 = lean_mk_string_from_bytes("Failed to register LSP request handler for '", return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2() { _start: { lean_object* x_1; @@ -16710,12 +16695,12 @@ x_1 = lean_mk_string_from_bytes("': already registered", 21); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -16730,17 +16715,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -16763,17 +16748,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -16785,7 +16770,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1() { _start: { lean_object* x_1; @@ -16793,7 +16778,7 @@ x_1 = lean_mk_string_from_bytes("': only possible during initialization", 38); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -16812,10 +16797,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -16829,10 +16814,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -16849,12 +16834,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__5(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__5(lean_object* x_1) { _start: { lean_object* x_2; @@ -16868,10 +16853,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -16891,10 +16876,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -16931,7 +16916,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16956,11 +16941,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__5(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__5(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -17010,7 +16995,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -17018,22 +17003,22 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_LanguageFeatures_0__L return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__5(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__5(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -17052,7 +17037,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -17066,7 +17051,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -17124,28 +17109,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -17171,12 +17156,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -17191,17 +17176,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -17224,17 +17209,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -17246,7 +17231,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -17265,10 +17250,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -17282,10 +17267,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -17302,12 +17287,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__8(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__8(lean_object* x_1) { _start: { lean_object* x_2; @@ -17321,10 +17306,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -17344,10 +17329,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -17384,7 +17369,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17409,11 +17394,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__8(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__8(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -17463,7 +17448,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17483,30 +17468,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__8(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__8(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -17525,7 +17510,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -17539,7 +17524,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -17597,28 +17582,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -17644,12 +17629,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -17664,17 +17649,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -17697,17 +17682,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -17719,7 +17704,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -17738,10 +17723,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -17755,10 +17740,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -17775,12 +17760,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__11(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__11(lean_object* x_1) { _start: { lean_object* x_2; @@ -17794,10 +17779,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -17817,10 +17802,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -17857,7 +17842,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17882,7 +17867,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -17907,11 +17892,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__11(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__11(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -17961,7 +17946,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -17969,36 +17954,36 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__11(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__11(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -18017,7 +18002,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -18031,7 +18016,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -18089,28 +18074,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -18136,12 +18121,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -18156,17 +18141,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -18189,17 +18174,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -18211,7 +18196,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18230,10 +18215,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -18247,10 +18232,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18267,12 +18252,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__15(lean_object* x_1) { _start: { lean_object* x_2; @@ -18286,10 +18271,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -18309,10 +18294,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -18349,7 +18334,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18374,7 +18359,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -18399,11 +18384,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__15(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__15(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18453,7 +18438,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -18461,36 +18446,36 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__15(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__15(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -18509,7 +18494,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -18523,7 +18508,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -18581,28 +18566,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -18628,12 +18613,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -18648,17 +18633,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -18681,17 +18666,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -18703,7 +18688,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18722,10 +18707,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -18739,10 +18724,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18759,12 +18744,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__19(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__19(lean_object* x_1) { _start: { lean_object* x_2; @@ -18778,10 +18763,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -18801,10 +18786,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -18841,7 +18826,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18866,11 +18851,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__19(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__19(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18911,7 +18896,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -18925,30 +18910,30 @@ lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__19(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__19(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -18967,7 +18952,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -18981,7 +18966,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -19039,28 +19024,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -19086,12 +19071,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -19106,17 +19091,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -19139,17 +19124,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -19161,7 +19146,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19180,10 +19165,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -19197,10 +19182,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19217,12 +19202,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__22(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__22(lean_object* x_1) { _start: { lean_object* x_2; @@ -19236,10 +19221,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -19259,10 +19244,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -19299,7 +19284,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19324,11 +19309,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__22(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__22(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19369,7 +19354,7 @@ return x_8; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -19377,22 +19362,22 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_LanguageFeatures_0__L return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__22(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__22(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -19411,7 +19396,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -19425,7 +19410,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -19483,28 +19468,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -19530,12 +19515,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -19550,17 +19535,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -19583,17 +19568,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -19605,7 +19590,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19624,10 +19609,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -19641,10 +19626,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19661,12 +19646,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__25(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__25(lean_object* x_1) { _start: { lean_object* x_2; @@ -19680,10 +19665,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -19703,10 +19688,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -19743,7 +19728,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19768,11 +19753,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__25(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__25(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19822,12 +19807,12 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__25(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__25(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -19846,7 +19831,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -19860,7 +19845,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -19918,28 +19903,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -19965,12 +19950,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -19985,17 +19970,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -20018,17 +20003,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -20040,7 +20025,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -20059,10 +20044,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -20076,10 +20061,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -20096,12 +20081,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__28(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__28(lean_object* x_1) { _start: { lean_object* x_2; @@ -20115,10 +20100,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -20138,10 +20123,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -20178,7 +20163,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -20203,7 +20188,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -20228,11 +20213,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__28(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__28(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -20273,7 +20258,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -20281,36 +20266,36 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__28(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__28(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -20329,7 +20314,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -20343,7 +20328,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -20401,28 +20386,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -20448,12 +20433,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -20468,17 +20453,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -20501,17 +20486,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -20523,7 +20508,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -20542,10 +20527,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -20559,10 +20544,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -20579,12 +20564,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__32(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__32(lean_object* x_1) { _start: { lean_object* x_2; @@ -20598,10 +20583,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -20621,10 +20606,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -20661,7 +20646,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -20686,11 +20671,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__32(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__32(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -20740,7 +20725,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -20760,30 +20745,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__32(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__32(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -20802,7 +20787,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -20816,7 +20801,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -20874,28 +20859,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -20921,12 +20906,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -20941,17 +20926,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -20974,17 +20959,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -20996,7 +20981,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21015,10 +21000,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -21032,10 +21017,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -21052,12 +21037,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__35(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__35(lean_object* x_1) { _start: { lean_object* x_2; @@ -21071,10 +21056,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -21094,10 +21079,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -21134,7 +21119,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -21159,11 +21144,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__35(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__35(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -21213,7 +21198,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -21233,30 +21218,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__35(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__35(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -21275,7 +21260,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -21289,7 +21274,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -21347,28 +21332,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -21394,12 +21379,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -21414,17 +21399,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -21447,17 +21432,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -21469,7 +21454,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21488,10 +21473,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___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); @@ -21505,10 +21490,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -21525,12 +21510,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1() { _start: { lean_object* x_1; @@ -21538,7 +21523,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/waitForDiagnostics", 31); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2() { _start: { lean_object* x_1; @@ -21546,7 +21531,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnosti return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3() { _start: { lean_object* x_1; @@ -21554,7 +21539,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/completion", 23); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4() { _start: { lean_object* x_1; @@ -21562,7 +21547,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleCompletion), 3, return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5() { _start: { lean_object* x_1; @@ -21570,7 +21555,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/hover", 18); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6() { _start: { lean_object* x_1; @@ -21578,7 +21563,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover), 3, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -21589,7 +21574,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8() { _start: { lean_object* x_1; @@ -21597,7 +21582,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/declaration", 24); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -21608,7 +21593,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10() { _start: { lean_object* x_1; @@ -21616,7 +21601,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/definition", 23); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -21627,7 +21612,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12() { _start: { lean_object* x_1; @@ -21635,7 +21620,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/typeDefinition", 27); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13() { _start: { lean_object* x_1; @@ -21643,7 +21628,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/documentHighlight", 30); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14() { _start: { lean_object* x_1; @@ -21651,7 +21636,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentHighligh return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15() { _start: { lean_object* x_1; @@ -21659,7 +21644,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/documentSymbol", 27); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16() { _start: { lean_object* x_1; @@ -21667,7 +21652,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol__ return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17() { _start: { lean_object* x_1; @@ -21675,7 +21660,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/semanticTokens/full", 32); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18() { _start: { lean_object* x_1; @@ -21683,7 +21668,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokensFu return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19() { _start: { lean_object* x_1; @@ -21691,7 +21676,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/semanticTokens/range", 33); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20() { _start: { lean_object* x_1; @@ -21699,7 +21684,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokensRa return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21() { _start: { lean_object* x_1; @@ -21707,7 +21692,7 @@ x_1 = lean_mk_string_from_bytes("textDocument/foldingRange", 25); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22() { _start: { lean_object* x_1; @@ -21715,7 +21700,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleFoldingRange___b return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23() { _start: { lean_object* x_1; @@ -21723,7 +21708,7 @@ x_1 = lean_mk_string_from_bytes("$/lean/plainGoal", 16); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24() { _start: { lean_object* x_1; @@ -21731,7 +21716,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal), 3, 0 return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25() { _start: { lean_object* x_1; @@ -21739,7 +21724,7 @@ x_1 = lean_mk_string_from_bytes("$/lean/plainTermGoal", 20); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26() { _start: { lean_object* x_1; @@ -21747,121 +21732,121 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainTermGoal), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1; -x_3 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2; -x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1(x_2, x_3, x_1); +x_2 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1; +x_3 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2; +x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1(x_2, x_3, 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 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec(x_4); -x_6 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3; -x_7 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4; -x_8 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4(x_6, x_7, x_5); +x_6 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3; +x_7 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4; +x_8 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4(x_6, x_7, x_5); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5; -x_11 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6; -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7(x_10, x_11, x_9); +x_10 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5; +x_11 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7(x_10, x_11, x_9); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8; -x_15 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7; -x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10(x_14, x_15, x_13); +x_14 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8; +x_15 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7; +x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10(x_14, x_15, x_13); if (lean_obj_tag(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_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10; -x_19 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9; -x_20 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10(x_18, x_19, x_17); +x_18 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10; +x_19 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9; +x_20 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10(x_18, x_19, x_17); 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, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12; -x_23 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11; -x_24 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10(x_22, x_23, x_21); +x_22 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12; +x_23 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11; +x_24 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10(x_22, x_23, x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); -x_26 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13; -x_27 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14; -x_28 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14(x_26, x_27, x_25); +x_26 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13; +x_27 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14; +x_28 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14(x_26, x_27, x_25); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_29 = lean_ctor_get(x_28, 1); lean_inc(x_29); lean_dec(x_28); -x_30 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15; -x_31 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16; -x_32 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18(x_30, x_31, x_29); +x_30 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15; +x_31 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16; +x_32 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18(x_30, x_31, x_29); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); -x_34 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17; -x_35 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18; -x_36 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21(x_34, x_35, x_33); +x_34 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17; +x_35 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18; +x_36 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21(x_34, x_35, x_33); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); -x_38 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19; -x_39 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20; -x_40 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24(x_38, x_39, x_37); +x_38 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19; +x_39 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20; +x_40 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24(x_38, x_39, x_37); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21; -x_43 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22; -x_44 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27(x_42, x_43, x_41); +x_42 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21; +x_43 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22; +x_44 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27(x_42, x_43, x_41); if (lean_obj_tag(x_44) == 0) { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); lean_dec(x_44); -x_46 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23; -x_47 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24; -x_48 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31(x_46, x_47, x_45); +x_46 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23; +x_47 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24; +x_48 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31(x_46, x_47, x_45); if (lean_obj_tag(x_48) == 0) { lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); lean_dec(x_48); -x_50 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25; -x_51 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26; -x_52 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34(x_50, x_51, x_49); +x_50 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25; +x_51 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26; +x_52 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34(x_50, x_51, x_49); return x_52; } else @@ -22141,83 +22126,83 @@ return x_100; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__3(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2(x_1); +x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2(x_1); lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__6(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__6(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__9(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__9(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__12(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__12(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13___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; @@ -22225,30 +22210,30 @@ 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_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__13(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__13(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__16(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__16(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17___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; @@ -22256,87 +22241,87 @@ 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_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__17(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__17(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__20(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__20(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__23(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__23(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__26(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__26(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__29(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__29(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30___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; @@ -22344,53 +22329,53 @@ 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_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__30(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__30(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__33(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__33(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__36(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__36(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -22676,135 +22661,135 @@ l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1 = _ini lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1); l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1); -l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__1); -l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__4___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___lambda__5___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__1___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__4___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__7___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__10___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__14___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__18___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__21___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__24___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__27___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__31___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____spec__34___lambda__4___closed__1); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__1); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__2); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__3); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__4); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__5); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__6); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__7); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__8); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__9); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__10); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__11); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__12); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__13); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__14); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__15); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__16); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__17); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__18); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__19); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__20); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__21); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__22); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__23); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__24); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__25); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689____closed__26); -res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9689_(lean_io_mk_world()); +l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__1); +l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__4___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___lambda__5___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__1___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__4___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__7___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__14___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__18___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__21___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__24___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__31___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___closed__1); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__1); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__2); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__3); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__4); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__5); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__6); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__7); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__8); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__9); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__10); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__12); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__13); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__14); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__15); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__16); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__17); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__18); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__19); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__20); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__21); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__22); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__23); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__24); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__25); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__26); +res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653_(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/Server/FileWorker/WidgetRequests.c b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c index deac5b8006..c434b09b0e 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c +++ b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c @@ -13,29 +13,27 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_113_(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_485_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket__10; size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3; extern lean_object* l_Lean_Widget_instRpcEncodableInteractiveGoals; LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_instRpcEncodable___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1088_(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Widget_getInteractiveDiagnostics___lambda__2(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447____boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Widget_ppExprTagged(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Widget_instInhabitedInfoPopup___closed__1; @@ -52,8 +50,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestError_ofIoError(lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_340____closed__1; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5____spec__5(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__2; @@ -74,85 +71,89 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Widget_instRpcEncodableInteractiveTermGoal; extern lean_object* l_Lean_Lsp_instToJsonPlainGoalParams; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_55____closed__2; lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Widget_instTypeNameMessageData; LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_join___rarg(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instToJsonLocationLink; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1128_(lean_object*); -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2; static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____spec__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_lazyTraceChildrenToInteractive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonGetInteractiveDiagnosticsParams; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedGetInteractiveDiagnosticsParams; -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289_(lean_object*); +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1128____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_getInteractiveDiagnostics___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_getInteractiveDiagnostics___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonLineRange____x40_Lean_Data_Lsp_Extra___hyg_1740_(lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____spec__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1; static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_409____closed__3; static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__7; lean_object* l_List_getLast_x3f___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_340_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_5_(lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____closed__2; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2; +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_lazyTraceChildrenToInteractive___boxed__const__1; static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1; static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__2___closed__1; static lean_object* l_Lean_Widget_getInteractiveDiagnostics___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_lazyTraceChildrenToInteractive(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3; +static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2; lean_object* l_Std_PersistentHashMap_insert___at_Lean_Server_registerBuiltinRpcProcedure___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Server_instRpcEncodableWithRpcRef_rpcDecode___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008____closed__2; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2; -lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____boxed(lean_object*, lean_object*); +lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_55_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_409_(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2; lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup; -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_5_(lean_object*, lean_object*); lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_fromJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_414____at_Lean_Widget_TaggedText_instRpcEncodableTaggedText___spec__5(lean_object*); static lean_object* l_Lean_Widget_instToJsonGetInteractiveDiagnosticsParams___closed__1; static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__3; +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1; lean_object* l_Lean_Server_instRpcEncodableWithRpcRef___rarg(lean_object*); +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2; lean_object* l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_getInteractiveGoals(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams; @@ -161,16 +162,17 @@ lean_object* l_Lean_Server_instRpcEncodableWithRpcRef_rpcEncode___rarg(lean_obje LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedInfoPopup; lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__3; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1; static lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____closed__1; static lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket__8___closed__1; static lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket__8___closed__1; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonGetInteractiveDiagnosticsParams; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1153____spec__2(lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; @@ -178,64 +180,61 @@ LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics(lean_object*, l size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_Lsp_instFromJsonLocationLink; lean_object* l_Lean_Widget_msgToInteractive(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup___closed__2; lean_object* l_Lean_Elab_Info_docString_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008____closed__1; -static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2; +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup___closed__1; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3; LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket__9; lean_object* l___private_Lean_Server_GoTo_0__Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_24_(uint8_t); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket__8; static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_340_(lean_object*, lean_object*); extern lean_object* l_Lean_Widget_instRpcEncodableMsgEmbed; extern lean_object* l_Lean_Lsp_instFromJsonPlainTermGoalParams; -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instInhabitedMsgToInteractive___closed__1; lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__3___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1; +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1; lean_object* l_Lean_Widget_instRpcEncodableSubexprInfo_dec____x40_Lean_Widget_InteractiveCode___hyg_5____boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1; static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__2___closed__1; -static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableInteractiveGoal_dec____x40_Lean_Widget_InteractiveGoal___hyg_611____spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_340____closed__1; lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2; static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__2___closed__2; -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__2; lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith___rarg(lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__5; static lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__2___boxed(lean_object*); static lean_object* l_Lean_Widget_instInhabitedMsgToInteractive___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_lazyTraceChildrenToInteractive___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_5____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3; extern lean_object* l_Lean_Widget_instTypeNameInfoWithCtx; +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1___closed__1; static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_55____closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1088____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1088____spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__9; @@ -244,24 +243,24 @@ static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_i static lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket__10___closed__1; lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_toJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_617____at_Lean_Widget_TaggedText_instRpcEncodableTaggedText___spec__3(lean_object*); lean_object* lean_io_initializing(lean_object*); +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1; lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableMsgEmbed_dec____x40_Lean_Widget_InteractiveDiagnostic___hyg_539____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___closed__2; lean_object* l_Lean_Widget_instRpcEncodableSubexprInfo_enc____x40_Lean_Widget_InteractiveCode___hyg_5_(lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_instRpcEncodableTaggedText___rarg(lean_object*); lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup___closed__3; lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1048____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_113____boxed(lean_object*); extern lean_object* l_Lean_Widget_instTypeNameLazyTraceChildren; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_GoTo_0__Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_55_(lean_object*); static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_409____closed__2; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -272,7 +271,7 @@ static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetReq static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__3; lean_object* l_Lean_Elab_Info_lctx(lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____closed__3; -static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3; +static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3; static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__6; lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instFromJsonGetInteractiveDiagnosticsParams___closed__1; @@ -280,10 +279,11 @@ LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive; lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1008____spec__2___closed__1; +static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_485____boxed(lean_object*); static lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket__10___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonLineRange____x40_Lean_Data_Lsp_Extra___hyg_1682_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket__9; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1028____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instToJsonPlainTermGoalParams; @@ -3749,86 +3749,116 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics(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_4; uint8_t x_5; x_4 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_3); -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - x_7 = x_4; -} else { - lean_dec_ref(x_4); - x_7 = lean_box(0); -} +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__1___boxed), 2, 1); +lean_closure_set(x_8, 0, x_1); if (lean_obj_tag(x_1) == 0) { -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_5, 1); -lean_inc(x_15); -lean_dec(x_5); -x_16 = l_Lean_Widget_getInteractiveDiagnostics___closed__1; -x_17 = l_IO_AsyncList_waitAll___rarg(x_16, x_15, x_6); -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_8 = x_18; -x_9 = x_19; -goto block_14; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_9 = l_Lean_Widget_getInteractiveDiagnostics___closed__1; +x_10 = l_IO_AsyncList_waitAll___rarg(x_9, x_7); +x_11 = l_Task_Priority_default; +x_12 = lean_task_map(x_8, x_10, x_11); +lean_ctor_set(x_4, 0, x_12); +return x_4; } 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; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_20 = lean_ctor_get(x_5, 1); -lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_5, 0); -lean_inc(x_22); -lean_dec(x_5); -x_23 = lean_ctor_get(x_22, 2); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_unsigned_to_nat(0u); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_FileMap_lspPosToUtf8Pos(x_23, x_26); -lean_dec(x_23); -x_28 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__3___boxed), 2, 1); -lean_closure_set(x_28, 0, x_27); -x_29 = l_IO_AsyncList_waitAll___rarg(x_28, x_20, x_6); -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_8 = x_30; -x_9 = x_31; -goto block_14; +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_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_ctor_get(x_6, 0); +lean_inc(x_14); +lean_dec(x_6); +x_15 = lean_ctor_get(x_14, 2); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_FileMap_lspPosToUtf8Pos(x_15, x_18); +lean_dec(x_15); +x_20 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__3___boxed), 2, 1); +lean_closure_set(x_20, 0, x_19); +x_21 = l_IO_AsyncList_waitAll___rarg(x_20, x_7); +x_22 = l_Task_Priority_default; +x_23 = lean_task_map(x_8, x_21, x_22); +lean_ctor_set(x_4, 0, x_23); +return x_4; } -block_14: +} +else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__1___boxed), 2, 1); -lean_closure_set(x_10, 0, x_1); -x_11 = l_Task_Priority_default; -x_12 = lean_task_map(x_10, x_8, x_11); -if (lean_is_scalar(x_7)) { - x_13 = lean_alloc_ctor(0, 2, 0); -} else { - x_13 = x_7; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_4, 0); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_4); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_inc(x_1); +x_27 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__1___boxed), 2, 1); +lean_closure_set(x_27, 0, x_1); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_24); +x_28 = l_Lean_Widget_getInteractiveDiagnostics___closed__1; +x_29 = l_IO_AsyncList_waitAll___rarg(x_28, x_26); +x_30 = l_Task_Priority_default; +x_31 = lean_task_map(x_27, x_29, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_25); +return x_32; +} +else +{ +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; +x_33 = lean_ctor_get(x_1, 0); +lean_inc(x_33); +lean_dec(x_1); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec(x_24); +x_35 = lean_ctor_get(x_34, 2); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_unsigned_to_nat(0u); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_FileMap_lspPosToUtf8Pos(x_35, x_38); +lean_dec(x_35); +x_40 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___lambda__3___boxed), 2, 1); +lean_closure_set(x_40, 0, x_39); +x_41 = l_IO_AsyncList_waitAll___rarg(x_40, x_26); +x_42 = l_Task_Priority_default; +x_43 = lean_task_map(x_27, x_41, x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_25); +return x_44; } -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; } } } @@ -3885,7 +3915,7 @@ lean_dec(x_2); return x_4; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3895,7 +3925,7 @@ x_3 = l_Lean_Server_instRpcEncodable___rarg(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -3904,21 +3934,21 @@ x_2 = l_Lean_Widget_instRpcEncodableDiagnosticWith___rarg(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2; +x_1 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2; x_2 = l_Lean_Server_instRpcEncodableArray___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1; -x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3; +x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1; +x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3; x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___elambda__1___boxed), 10, 6); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, lean_box(0)); @@ -3929,12 +3959,12 @@ lean_closure_set(x_5, 5, x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_inc(x_1); -x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2(x_1, x_2); +x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2(x_1, x_2); x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1___closed__1; x_7 = lean_st_ref_take(x_6, x_4); x_8 = lean_ctor_get(x_7, 0); @@ -3964,7 +3994,7 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -3985,7 +4015,7 @@ lean_object* x_12; lean_object* x_13; lean_free_object(x_7); lean_dec(x_3); x_12 = lean_box(0); -x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1(x_1, x_2, x_12, x_10); +x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1(x_1, x_2, x_12, x_10); return x_13; } else @@ -4020,7 +4050,7 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; lean_dec(x_3); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1(x_1, x_2, x_22, x_20); +x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1(x_1, x_2, x_22, x_20); return x_23; } else @@ -4043,7 +4073,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t 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; uint8_t x_12; @@ -4108,12 +4138,12 @@ x_27 = lean_ctor_get(x_10, 1); lean_inc(x_27); lean_dec(x_10); x_28 = lean_box(0); -x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27); +x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27); return x_29; } } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1() { _start: { lean_object* x_1; @@ -4121,17 +4151,17 @@ x_1 = lean_mk_string_from_bytes("getInteractiveDiagnostics", 25); return x_1; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1; +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3() { _start: { lean_object* x_1; @@ -4139,26 +4169,26 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getInteractiveDiagnostics___boxed return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2; -x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3; -x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1(x_2, x_3, x_1); +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2; +x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3; +x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__1___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__1___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -static lean_object* _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1() { +static lean_object* _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1() { _start: { lean_object* x_1; @@ -4166,7 +4196,7 @@ x_1 = lean_mk_string_from_bytes("kind", 4); return x_1; } } -static lean_object* _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2() { +static lean_object* _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2() { _start: { lean_object* x_1; @@ -4174,16 +4204,16 @@ x_1 = lean_mk_string_from_bytes("info", 4); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1; +x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1153____spec__2(x_1, x_2); x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2; +x_5 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2; x_6 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1153____spec__2(x_1, x_5); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -4211,11 +4241,11 @@ return x_12; } } } -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389_(x_1); +x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380_(x_1); lean_dec(x_1); return x_2; } @@ -4224,7 +4254,7 @@ static lean_object* _init_l_Lean_Widget_instFromJsonRpcEncodablePacket__10___clo _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____boxed), 1, 0); return x_1; } } @@ -4236,13 +4266,13 @@ x_1 = l_Lean_Widget_instFromJsonRpcEncodablePacket__10___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); -x_4 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1; +x_4 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1; lean_inc(x_2); x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); @@ -4251,7 +4281,7 @@ 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 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2; +x_8 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2; lean_inc(x_3); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_8); @@ -4270,11 +4300,11 @@ x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447____boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447_(x_1); +x_2 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438_(x_1); lean_dec(x_1); return x_2; } @@ -4283,7 +4313,7 @@ static lean_object* _init_l_Lean_Widget_instToJsonRpcEncodablePacket__10___close _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438____boxed), 1, 0); return x_1; } } @@ -4295,7 +4325,7 @@ x_1 = l_Lean_Widget_instToJsonRpcEncodablePacket__10___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -4314,7 +4344,7 @@ x_9 = lean_ctor_get(x_7, 0); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_4); lean_ctor_set(x_10, 1, x_9); -x_11 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447_(x_10); +x_11 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438_(x_10); lean_dec(x_10); lean_ctor_set(x_7, 0, x_11); return x_7; @@ -4330,7 +4360,7 @@ lean_dec(x_7); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_4); lean_ctor_set(x_14, 1, x_12); -x_15 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1447_(x_14); +x_15 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1438_(x_14); lean_dec(x_14); x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); @@ -4339,7 +4369,7 @@ return x_16; } } } -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4382,18 +4412,18 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_(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___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389_(x_1); +x_3 = l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380_(x_1); x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); x_6 = l___private_Lean_Server_GoTo_0__Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_55_(x_5); -x_7 = l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1(x_6, x_2); +x_7 = l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1(x_6, x_2); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -4481,20 +4511,20 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____spec__1(x_1, x_2); +x_3 = l_MonadExcept_ofExcept___at_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_(x_1, x_2); +x_3 = l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_(x_1, x_2); lean_dec(x_1); return x_3; } @@ -4503,7 +4533,7 @@ static lean_object* _init_l_Lean_Widget_instRpcEncodableGetGoToLocationParams___ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349_), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340_), 2, 0); return x_1; } } @@ -4511,7 +4541,7 @@ static lean_object* _init_l_Lean_Widget_instRpcEncodableGetGoToLocationParams___ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1349____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1340____boxed), 2, 0); return x_1; } } @@ -4535,7 +4565,7 @@ x_1 = l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__3; return x_1; } } -LEAN_EXPORT lean_object* l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -4545,7 +4575,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4555,21 +4585,21 @@ x_3 = l_Lean_Server_instRpcEncodable___rarg(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1; +x_1 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1; x_2 = l_Lean_Server_instRpcEncodableArray___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Lean_Widget_instRpcEncodableGetGoToLocationParams; -x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2; +x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2; x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___elambda__1___boxed), 10, 6); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, lean_box(0)); @@ -4580,12 +4610,12 @@ lean_closure_set(x_5, 5, x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_inc(x_1); -x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3(x_1, x_2); +x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3(x_1, x_2); x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1___closed__1; x_7 = lean_st_ref_take(x_6, x_4); x_8 = lean_ctor_get(x_7, 0); @@ -4615,7 +4645,7 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -4636,7 +4666,7 @@ lean_object* x_12; lean_object* x_13; lean_free_object(x_7); lean_dec(x_3); x_12 = lean_box(0); -x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1(x_1, x_2, x_12, x_10); +x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1(x_1, x_2, x_12, x_10); return x_13; } else @@ -4671,7 +4701,7 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; lean_dec(x_3); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1(x_1, x_2, x_22, x_20); +x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1(x_1, x_2, x_22, x_20); return x_23; } else @@ -4694,7 +4724,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t 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; uint8_t x_12; @@ -4759,12 +4789,12 @@ x_27 = lean_ctor_get(x_10, 1); lean_inc(x_27); lean_dec(x_10); x_28 = lean_box(0); -x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__2(x_1, x_2, x_9, x_28, x_27); +x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__2(x_1, x_2, x_9, x_28, x_27); return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____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_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_1) == 1) @@ -4899,7 +4929,7 @@ return x_36; } } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -4937,7 +4967,7 @@ lean_object* x_14; lean_object* x_15; lean_free_object(x_9); lean_dec(x_11); x_14 = lean_box(0); -x_15 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__1(x_7, x_3, x_8, x_6, x_14, x_4, x_12); +x_15 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1(x_7, x_3, x_8, x_6, x_14, x_4, x_12); lean_dec(x_4); lean_dec(x_6); return x_15; @@ -4969,7 +4999,7 @@ else lean_object* x_20; lean_object* x_21; lean_dec(x_16); x_20 = lean_box(0); -x_21 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__1(x_7, x_3, x_8, x_6, x_20, x_4, x_17); +x_21 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1(x_7, x_3, x_8, x_6, x_20, x_4, x_17); lean_dec(x_4); lean_dec(x_6); return x_21; @@ -5004,15 +5034,15 @@ return x_25; } } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_ReaderT_read___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__1), 2, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t 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; @@ -5021,10 +5051,10 @@ x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); lean_dec(x_1); x_6 = lean_box(x_4); -x_7 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2___boxed), 5, 2); +x_7 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2___boxed), 5, 2); lean_closure_set(x_7, 0, x_5); lean_closure_set(x_7, 1, x_6); -x_8 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1; +x_8 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1; x_9 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__2___rarg), 4, 2); lean_closure_set(x_9, 0, x_8); lean_closure_set(x_9, 1, x_7); @@ -5032,7 +5062,7 @@ x_10 = l_Lean_Server_RequestM_asTask___rarg(x_9, x_2, x_3); return x_10; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1() { _start: { lean_object* x_1; @@ -5040,61 +5070,61 @@ x_1 = lean_mk_string_from_bytes("getGoToLocation", 15); return x_1; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1; +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3), 3, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2; -x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3; -x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2(x_2, x_3, x_1); +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2; +x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3; +x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__2___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__2___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____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_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_2); lean_dec(x_2); -x_7 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__2(x_1, x_6, x_3, x_4, x_5); +x_7 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__2(x_1, x_6, x_3, x_4, x_5); return x_7; } } @@ -5214,7 +5244,7 @@ lean_dec(x_5); return x_9; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -5223,7 +5253,7 @@ x_2 = l_Lean_Server_instRpcEncodableWithRpcRef___rarg(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2() { +static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -5232,12 +5262,12 @@ x_2 = l_Lean_Server_instRpcEncodableArray___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1; -x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2; +x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1; +x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2; x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___elambda__1___boxed), 10, 6); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, lean_box(0)); @@ -5248,12 +5278,12 @@ lean_closure_set(x_5, 5, x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_inc(x_1); -x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2(x_1, x_2); +x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2(x_1, x_2); x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____spec__1___lambda__1___closed__1; x_7 = lean_st_ref_take(x_6, x_4); x_8 = lean_ctor_get(x_7, 0); @@ -5283,7 +5313,7 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -5304,7 +5334,7 @@ lean_object* x_12; lean_object* x_13; lean_free_object(x_7); lean_dec(x_3); x_12 = lean_box(0); -x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1(x_1, x_2, x_12, x_10); +x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1(x_1, x_2, x_12, x_10); return x_13; } else @@ -5339,7 +5369,7 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; lean_dec(x_3); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1(x_1, x_2, x_22, x_20); +x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1(x_1, x_2, x_22, x_20); return x_23; } else @@ -5362,7 +5392,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t 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; uint8_t x_12; @@ -5427,12 +5457,12 @@ x_27 = lean_ctor_get(x_10, 1); lean_inc(x_27); lean_dec(x_10); x_28 = lean_box(0); -x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27); +x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27); return x_29; } } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1() { _start: { lean_object* x_1; @@ -5440,17 +5470,17 @@ x_1 = lean_mk_string_from_bytes("lazyTraceChildrenToInteractive", 30); return x_1; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_289____closed__4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1; +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3() { +static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3() { _start: { lean_object* x_1; @@ -5458,21 +5488,21 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Widget_lazyTraceChildrenToInteractive), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2; -x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3; -x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1(x_2, x_3, x_1); +x_2 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2; +x_3 = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3; +x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__1___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__1___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -5658,25 +5688,25 @@ l_Lean_Widget_getInteractiveDiagnostics___lambda__1___closed__2 = _init_l_Lean_W lean_mark_persistent(l_Lean_Widget_getInteractiveDiagnostics___lambda__1___closed__2); l_Lean_Widget_getInteractiveDiagnostics___closed__1 = _init_l_Lean_Widget_getInteractiveDiagnostics___closed__1(); lean_mark_persistent(l_Lean_Widget_getInteractiveDiagnostics___closed__1); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__1); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__2); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____spec__2___closed__3); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__1); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__2); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330____closed__3); -res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1330_(lean_io_mk_world()); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__1); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__2); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____spec__2___closed__3); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__1); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__2); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321____closed__3); +res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1321_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1 = _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1(); -lean_mark_persistent(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__1); -l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2 = _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2(); -lean_mark_persistent(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1389____closed__2); +l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1 = _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1(); +lean_mark_persistent(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__1); +l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2 = _init_l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2(); +lean_mark_persistent(l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1380____closed__2); l_Lean_Widget_instFromJsonRpcEncodablePacket__10___closed__1 = _init_l_Lean_Widget_instFromJsonRpcEncodablePacket__10___closed__1(); lean_mark_persistent(l_Lean_Widget_instFromJsonRpcEncodablePacket__10___closed__1); l_Lean_Widget_instFromJsonRpcEncodablePacket__10 = _init_l_Lean_Widget_instFromJsonRpcEncodablePacket__10(); @@ -5693,34 +5723,34 @@ l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__3 = _init_l_Lean_W lean_mark_persistent(l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__3); l_Lean_Widget_instRpcEncodableGetGoToLocationParams = _init_l_Lean_Widget_instRpcEncodableGetGoToLocationParams(); lean_mark_persistent(l_Lean_Widget_instRpcEncodableGetGoToLocationParams); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__1); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____spec__3___closed__2); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____lambda__3___closed__1); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__1); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__2); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623____closed__3); -res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1623_(lean_io_mk_world()); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__1); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____spec__3___closed__2); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____lambda__3___closed__1); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__1); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__2); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614____closed__3); +res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1614_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Widget_lazyTraceChildrenToInteractive___boxed__const__1 = _init_l_Lean_Widget_lazyTraceChildrenToInteractive___boxed__const__1(); lean_mark_persistent(l_Lean_Widget_lazyTraceChildrenToInteractive___boxed__const__1); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__1); -l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2(); -lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____spec__2___closed__2); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__1); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__2); -l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3(); -lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941____closed__3); -res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1941_(lean_io_mk_world()); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__1); +l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2(); +lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____spec__2___closed__2); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__1); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__2); +l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3(); +lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932____closed__3); +res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1932_(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/Server/Requests.c b/stage0/stdlib/Lean/Server/Requests.c index 238823081b..e75714ebb6 100644 --- a/stage0/stdlib/Lean/Server/Requests.c +++ b/stage0/stdlib/Lean/Server/Requests.c @@ -64,7 +64,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_RequestM_readDoc___rarg(lean_object*, lea LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAux___at_Lean_Server_registerLspRequestHandler___spec__7(lean_object*, size_t, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_chainLspRequestHandler___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121_(lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_chainLspRequestHandler___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Except_map___rarg(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -113,20 +113,21 @@ LEAN_EXPORT lean_object* l_Lean_Server_RequestM_mapTask___rarg(lean_object*, lea LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Server_lookupLspRequestHandler___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instMonadLiftIORequestM___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__2; size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_containsAux___at_Lean_Server_registerLspRequestHandler___spec__7___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__2; extern lean_object* l_Task_Priority_default; LEAN_EXPORT lean_object* l_Lean_Server_RequestM_bindWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_decEq___boxed(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Server_registerLspRequestHandler___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Server_registerLspRequestHandler___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Server_lookupLspRequestHandler___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestTask_pure(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instMonadLiftIORequestM(lean_object*); lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_asTask(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestTask_pure___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_bindTask___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_runCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_waitFindSnapAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,26 +135,27 @@ LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___lambda__1(lea uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_runCommandElabM(lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1; LEAN_EXPORT lean_object* l_Lean_Server_RequestError_fileChanged; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5; static lean_object* l_Lean_Server_chainLspRequestHandler___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_chainLspRequestHandler___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instInhabitedRequestError; -lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*); lean_object* l_instBEq___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_runCoreM(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_bindWaitFindSnap(lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3; static lean_object* l_Lean_Server_chainLspRequestHandler___lambda__1___closed__2; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4; LEAN_EXPORT lean_object* l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_registerLspRequestHandler___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_registerLspRequestHandler___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4; LEAN_EXPORT lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_RequestM_asTask___spec__1(lean_object*); static lean_object* l_Lean_Server_RequestError_fileChanged___closed__2; @@ -494,6 +496,24 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_parseRequestParams___rarg), 2, 0) return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Server_RequestTask_pure___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = lean_task_pure(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_RequestTask_pure(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Server_RequestTask_pure___rarg), 1, 0); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Server_instMonadLiftIORequestM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1135,21 +1155,16 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Server_RequestM_withWaitFindSnap___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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); -x_8 = l_IO_AsyncList_waitFind_x3f___rarg(x_2, x_7, x_6); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Server_RequestM_waitFindSnapAux___rarg), 5, 2); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_4); -x_12 = l_Lean_Server_RequestM_mapTask___rarg(x_9, x_11, x_5, x_10); -return x_12; +x_8 = l_IO_AsyncList_waitFind_x3f___rarg(x_2, x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Server_RequestM_waitFindSnapAux___rarg), 5, 2); +lean_closure_set(x_9, 0, x_3); +lean_closure_set(x_9, 1, x_4); +x_10 = l_Lean_Server_RequestM_mapTask___rarg(x_8, x_9, x_5, x_6); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Server_RequestM_withWaitFindSnap(lean_object* x_1) { @@ -1163,21 +1178,16 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Server_RequestM_bindWaitFindSnap___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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); -x_8 = l_IO_AsyncList_waitFind_x3f___rarg(x_2, x_7, x_6); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Server_RequestM_waitFindSnapAux___rarg), 5, 2); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_4); -x_12 = l_Lean_Server_RequestM_bindTask___rarg(x_9, x_11, x_5, x_10); -return x_12; +x_8 = l_IO_AsyncList_waitFind_x3f___rarg(x_2, x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Server_RequestM_waitFindSnapAux___rarg), 5, 2); +lean_closure_set(x_9, 0, x_3); +lean_closure_set(x_9, 1, x_4); +x_10 = l_Lean_Server_RequestM_bindTask___rarg(x_8, x_9, x_5, x_6); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Server_RequestM_bindWaitFindSnap(lean_object* x_1) { @@ -1787,7 +1797,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_RequestM_runTermElabM___rarg), 4, return x_2; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1() { _start: { lean_object* x_1; @@ -1795,17 +1805,17 @@ x_1 = lean_alloc_closure((void*)(l_String_decEq___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__2() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1; x_2 = lean_alloc_closure((void*)(l_instBEq___rarg), 3, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3() { _start: { lean_object* x_1; @@ -1813,21 +1823,21 @@ x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1835,11 +1845,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5; x_3 = lean_st_mk_ref(x_2, x_1); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) @@ -3984,17 +3994,17 @@ l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___closed__3 = _init_l_Lean_S lean_mark_persistent(l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___closed__3); l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___closed__4 = _init_l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___closed__4(); lean_mark_persistent(l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg___closed__4); -l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__1); -l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__2(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__2); -l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__3); -l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__4); -l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125____closed__5); -if (builtin) {res = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1125_(lean_io_mk_world()); +l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__1); +l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__2(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__2); +l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__3); +l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__4); +l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5 = _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121____closed__5); +if (builtin) {res = l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg_1121_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Server_requestHandlers = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Server_requestHandlers); diff --git a/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c b/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c index b0801b4d49..d1a1b20954 100644 --- a/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c @@ -14,55 +14,58 @@ extern "C" { #endif static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__7; -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__1(lean_object*, lean_object*); lean_object* l_Lean_initializing(lean_object*); lean_object* l_Lean_throwError___at_Lean_KeyedDeclsAttribute_ExtensionState_erase___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isRecCore(lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_registerRpcProcedure___lambda__2___boxed(lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_74____closed__2; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1; size_t lean_usize_add(size_t, size_t); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7; static lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___closed__4; static lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___closed__2; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11; -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1; lean_object* l_Lean_throwError___at_Lean_declareBuiltin___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15; static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___closed__1; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__24; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__22; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18; LEAN_EXPORT lean_object* l_Lean_Server_registerRpcProcedure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___lambda__2___closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_32_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_74_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348_(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__18; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4; static lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__19; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__5; static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_32____closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__15; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5; lean_object* l_Lean_setEnv___at_Lean_Meta_unfoldDeclsFrom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_74____closed__1; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14; LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Server_registerRpcProcedure___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__3; size_t lean_usize_sub(size_t, size_t); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Server_registerRpcProcedure___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__11; uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); @@ -72,81 +75,79 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Se lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___lambda__1___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_builtinRpcProcedures; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5; static lean_object* l_Lean_addDecl___at_Lean_Server_registerRpcProcedure___spec__3___closed__3; LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Server_registerRpcProcedure___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4; LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Server_registerRpcProcedure___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14; -LEAN_EXPORT uint8_t l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14; lean_object* lean_array_push(lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12; +LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12; lean_object* lean_string_append(lean_object*, lean_object*); -static size_t l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__14; lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2; static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___closed__2; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1; size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__26; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Server_registerRpcProcedure___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__25; uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_101_(uint8_t, uint8_t); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_32____closed__3; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__12; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13; +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__4(lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21; size_t lean_uint64_to_usize(uint64_t); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2; lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__20; uint64_t l_Lean_Name_hash___override(lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__10; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__6; lean_object* l_Except_map___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcProcedure(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Server_registerRpcProcedure___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__2; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__13; LEAN_EXPORT lean_object* l_Lean_Server_userRpcProcedures; lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__23; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2; lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___boxed(lean_object*, lean_object*, lean_object*); -static size_t l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__1; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1; LEAN_EXPORT uint8_t l_Lean_Server_registerRpcProcedure___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_containsAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Server_registerRpcProcedure___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__2; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_handleRpcCall___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at_Lean_Server_registerBuiltinRpcProcedure___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__2; static lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___closed__3; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); @@ -154,94 +155,86 @@ lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___closed__2; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Server_registerLspRequestHandler___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__21; LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Server_registerRpcProcedure___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Server_registerRpcProcedure___spec__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4; lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_containsAtAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1; lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_repr(lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_handleRpcCall___lambda__2___closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___closed__4; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__1; uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); extern lean_object* l_Lean_Server_requestHandlers; extern lean_object* l_Lean_Expr_instHashableExpr; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__17; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__24; lean_object* l_Lean_Server_RequestM_bindTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__1(lean_object*); static lean_object* l_Lean_addDecl___at_Lean_Server_registerRpcProcedure___spec__3___closed__2; uint8_t l_Std_PersistentHashMap_contains___at_Lean_Server_registerLspRequestHandler___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); static lean_object* l_Lean_addDecl___at_Lean_Server_registerRpcProcedure___spec__3___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___closed__1; lean_object* l_Lean_Server_RequestM_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_32____closed__2; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__16; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Server_registerRpcProcedure___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5; lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__4; -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9; uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); size_t lean_usize_mul(size_t, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__4___closed__5; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Server_registerBuiltinRpcProcedure___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9; +static lean_object* l_Lean_Server_handleRpcCall___closed__2; static lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__9; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__8; -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__7; extern lean_object* l_Task_Priority_default; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_bindWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__4___closed__3; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18; extern lean_object* l_Lean_warningAsError; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15; lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16; static lean_object* l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__1; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16; size_t lean_usize_land(size_t, size_t); lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__19; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8; -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7; +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__6(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); @@ -249,6 +242,7 @@ static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___closed__3; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__22; LEAN_EXPORT lean_object* l_Lean_Server_registerRpcProcedure___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___closed__2; +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__14; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__26; lean_object* l_Prod_map___rarg(lean_object*, lean_object*, lean_object*); @@ -256,30 +250,28 @@ lean_object* lean_environment_main_module(lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__15; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__18; LEAN_EXPORT lean_object* l_Lean_Server_instInhabitedRpcProcedure(uint64_t, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__5; -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__11; lean_object* l_Lean_quoteNameMk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Server_registerRpcProcedure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_instInhabitedScope; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2(lean_object*, size_t, lean_object*); uint8_t lean_is_aux_recursor(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_exprToSyntax___spec__1___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__12; LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__1(lean_object*, uint64_t); lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19; LEAN_EXPORT uint8_t l_Std_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(lean_object*, lean_object*); +static lean_object* l_Lean_Server_handleRpcCall___closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__6; lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,75 +280,81 @@ LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__3 LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__23; +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__25; +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Server_registerRpcProcedure___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instInhabitedRpcProcedure___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6; LEAN_EXPORT lean_object* l_Lean_Server_instInhabitedRpcProcedure___rarg(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6; lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13; +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1; static lean_object* l_Lean_logAt___at_Lean_Server_registerRpcProcedure___spec__7___closed__1; +static lean_object* l_Lean_Server_handleRpcCall___lambda__3___closed__2; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___closed__1; +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13; lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); extern lean_object* l_Lean_Expr_instBEqExpr; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10; +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_handleRpcCall___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_initializing(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___closed__3; LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Server_registerRpcProcedure___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2; -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__21; -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__13; lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16; +static lean_object* l_Lean_Server_handleRpcCall___closed__3; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__10; lean_object* l_Lean_Environment_compileDecl(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Server_wrapRpcProcedure___elambda__1___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2; LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__8; +static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6; LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Server_registerRpcProcedure___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(lean_object*, uint8_t); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__20; lean_object* lean_usize_to_nat(size_t); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2; static lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___closed__2; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1153_(lean_object*); -static lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1; static lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___closed__1; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_env(lean_object*); extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors; lean_object* l_Std_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__9; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__1___closed__16; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__4; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldlM___at_Lean_Server_registerRpcProcedure___spec__11___closed__3; -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Server_registerBuiltinRpcProcedure___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcProcedure___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Server_registerRpcProcedure___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Server_handleRpcCall___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13; static lean_object* l_Lean_Server_registerRpcProcedure___lambda__3___closed__17; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* lean_add_decl(lean_object*, lean_object*); @@ -496,7 +494,163 @@ x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_private", 8); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___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_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean", 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__2; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Server", 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Rpc", 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("RequestHandling", 15); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("RpcProcedure", 12); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15; +x_5 = l_Lean_Environment_evalConstCheck___rarg(x_1, x_2, x_4, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__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; uint8_t x_7; @@ -538,7 +692,7 @@ return x_15; } } } -static size_t _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__1() { +static size_t _init_l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__1() { _start: { size_t x_1; size_t x_2; size_t x_3; @@ -548,17 +702,17 @@ x_3 = lean_usize_shift_left(x_1, x_2); return x_3; } } -static size_t _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2() { +static size_t _init_l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2() { _start: { size_t x_1; size_t x_2; size_t x_3; x_1 = 1; -x_2 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__1; +x_2 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__1; x_3 = lean_usize_sub(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -568,7 +722,7 @@ x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); lean_dec(x_1); x_5 = 5; -x_6 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2; +x_6 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2; x_7 = lean_usize_land(x_2, x_6); x_8 = lean_usize_to_nat(x_7); x_9 = lean_box(2); @@ -629,14 +783,14 @@ x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3(x_20, x_21, lean_box(0), x_22, x_3); +x_23 = l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__3(x_20, x_21, lean_box(0), x_22, x_3); lean_dec(x_21); lean_dec(x_20); return x_23; } } } -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Server_handleRpcCall___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; @@ -645,22 +799,12 @@ lean_inc(x_3); lean_dec(x_1); x_4 = l_Lean_Name_hash___override(x_2); x_5 = lean_uint64_to_usize(x_4); -x_6 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2(x_3, x_5, x_2); +x_6 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2(x_3, x_5, x_2); lean_dec(x_2); return x_6; } } -LEAN_EXPORT uint8_t l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = l_Lean_Server_Snapshots_Snapshot_endPos(x_2); -x_4 = lean_nat_dec_le(x_1, x_3); -lean_dec(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -670,15 +814,7 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Server_builtinRpcProcedures; -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_handleRpcCall___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -686,161 +822,44 @@ x_1 = l_Lean_Server_userRpcProcedures; return x_1; } } -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3() { +LEAN_EXPORT uint8_t l_Lean_Server_handleRpcCall___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("No RPC method '", 15); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4() { -_start: +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Server_Snapshots_Snapshot_endPos(x_3); +x_5 = lean_nat_dec_le(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("' bound", 7); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5() { -_start: +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = l_Lean_Server_Snapshots_Snapshot_env(x_3); +x_7 = l_Lean_instInhabitedName; +x_8 = l_Lean_Server_handleRpcCall___lambda__2___closed__1; +x_9 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_7, x_8, x_6, x_2); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("_private", 8); -return x_1; +uint8_t x_10; +x_10 = 0; +return x_10; } -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6() { -_start: +else { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +uint8_t x_11; +lean_dec(x_9); +x_11 = 1; +return x_11; } } -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Lean", 4); -return x_1; +uint8_t x_12; +lean_dec(x_2); +x_12 = 1; +return x_12; } } -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; } -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Server", 6); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Rpc", 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("RequestHandling", 15); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("RpcProcedure", 12); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20() { +static lean_object* _init_l_Lean_Server_handleRpcCall___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -848,7 +867,7 @@ x_1 = lean_mk_string_from_bytes("Failed to evaluate RPC constant '", 33); return x_1; } } -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21() { +static lean_object* _init_l_Lean_Server_handleRpcCall___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -856,394 +875,244 @@ x_1 = lean_mk_string_from_bytes("': ", 3); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1; -x_6 = lean_st_ref_get(x_5, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__1(x_8, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Server_Snapshots_Snapshot_env(x_2); -x_13 = l_Lean_instInhabitedName; -x_14 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2; -lean_inc(x_10); -lean_inc(x_12); -x_15 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_13, x_14, x_12, x_10); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t 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; lean_object* x_23; -lean_dec(x_12); -lean_dec(x_3); -lean_dec(x_1); -x_16 = 1; -x_17 = l_Lean_Name_toString(x_10, x_16); -x_18 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3; -x_19 = lean_string_append(x_18, x_17); -lean_dec(x_17); -x_20 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4; -x_21 = lean_string_append(x_19, x_20); -x_22 = 2; -x_23 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_22); -lean_ctor_set_tag(x_6, 1); -lean_ctor_set(x_6, 0, x_23); -return x_6; -} -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_dec(x_10); -x_24 = lean_ctor_get(x_15, 0); -lean_inc(x_24); -lean_dec(x_15); -x_25 = lean_ctor_get(x_2, 3); -x_26 = lean_ctor_get(x_25, 2); -x_27 = l_Lean_Elab_Command_instInhabitedScope; -x_28 = l_List_head_x21___rarg(x_27, x_26); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19; -lean_inc(x_24); -x_31 = l_Lean_Environment_evalConstCheck___rarg(x_12, x_29, x_30, x_24); -lean_dec(x_29); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; uint8_t 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_dec(x_3); -lean_dec(x_1); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -lean_dec(x_31); -x_33 = 1; -x_34 = l_Lean_Name_toString(x_24, x_33); -x_35 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20; -x_36 = lean_string_append(x_35, x_34); -lean_dec(x_34); -x_37 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21; -x_38 = lean_string_append(x_36, x_37); -x_39 = lean_string_append(x_38, x_32); -lean_dec(x_32); -x_40 = l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__1; -x_41 = lean_string_append(x_39, x_40); -x_42 = 4; -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); -lean_ctor_set_tag(x_6, 1); -lean_ctor_set(x_6, 0, x_43); -return x_6; -} -else -{ -lean_object* x_44; uint64_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_24); -lean_free_object(x_6); -x_44 = lean_ctor_get(x_31, 0); -lean_inc(x_44); -lean_dec(x_31); -x_45 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_46 = lean_ctor_get(x_1, 2); -lean_inc(x_46); -lean_dec(x_1); -x_47 = lean_box_uint64(x_45); -x_48 = lean_apply_4(x_44, x_47, x_46, x_3, x_9); -return x_48; -} -} -} -else -{ -lean_object* x_49; uint64_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_10); -lean_free_object(x_6); -x_49 = lean_ctor_get(x_11, 0); -lean_inc(x_49); -lean_dec(x_11); -x_50 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_51 = lean_ctor_get(x_1, 2); -lean_inc(x_51); -lean_dec(x_1); -x_52 = lean_box_uint64(x_50); -x_53 = lean_apply_4(x_49, x_52, x_51, x_3, x_9); -return x_53; -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_6, 0); -x_55 = lean_ctor_get(x_6, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_6); -x_56 = lean_ctor_get(x_1, 1); -lean_inc(x_56); -lean_inc(x_56); -x_57 = l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__1(x_54, x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_58 = l_Lean_Server_Snapshots_Snapshot_env(x_2); -x_59 = l_Lean_instInhabitedName; -x_60 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2; -lean_inc(x_56); -lean_inc(x_58); -x_61 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_59, x_60, x_58, x_56); -if (lean_obj_tag(x_61) == 0) -{ -uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_1); -x_62 = 1; -x_63 = l_Lean_Name_toString(x_56, x_62); -x_64 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3; -x_65 = lean_string_append(x_64, x_63); -lean_dec(x_63); -x_66 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4; -x_67 = lean_string_append(x_65, x_66); -x_68 = 2; -x_69 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*1, x_68); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_55); -return x_70; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_56); -x_71 = lean_ctor_get(x_61, 0); -lean_inc(x_71); -lean_dec(x_61); -x_72 = lean_ctor_get(x_2, 3); -x_73 = lean_ctor_get(x_72, 2); -x_74 = l_Lean_Elab_Command_instInhabitedScope; -x_75 = l_List_head_x21___rarg(x_74, x_73); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19; -lean_inc(x_71); -x_78 = l_Lean_Environment_evalConstCheck___rarg(x_58, x_76, x_77, x_71); -lean_dec(x_76); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_3); -lean_dec(x_1); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -lean_dec(x_78); -x_80 = 1; -x_81 = l_Lean_Name_toString(x_71, x_80); -x_82 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20; -x_83 = lean_string_append(x_82, x_81); -lean_dec(x_81); -x_84 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21; -x_85 = lean_string_append(x_83, x_84); -x_86 = lean_string_append(x_85, x_79); -lean_dec(x_79); -x_87 = l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__1; -x_88 = lean_string_append(x_86, x_87); -x_89 = 4; -x_90 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set_uint8(x_90, sizeof(void*)*1, x_89); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_55); -return x_91; -} -else -{ -lean_object* x_92; uint64_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_71); -x_92 = lean_ctor_get(x_78, 0); -lean_inc(x_92); -lean_dec(x_78); -x_93 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_94 = lean_ctor_get(x_1, 2); -lean_inc(x_94); -lean_dec(x_1); -x_95 = lean_box_uint64(x_93); -x_96 = lean_apply_4(x_92, x_95, x_94, x_3, x_55); -return x_96; -} -} -} -else -{ -lean_object* x_97; uint64_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_56); -x_97 = lean_ctor_get(x_57, 0); -lean_inc(x_97); -lean_dec(x_57); -x_98 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_99 = lean_ctor_get(x_1, 2); -lean_inc(x_99); -lean_dec(x_1); -x_100 = lean_box_uint64(x_98); -x_101 = lean_apply_4(x_97, x_100, x_99, x_3, x_55); -return x_101; -} -} -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(":", 1); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Incorrect position '", 20); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("' in RPC call", 13); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_4 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_3); -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_ctor_get(x_5, 0); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = l_Lean_Server_Snapshots_Snapshot_env(x_4); +x_8 = l_Lean_instInhabitedName; +x_9 = l_Lean_Server_handleRpcCall___lambda__2___closed__1; lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 2); -lean_inc(x_8); +x_10 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_8, x_9, x_7, x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_dec(x_7); -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Lean_FileMap_lspPosToUtf8Pos(x_8, x_10); -lean_dec(x_8); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1___boxed), 2, 1); -lean_closure_set(x_12, 0, x_11); -x_13 = lean_ctor_get(x_9, 0); -lean_inc(x_13); -lean_dec(x_9); -x_14 = l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__1; -x_15 = lean_string_append(x_14, x_13); -lean_dec(x_13); -x_16 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1; -x_17 = lean_string_append(x_15, x_16); -x_18 = lean_ctor_get(x_10, 0); -lean_inc(x_18); -x_19 = l_Nat_repr(x_18); -x_20 = lean_string_append(x_17, x_19); -lean_dec(x_19); -x_21 = lean_string_append(x_20, x_16); -x_22 = lean_ctor_get(x_10, 1); -lean_inc(x_22); +lean_dec(x_5); +lean_dec(x_3); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_6); +return x_11; +} +else +{ +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_dec(x_2); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); lean_dec(x_10); -x_23 = l_Nat_repr(x_22); -x_24 = lean_string_append(x_21, x_23); -lean_dec(x_23); -x_25 = lean_string_append(x_24, x_14); -x_26 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2; -x_27 = lean_string_append(x_26, x_25); -lean_dec(x_25); -x_28 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3; -x_29 = lean_string_append(x_27, x_28); -x_30 = 3; -x_31 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_30); -x_32 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2___boxed), 3, 1); -lean_closure_set(x_32, 0, x_31); -x_33 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___boxed), 4, 1); -lean_closure_set(x_33, 0, x_1); -x_34 = l_Lean_Server_RequestM_bindWaitFindSnap___rarg(x_5, x_12, x_32, x_33, x_2, x_6); +x_13 = lean_ctor_get(x_4, 3); +x_14 = lean_ctor_get(x_13, 2); +x_15 = l_Lean_Elab_Command_instInhabitedScope; +x_16 = l_List_head_x21___rarg(x_15, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +lean_inc(x_12); +x_18 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe(x_7, x_17, x_12); +lean_dec(x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; uint8_t 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; lean_object* x_31; +lean_dec(x_5); +lean_dec(x_3); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = l_Lean_Name_toString(x_12, x_20); +x_22 = l_Lean_Server_handleRpcCall___lambda__3___closed__1; +x_23 = lean_string_append(x_22, x_21); +lean_dec(x_21); +x_24 = l_Lean_Server_handleRpcCall___lambda__3___closed__2; +x_25 = lean_string_append(x_23, x_24); +x_26 = lean_string_append(x_25, x_19); +lean_dec(x_19); +x_27 = l_Lean_Server_instInhabitedRpcProcedure___rarg___closed__1; +x_28 = lean_string_append(x_26, x_27); +x_29 = 4; +x_30 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_6); +return x_31; +} +else +{ +lean_object* x_32; uint64_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_12); +x_32 = lean_ctor_get(x_18, 0); +lean_inc(x_32); +lean_dec(x_18); +x_33 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_34 = lean_ctor_get(x_3, 2); +lean_inc(x_34); +lean_dec(x_3); +x_35 = lean_box_uint64(x_33); +x_36 = lean_apply_4(x_32, x_35, x_34, x_5, x_6); +return x_36; +} +} +} +} +static lean_object* _init_l_Lean_Server_handleRpcCall___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Server_builtinRpcProcedures; +return x_1; +} +} +static lean_object* _init_l_Lean_Server_handleRpcCall___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("No RPC method '", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_handleRpcCall___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("' found", 7); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall(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; +x_4 = l_Lean_Server_handleRpcCall___closed__1; +x_5 = lean_st_ref_get(x_4, x_3); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Std_PersistentHashMap_find_x3f___at_Lean_Server_handleRpcCall___spec__1(x_6, 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; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_10 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_7); +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, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 2); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_FileMap_lspPosToUtf8Pos(x_14, x_16); +lean_dec(x_14); +x_18 = 1; +lean_inc(x_8); +x_19 = l_Lean_Name_toString(x_8, x_18); +x_20 = l_Lean_Server_handleRpcCall___closed__2; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +x_22 = l_Lean_Server_handleRpcCall___closed__3; +x_23 = lean_string_append(x_21, x_22); +x_24 = 2; +x_25 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_24); +lean_inc(x_25); +x_26 = lean_alloc_closure((void*)(l_Lean_Server_handleRpcCall___lambda__1___boxed), 3, 1); +lean_closure_set(x_26, 0, x_25); +lean_inc(x_8); +x_27 = lean_alloc_closure((void*)(l_Lean_Server_handleRpcCall___lambda__2___boxed), 3, 2); +lean_closure_set(x_27, 0, x_17); +lean_closure_set(x_27, 1, x_8); +x_28 = lean_alloc_closure((void*)(l_Lean_Server_handleRpcCall___lambda__3___boxed), 6, 3); +lean_closure_set(x_28, 0, x_8); +lean_closure_set(x_28, 1, x_25); +lean_closure_set(x_28, 2, x_1); +x_29 = l_Lean_Server_RequestM_bindWaitFindSnap___rarg(x_11, x_27, x_26, x_28, x_2, x_12); +return x_29; +} +else +{ +lean_object* x_30; uint64_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_8); +x_30 = lean_ctor_get(x_9, 0); +lean_inc(x_30); +lean_dec(x_9); +x_31 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_32 = lean_ctor_get(x_1, 2); +lean_inc(x_32); +lean_dec(x_1); +x_33 = lean_box_uint64(x_31); +x_34 = lean_apply_4(x_30, x_33, x_32, x_2, x_7); return x_34; } } -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__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_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__3(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Std_PersistentHashMap_findAtAux___at_Lean_Server_handleRpcCall___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2(x_1, x_4, x_3); +x_5 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2(x_1, x_4, x_3); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__2(x_1, x_2, x_3); +x_4 = l_Lean_Server_handleRpcCall___lambda__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3(x_1, x_2, x_3, x_4); -lean_dec(x_2); +uint8_t x_4; lean_object* x_5; +x_4 = l_Lean_Server_handleRpcCall___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_5 = lean_box(x_4); return x_5; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Server_handleRpcCall___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_handleRpcCall___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_7; +} +} +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1() { _start: { lean_object* x_1; @@ -1251,7 +1120,7 @@ x_1 = lean_mk_string_from_bytes("Cannot parse request params: ", 29); return x_1; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2() { _start: { lean_object* x_1; @@ -1259,7 +1128,7 @@ x_1 = lean_mk_string_from_bytes("\n", 1); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -1274,10 +1143,10 @@ 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -1297,10 +1166,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -1337,7 +1206,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1362,11 +1231,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -1422,7 +1291,7 @@ return x_13; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1430,22 +1299,22 @@ x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2(x_2); -x_6 = l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2(x_2); +x_6 = l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -1464,7 +1333,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -1478,7 +1347,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -1536,7 +1405,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -1544,28 +1413,28 @@ x_1 = l_Lean_Server_requestHandlers; return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -1591,7 +1460,7 @@ return x_17; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -1599,7 +1468,7 @@ x_1 = lean_mk_string_from_bytes("Failed to register LSP request handler for '", return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2() { _start: { lean_object* x_1; @@ -1607,12 +1476,12 @@ x_1 = lean_mk_string_from_bytes("': already registered", 21); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -1627,17 +1496,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -1660,17 +1529,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3(x_1, x_2, x_21, x_19); return x_22; } else { 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -1682,7 +1551,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1() { _start: { lean_object* x_1; @@ -1690,7 +1559,7 @@ x_1 = lean_mk_string_from_bytes("': only possible during initialization", 38); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -1709,10 +1578,10 @@ 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; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___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); @@ -1726,10 +1595,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -1746,12 +1615,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1() { _start: { lean_object* x_1; @@ -1759,39 +1628,39 @@ x_1 = lean_mk_string_from_bytes("$/lean/rpc/call", 15); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_handleRpcCall), 3, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1; -x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2; -x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1(x_2, x_3, x_1); +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1; +x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2; +x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__3(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -2100,7 +1969,7 @@ x_14 = lean_ctor_get(x_10, 0); lean_inc(x_14); lean_dec(x_10); x_15 = lean_apply_2(x_13, x_8, x_14); -x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1; +x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1; x_17 = l_Prod_map___rarg(x_16, x_12, x_15); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); @@ -2424,7 +2293,7 @@ lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_7 = lean_ctor_get(x_1, 0); x_8 = 1; x_9 = 5; -x_10 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2; +x_10 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2; x_11 = lean_usize_land(x_2, x_10); x_12 = lean_usize_to_nat(x_11); x_13 = lean_array_get_size(x_7); @@ -2570,7 +2439,7 @@ lean_inc(x_48); lean_dec(x_1); x_49 = 1; x_50 = 5; -x_51 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2; +x_51 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2; x_52 = lean_usize_land(x_2, x_51); x_53 = lean_usize_to_nat(x_52); x_54 = lean_array_get_size(x_48); @@ -2868,7 +2737,7 @@ x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); lean_dec(x_1); x_5 = 5; -x_6 = l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2; +x_6 = l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2; x_7 = lean_usize_land(x_2, x_6); x_8 = lean_usize_to_nat(x_7); x_9 = lean_box(2); @@ -2947,7 +2816,7 @@ lean_closure_set(x_7, 2, lean_box(0)); lean_closure_set(x_7, 3, x_2); lean_closure_set(x_7, 4, x_3); lean_closure_set(x_7, 5, x_4); -x_8 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1; +x_8 = l_Lean_Server_handleRpcCall___closed__1; x_9 = lean_st_ref_take(x_8, x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -2989,7 +2858,7 @@ _start: { lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_dec(x_6); -x_8 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1; +x_8 = l_Lean_Server_handleRpcCall___closed__1; x_9 = lean_st_ref_get(x_8, x_7); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) @@ -5488,7 +5357,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -5593,7 +5462,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Server_registerRpcProcedure___lambda__1___closed__1; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -6089,7 +5958,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } @@ -6508,7 +6377,7 @@ lean_dec(x_37); x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); lean_dec(x_38); -x_41 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2; +x_41 = l_Lean_Server_handleRpcCall___lambda__2___closed__1; x_42 = l_Lean_MapDeclarationExtension_insert___rarg(x_41, x_40, x_1, x_7); x_43 = l_Lean_setEnv___at_Lean_Meta_unfoldDeclsFrom___spec__1(x_42, x_3, x_4, x_39); lean_dec(x_4); @@ -6625,7 +6494,7 @@ _start: lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_dec(x_3); x_7 = l_Lean_instInhabitedName; -x_8 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2; +x_8 = l_Lean_Server_handleRpcCall___lambda__2___closed__1; lean_inc(x_1); x_9 = l_Lean_MapDeclarationExtension_contains___rarg(x_7, x_8, x_2, x_1); if (x_9 == 0) @@ -6719,7 +6588,7 @@ x_9 = lean_st_ref_get(x_3, x_7); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); -x_11 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1; +x_11 = l_Lean_Server_handleRpcCall___closed__1; x_12 = lean_st_ref_get(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -6865,7 +6734,7 @@ lean_dec(x_2); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____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_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____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; @@ -6873,7 +6742,7 @@ x_7 = l_Lean_Server_registerRpcProcedure(x_1, x_4, x_5, x_6); return x_7; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1() { _start: { lean_object* x_1; @@ -6881,25 +6750,25 @@ x_1 = lean_mk_string_from_bytes("attribute cannot be erased", 26); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2; +x_5 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2; x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4); return x_6; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1() { _start: { lean_object* x_1; @@ -6907,17 +6776,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Server_registerRpcProcedure___lambda__1___closed__12; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3() { _start: { lean_object* x_1; @@ -6925,57 +6794,57 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7; -x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7; +x_2 = l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9() { _start: { lean_object* x_1; @@ -6983,27 +6852,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10; -x_2 = lean_unsigned_to_nat(1350u); +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10; +x_2 = lean_unsigned_to_nat(1348u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12() { _start: { lean_object* x_1; @@ -7011,17 +6880,17 @@ x_1 = lean_mk_string_from_bytes("serverRpcMethod", 15); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14() { _start: { lean_object* x_1; @@ -7029,13 +6898,13 @@ x_1 = lean_mk_string_from_bytes("Marks a function as a Lean server RPC method.\n return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13; -x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13; +x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14; x_4 = 1; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -7045,29 +6914,29 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18() { +static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16; -x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17; +x_1 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16; +x_3 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7075,31 +6944,31 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18; +x_2 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____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_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____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_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -7151,79 +7020,73 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Server_userRpcProcedures = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Server_userRpcProcedures); lean_dec_ref(res); -}l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__1 = _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__1(); -l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2 = _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___spec__2___closed__2(); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__1); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__2); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__3); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__4); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__5); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__6); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__7); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__8); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__9); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__10); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__11); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__12); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__13); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__14); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__15); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__16); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__17); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__18); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__19); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__20); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___lambda__3___closed__21); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__1); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__2); -l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3(); -lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_handleRpcCallUnsafe___closed__3); -l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__1); -l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___lambda__4___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____spec__1___closed__1); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__1); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352____closed__2); -res = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_352_(lean_io_mk_world()); +}l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__1); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__2 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__2(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__2); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__3); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__4); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__5); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__6); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__7); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__8); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__9); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__10); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__11); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__12); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__13); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__14); +l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15 = _init_l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15(); +lean_mark_persistent(l___private_Lean_Server_Rpc_RequestHandling_0__Lean_Server_evalRpcProcedureUnsafe___closed__15); +l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__1 = _init_l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__1(); +l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2 = _init_l_Std_PersistentHashMap_findAux___at_Lean_Server_handleRpcCall___spec__2___closed__2(); +l_Lean_Server_handleRpcCall___lambda__2___closed__1 = _init_l_Lean_Server_handleRpcCall___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___lambda__2___closed__1); +l_Lean_Server_handleRpcCall___lambda__3___closed__1 = _init_l_Lean_Server_handleRpcCall___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___lambda__3___closed__1); +l_Lean_Server_handleRpcCall___lambda__3___closed__2 = _init_l_Lean_Server_handleRpcCall___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___lambda__3___closed__2); +l_Lean_Server_handleRpcCall___closed__1 = _init_l_Lean_Server_handleRpcCall___closed__1(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___closed__1); +l_Lean_Server_handleRpcCall___closed__2 = _init_l_Lean_Server_handleRpcCall___closed__2(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___closed__2); +l_Lean_Server_handleRpcCall___closed__3 = _init_l_Lean_Server_handleRpcCall___closed__3(); +lean_mark_persistent(l_Lean_Server_handleRpcCall___closed__3); +l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__1); +l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___lambda__4___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____spec__1___closed__1); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__1); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350____closed__2); +res = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_350_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___elambda__1___lambda__2___closed__1(); @@ -7384,47 +7247,47 @@ l_Lean_Server_registerRpcProcedure___closed__3 = _init_l_Lean_Server_registerRpc lean_mark_persistent(l_Lean_Server_registerRpcProcedure___closed__3); l_Lean_Server_registerRpcProcedure___closed__4 = _init_l_Lean_Server_registerRpcProcedure___closed__4(); lean_mark_persistent(l_Lean_Server_registerRpcProcedure___closed__4); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__1); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____lambda__2___closed__2); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__1); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__2); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__3); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__4); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__5); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__6); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__7); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__8); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__9); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__10); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__11); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__12); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__13); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__14); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__15); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__16); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__17); -l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18(); -lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350____closed__18); -res = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1350_(lean_io_mk_world()); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__1); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____lambda__2___closed__2); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__1); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__2); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__3); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__4); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__5); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__6); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__7); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__8); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__9); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__10); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__11); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__12); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__13); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__14); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__15); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__16); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__17); +l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18 = _init_l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18(); +lean_mark_persistent(l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348____closed__18); +res = l_Lean_Server_initFn____x40_Lean_Server_Rpc_RequestHandling___hyg_1348_(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/Widget/UserWidget.c b/stage0/stdlib/Lean/Widget/UserWidget.c index 43ab5d7310..7c0e6c457f 100644 --- a/stage0/stdlib/Lean/Widget/UserWidget.c +++ b/stage0/stdlib/Lean/Widget/UserWidget.c @@ -17,6 +17,7 @@ lean_object* l_Lean_Server_RequestM_runCoreM___rarg(lean_object*, lean_object*, static lean_object* l_Lean_Widget_widgetCmd___closed__10; lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__1___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Server_instRpcEncodable___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2___closed__1; @@ -36,26 +37,27 @@ lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__1___boxed(lean_object*); uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Widget_getWidgets___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Widget_getWidgets___closed__2; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__12; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__5(lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -static lean_object* l_Lean_Widget_getWidgetSource___lambda__3___closed__1; extern lean_object* l_Lean_Lsp_instToJsonPosition; -static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1; +static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___closed__4; static lean_object* l_Lean_Widget_instToJsonUserWidget___closed__1; static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_widgetCmd; +static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedUserWidgetDefinition; LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_162____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonUserWidgetDefinition; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonGetWidgetsResponse; extern lean_object* l_Lean_Lsp_instFromJsonPosition; static lean_object* l_Lean_Widget_widgetCmd___closed__7; +static lean_object* l_Lean_Widget_getWidgets___closed__1; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__11; static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____closed__2; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalJsonUnsafe___closed__1; @@ -64,9 +66,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attri LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__1(lean_object*, uint64_t, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_infoTree(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Widget_getWidgetSource___lambda__2(lean_object*, uint64_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_53____boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__1; lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); static lean_object* l_Lean_Widget_getWidgetSource___rpc__wrapped___closed__2; @@ -77,6 +79,7 @@ static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423 lean_object* l_List_join___rarg(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_getWidgetSource___rpc__wrapped___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_24_(lean_object*); @@ -85,6 +88,9 @@ LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Wi LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonUserWidgetDefinition; lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__16; +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____closed__5; LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonGetWidgetSourceParams; lean_object* l_Lean_Elab_InfoTree_deepestNodes___rarg(lean_object*, lean_object*); @@ -97,7 +103,6 @@ lean_object* l_Lean_Elab_Term_evalTerm___rarg(lean_object*, lean_object*, uint8_ LEAN_EXPORT lean_object* l_Lean_Widget_widgetSourceRegistry; lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___spec__3(lean_object*); static lean_object* l_Lean_Widget_instFromJsonUserWidget___closed__1; @@ -105,6 +110,7 @@ LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec_ static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__2; lean_object* l_Lean_bignumToJson(lean_object*); static uint64_t l_Lean_Widget_instInhabitedUserWidget___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_684____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___closed__5; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___closed__3; @@ -120,26 +126,24 @@ static lean_object* l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonWidgetSource; -static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1; +static lean_object* l_Lean_Widget_getWidgetSource___lambda__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1; static lean_object* l_Lean_Widget_getWidgets___rpc__wrapped___closed__3; LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1107_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1149_(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__2(lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__1___rarg___closed__2; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_122____closed__2; LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___rpc__wrapped; -static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2; lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__1; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_122____closed__1; lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__11; uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___closed__2; lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l_Lean_Widget_getWidgetSource___rpc__wrapped___closed__3; @@ -150,6 +154,7 @@ lean_object* l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFi LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__1(lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___closed__6; lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl; static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_402____closed__2; @@ -159,31 +164,33 @@ static lean_object* l_Lean_Widget_instToJsonUserWidgetInstance___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonUserWidget; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__4(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___rpc__wrapped; -lean_object* l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidget____x40_Lean_Widget_UserWidget___hyg_258____closed__2; lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__8; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidget____x40_Lean_Widget_UserWidget___hyg_258_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_stx(lean_object*); LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__2; static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__6; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_162_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__12; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___at_Lean_Widget_elabWidgetCmd___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___spec__2(lean_object*); lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_getWidgetSource___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____lambda__2___boxed(lean_object*); static lean_object* l_Lean_Widget_instFromJsonGetWidgetsResponse___closed__1; @@ -195,6 +202,7 @@ static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeI lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_evalConstCheck___at___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_userWidgetRegistry; @@ -217,14 +225,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJ lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1153____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__18; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1123____spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__17; LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083_(lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_628____closed__1; +lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__8; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -232,11 +241,12 @@ static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeI LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____lambda__2(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__9; LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_RequestM_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uint64_to_nat(uint64_t); LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__2; @@ -245,7 +255,9 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__4; LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonUserWidgetInstance; +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___closed__1; +lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1; LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,12 +276,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJ static lean_object* l_Lean_Widget_widgetCmd___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_122_(lean_object*); lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonUserWidgetInstance; lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_377_(lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonWidgetSource; -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231_(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273_(lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Linter_MissingDocs_handleIn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_423____lambda__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_628____closed__2; @@ -285,7 +297,6 @@ static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUser static lean_object* l_Lean_Widget_getWidgets___rpc__wrapped___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_628_(lean_object*); static lean_object* l_Lean_Widget_widgetCmd___closed__3; -static lean_object* l_Lean_Widget_getWidgetSource___lambda__2___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___at_Lean_Widget_elabWidgetCmd___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalJsonUnsafe___closed__3; @@ -4603,45 +4614,173 @@ x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_4; +x_4 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Widget_getWidgetSource___lambda__2(lean_object* x_1, uint64_t x_2, lean_object* x_3) { +_start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Server_Snapshots_Snapshot_endPos(x_3); +x_5 = lean_nat_dec_le(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_box(0); +x_7 = l_Lean_Server_Snapshots_Snapshot_env(x_3); +x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2___closed__2; +x_9 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_6, x_8, x_7); lean_dec(x_7); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_5, 0, x_9); -return x_5; +x_10 = l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1(x_9, x_2); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = 0; +return x_11; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_5, 0); -x_11 = lean_ctor_get(x_5, 1); +uint8_t x_12; +lean_dec(x_10); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 1; +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___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; +x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe(x_1, x_3, 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 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); lean_inc(x_11); lean_inc(x_10); -lean_dec(x_5); +lean_dec(x_6); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4(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 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_5); +return x_8; +} +} +static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__4___boxed), 5, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_box(0); +x_7 = l_Lean_Server_Snapshots_Snapshot_env(x_3); +x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2___closed__2; +x_9 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_6, x_8, x_7); +lean_dec(x_7); +x_10 = l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1(x_9, x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_5); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_2); x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec(x_10); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, 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; +x_13 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__3___boxed), 5, 1); +lean_closure_set(x_13, 0, x_12); +x_14 = l_Lean_Widget_getWidgetSource___lambda__5___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__2___rarg), 6, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Server_RequestM_runCoreM___rarg(x_3, x_15, x_4, x_5); +return x_16; } } } -static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Widget_getWidgetSource___closed__1() { _start: { lean_object* x_1; @@ -4649,23 +4788,30 @@ x_1 = lean_mk_string_from_bytes("No registered user-widget with hash ", 36); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___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_EXPORT lean_object* l_Lean_Widget_getWidgetSource(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; -x_7 = lean_box(0); -x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_attributeImpl___elambda__2___closed__2; -x_9 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_7, x_8, x_2); -x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); -x_11 = l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1(x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_5); +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; uint64_t 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; uint8_t 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; +x_4 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); lean_dec(x_4); -x_12 = lean_uint64_to_nat(x_10); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 2); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = l_Lean_FileMap_lspPosToUtf8Pos(x_8, x_9); +lean_dec(x_8); +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_12 = lean_uint64_to_nat(x_11); x_13 = l_Nat_repr(x_12); -x_14 = l_Lean_Widget_getWidgetSource___lambda__2___closed__1; +x_14 = l_Lean_Widget_getWidgetSource___closed__1; x_15 = lean_string_append(x_14, x_13); lean_dec(x_13); x_16 = l_Lean_Widget_instInhabitedWidgetSource___closed__1; @@ -4674,112 +4820,19 @@ x_18 = 3; x_19 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_19, 0, x_17); lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); -x_20 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_6); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_11, 0); -lean_inc(x_22); -lean_dec(x_11); -x_23 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_getUserWidgetDefinitionUnsafe(x_22, x_4, x_5, x_6); -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; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_23, 0, x_27); -return x_23; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_23, 0); -x_29 = lean_ctor_get(x_23, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_23); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_29); -return x_32; -} -} -else -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_23); -if (x_33 == 0) -{ -return x_23; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_23, 0); -x_35 = lean_ctor_get(x_23, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_23); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} -} -static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__1___boxed), 4, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__2___boxed), 6, 1); -lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Widget_getWidgetSource___lambda__3___closed__1; -x_7 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__2___rarg), 6, 2); -lean_closure_set(x_7, 0, x_6); -lean_closure_set(x_7, 1, x_5); -x_8 = l_Lean_Server_RequestM_runCoreM___rarg(x_2, x_7, x_3, x_4); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource(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 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__3), 4, 1); -lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg(x_4, x_5, x_2, x_3); -return x_6; +lean_inc(x_19); +x_20 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__1___boxed), 3, 1); +lean_closure_set(x_20, 0, x_19); +x_21 = lean_box_uint64(x_11); +x_22 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__2___boxed), 3, 2); +lean_closure_set(x_22, 0, x_10); +lean_closure_set(x_22, 1, x_21); +x_23 = lean_box_uint64(x_11); +x_24 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__5___boxed), 5, 2); +lean_closure_set(x_24, 0, x_23); +lean_closure_set(x_24, 1, x_19); +x_25 = l_Lean_Server_RequestM_withWaitFindSnap___rarg(x_5, x_22, x_20, x_24, x_2, x_6); +return x_25; } } LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1___boxed(lean_object* x_1, lean_object* x_2) { @@ -4792,25 +4845,56 @@ x_4 = l_Std_RBNode_find___at_Lean_Widget_getWidgetSource___spec__1(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Widget_getWidgetSource___lambda__1(x_1, x_2, x_3, x_4); +lean_object* x_4; +x_4 = l_Lean_Widget_getWidgetSource___lambda__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint64_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_5 = l_Lean_Widget_getWidgetSource___lambda__2(x_1, x_4, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___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_Lean_Widget_getWidgetSource___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Widget_getWidgetSource___lambda__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___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_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l_Lean_Widget_getWidgetSource___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); +uint64_t x_6; lean_object* x_7; +x_6 = lean_unbox_uint64(x_1); lean_dec(x_1); +x_7 = l_Lean_Widget_getWidgetSource___lambda__5(x_6, x_2, x_3, x_4, x_5); return x_7; } } @@ -5063,7 +5147,7 @@ lean_dec(x_1); return x_6; } } -static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1() { +static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1() { _start: { lean_object* x_1; @@ -5071,7 +5155,7 @@ x_1 = lean_mk_string_from_bytes("props", 5); return x_1; } } -static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2() { +static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2() { _start: { lean_object* x_1; @@ -5079,7 +5163,7 @@ x_1 = lean_mk_string_from_bytes("range", 5); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -5126,14 +5210,14 @@ lean_ctor_set(x_22, 1, x_20); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_11); -x_24 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1; +x_24 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1; x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_3); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_11); -x_27 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2; +x_27 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2; x_28 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1068____spec__1(x_27, x_4); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); @@ -5159,7 +5243,7 @@ static lean_object* _init_l_Lean_Widget_instToJsonUserWidgetInstance___closed__1 _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083_), 1, 0); return x_1; } } @@ -5171,7 +5255,7 @@ x_1 = l_Lean_Widget_instToJsonUserWidgetInstance___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1107_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1149_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -5263,12 +5347,12 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean x_19 = lean_ctor_get(x_15, 0); lean_inc(x_19); lean_dec(x_15); -x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1; +x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1; x_21 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_55____spec__1(x_1, x_20); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); lean_dec(x_21); -x_23 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2; +x_23 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2; x_24 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1123____spec__1(x_1, x_23); lean_dec(x_1); if (lean_obj_tag(x_24) == 0) @@ -5345,7 +5429,7 @@ static lean_object* _init_l_Lean_Widget_instFromJsonUserWidgetInstance___closed_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1107_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1149_), 1, 0); return x_1; } } @@ -5357,7 +5441,7 @@ x_1 = l_Lean_Widget_instFromJsonUserWidgetInstance___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5372,7 +5456,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041_(x_5); +x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083_(x_5); x_9 = 1; x_10 = lean_usize_add(x_2, x_9); x_11 = lean_array_uset(x_7, x_2, x_8); @@ -5382,7 +5466,7 @@ goto _start; } } } -static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1() { +static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1() { _start: { lean_object* x_1; @@ -5390,7 +5474,7 @@ x_1 = lean_mk_string_from_bytes("widgets", 7); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273_(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t 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; @@ -5398,10 +5482,10 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); -x_7 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1; +x_7 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); @@ -5417,7 +5501,7 @@ x_13 = l_Lean_Json_mkObj(x_12); return x_13; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1___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; @@ -5425,7 +5509,7 @@ 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___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____spec__1(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____spec__1(x_4, x_5, x_3); return x_6; } } @@ -5433,7 +5517,7 @@ static lean_object* _init_l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1 _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273_), 1, 0); return x_1; } } @@ -5445,7 +5529,7 @@ x_1 = l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5463,7 +5547,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 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 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1107_(x_6); +x_9 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1149_(x_6); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; @@ -5500,7 +5584,7 @@ goto _start; } } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1() { _start: { lean_object* x_1; @@ -5508,7 +5592,7 @@ x_1 = lean_mk_string_from_bytes("expected JSON array, got '", 26); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2() { _start: { lean_object* x_1; @@ -5516,7 +5600,7 @@ x_1 = lean_mk_string_from_bytes("'", 1); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -5533,7 +5617,7 @@ x_5 = lean_array_get_size(x_4); x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; -x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2(x_6, x_7, x_4); +x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2(x_6, x_7, x_4); return x_8; } else @@ -5541,10 +5625,10 @@ else lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_9 = lean_unsigned_to_nat(80u); x_10 = l_Lean_Json_pretty(x_3, x_9); -x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1; x_12 = lean_string_append(x_11, x_10); lean_dec(x_10); -x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2; +x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2; x_14 = lean_string_append(x_12, x_13); x_15 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_15, 0, x_14); @@ -5552,12 +5636,12 @@ return x_15; } } } -LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1(x_1, x_2); +x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; @@ -5598,7 +5682,7 @@ return x_9; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2___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; @@ -5606,7 +5690,7 @@ 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___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__2(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__2(x_4, x_5, x_3); return x_6; } } @@ -5614,7 +5698,7 @@ static lean_object* _init_l_Lean_Widget_instFromJsonGetWidgetsResponse___closed_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302_), 1, 0); return x_1; } } @@ -5832,7 +5916,17 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT uint8_t l_Lean_Widget_getWidgets___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_Server_Snapshots_Snapshot_endPos(x_2); +x_4 = lean_nat_dec_le(x_1, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; @@ -5896,10 +5990,29 @@ return x_23; } } } +static lean_object* _init_l_Lean_Widget_getWidgets___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Widget_getWidgets___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Widget_getWidgets___closed__1; +x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg___boxed), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets(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_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 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); @@ -5908,17 +6021,19 @@ lean_inc(x_6); lean_dec(x_4); x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); -lean_dec(x_5); x_8 = lean_ctor_get(x_7, 2); lean_inc(x_8); lean_dec(x_7); -lean_inc(x_1); x_9 = l_Lean_FileMap_lspPosToUtf8Pos(x_8, x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__1___boxed), 5, 2); -lean_closure_set(x_10, 0, x_8); -lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Server_RequestM_withWaitFindSnapAtPos___rarg(x_1, x_10, x_2, x_6); -return x_11; +lean_inc(x_9); +x_10 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__1___boxed), 2, 1); +lean_closure_set(x_10, 0, x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__2___boxed), 5, 2); +lean_closure_set(x_11, 0, x_8); +lean_closure_set(x_11, 1, x_9); +x_12 = l_Lean_Widget_getWidgets___closed__2; +x_13 = l_Lean_Server_RequestM_withWaitFindSnap___rarg(x_5, x_10, x_12, x_11, x_2, x_6); +return x_13; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___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) { @@ -5935,11 +6050,22 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Widget_getWidgets___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Widget_getWidgets___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Widget_getWidgets___lambda__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } @@ -6552,10 +6678,10 @@ l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1 = _init_l_Lean_Widge lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1); l_Lean_Widget_instFromJsonGetWidgetSourceParams = _init_l_Lean_Widget_instFromJsonGetWidgetSourceParams(); lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetSourceParams); -l_Lean_Widget_getWidgetSource___lambda__2___closed__1 = _init_l_Lean_Widget_getWidgetSource___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__2___closed__1); -l_Lean_Widget_getWidgetSource___lambda__3___closed__1 = _init_l_Lean_Widget_getWidgetSource___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__3___closed__1); +l_Lean_Widget_getWidgetSource___lambda__5___closed__1 = _init_l_Lean_Widget_getWidgetSource___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__5___closed__1); +l_Lean_Widget_getWidgetSource___closed__1 = _init_l_Lean_Widget_getWidgetSource___closed__1(); +lean_mark_persistent(l_Lean_Widget_getWidgetSource___closed__1); l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__1(); lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__1); l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgetSource___rpc__wrapped___spec__1___closed__2(); @@ -6568,10 +6694,10 @@ l_Lean_Widget_getWidgetSource___rpc__wrapped___closed__3 = _init_l_Lean_Widget_g lean_mark_persistent(l_Lean_Widget_getWidgetSource___rpc__wrapped___closed__3); l_Lean_Widget_getWidgetSource___rpc__wrapped = _init_l_Lean_Widget_getWidgetSource___rpc__wrapped(); lean_mark_persistent(l_Lean_Widget_getWidgetSource___rpc__wrapped); -l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1(); -lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__1); -l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2(); -lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1041____closed__2); +l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1(); +lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__1); +l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2(); +lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetInstance____x40_Lean_Widget_UserWidget___hyg_1083____closed__2); l_Lean_Widget_instToJsonUserWidgetInstance___closed__1 = _init_l_Lean_Widget_instToJsonUserWidgetInstance___closed__1(); lean_mark_persistent(l_Lean_Widget_instToJsonUserWidgetInstance___closed__1); l_Lean_Widget_instToJsonUserWidgetInstance = _init_l_Lean_Widget_instToJsonUserWidgetInstance(); @@ -6580,22 +6706,26 @@ l_Lean_Widget_instFromJsonUserWidgetInstance___closed__1 = _init_l_Lean_Widget_i lean_mark_persistent(l_Lean_Widget_instFromJsonUserWidgetInstance___closed__1); l_Lean_Widget_instFromJsonUserWidgetInstance = _init_l_Lean_Widget_instFromJsonUserWidgetInstance(); lean_mark_persistent(l_Lean_Widget_instFromJsonUserWidgetInstance); -l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1(); -lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1231____closed__1); +l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1(); +lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1273____closed__1); l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1 = _init_l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1(); lean_mark_persistent(l_Lean_Widget_instToJsonGetWidgetsResponse___closed__1); l_Lean_Widget_instToJsonGetWidgetsResponse = _init_l_Lean_Widget_instToJsonGetWidgetsResponse(); lean_mark_persistent(l_Lean_Widget_instToJsonGetWidgetsResponse); -l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__1); -l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1260____spec__1___closed__2); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__1); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetsResponse____x40_Lean_Widget_UserWidget___hyg_1302____spec__1___closed__2); l_Lean_Widget_instFromJsonGetWidgetsResponse___closed__1 = _init_l_Lean_Widget_instFromJsonGetWidgetsResponse___closed__1(); lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetsResponse___closed__1); l_Lean_Widget_instFromJsonGetWidgetsResponse = _init_l_Lean_Widget_instFromJsonGetWidgetsResponse(); lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetsResponse); l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__1___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__1___closed__1); +l_Lean_Widget_getWidgets___closed__1 = _init_l_Lean_Widget_getWidgets___closed__1(); +lean_mark_persistent(l_Lean_Widget_getWidgets___closed__1); +l_Lean_Widget_getWidgets___closed__2 = _init_l_Lean_Widget_getWidgets___closed__2(); +lean_mark_persistent(l_Lean_Widget_getWidgets___closed__2); l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__1(); lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__1); l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_getWidgets___rpc__wrapped___spec__1___closed__2();