diff --git a/stage0/src/Lean/Data/Lsp/Extra.lean b/stage0/src/Lean/Data/Lsp/Extra.lean index ec240c916b..0e5fe053d3 100644 --- a/stage0/src/Lean/Data/Lsp/Extra.lean +++ b/stage0/src/Lean/Data/Lsp/Extra.lean @@ -34,4 +34,11 @@ instance : FromJson WaitForDiagnostics := instance : ToJson WaitForDiagnostics := ⟨fun o => mkObj []⟩ +structure PlainGoalParams extends TextDocumentPositionParams + deriving FromJson, ToJson + +structure PlainGoal where + rendered : String + deriving FromJson, ToJson + end Lean.Lsp diff --git a/stage0/src/Lean/Data/Lsp/InitShutdown.lean b/stage0/src/Lean/Data/Lsp/InitShutdown.lean index cb63889c9c..bc1a4f5323 100644 --- a/stage0/src/Lean/Data/Lsp/InitShutdown.lean +++ b/stage0/src/Lean/Data/Lsp/InitShutdown.lean @@ -39,13 +39,20 @@ instance Trace.hasToJson : ToJson Trace := | Trace.messages => "messages" | Trace.verbose => "verbose"⟩ +/-- Lean-specific initialization options. -/ +structure InitializationOptions where + /-- Time (in milliseconds) which must pass since latest edit until elaboration begins. Lower + values may make editors feel faster at the cost of higher CPU usage. Defaults to 200ms. -/ + editDelay? : Option Nat + deriving ToJson, FromJson + structure InitializeParams where processId? : Option Int := none clientInfo? : Option ClientInfo := none /- We don't support the deprecated rootPath (rootPath? : Option String) -/ rootUri? : Option String := none - initializationOptions? : Option Json := none + initializationOptions? : Option InitializationOptions := none capabilities : ClientCapabilities /- If omitted, we default to off. -/ trace : Trace := Trace.off @@ -63,7 +70,7 @@ instance : FromJson InitializeParams := ⟨fun j => do let processId? := j.getObjValAs? Int "processId" let clientInfo? := j.getObjValAs? ClientInfo "clientInfo" let rootUri? := j.getObjValAs? String "rootUri" - let initializationOptions? := j.getObjVal? "initializationOptions" + let initializationOptions? := j.getObjValAs? InitializationOptions "initializationOptions" let capabilities ← j.getObjValAs? ClientCapabilities "capabilities" let trace := (j.getObjValAs? Trace "trace").getD Trace.off let workspaceFolders? := j.getObjValAs? (Array WorkspaceFolder) "workspaceFolders" diff --git a/stage0/src/Lean/Elab/InfoTree.lean b/stage0/src/Lean/Elab/InfoTree.lean index a7901c8903..d6e0357fa7 100644 --- a/stage0/src/Lean/Elab/InfoTree.lean +++ b/stage0/src/Lean/Elab/InfoTree.lean @@ -137,7 +137,7 @@ def TacticInfo.format (cinfo : ContextInfo) (info : TacticInfo) : IO Format := d let cinfoA := { cinfo with mctx := info.mctxAfter } let goalsBefore ← cinfoB.ppGoals info.goalsBefore let goalsAfter ← cinfoA.ppGoals info.goalsAfter - return f!"Tactic\nbefore {goalsBefore}\nafter {goalsAfter}" + return f!"Tactic @ {formatStxRange cinfo info.stx}\nbefore {goalsBefore}\nafter {goalsAfter}" def MacroExpansionInfo.format (cinfo : ContextInfo) (info : MacroExpansionInfo) : IO Format := do let before ← cinfo.ppSyntax info.lctx info.before diff --git a/stage0/src/Lean/Server/FileSource.lean b/stage0/src/Lean/Server/FileSource.lean index 6b16a61a78..379f0f924c 100644 --- a/stage0/src/Lean/Server/FileSource.lean +++ b/stage0/src/Lean/Server/FileSource.lean @@ -58,5 +58,8 @@ instance WaitForDiagnosticsParams.hasFileSource : FileSource WaitForDiagnosticsP instance DocumentSymbolParams.hasFileSource : FileSource DocumentSymbolParams := ⟨fun p => fileSource p.textDocument⟩ +instance PlainGoalParams.hasFileSource : FileSource PlainGoalParams := + ⟨fun p => fileSource p.textDocument⟩ + end Lsp end Lean diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index 537e412728..b15eda79ae 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -368,7 +368,7 @@ section RequestHandling Requests need to manually check for whether their task has been cancelled, so that they can reply with a RequestCancelled error. -/ open Elab in - partial def handleHover (id : RequestID) (p : HoverParams) + partial def handleHover (p : HoverParams) : ServerM (Task (Except IO.Error (Except RequestError (Option Hover)))) := do let st ← read let doc ← st.docRef.get @@ -383,23 +383,14 @@ section RequestHandling withWaitFindSnap doc (fun s => s.endPos > hoverPos) (notFoundX := pure none) fun snap => do for t in snap.toCmdState.infoState.trees do - if let some (ci, i) := t.hoverableTermAt? hoverPos then - let tFmt ← ci.runMetaM i.lctx do - return f!"{← Meta.ppExpr i.expr} : {← Meta.ppExpr (← Meta.inferType i.expr)}" - let mut hoverFmt := f!"```lean -{tFmt} -```" - if let some n := i.expr.constName? then - if let some doc ← ci.runMetaM i.lctx <| findDocString? n then - hoverFmt := f!"{hoverFmt}\n***\n{doc}" - - return some <| mkHover (toString hoverFmt) i.pos?.get! i.tailPos?.get! - pure () + if let some (ci, i) := t.hoverableInfoAt? hoverPos then + if let some hoverFmt ← i.fmtHover? ci then + return some <| mkHover (toString hoverFmt) i.pos?.get! i.tailPos?.get! return none open Elab in - partial def handleDefinition (goToType? : Bool) (id : RequestID) (p : TextDocumentPositionParams) + partial def handleDefinition (goToType? : Bool) (p : TextDocumentPositionParams) : ServerM (Task (Except IO.Error (Except RequestError (Array LocationLink)))) := do let st ← read let doc ← st.docRef.get @@ -408,7 +399,7 @@ section RequestHandling withWaitFindSnap doc (fun s => s.endPos > hoverPos) (notFoundX := pure #[]) fun snap => do for t in snap.toCmdState.infoState.trees do - if let some (ci, i) := t.hoverableTermAt? hoverPos then + if let some (ci, Info.ofTermInfo i) := t.hoverableInfoAt? hoverPos then let expr ← if goToType? then ci.runMetaM i.lctx <| Meta.inferType i.expr else i.expr if let some n := expr.constName? then let mod? ← ci.runMetaM i.lctx <| findModuleOf? n @@ -419,13 +410,13 @@ section RequestHandling | none => pure <| some doc.meta.uri let ranges? ← ci.runMetaM i.lctx <| findDeclarationRanges? n - if let (some ranges, some modUri) := (ranges?, modUri?) then let declRangeToLspRange (r : DeclarationRange) : Lsp.Range := { start := ⟨r.pos.line - 1, r.charUtf16⟩ «end» := ⟨r.endPos.line - 1, r.endCharUtf16⟩ } let ll : LocationLink := { - originSelectionRange? := some ⟨text.utf8PosToLspPos i.pos?.get!, text.utf8PosToLspPos i.tailPos?.get!⟩ + originSelectionRange? := some ⟨text.utf8PosToLspPos i.stx.getPos?.get!, + text.utf8PosToLspPos i.stx.getTailPos?.get!⟩ targetUri := modUri targetRange := declRangeToLspRange ranges.range targetSelectionRange := declRangeToLspRange ranges.selectionRange @@ -433,11 +424,36 @@ section RequestHandling return #[ll] return #[] + open Elab in + partial def handlePlainGoal (p : PlainGoalParams) + : ServerM (Task (Except IO.Error (Except RequestError (Option PlainGoal)))) := do + let st ← read + let doc ← st.docRef.get + let text := doc.meta.text + let hoverPos := text.lspPosToUtf8Pos p.position + withWaitFindSnap doc (fun s => s.endPos > hoverPos) + (notFoundX := return none) fun snap => do + for t in snap.toCmdState.infoState.trees do + if let some (ci, ti) := t.goalsAt? hoverPos then + let ci := { ci with mctx := ti.mctxAfter } + let md ← + if ti.goalsAfter.isEmpty then + "no goals" + else + let goals ← ci.runMetaM {} <| ti.goalsAfter.mapM Meta.ppGoal + let goals := goals.map fun goal => s!"```lean +{goal} +```" + String.intercalate "\n---\n" goals + return some { rendered := md } + + return none + def rangeOfSyntax (text : FileMap) (stx : Syntax) : Range := ⟨text.utf8PosToLspPos <| stx.getPos?.get!, text.utf8PosToLspPos <| stx.getTailPos?.get!⟩ - partial def handleDocumentSymbol (id : RequestID) (p : DocumentSymbolParams) : + partial def handleDocumentSymbol (p : DocumentSymbolParams) : ServerM (Task (Except IO.Error (Except RequestError DocumentSymbolResult))) := do let st ← read asTask do @@ -492,7 +508,7 @@ section RequestHandling children? := syms.toArray } :: syms', stxs'') - partial def handleWaitForDiagnostics (id : RequestID) (p : WaitForDiagnosticsParams) + partial def handleWaitForDiagnostics (p : WaitForDiagnosticsParams) : ServerM (Task (Except IO.Error (Except RequestError WaitForDiagnostics))) := do let st ← read let rec waitLoop : IO EditableDocument := do @@ -533,10 +549,10 @@ section MessageHandling def handleRequest (id : RequestID) (method : String) (params : Json) : ServerM Unit := do let handle := fun paramType [FromJson paramType] respType [ToJson respType] - (handler : RequestID → paramType → RequestM respType) => do + (handler : paramType → RequestM respType) => do let st ← read let p ← parseParams paramType params - let t ← handler id p + let t ← handler p let t₁ ← (IO.mapTask · t) fun | Except.ok (Except.ok resp) => st.hOut.writeLspResponse ⟨id, resp⟩ @@ -552,6 +568,7 @@ section MessageHandling | "textDocument/definition" => handle TextDocumentPositionParams (Array LocationLink) <| handleDefinition (goToType? := false) | "textDocument/typeDefinition" => handle TextDocumentPositionParams (Array LocationLink) <| handleDefinition (goToType? := true) | "textDocument/documentSymbol" => handle DocumentSymbolParams DocumentSymbolResult handleDocumentSymbol + | "$/lean/plainGoal" => handle PlainGoalParams (Option PlainGoal) handlePlainGoal | _ => throwServerError s!"Got unsupported request: {method}" end MessageHandling diff --git a/stage0/src/Lean/Server/InfoUtils.lean b/stage0/src/Lean/Server/InfoUtils.lean index d01201fc63..101a835b7d 100644 --- a/stage0/src/Lean/Server/InfoUtils.lean +++ b/stage0/src/Lean/Server/InfoUtils.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +import Lean.DocString import Lean.Elab.InfoTree import Lean.Util.Sorry @@ -22,7 +23,7 @@ partial def InfoTree.smallestNode? (p : Info → Bool) : InfoTree → Option Inf | _ => none /-- For every branch, find the deepest node in that branch matching `p` -and return all of them. Each result is wrapper in all outer `ContextInfo`s. -/ +and return all of them. Each result is wrapped in all outer `ContextInfo`s. -/ partial def InfoTree.smallestNodes (p : Info → Bool) : InfoTree → List InfoTree | context i t => t.smallestNodes p |>.map (context i) | n@(node i cs) => @@ -34,46 +35,105 @@ partial def InfoTree.smallestNodes (p : Info → Bool) : InfoTree → List InfoT else [] | _ => [] -def TermInfo.pos? (i : TermInfo) : Option String.Pos := +def Info.stx : Info → Syntax + | ofTacticInfo i => i.stx + | ofTermInfo i => i.stx + | ofMacroExpansionInfo i => i.before + | ofFieldInfo i => i.stx + +def Info.pos? (i : Info) : Option String.Pos := i.stx.getPos? (originalOnly := true) -def TermInfo.tailPos? (i : TermInfo) : Option String.Pos := +def Info.tailPos? (i : Info) : Option String.Pos := i.stx.getTailPos? (originalOnly := true) -def TacticInfo.pos? (i : TacticInfo) : Option String.Pos := - i.stx.getPos? (originalOnly := true) +def InfoTree.smallestInfo? (p : Info → Bool) (t : InfoTree) : Option (ContextInfo × Info) := + let ts := t.smallestNodes p -def TacticInfo.tailPos? (i : TacticInfo) : Option String.Pos := - i.stx.getTailPos? (originalOnly := true) - -/-- Find a `TermInfo`, if any, which should be shown on hover/cursor at position `hoverPos`. -/ -partial def InfoTree.hoverableTermAt? (t : InfoTree) (hoverPos : String.Pos) : Option (ContextInfo × TermInfo) := - let ts := t.smallestNodes fun - | Info.ofTermInfo i => - !i.expr.isSyntheticSorry && - -- TODO: see if we can get rid of this - #[identKind, - strLitKind, - charLitKind, - numLitKind, - scientificLitKind, - nameLitKind, - fieldIdxKind, - interpolatedStrLitKind, - interpolatedStrKind - ].contains i.stx.getKind && - match i.pos?, i.tailPos? with - | some pos, some tailPos => pos ≤ hoverPos ∧ hoverPos < tailPos - | _, _ => false - | _ => false - - let terms : List (Nat × ContextInfo × TermInfo) := ts.filterMap (fun - | context ci (node (Info.ofTermInfo i) _) => + let infos : List (Nat × ContextInfo × Info) := ts.filterMap fun + | context ci (node i _) => let diff := i.tailPos?.get! - i.pos?.get! some (diff, ci, i) | _ => none - ) - terms.toArray.getMax? (fun a b => a.1 > b.1) |>.map fun (_, ci, i) => (ci, i) + infos.toArray.getMax? (fun a b => a.1 > b.1) |>.map fun (_, ci, i) => (ci, i) + +/-- Find an info node, if any, which should be shown on hover/cursor at position `hoverPos`. -/ +partial def InfoTree.hoverableInfoAt? (t : InfoTree) (hoverPos : String.Pos) : Option (ContextInfo × Info) := + t.smallestInfo? fun i => + if let (some pos, some tailPos) := (i.pos?, i.tailPos?) then + if pos ≤ hoverPos ∧ hoverPos < tailPos then + match i with + | Info.ofTermInfo ti => + !ti.expr.isSyntheticSorry && + -- TODO: see if we can get rid of this + #[identKind, + strLitKind, + charLitKind, + numLitKind, + scientificLitKind, + nameLitKind, + fieldIdxKind, + interpolatedStrLitKind, + interpolatedStrKind + ].contains i.stx.getKind + | Info.ofFieldInfo _ => true + | _ => false + else false + else false + +/-- Construct a hover popup, if any, from an info node in a context.-/ +def Info.fmtHover? (ci : ContextInfo) (i : Info) : IO (Option Format) := do + let lctx ← match i with + | Info.ofTermInfo i => i.lctx + | Info.ofFieldInfo i => i.lctx + | _ => return none + + ci.runMetaM lctx do + match i with + | Info.ofTermInfo ti => + let tp ← Meta.inferType ti.expr + let eFmt ← Meta.ppExpr ti.expr + let tpFmt ← Meta.ppExpr tp + let hoverFmt := f!"```lean +{eFmt} : {tpFmt} +```" + if let some n := ti.expr.constName? then + if let some doc ← findDocString? n then + return f!"{hoverFmt}\n***\n{doc}" + return hoverFmt + + | Info.ofFieldInfo fi => + let tp ← Meta.inferType fi.val + let tpFmt ← Meta.ppExpr tp + return f!"```lean +{fi.name} : {tpFmt} +```" + + | _ => return none + +/-- Return a flattened list of smallest-in-span tactic info nodes, sorted by position. -/ +partial def InfoTree.smallestTacticStates (t : InfoTree) : Array (Nat × ContextInfo × TacticInfo) := + let ts := tacticLeaves t + let ts := ts.filterMap fun + | context ci (node i@(Info.ofTacticInfo ti) _) => some (i.pos?.get!, ci, ti) + | _ => none + ts.toArray.qsort fun a b => a.1 < b.1 + + where tacticLeaves (t : InfoTree) : List InfoTree := + t.smallestNodes fun + | i@(Info.ofTacticInfo _) => i.pos?.isSome ∧ i.tailPos?.isSome + | _ => false + +partial def InfoTree.goalsAt? (t : InfoTree) (hoverPos : String.Pos) : Option (ContextInfo × TacticInfo) := + let ts := t.smallestTacticStates + -- The extent of a tactic state is (pos, pos of next tactic) + let extents := ts.mapIdx fun i (p, _, ti) => + (p, if h : (i.val+1) < ts.size then + ts.get ⟨i.val+1, h⟩ |>.1 + else + ti.stx.getTailPos?.get!) + let idx? := extents.findIdx? fun (p, tp) => p ≤ hoverPos ∧ hoverPos < tp + idx?.map fun idx => ts.get! idx |> fun (_, ci, ti) => (ci, ti) end Lean.Elab diff --git a/stage0/src/Lean/Server/Watchdog.lean b/stage0/src/Lean/Server/Watchdog.lean index 8f049b9973..fe8fa3f8c0 100644 --- a/stage0/src/Lean/Server/Watchdog.lean +++ b/stage0/src/Lean/Server/Watchdog.lean @@ -181,10 +181,12 @@ section ServerM hIn : FS.Stream hOut : FS.Stream hLog : FS.Stream + /-- Command line arguments. -/ args : List String fileWorkersRef : IO.Ref FileWorkerMap - -- We store these to pass them to workers. + /-- We store these to pass them to workers. -/ initParams : InitializeParams + editDelay : Nat workerPath : String abbrev ServerM := ReaderT ServerContext IO @@ -385,6 +387,7 @@ section MessageHandling | "textDocument/definition" => handle DefinitionParams | "textDocument/typeDefinition" => handle TypeDefinitionParams | "textDocument/documentSymbol" => handle DocumentSymbolParams + | "$/lean/plainGoal" => handle PlainGoalParams | _ => (←read).hOut.writeLspResponseError { id := id @@ -449,8 +452,8 @@ section MainLoop let p ← parseParams DidChangeTextDocumentParams (toJson params) let fw ← findFileWorker p.textDocument.uri let now ← monoMsNow - /- We wait 500ms since last edit before applying the changes. -/ - let applyTime := now + 500 + /- We wait `editDelay`ms since last edit before applying the changes. -/ + let applyTime := now + st.editDelay let startingGroup? ← fw.groupedEditsRef.modifyGet fun | some ge => (false, some { ge with applyTime := applyTime params.textDocument := p.textDocument @@ -538,6 +541,7 @@ def initAndRunWatchdog (args : List String) (i o e : FS.Stream) : IO Unit := do args := args fileWorkersRef := fileWorkersRef initParams := initRequest.param + editDelay := initRequest.param.initializationOptions? |>.bind InitializationOptions.editDelay? |>.getD 200 workerPath := workerPath : ServerContext } diff --git a/stage0/stdlib/Lean/Data/Lsp/Extra.c b/stage0/stdlib/Lean/Data/Lsp/Extra.c index 1dc47f7c66..5190397d45 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Extra.c +++ b/stage0/stdlib/Lean/Data/Lsp/Extra.c @@ -14,25 +14,47 @@ extern "C" { #endif extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_976____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_387____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1299____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonPlainGoal; +lean_object* l_Lean_Lsp_instToJsonPlainGoalParams; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_533____spec__1(lean_object*, lean_object*); lean_object* l_List_join___rarg(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190_(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_8_(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_42_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109____boxed(lean_object*); lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParams; lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonPlainGoal___closed__1; +lean_object* l_Lean_Lsp_instToJsonPlainGoalParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_153_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_220_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1; lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParams___closed__1; lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics___boxed(lean_object*); lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_1053____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_915_(lean_object*); extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_499____closed__1; lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics(lean_object*); +lean_object* l_Lean_Lsp_instToJsonPlainGoal___closed__1; +lean_object* l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1; lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___boxed(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParams___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1265____closed__1; +lean_object* l_Lean_Lsp_instToJsonPlainGoal; lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParams; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_42____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_185_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonPlainGoalParams; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_219____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_8_(lean_object* x_1) { _start: { @@ -225,6 +247,246 @@ lean_dec(x_1); return x_2; } } +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_1053____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1299____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1265____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_387____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +lean_dec(x_7); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_5); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonPlainGoalParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_153_(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; lean_object* x_15; lean_object* x_16; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_915_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_1053____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_185_(x_8); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1265____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_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_6); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_6); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_List_join___rarg(x_14); +x_16 = l_Lean_Json_mkObj(x_15); +return x_16; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPlainGoalParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_153_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPlainGoalParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonPlainGoalParams___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rendered"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonPlainGoal___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonPlainGoal() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonPlainGoal___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_220_(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; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = l_List_join___rarg(x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPlainGoal___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_220_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPlainGoal() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonPlainGoal___closed__1; +return x_1; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Data_Json(lean_object*); lean_object* initialize_Lean_Data_JsonRpc(lean_object*); @@ -258,6 +520,24 @@ l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1 = _init_l_Lean_Lsp_instFro lean_mark_persistent(l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1); l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1 = _init_l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1); +l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1 = _init_l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPlainGoalParams___closed__1); +l_Lean_Lsp_instFromJsonPlainGoalParams = _init_l_Lean_Lsp_instFromJsonPlainGoalParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPlainGoalParams); +l_Lean_Lsp_instToJsonPlainGoalParams___closed__1 = _init_l_Lean_Lsp_instToJsonPlainGoalParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPlainGoalParams___closed__1); +l_Lean_Lsp_instToJsonPlainGoalParams = _init_l_Lean_Lsp_instToJsonPlainGoalParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPlainGoalParams); +l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1 = _init_l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_190____closed__1); +l_Lean_Lsp_instFromJsonPlainGoal___closed__1 = _init_l_Lean_Lsp_instFromJsonPlainGoal___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPlainGoal___closed__1); +l_Lean_Lsp_instFromJsonPlainGoal = _init_l_Lean_Lsp_instFromJsonPlainGoal(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPlainGoal); +l_Lean_Lsp_instToJsonPlainGoal___closed__1 = _init_l_Lean_Lsp_instToJsonPlainGoal___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPlainGoal___closed__1); +l_Lean_Lsp_instToJsonPlainGoal = _init_l_Lean_Lsp_instToJsonPlainGoal(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPlainGoal); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c b/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c index 76b3ad4680..7b5477f14e 100644 --- a/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c +++ b/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c @@ -13,134 +13,145 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7; lean_object* l_Lean_Lsp_instFromJsonTrace___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11; lean_object* l_Lean_Lsp_instFromJsonTrace___closed__3; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424_(lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____boxed(lean_object*); extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10; lean_object* l_Lean_Lsp_instToJsonInitializeResult___closed__1; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Lsp_instFromJsonTrace___boxed(lean_object*); -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonClientInfo; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; lean_object* l_Lean_Lsp_instFromJsonTrace___closed__2; extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_976____closed__1; lean_object* l_Lean_Lsp_instFromJsonInitializeParams(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonInitializationOptions___closed__1; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Lsp_InitializeResult_serverInfo_x3f___default; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400_(lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___closed__2; lean_object* l_Lean_Lsp_InitializeParams_processId_x3f___default; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167____boxed(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(size_t, size_t, lean_object*); +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonServerInfo; lean_object* l_Lean_Json_getStr_x3f(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__2; lean_object* l_Lean_Lsp_instToJsonInitializedParams___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5(size_t, size_t, lean_object*); +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__4(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson(uint8_t); -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_join___rarg(lean_object*); uint8_t l_USize_decLt(size_t, size_t); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; lean_object* l_Lean_Lsp_instFromJsonInitializedParams(lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6; lean_object* l_Lean_Lsp_instFromJsonServerInfo___closed__1; lean_object* l_Lean_Lsp_instToJsonInitializeParams; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializeParams___boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializedParams___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonInitializationOptions; lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1354____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializedParams___closed__1; lean_object* l_Lean_Lsp_InitializeParams_clientInfo_x3f___default; lean_object* l_Lean_Lsp_Trace_hasToJson_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonServerInfo___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13; +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(lean_object*); uint8_t l_Lean_Lsp_InitializeParams_trace___default; -lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1382____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_976____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1005____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_getInt_x3f(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_40_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTrace_match__1(lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6; lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11_(lean_object*); lean_object* l_Lean_Lsp_ServerInfo_version_x3f___default; -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonInitializedParams(lean_object*); -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonInitializationOptions; lean_object* l_Lean_Lsp_instFromJsonInitializeResult; lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_108_(lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316_(lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11____boxed(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(size_t, size_t, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; lean_object* l_Lean_Lsp_Trace_hasToJson_match__1(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167_(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonClientInfo___closed__1; -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12; +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4(size_t, size_t, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonInitializeResult; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7; lean_object* l_Lean_Lsp_instToJsonClientInfo; lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_40____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTrace(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed(lean_object*); extern lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializeResult___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonInitializeParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1; lean_object* l_Lean_Lsp_instFromJsonServerInfo; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_43_(lean_object*); lean_object* l_Lean_Lsp_InitializeParams_rootUri_x3f___default; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5; lean_object* l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; +lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15; lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__3; lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_43_(lean_object*); extern lean_object* l_Lean_Lsp_instFromJsonClientCapabilities___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____boxed(lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165_(lean_object*); -lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonInitializationOptions___closed__1; lean_object* l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_ClientInfo_version_x3f___default; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316____boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonClientInfo___closed__1; lean_object* l_Lean_Lsp_Trace_hasToJson___closed__3; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12; uint8_t lean_string_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); static lean_object* _init_l_Lean_Lsp_ClientInfo_version_x3f___default() { _start: @@ -616,6 +627,103 @@ x_3 = l_Lean_Lsp_Trace_hasToJson(x_2); return x_3; } } +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("editDelay"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147_(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; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1; +x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_976____spec__1(x_2, x_1); +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +x_6 = l_List_join___rarg(x_5); +x_7 = l_Lean_Json_mkObj(x_6); +return x_7; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializationOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonInitializationOptions___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1005____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonInitializationOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonInitializationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonInitializationOptions___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_Lsp_InitializeParams_processId_x3f___default() { _start: { @@ -664,7 +772,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -696,7 +804,7 @@ return x_10; } } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -722,7 +830,35 @@ return x_8; } } } -lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +lean_dec(x_1); +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; lean_object* x_8; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147_(x_4); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -752,7 +888,7 @@ goto _start; } } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -773,7 +909,7 @@ x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4(x_6, x_7, x_8); +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5(x_6, x_7, x_8); x_10 = x_9; x_11 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_11, 0, x_10); @@ -788,7 +924,7 @@ return x_14; } } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1() { _start: { lean_object* x_1; @@ -796,7 +932,7 @@ x_1 = lean_mk_string("processId"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2() { _start: { lean_object* x_1; @@ -804,7 +940,7 @@ x_1 = lean_mk_string("clientInfo"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3() { _start: { lean_object* x_1; @@ -812,7 +948,7 @@ x_1 = lean_mk_string("rootUri"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4() { _start: { lean_object* x_1; @@ -820,7 +956,7 @@ x_1 = lean_mk_string("initializationOptions"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5() { _start: { lean_object* x_1; @@ -828,11 +964,11 @@ x_1 = lean_mk_string("capabilities"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5; x_2 = l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -840,19 +976,19 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8() { _start: { lean_object* x_1; @@ -860,7 +996,7 @@ x_1 = lean_mk_string("workspaceFolders"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9() { _start: { lean_object* x_1; @@ -868,11 +1004,11 @@ x_1 = lean_mk_string("trace"); return x_1; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; x_2 = l_Lean_Lsp_Trace_hasToJson___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -880,23 +1016,23 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10; 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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; x_2 = l_Lean_Lsp_Trace_hasToJson___closed__2; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -904,23 +1040,23 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12; 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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; x_2 = l_Lean_Lsp_Trace_hasToJson___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -928,49 +1064,48 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165_(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219_(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; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; -x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1(x_3, x_2); +x_3 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; +x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); -x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; -x_7 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2(x_6, x_5); +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; +x_7 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2(x_6, x_5); lean_dec(x_5); x_8 = lean_ctor_get(x_1, 2); lean_inc(x_8); -x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; +x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1354____spec__1(x_9, x_8); lean_dec(x_8); x_11 = lean_ctor_get(x_1, 3); lean_inc(x_11); -x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; -x_13 = l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(x_12, x_11); -lean_dec(x_11); +x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; +x_13 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__3(x_12, x_11); x_14 = lean_box(0); x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); x_16 = lean_ctor_get(x_1, 5); lean_inc(x_16); lean_dec(x_1); -x_17 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; -x_18 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__3(x_17, x_16); +x_17 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; +x_18 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__4(x_17, x_16); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_14); @@ -978,11 +1113,11 @@ switch (x_15) { case 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; -x_20 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11; +x_20 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11; x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7; +x_22 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7; x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -1005,11 +1140,11 @@ return x_29; case 1: { 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; -x_30 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13; +x_30 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_19); -x_32 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7; +x_32 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -1032,11 +1167,11 @@ return x_39; default: { 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; -x_40 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15; +x_40 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_19); -x_42 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7; +x_42 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -1059,25 +1194,25 @@ return x_49; } } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__1(x_1, x_2); +x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__2(x_1, x_2); +x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__2(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5___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; @@ -1085,7 +1220,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_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____spec__4(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____spec__5(x_4, x_5, x_3); return x_6; } } @@ -1093,7 +1228,7 @@ static lean_object* _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219_), 1, 0); return x_1; } } @@ -1128,12 +1263,22 @@ return x_4; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object* x_1, lean_object* x_2) { _start: { +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_167_(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ lean_object* x_3; x_3 = l_Lean_Lsp_instFromJsonClientCapabilities___closed__1; return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -1196,7 +1341,7 @@ return x_16; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1242,7 +1387,7 @@ goto _start; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -1258,7 +1403,7 @@ x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_6, x_7, x_8); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(x_6, x_7, x_8); x_10 = x_9; return x_10; } @@ -1275,18 +1420,18 @@ lean_object* l_Lean_Lsp_instFromJsonInitializeParams(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; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_1, x_2); -x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_1, x_4); -x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); -x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; -x_9 = l_Lean_Json_getObjVal_x3f(x_1, x_8); -x_10 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; -x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_1, x_10); -x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; -x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_12); +x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; +x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(x_1, x_8); +x_10 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; +x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_10); +x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; +x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_1, x_12); if (lean_obj_tag(x_11) == 0) { lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; @@ -1390,7 +1535,17 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7___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; @@ -1398,15 +1553,15 @@ 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_Lsp_instFromJsonInitializeParams___spec__6(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -1473,7 +1628,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316_(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(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; @@ -1503,11 +1658,11 @@ x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316____boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316_(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(x_1); lean_dec(x_1); return x_2; } @@ -1516,7 +1671,7 @@ static lean_object* _init_l_Lean_Lsp_instToJsonServerInfo___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed), 1, 0); return x_1; } } @@ -1528,7 +1683,7 @@ x_1 = l_Lean_Lsp_instToJsonServerInfo___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345_(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -1586,11 +1741,11 @@ return x_14; } } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345____boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345_(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400_(x_1); lean_dec(x_1); return x_2; } @@ -1599,7 +1754,7 @@ static lean_object* _init_l_Lean_Lsp_instFromJsonServerInfo___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400____boxed), 1, 0); return x_1; } } @@ -1619,7 +1774,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1633,7 +1788,7 @@ else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); -x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_316_(x_4); +x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); @@ -1645,7 +1800,7 @@ return x_8; } } } -static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1() { _start: { lean_object* x_1; @@ -1653,13 +1808,13 @@ x_1 = lean_mk_string("serverInfo"); return x_1; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395_(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450_(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 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_43_(x_2); -x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5; +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); @@ -1668,8 +1823,8 @@ x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = lean_ctor_get(x_1, 1); -x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1; -x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1(x_9, x_8); +x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1; +x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1(x_9, x_8); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_6); @@ -1681,20 +1836,20 @@ x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } -lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____spec__1(x_1, x_2); +x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395_(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450_(x_1); lean_dec(x_1); return x_2; } @@ -1703,7 +1858,7 @@ static lean_object* _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____boxed), 1, 0); return x_1; } } @@ -1715,7 +1870,7 @@ x_1 = l_Lean_Lsp_instToJsonInitializeResult___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -1725,7 +1880,7 @@ lean_dec(x_3); return x_4; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -1739,7 +1894,7 @@ return x_4; else { lean_object* x_5; -x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_345_(x_3); +x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_400_(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { @@ -1774,12 +1929,12 @@ return x_11; } } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424_(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5; -x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1792,8 +1947,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -1832,31 +1987,31 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____spec__2(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424_(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479_(x_1); lean_dec(x_1); return x_2; } @@ -1865,7 +2020,7 @@ static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_424____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_479____boxed), 1, 0); return x_1; } } @@ -1926,6 +2081,16 @@ l_Lean_Lsp_Trace_hasToJson___closed__2 = _init_l_Lean_Lsp_Trace_hasToJson___clos lean_mark_persistent(l_Lean_Lsp_Trace_hasToJson___closed__2); l_Lean_Lsp_Trace_hasToJson___closed__3 = _init_l_Lean_Lsp_Trace_hasToJson___closed__3(); lean_mark_persistent(l_Lean_Lsp_Trace_hasToJson___closed__3); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_147____closed__1); +l_Lean_Lsp_instToJsonInitializationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonInitializationOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializationOptions___closed__1); +l_Lean_Lsp_instToJsonInitializationOptions = _init_l_Lean_Lsp_instToJsonInitializationOptions(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializationOptions); +l_Lean_Lsp_instFromJsonInitializationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializationOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializationOptions___closed__1); +l_Lean_Lsp_instFromJsonInitializationOptions = _init_l_Lean_Lsp_instFromJsonInitializationOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializationOptions); l_Lean_Lsp_InitializeParams_processId_x3f___default = _init_l_Lean_Lsp_InitializeParams_processId_x3f___default(); lean_mark_persistent(l_Lean_Lsp_InitializeParams_processId_x3f___default); l_Lean_Lsp_InitializeParams_clientInfo_x3f___default = _init_l_Lean_Lsp_InitializeParams_clientInfo_x3f___default(); @@ -1937,36 +2102,36 @@ lean_mark_persistent(l_Lean_Lsp_InitializeParams_initializationOptions_x3f___def l_Lean_Lsp_InitializeParams_trace___default = _init_l_Lean_Lsp_InitializeParams_trace___default(); l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default = _init_l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default(); lean_mark_persistent(l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__5); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__6); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__7); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__10); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__11); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__12); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__13); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__14); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__15); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__5); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__6); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__7); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__10); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__11); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__12); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__13); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__14); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__15); l_Lean_Lsp_instToJsonInitializeParams___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeParams___closed__1); l_Lean_Lsp_instToJsonInitializeParams = _init_l_Lean_Lsp_instToJsonInitializeParams(); @@ -1985,8 +2150,8 @@ l_Lean_Lsp_instFromJsonServerInfo = _init_l_Lean_Lsp_instFromJsonServerInfo(); lean_mark_persistent(l_Lean_Lsp_instFromJsonServerInfo); l_Lean_Lsp_InitializeResult_serverInfo_x3f___default = _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default(); lean_mark_persistent(l_Lean_Lsp_InitializeResult_serverInfo_x3f___default); -l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1(); -lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395____closed__1); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450____closed__1); l_Lean_Lsp_instToJsonInitializeResult___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeResult___closed__1); l_Lean_Lsp_instToJsonInitializeResult = _init_l_Lean_Lsp_instToJsonInitializeResult(); diff --git a/stage0/stdlib/Lean/Elab/InfoTree.c b/stage0/stdlib/Lean/Elab/InfoTree.c index 8724e47abf..9eaf81f141 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree.c +++ b/stage0/stdlib/Lean/Elab/InfoTree.c @@ -121,6 +121,7 @@ lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__2(lean_object*, le lean_object* l_Lean_Elab_InfoTree_format_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3; +lean_object* l_Lean_Elab_TacticInfo_format___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_mctx___default; lean_object* l_Lean_Elab_withInfoHole___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_substitute___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -136,6 +137,7 @@ lean_object* l_Lean_Elab_TermInfo_format___lambda__1___boxed(lean_object*, lean_ lean_object* l_Lean_Elab_TermInfo_format___lambda__1___closed__1; lean_object* l_Lean_Elab_TacticInfo_format___closed__1; size_t l_Lean_Name_hash(lean_object*); +lean_object* l_Lean_Elab_TacticInfo_format___closed__6; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Meta_MetaM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Elab_assignInfoHoleId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,6 +201,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_substitute___spec__3 lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__2; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_ReaderT_instMonadReaderT___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_TacticInfo_format___closed__5; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedInfoTree; lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_InfoTree_substitute___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2576,7 +2579,7 @@ static lean_object* _init_l_Lean_Elab_TacticInfo_format___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Tactic\nbefore "); +x_1 = lean_mk_string("Tactic @ "); return x_1; } } @@ -2594,7 +2597,7 @@ static lean_object* _init_l_Lean_Elab_TacticInfo_format___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("\nafter "); +x_1 = lean_mk_string("\nbefore "); return x_1; } } @@ -2608,305 +2611,212 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l_Lean_Elab_TacticInfo_format___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nafter "); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_TacticInfo_format___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_TacticInfo_format___closed__5; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l_Lean_Elab_TacticInfo_format(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -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; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_ctor_get(x_1, 3); -x_8 = lean_ctor_get(x_1, 4); -x_9 = lean_ctor_get(x_1, 5); -x_10 = lean_ctor_get(x_1, 2); -lean_dec(x_10); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(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; lean_object* x_14; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 3); +x_7 = lean_ctor_get(x_1, 4); +x_8 = lean_ctor_get(x_1, 5); +x_9 = lean_ctor_get(x_2, 0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_ctor_set(x_1, 2, x_11); -x_12 = lean_ctor_get(x_2, 3); -lean_inc(x_12); -x_13 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_13, 0, x_5); -lean_ctor_set(x_13, 1, x_6); -lean_ctor_set(x_13, 2, x_12); -lean_ctor_set(x_13, 3, x_7); -lean_ctor_set(x_13, 4, x_8); -lean_ctor_set(x_13, 5, x_9); -x_14 = lean_ctor_get(x_2, 1); -lean_inc(x_14); -x_15 = l_Lean_Elab_ContextInfo_ppGoals(x_1, x_14, x_3); -lean_dec(x_1); -if (lean_obj_tag(x_15) == 0) +lean_inc(x_4); +x_10 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_5); +lean_ctor_set(x_10, 2, x_9); +lean_ctor_set(x_10, 3, x_6); +lean_ctor_set(x_10, 4, x_7); +lean_ctor_set(x_10, 5, x_8); +x_11 = lean_ctor_get(x_2, 3); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_12 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_12, 0, x_4); +lean_ctor_set(x_12, 1, x_5); +lean_ctor_set(x_12, 2, x_11); +lean_ctor_set(x_12, 3, x_6); +lean_ctor_set(x_12, 4, x_7); +lean_ctor_set(x_12, 5, x_8); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +x_14 = l_Lean_Elab_ContextInfo_ppGoals(x_10, x_13, x_3); +lean_dec(x_10); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* 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); -x_17 = lean_ctor_get(x_15, 1); +lean_dec(x_14); +x_17 = lean_ctor_get(x_2, 4); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_2, 4); -lean_inc(x_18); +x_18 = l_Lean_Elab_ContextInfo_ppGoals(x_12, x_17, x_16); +lean_dec(x_12); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; 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_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_2, 2); +lean_inc(x_21); lean_dec(x_2); -x_19 = l_Lean_Elab_ContextInfo_ppGoals(x_13, x_18, x_17); -lean_dec(x_13); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -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; -x_21 = lean_ctor_get(x_19, 0); -x_22 = l_Lean_Elab_TacticInfo_format___closed__2; -x_23 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_16); -x_24 = l_Lean_Elab_TacticInfo_format___closed__4; -x_25 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); +x_22 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_21); +x_23 = l_Lean_Elab_TacticInfo_format___closed__2; +x_24 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_TacticInfo_format___closed__4; x_26 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_21); -x_27 = l_Std_Format_join___closed__1; -x_28 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_19, 0, x_28); -return x_19; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_19, 0); -x_30 = lean_ctor_get(x_19, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_19); -x_31 = l_Lean_Elab_TacticInfo_format___closed__2; +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_15); +x_28 = l_Lean_Elab_TacticInfo_format___closed__6; +x_29 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_20); +x_31 = l_Std_Format_join___closed__1; x_32 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_16); -x_33 = l_Lean_Elab_TacticInfo_format___closed__4; -x_34 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_29); -x_36 = l_Std_Format_join___closed__1; -x_37 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_30); -return x_38; -} +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_18, 0, x_32); +return x_18; } else { -uint8_t x_39; -lean_dec(x_16); -x_39 = !lean_is_exclusive(x_19); -if (x_39 == 0) -{ -return x_19; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_19, 0); -x_41 = lean_ctor_get(x_19, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_19); -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 -{ -uint8_t x_43; -lean_dec(x_13); +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; +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_ctor_get(x_18, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_18); +x_35 = lean_ctor_get(x_2, 2); +lean_inc(x_35); lean_dec(x_2); -x_43 = !lean_is_exclusive(x_15); -if (x_43 == 0) -{ -return x_15; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_15, 0); -x_45 = lean_ctor_get(x_15, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_15); -x_46 = lean_alloc_ctor(1, 2, 0); +x_36 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_35); +x_37 = l_Lean_Elab_TacticInfo_format___closed__2; +x_38 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = l_Lean_Elab_TacticInfo_format___closed__4; +x_40 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_15); +x_42 = l_Lean_Elab_TacticInfo_format___closed__6; +x_43 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_33); +x_45 = l_Std_Format_join___closed__1; +x_46 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); -return x_46; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_34); +return x_47; +} +} +else +{ +uint8_t x_48; +lean_dec(x_15); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_18); +if (x_48 == 0) +{ +return x_18; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_18, 0); +x_50 = lean_ctor_get(x_18, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_18); +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_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; -x_47 = lean_ctor_get(x_1, 0); -x_48 = lean_ctor_get(x_1, 1); -x_49 = lean_ctor_get(x_1, 3); -x_50 = lean_ctor_get(x_1, 4); -x_51 = lean_ctor_get(x_1, 5); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_1); -x_52 = lean_ctor_get(x_2, 0); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -x_53 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_53, 0, x_47); -lean_ctor_set(x_53, 1, x_48); -lean_ctor_set(x_53, 2, x_52); -lean_ctor_set(x_53, 3, x_49); -lean_ctor_set(x_53, 4, x_50); -lean_ctor_set(x_53, 5, x_51); -x_54 = lean_ctor_get(x_2, 3); +uint8_t x_52; +lean_dec(x_12); +lean_dec(x_2); +x_52 = !lean_is_exclusive(x_14); +if (x_52 == 0) +{ +return x_14; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_14, 0); +x_54 = lean_ctor_get(x_14, 1); lean_inc(x_54); -x_55 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_55, 0, x_47); -lean_ctor_set(x_55, 1, x_48); -lean_ctor_set(x_55, 2, x_54); -lean_ctor_set(x_55, 3, x_49); -lean_ctor_set(x_55, 4, x_50); -lean_ctor_set(x_55, 5, x_51); -x_56 = lean_ctor_get(x_2, 1); -lean_inc(x_56); -x_57 = l_Lean_Elab_ContextInfo_ppGoals(x_53, x_56, x_3); -lean_dec(x_53); -if (lean_obj_tag(x_57) == 0) +lean_inc(x_53); +lean_dec(x_14); +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; +} +} +} +} +lean_object* l_Lean_Elab_TacticInfo_format___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -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); -x_60 = lean_ctor_get(x_2, 4); -lean_inc(x_60); -lean_dec(x_2); -x_61 = l_Lean_Elab_ContextInfo_ppGoals(x_55, x_60, x_59); -lean_dec(x_55); -if (lean_obj_tag(x_61) == 0) -{ -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; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_64 = x_61; -} else { - lean_dec_ref(x_61); - x_64 = lean_box(0); -} -x_65 = l_Lean_Elab_TacticInfo_format___closed__2; -x_66 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_67 = l_Lean_Elab_TacticInfo_format___closed__4; -x_68 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_62); -x_70 = l_Std_Format_join___closed__1; -x_71 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -if (lean_is_scalar(x_64)) { - x_72 = lean_alloc_ctor(0, 2, 0); -} else { - x_72 = x_64; -} -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_63); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_58); -x_73 = lean_ctor_get(x_61, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_61, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_75 = x_61; -} else { - lean_dec_ref(x_61); - x_75 = lean_box(0); -} -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_75; -} -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_55); -lean_dec(x_2); -x_77 = lean_ctor_get(x_57, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_57, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_79 = x_57; -} else { - lean_dec_ref(x_57); - x_79 = lean_box(0); -} -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); -} else { - x_80 = x_79; -} -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; -} -} +lean_object* x_4; +x_4 = l_Lean_Elab_TacticInfo_format(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; } } static lean_object* _init_l_Lean_Elab_MacroExpansionInfo_format___closed__1() { @@ -3155,6 +3065,7 @@ x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = l_Lean_Elab_TacticInfo_format(x_1, x_4, x_3); +lean_dec(x_1); return x_5; } case 1: @@ -5826,6 +5737,10 @@ l_Lean_Elab_TacticInfo_format___closed__3 = _init_l_Lean_Elab_TacticInfo_format_ lean_mark_persistent(l_Lean_Elab_TacticInfo_format___closed__3); l_Lean_Elab_TacticInfo_format___closed__4 = _init_l_Lean_Elab_TacticInfo_format___closed__4(); lean_mark_persistent(l_Lean_Elab_TacticInfo_format___closed__4); +l_Lean_Elab_TacticInfo_format___closed__5 = _init_l_Lean_Elab_TacticInfo_format___closed__5(); +lean_mark_persistent(l_Lean_Elab_TacticInfo_format___closed__5); +l_Lean_Elab_TacticInfo_format___closed__6 = _init_l_Lean_Elab_TacticInfo_format___closed__6(); +lean_mark_persistent(l_Lean_Elab_TacticInfo_format___closed__6); l_Lean_Elab_MacroExpansionInfo_format___closed__1 = _init_l_Lean_Elab_MacroExpansionInfo_format___closed__1(); lean_mark_persistent(l_Lean_Elab_MacroExpansionInfo_format___closed__1); l_Lean_Elab_MacroExpansionInfo_format___closed__2 = _init_l_Lean_Elab_MacroExpansionInfo_format___closed__2(); diff --git a/stage0/stdlib/Lean/Server/FileSource.c b/stage0/stdlib/Lean/Server/FileSource.c index 76f93fda74..3489ed9c22 100644 --- a/stage0/stdlib/Lean/Server/FileSource.c +++ b/stage0/stdlib/Lean/Server/FileSource.c @@ -30,6 +30,7 @@ lean_object* l_Lean_Lsp_HoverParams_hasFileSource___boxed(lean_object*); lean_object* l_Lean_Lsp_TextDocumentEdit_hasFileSource(lean_object*); lean_object* l_Lean_Lsp_DidOpenTextDocumentParams_hasFileSource(lean_object*); lean_object* l_Lean_Lsp_TextDocumentPositionParams_hasFileSource(lean_object*); +lean_object* l_Lean_Lsp_PlainGoalParams_hasFileSource___boxed(lean_object*); lean_object* l_Lean_Lsp_Location_hasFileSource(lean_object*); lean_object* l_Lean_Lsp_TextDocumentEdit_hasFileSource___boxed(lean_object*); lean_object* l_Lean_Lsp_TextDocumentPositionParams_hasFileSource___boxed(lean_object*); @@ -43,6 +44,7 @@ lean_object* l_Lean_Lsp_DidCloseTextDocumentParams_hasFileSource___boxed(lean_ob lean_object* l_Lean_Lsp_VersionedTextDocumentIdentifier_hasFileSource___boxed(lean_object*); lean_object* l_Lean_Lsp_DocumentSymbolParams_hasFileSource(lean_object*); lean_object* l_Lean_Lsp_VersionedTextDocumentIdentifier_hasFileSource(lean_object*); +lean_object* l_Lean_Lsp_PlainGoalParams_hasFileSource(lean_object*); lean_object* l_Lean_Lsp_Location_hasFileSource(lean_object* x_1) { _start: { @@ -309,6 +311,24 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Lsp_PlainGoalParams_hasFileSource(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +return x_2; +} +} +lean_object* l_Lean_Lsp_PlainGoalParams_hasFileSource___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Lsp_PlainGoalParams_hasFileSource(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Data_Lsp(lean_object*); static bool _G_initialized = false; diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 5fb378144e..c355225f6b 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -14,23 +14,21 @@ extern "C" { #endif lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__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* l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__3; lean_object* l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDeclarationRangesCore_x3f___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3(lean_object*); uint8_t l_Lean_isRecCore(lean_object*, lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); extern lean_object* l_Lean_Name_toString___closed__1; -lean_object* l_Lean_Elab_TermInfo_pos_x3f(lean_object*); lean_object* l_IO_FS_Handle_readToEnd_read___at_IO_Process_output___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Server_FileWorker_CancelToken_check___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__3; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___boxed(lean_object*); size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_Name_getString_x21___closed__3; lean_object* l_Lean_Server_FileWorker_handleDefinition_match__6___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4; lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__5; lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -39,7 +37,6 @@ lean_object* l_Lean_Server_FileWorker_handleDidChange_match__1(lean_object*); lean_object* lean_get_stdin(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_match__1___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__10(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__2(lean_object*); @@ -47,22 +44,21 @@ lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAnd lean_object* l_Lean_Server_FileWorker_handleRequest_match__2(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_prim_handle_get_line(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleHover___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_88_(lean_object*); -extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_RequestError_fileChanged___closed__2; lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent___closed__1; +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1299_(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__2; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_quote___closed__1; lean_object* l_Std_RBNode_erase___at_Lean_Server_FileWorker_handleCancelRequest___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -lean_object* l_Lean_Server_FileWorker_handleHover___boxed(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__3; lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -71,14 +67,16 @@ lean_object* lean_io_error_to_string(lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__4; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_87_(lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain_match__1___rarg(lean_object*); -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__7(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(lean_object*); lean_object* l_List_map___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__1(lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_String_split___at_Lean_stringToMessageData___spec__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_noConfusionExt; extern lean_object* l_Std_Format_defWidth; lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover___closed__1; +lean_object* l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_RequestError_fileChanged___closed__1; extern lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__2; @@ -92,28 +90,29 @@ extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__28; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__2___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__6; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___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* l_Lean_Server_FileWorker_handleDefinition_match__1(lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__4; extern lean_object* l_Lean_searchPathRef; -lean_object* l_Lean_Server_FileWorker_handleHover_match__5___boxed(lean_object*, lean_object*); uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_Format_join___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_toString(lean_object*); lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__3; +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__4(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instInhabitedRange___closed__1; extern lean_object* l_Array_empty___closed__1; +extern lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__16; -lean_object* l_Lean_Meta_ppExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__5; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__4; extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedEnvironment___closed__4; lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap_match__1(lean_object*); @@ -127,52 +126,56 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* lean_get_stderr(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__3(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3___rarg(lean_object*); lean_object* l_Lean_getBuiltinSearchPath(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__6___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleRequest_match__1(lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__2; lean_object* l_IO_FS_Stream_readLspMessage(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1; lean_object* l_Lean_Server_FileWorker_CancelToken_check___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__1___closed__1; lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_match__1(lean_object*); extern lean_object* l_instInhabitedNat; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1; extern lean_object* l_IO_AsyncList_waitFind_x3f___rarg___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_headerToImports(lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__1; lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__5; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Compiler_checkIsDefinition___closed__3; lean_object* l_IO_mkRef___at_Lean_Server_FileWorker_initializeWorker___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2; lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; extern lean_object* l_List_getLast_x21___rarg___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5; -lean_object* l_Lean_Server_FileWorker_handleHover_match__5(lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_toCmdState(lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__22; -lean_object* l_Lean_Server_FileWorker_handleHover_match__4(lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover_match__4(lean_object*, lean_object*); lean_object* l_IO_sleep(uint32_t, lean_object*); extern lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__2; +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*); -uint8_t l_Lean_Server_FileWorker_handleHover___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_ExceptT_lift___rarg___closed__1; lean_object* l_Lean_Server_FileWorker_handleHover_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2; lean_object* l_IO_throwServerError___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__2; -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3___boxed(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; extern lean_object* l_term___u2264_____closed__3; -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3; lean_object* lean_io_process_spawn(lean_object*, lean_object*); lean_object* lean_io_getenv(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__1___rarg(lean_object*, lean_object*); @@ -180,14 +183,14 @@ extern lean_object* l_Std_instInhabitedPersistentArray___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__24; lean_object* l_Lean_Server_FileWorker_handleHover_match__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedCancelToken; lean_object* l_Lean_Server_FileWorker_handleDefinition_match__2(lean_object*); extern lean_object* l_Lean_auxRecExt; lean_object* l_Lean_Server_FileWorker_workerMain_match__2(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___boxed(lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1; lean_object* l_Lean_Server_FileWorker_CancelToken_new(lean_object*); lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__1(lean_object*); @@ -195,12 +198,14 @@ lean_object* l_IO_FS_Stream_readMessage(lean_object*, lean_object*, lean_object* lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent___boxed(lean_object*, lean_object*, lean_object*); extern uint8_t l_Lean_expandExternPatternAux___closed__1; -lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object*); lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*); +lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg___closed__1; extern lean_object* l_Lean_Elab_parseImports___closed__1; +extern lean_object* l_Lean_LocalContext_mkEmpty___closed__1; lean_object* l_IO_AsyncList_waitAll___rarg___lambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1; +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__11(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -212,64 +217,69 @@ lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2; lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover_match__2(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__23; lean_object* l_Lean_Server_FileWorker_compileHeader___closed__1; +extern lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; extern lean_object* l_Lean_maxRecDepth; lean_object* l_Lean_Server_FileWorker_compileHeader(lean_object*, lean_object*, lean_object*); lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1(lean_object*); lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover_match__4___boxed(lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___lambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__10; lean_object* l_Lean_Server_FileWorker_queueRequest___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleDefinition___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__5; -lean_object* l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6; lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___lambda__2(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain_match__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2; lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__4; lean_object* l_Lean_isRec___at_Lean_Server_FileWorker_handleDefinition___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__8(lean_object*); lean_object* l_IO_getStdin___at_Lean_Server_FileWorker_workerMain___spec__1(lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__9___boxed__const__1; lean_object* l_Lean_Server_FileWorker_compileHeader___closed__2; lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleDefinition___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__2; lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2; extern lean_object* l_List_get_x21___rarg___closed__4; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11_(lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain_match__3(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_42_(lean_object*); -lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mainLoop___closed__1; lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleCancelRequest___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__1; lean_object* l_Lean_Server_Snapshots_parseAhead(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___boxed(lean_object*); lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__1; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__1; lean_object* l_Lean_Server_FileWorker_updateDocument_match__2(lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_CancelToken_check(lean_object*); +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_584_(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*); extern lean_object* l_Task_Priority_dedicated; @@ -283,10 +293,10 @@ lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___l lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_get_set_stderr(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_RequestError_fileChanged; -lean_object* l_Lean_Server_FileWorker_handleHover_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover_match__4___rarg(lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_FileWorker_workerMain___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__2; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f(lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_reparseHeader(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__7; lean_object* l_List_mapM___at_Lean_Server_FileWorker_leanpkgSetupSearchPath___spec__2(lean_object*, lean_object*); @@ -294,17 +304,15 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lea extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5637____closed__31; lean_object* l_Lean_Server_FileWorker_compileHeader_match__4(lean_object*); lean_object* l_IO_AsyncList_append___rarg(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readLspNotificationAs___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Server_FileWorker_queueRequest___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__3; -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__3; lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_Lean_expandExternPatternAux___closed__2; @@ -314,7 +322,6 @@ lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___lambda__1___boxed(lean_ob lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1; lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__2; lean_object* l_IO_AsyncList_waitFind_x3f___at_Lean_Server_FileWorker_withWaitFindSnap___spec__1(lean_object*, lean_object*, lean_object*); @@ -322,7 +329,6 @@ lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__1; lean_object* l_Std_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; lean_object* l_Lean_Server_FileWorker_handleDefinition___closed__1; lean_object* l_IO_AsyncList_unfoldAsync___at_Lean_Server_FileWorker_unfoldCmdSnaps___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_0__mkPanicMessage___closed__2; @@ -344,7 +350,6 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__2(lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*); @@ -366,34 +371,36 @@ lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_ha lean_object* l_Lean_Server_FileWorker_handleDidChange_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange___closed__1; +lean_object* l_Lean_Server_FileWorker_handlePlainGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange___closed__2; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___boxed(lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__1(lean_object*); lean_object* l_Lean_Server_FileWorker_mapTask___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__5; lean_object* l_Lean_Option_get___at_Lean_Core_getMaxHeartbeats___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleHover_match__5___rarg(lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3; lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_IO_appDir___at_Lean_getBuiltinSearchPath___spec__1(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_docStringExt; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_220_(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_411_(lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams_match__1(lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleHover___spec__1(lean_object*); extern lean_object* l_Lean_Parser_instInhabitedModuleParserState___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__2___boxed__const__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_84_(lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_takeWhile___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_ppExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_realPathNormalized(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_895_(lean_object*); @@ -404,6 +411,8 @@ extern lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__1; extern lean_object* l_Lean_Unhygienic_run___rarg___closed__2; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6; extern lean_object* l_IO_AsyncList_waitFind_x3f___rarg___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__44; lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__5; @@ -411,6 +420,7 @@ lean_object* l_Lean_FileMap_ofString(lean_object*); extern lean_object* l_Lean_Server_Snapshots_instInhabitedSnapshot; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_RBNode_balLeft___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_ContextInfo_ppGoals___closed__2; lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_coeErr___at_Lean_Server_FileWorker_unfoldCmdSnaps___spec__3___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__2(lean_object*); extern lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; @@ -419,8 +429,8 @@ extern lean_object* l_Task_Priority_default; lean_object* lean_io_has_finished(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__2___rarg(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; lean_object* l_Lean_Server_FileWorker_rangeOfSyntax(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__3(lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -430,6 +440,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____close lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__1(lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleDefinition___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__9(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_coeErr___at_Lean_Server_FileWorker_unfoldCmdSnaps___spec__3___lambda__1(lean_object*); @@ -441,6 +452,8 @@ lean_object* l_Lean_Server_FileWorker_withWaitFindSnap_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_leanpkgSetupSearchPath___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Server_FileWorker_initializeWorker_match__1(lean_object*); lean_object* l_Lean_Server_FileWorker_CancelToken_check___rarg___lambda__1(lean_object*, lean_object*, uint8_t); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; extern lean_object* l_IO_FS_Stream_readNotificationAs___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest___closed__1; @@ -448,11 +461,8 @@ lean_object* l_Lean_Server_Snapshots_parseNextCmd(lean_object*, lean_object*, le lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__2(lean_object*); extern lean_object* l_Lean_Server_instInhabitedDocumentMeta___closed__1; lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__2; -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3; -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___closed__1; lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__10___boxed__const__1; extern lean_object* l_Lean_instInhabitedNameGenerator___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -460,54 +470,60 @@ lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1__ lean_object* l_List_drop___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_leanpkgSetupSearchPath___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5; +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__2(lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* lean_io_file_exists(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instCoeErrorElabTaskError(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7(size_t, size_t, lean_object*); lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__4; -lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*, lean_object*, lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); extern lean_object* l_Lean_Name_instReprName___closed__1; extern lean_object* l_term_x5b___x5d___closed__5; lean_object* l_Lean_Server_FileWorker_workerMain_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_String_intercalate(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__1(lean_object*); lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); extern lean_object* l_List_partition___rarg___closed__1; lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__3(lean_object*); lean_object* l_Lean_Server_FileWorker_CancelToken_check___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_server_worker_main(lean_object*); +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleHover___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_queueRequest(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__2(lean_object*); lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic(lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__12; lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__8; -lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument; lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__2; lean_object* l_Lean_Server_FileWorker_workerMain_match__2___rarg(lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__32; lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); +lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__3___boxed__const__1; lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__1; @@ -530,8 +546,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefiniti lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__3; -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Communication_0__IO_FS_Stream_readLspHeader(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument_match__2___rarg(lean_object*, lean_object*); @@ -546,12 +560,13 @@ lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___l lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__11; lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__2; -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1; lean_object* l_Lean_Name_getPrefix(lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -568,14 +583,13 @@ extern lean_object* l_Lean_JsonRpc_instToStringRequestID___closed__1; lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_coeErr___at_Lean_Server_FileWorker_unfoldCmdSnaps___spec__3(lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___boxed(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_IO_FS_Stream_readLspRequestAs___closed__1; lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_parseSearchPath(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*); lean_object* l_EStateM_instInhabitedEStateM___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mainLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_toFileUri(lean_object*); @@ -590,11 +604,11 @@ uint8_t l_Lean_Server_FileWorker_updateDocument___lambda__1(lean_object*, lean_o lean_object* l_Lean_Server_FileWorker_compileHeader_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_rangeOfSyntax___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_withPrefix(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); lean_object* l_IO_ofExcept___at_IO_Process_output___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Server_Snapshots_Snapshot_msgLog(lean_object*); @@ -603,8 +617,7 @@ lean_object* l_Lean_Server_FileWorker_handleDidChange(lean_object*, lean_object* lean_object* l_Lean_Server_FileWorker_CancelToken_set___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__4; lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5; -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updatePendingRequests(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__3___rarg(lean_object*, lean_object*); @@ -612,9 +625,11 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefiniti lean_object* l_Lean_Server_FileWorker_handleHover_match__3(lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleDefinition___spec__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Server_FileWorker_handleHover___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_CancelToken_set(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; lean_object* l_Lean_Server_FileWorker_handleDefinition_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; @@ -624,11 +639,12 @@ lean_object* l_Lean_Server_FileWorker_compileHeader___closed__3; lean_object* l_Lean_Server_FileWorker_updateDocument___closed__1; lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_instInhabitedError; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_TermInfo_tailPos_x3f(lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1; lean_object* l_Lean_Server_FileWorker_workerMain___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__13; @@ -637,40 +653,44 @@ lean_object* l_IO_mkRef___at_Lean_Server_FileWorker_CancelToken_new___spec__1___ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mainLoop_match__2(lean_object*); extern lean_object* l_System_FilePath_exeSuffix; +uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2; lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_309_(lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__12; lean_object* l_Lean_Server_FileWorker_withWaitFindSnap___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_getLast_x21___at_Lean_Server_FileWorker_updateDocument___spec__1(lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain___boxed__const__1; -lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__9; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__2; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5(size_t, size_t, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___boxed(lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; lean_object* l_Lean_Server_FileWorker_updateDocument_match__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); -lean_object* l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__1; lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleCancelRequest(lean_object*, lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__4(lean_object*); lean_object* l_List_getLast___rarg(lean_object*, lean_object*); @@ -685,16 +705,15 @@ lean_object* l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__2; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__1; lean_object* l_List_getLastD___rarg(lean_object*, lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_RequestID_lt(lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_compileNextCmd(lean_object*, lean_object*, lean_object*); extern lean_object* l_term_x5b___x5d___closed__3; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__9(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__5; -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_coeErr___at_Lean_Server_FileWorker_withWaitFindSnap___spec__2(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -8735,36 +8754,6 @@ return x_4; } else { -lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_apply_1(x_2, x_5); -return x_6; -} -} -} -lean_object* l_Lean_Server_FileWorker_handleHover_match__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__2___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_Server_FileWorker_handleHover_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; -lean_dec(x_2); -x_4 = lean_apply_1(x_3, x_1); -return x_4; -} -else -{ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_3); x_5 = lean_ctor_get(x_1, 0); @@ -8780,15 +8769,15 @@ return x_8; } } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__3(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__3___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__2___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8811,15 +8800,15 @@ return x_7; } } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__4(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__4___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__3___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__5___rarg(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__4___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -8828,19 +8817,19 @@ x_3 = lean_apply_1(x_1, x_2); return x_3; } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__5___rarg), 1, 0); +x_3 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover_match__4___rarg), 1, 0); return x_3; } } -lean_object* l_Lean_Server_FileWorker_handleHover_match__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleHover_match__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Server_FileWorker_handleHover_match__5(x_1, x_2); +x_3 = l_Lean_Server_FileWorker_handleHover_match__4(x_1, x_2); lean_dec(x_2); return x_3; } @@ -8863,47 +8852,7 @@ x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Server_FileWorker_hand return x_2; } } -lean_object* l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___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: -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = !lean_is_exclusive(x_7); -if (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_7, 0); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -lean_dec(x_9); -x_11 = l_Lean_docStringExt; -x_12 = l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(x_11, x_10, x_1); -lean_dec(x_10); -lean_ctor_set(x_7, 0, x_12); -return x_7; -} -else -{ -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_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_docStringExt; -x_17 = l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(x_16, x_15, x_1); -lean_dec(x_15); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_14); -return x_18; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__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, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; uint8_t x_36; @@ -8930,7 +8879,7 @@ lean_inc(x_40); lean_dec(x_9); lean_inc(x_3); lean_inc(x_2); -x_41 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4(x_1, x_2, x_3, x_4, x_39, x_40, x_10, x_11); +x_41 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3(x_1, x_2, x_3, x_4, x_39, x_40, x_10, x_11); lean_dec(x_39); if (lean_obj_tag(x_41) == 0) { @@ -9226,338 +9175,7 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___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; -x_5 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_5, 0, x_1); -x_6 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_4); -return x_7; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_8 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -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 = l_Lean_Meta_ppExpr(x_9, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; 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, 0); -x_14 = l_Std_Format_join___closed__1; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_2); -x_16 = l_Lean_Meta_ppGoal_ppVars___closed__1; -x_17 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_13); -x_19 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_14); -lean_ctor_set(x_11, 0, x_19); -return x_11; -} -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_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_11); -x_22 = l_Std_Format_join___closed__1; -x_23 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_2); -x_24 = l_Lean_Meta_ppGoal_ppVars___closed__1; -x_25 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_20); -x_27 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_22); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_21); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_11); -if (x_29 == 0) -{ -return x_11; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_11, 0); -x_31 = lean_ctor_get(x_11, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_11); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -uint8_t x_33; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_33 = !lean_is_exclusive(x_8); -if (x_33 == 0) -{ -return x_8; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_8, 0); -x_35 = lean_ctor_get(x_8, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_8); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_7 = l_Std_Format_defWidth; -x_8 = lean_format_pretty(x_3, x_7); -x_9 = l_Lean_Elab_TermInfo_pos_x3f(x_1); -x_10 = l_Lean_Elab_TermInfo_tailPos_x3f(x_1); -x_11 = 1; -x_12 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = l_instInhabitedNat; -x_55 = l_Option_get_x21___rarg___closed__4; -x_56 = lean_panic_fn(x_54, x_55); -x_13 = x_56; -goto block_53; -} -else -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_9, 0); -lean_inc(x_57); -lean_dec(x_9); -x_13 = x_57; -goto block_53; -} -block_53: -{ -lean_object* x_14; -x_14 = l_Lean_FileMap_utf8PosToLspPos(x_2, x_13); -if (lean_obj_tag(x_10) == 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 = l_instInhabitedNat; -x_16 = l_Option_get_x21___rarg___closed__4; -x_17 = lean_panic_fn(x_15, x_16); -x_18 = l_Lean_FileMap_utf8PosToLspPos(x_2, x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 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_12); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_6); -return x_28; -} -else -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_10); -if (x_29 == 0) -{ -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_30 = lean_ctor_get(x_10, 0); -x_31 = l_Lean_FileMap_utf8PosToLspPos(x_2, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_14); -lean_ctor_set(x_32, 1, x_31); -lean_ctor_set(x_10, 0, x_32); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_12); -lean_ctor_set(x_33, 1, x_10); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_box(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); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_6); -return x_40; -} -else -{ -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_41 = lean_ctor_get(x_10, 0); -lean_inc(x_41); -lean_dec(x_10); -x_42 = l_Lean_FileMap_utf8PosToLspPos(x_2, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_14); -lean_ctor_set(x_43, 1, x_42); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_12); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_box(0); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_6); -return x_52; -} -} -} -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("```lean\n"); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("\n```"); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("\n***\n"); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_30; lean_object* x_31; uint8_t x_56; @@ -9581,210 +9199,254 @@ lean_object* x_59; lean_object* x_60; lean_dec(x_8); x_59 = lean_array_uget(x_5, x_7); lean_inc(x_2); -x_60 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f(x_59, x_2); +x_60 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_59, x_2); if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_box(0); +lean_object* x_61; lean_object* x_62; lean_inc(x_3); -x_62 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_3, x_61, x_9, x_10); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_30 = x_63; -x_31 = x_64; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_3); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_30 = x_62; +x_31 = x_10; goto block_55; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_65 = lean_ctor_get(x_60, 0); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_60, 0); +lean_inc(x_63); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + x_64 = x_60; +} else { + lean_dec_ref(x_60); + x_64 = lean_box(0); +} +x_65 = lean_ctor_get(x_63, 0); lean_inc(x_65); -lean_dec(x_60); -x_66 = lean_ctor_get(x_65, 0); +x_66 = lean_ctor_get(x_63, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); +lean_dec(x_63); +lean_inc(x_66); +x_67 = l_Lean_Elab_Info_fmtHover_x3f(x_65, x_66, x_10); lean_dec(x_65); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_66); +lean_dec(x_64); x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -lean_inc(x_69); -x_70 = lean_alloc_closure((void*)(l_Lean_Meta_ppExpr___boxed), 6, 1); -lean_closure_set(x_70, 0, x_69); -lean_inc(x_69); -x_71 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__2), 7, 1); -lean_closure_set(x_71, 0, x_69); -x_72 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); -lean_closure_set(x_72, 0, x_70); -lean_closure_set(x_72, 1, x_71); -lean_inc(x_68); -x_73 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_66, x_68, x_72, x_10); -if (lean_obj_tag(x_73) == 0) -{ -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; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2; -x_77 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_74); -x_78 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4; -x_79 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Lean_Expr_constName_x3f(x_69); -lean_dec(x_69); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_68); -lean_dec(x_66); -x_81 = lean_box(0); -x_82 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_67, x_1, x_79, x_81, x_9, x_75); lean_dec(x_67); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_30 = x_83; -x_31 = x_84; +lean_inc(x_3); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_3); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_70); +x_30 = x_71; +x_31 = x_69; goto block_55; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_80, 0); -lean_inc(x_85); -lean_dec(x_80); -x_86 = lean_alloc_closure((void*)(l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___spec__2___boxed), 6, 1); -lean_closure_set(x_86, 0, x_85); -x_87 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_66, x_68, x_86, x_75); -lean_dec(x_66); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -if (lean_obj_tag(x_88) == 0) -{ -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_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_box(0); -x_91 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_67, x_1, x_79, x_90, x_9, x_89); +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; uint8_t x_79; lean_object* x_80; lean_object* x_81; +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); lean_dec(x_67); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_30 = x_92; -x_31 = x_93; +x_73 = lean_ctor_get(x_68, 0); +lean_inc(x_73); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + x_74 = x_68; +} else { + lean_dec_ref(x_68); + x_74 = lean_box(0); +} +x_75 = l_Std_Format_defWidth; +x_76 = lean_format_pretty(x_73, x_75); +x_77 = l_Lean_Elab_Info_pos_x3f(x_66); +x_78 = l_Lean_Elab_Info_tailPos_x3f(x_66); +lean_dec(x_66); +x_79 = 1; +x_80 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_80, 0, x_76); +lean_ctor_set_uint8(x_80, sizeof(void*)*1, x_79); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = l_instInhabitedNat; +x_120 = l_Option_get_x21___rarg___closed__4; +x_121 = lean_panic_fn(x_119, x_120); +x_81 = x_121; +goto block_118; +} +else +{ +lean_object* x_122; +x_122 = lean_ctor_get(x_77, 0); +lean_inc(x_122); +lean_dec(x_77); +x_81 = x_122; +goto block_118; +} +block_118: +{ +lean_object* x_82; +x_82 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_81); +if (lean_obj_tag(x_78) == 0) +{ +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; +x_83 = l_instInhabitedNat; +x_84 = l_Option_get_x21___rarg___closed__4; +x_85 = lean_panic_fn(x_83, x_84); +x_86 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_85); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_82); +lean_ctor_set(x_87, 1, x_86); +if (lean_is_scalar(x_74)) { + x_88 = lean_alloc_ctor(1, 1, 0); +} else { + x_88 = x_74; +} +lean_ctor_set(x_88, 0, x_87); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_80); +lean_ctor_set(x_89, 1, x_88); +if (lean_is_scalar(x_64)) { + x_90 = lean_alloc_ctor(1, 1, 0); +} else { + x_90 = x_64; +} +lean_ctor_set(x_90, 0, x_89); +x_91 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_91, 0, x_90); +x_92 = lean_box(0); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +x_30 = x_95; +x_31 = x_72; goto block_55; } else { -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; -x_94 = lean_ctor_get(x_87, 1); -lean_inc(x_94); -lean_dec(x_87); -x_95 = lean_ctor_get(x_88, 0); -lean_inc(x_95); -lean_dec(x_88); -x_96 = l_Std_Format_join___closed__1; -x_97 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_79); -x_98 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6; -x_99 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_99, 0, x_97); +uint8_t x_96; +x_96 = !lean_is_exclusive(x_78); +if (x_96 == 0) +{ +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; +x_97 = lean_ctor_get(x_78, 0); +x_98 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_82); lean_ctor_set(x_99, 1, x_98); -x_100 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_100, 0, x_95); -x_101 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_78, 0, x_99); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_80); +lean_ctor_set(x_100, 1, x_78); +if (lean_is_scalar(x_74)) { + x_101 = lean_alloc_ctor(1, 1, 0); +} else { + x_101 = x_74; +} +lean_ctor_set(x_101, 0, x_100); +if (lean_is_scalar(x_64)) { + x_102 = lean_alloc_ctor(1, 1, 0); +} else { + x_102 = x_64; +} lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_96); x_103 = lean_box(0); -x_104 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_67, x_1, x_102, x_103, x_9, x_94); -lean_dec(x_67); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_30 = x_105; -x_31 = x_106; +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_105, 0, x_104); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +x_30 = x_106; +x_31 = x_72; +goto block_55; +} +else +{ +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; +x_107 = lean_ctor_get(x_78, 0); +lean_inc(x_107); +lean_dec(x_78); +x_108 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_107); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_82); +lean_ctor_set(x_109, 1, x_108); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_80); +lean_ctor_set(x_111, 1, x_110); +if (lean_is_scalar(x_74)) { + x_112 = lean_alloc_ctor(1, 1, 0); +} else { + x_112 = x_74; +} +lean_ctor_set(x_112, 0, x_111); +if (lean_is_scalar(x_64)) { + x_113 = lean_alloc_ctor(1, 1, 0); +} else { + x_113 = x_64; +} +lean_ctor_set(x_113, 0, x_112); +x_114 = lean_box(0); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_116, 0, x_115); +x_117 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_117, 0, x_116); +x_30 = x_117; +x_31 = x_72; goto block_55; } } -else -{ -uint8_t x_107; -lean_dec(x_79); -lean_dec(x_67); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_107 = !lean_is_exclusive(x_87); -if (x_107 == 0) -{ -return x_87; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_87, 0); -x_109 = lean_ctor_get(x_87, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_87); -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_111; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); +uint8_t x_123; lean_dec(x_66); +lean_dec(x_64); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_111 = !lean_is_exclusive(x_73); -if (x_111 == 0) +x_123 = !lean_is_exclusive(x_67); +if (x_123 == 0) { -return x_73; +return x_67; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_73, 0); -x_113 = lean_ctor_get(x_73, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_73); -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; +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_67, 0); +x_125 = lean_ctor_get(x_67, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_67); +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; } } } @@ -9981,7 +9643,21 @@ goto block_29; } } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__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* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___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; +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___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: { if (lean_obj_tag(x_5) == 0) @@ -9996,7 +9672,7 @@ x_12 = lean_array_get_size(x_9); x_13 = lean_usize_of_nat(x_12); lean_dec(x_12); x_14 = 0; -x_15 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(x_1, x_2, x_3, x_4, x_10, x_9, x_13, x_14, x_11, x_7, x_8); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__4(x_1, x_2, x_3, x_4, x_10, x_9, x_13, x_14, x_11, x_7, x_8); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; @@ -10076,7 +9752,7 @@ x_31 = lean_ctor_get(x_28, 1); lean_inc(x_31); lean_dec(x_28); x_32 = lean_box(0); -x_33 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_31, x_32, x_7, x_30); +x_33 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_31, x_32, x_7, x_30); return x_33; } else @@ -10130,7 +9806,7 @@ x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); lean_dec(x_40); x_44 = lean_box(0); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_43, x_44, x_7, x_42); +x_45 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_43, x_44, x_7, x_42); return x_45; } else @@ -10199,7 +9875,7 @@ x_58 = lean_array_get_size(x_55); x_59 = lean_usize_of_nat(x_58); lean_dec(x_58); x_60 = 0; -x_61 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(x_1, x_2, x_3, x_56, x_55, x_59, x_60, x_57, x_7, x_8); +x_61 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(x_1, x_2, x_3, x_56, x_55, x_59, x_60, x_57, x_7, x_8); if (lean_obj_tag(x_61) == 0) { lean_object* x_62; @@ -10279,7 +9955,7 @@ x_77 = lean_ctor_get(x_74, 1); lean_inc(x_77); lean_dec(x_74); x_78 = lean_box(0); -x_79 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_77, x_78, x_7, x_76); +x_79 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_77, x_78, x_7, x_76); return x_79; } else @@ -10333,7 +10009,7 @@ x_89 = lean_ctor_get(x_86, 1); lean_inc(x_89); lean_dec(x_86); x_90 = lean_box(0); -x_91 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_89, x_90, x_7, x_88); +x_91 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_89, x_90, x_7, x_88); return x_91; } else @@ -10392,7 +10068,7 @@ return x_100; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_30; lean_object* x_31; uint8_t x_61; @@ -10416,210 +10092,254 @@ lean_object* x_64; lean_object* x_65; lean_dec(x_8); x_64 = lean_array_uget(x_5, x_7); lean_inc(x_2); -x_65 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f(x_64, x_2); +x_65 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_64, x_2); if (lean_obj_tag(x_65) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_box(0); +lean_object* x_66; lean_object* x_67; lean_inc(x_3); -x_67 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_3, x_66, x_9, x_10); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_30 = x_68; -x_31 = x_69; +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_3); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_30 = x_67; +x_31 = x_10; goto block_60; } else { -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; -x_70 = lean_ctor_get(x_65, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_65, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + x_69 = x_65; +} else { + lean_dec_ref(x_65); + x_69 = lean_box(0); +} +x_70 = lean_ctor_get(x_68, 0); lean_inc(x_70); -lean_dec(x_65); -x_71 = lean_ctor_get(x_70, 0); +x_71 = lean_ctor_get(x_68, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); +lean_dec(x_68); +lean_inc(x_71); +x_72 = l_Lean_Elab_Info_fmtHover_x3f(x_70, x_71, x_10); lean_dec(x_70); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_71); +lean_dec(x_69); x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -lean_inc(x_74); -x_75 = lean_alloc_closure((void*)(l_Lean_Meta_ppExpr___boxed), 6, 1); -lean_closure_set(x_75, 0, x_74); -lean_inc(x_74); -x_76 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__2), 7, 1); -lean_closure_set(x_76, 0, x_74); -x_77 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); -lean_closure_set(x_77, 0, x_75); -lean_closure_set(x_77, 1, x_76); -lean_inc(x_73); -x_78 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_71, x_73, x_77, x_10); -if (lean_obj_tag(x_78) == 0) -{ -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; -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_81 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2; -x_82 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_79); -x_83 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4; -x_84 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_Expr_constName_x3f(x_74); -lean_dec(x_74); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_73); -lean_dec(x_71); -x_86 = lean_box(0); -x_87 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_72, x_1, x_84, x_86, x_9, x_80); lean_dec(x_72); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_30 = x_88; -x_31 = x_89; +lean_inc(x_3); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_3); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_75); +x_30 = x_76; +x_31 = x_74; goto block_60; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_85, 0); -lean_inc(x_90); -lean_dec(x_85); -x_91 = lean_alloc_closure((void*)(l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___spec__2___boxed), 6, 1); -lean_closure_set(x_91, 0, x_90); -x_92 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_71, x_73, x_91, x_80); -lean_dec(x_71); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_box(0); -x_96 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_72, x_1, x_84, x_95, x_9, x_94); +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; uint8_t x_84; lean_object* x_85; lean_object* x_86; +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); lean_dec(x_72); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_30 = x_97; -x_31 = x_98; +x_78 = lean_ctor_get(x_73, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + x_79 = x_73; +} else { + lean_dec_ref(x_73); + x_79 = lean_box(0); +} +x_80 = l_Std_Format_defWidth; +x_81 = lean_format_pretty(x_78, x_80); +x_82 = l_Lean_Elab_Info_pos_x3f(x_71); +x_83 = l_Lean_Elab_Info_tailPos_x3f(x_71); +lean_dec(x_71); +x_84 = 1; +x_85 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_85, 0, x_81); +lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_84); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = l_instInhabitedNat; +x_125 = l_Option_get_x21___rarg___closed__4; +x_126 = lean_panic_fn(x_124, x_125); +x_86 = x_126; +goto block_123; +} +else +{ +lean_object* x_127; +x_127 = lean_ctor_get(x_82, 0); +lean_inc(x_127); +lean_dec(x_82); +x_86 = x_127; +goto block_123; +} +block_123: +{ +lean_object* x_87; +x_87 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_86); +if (lean_obj_tag(x_83) == 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; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_88 = l_instInhabitedNat; +x_89 = l_Option_get_x21___rarg___closed__4; +x_90 = lean_panic_fn(x_88, x_89); +x_91 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_87); +lean_ctor_set(x_92, 1, x_91); +if (lean_is_scalar(x_79)) { + x_93 = lean_alloc_ctor(1, 1, 0); +} else { + x_93 = x_79; +} +lean_ctor_set(x_93, 0, x_92); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_85); +lean_ctor_set(x_94, 1, x_93); +if (lean_is_scalar(x_69)) { + x_95 = lean_alloc_ctor(1, 1, 0); +} else { + x_95 = x_69; +} +lean_ctor_set(x_95, 0, x_94); +x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_95); +x_97 = lean_box(0); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_100, 0, x_99); +x_30 = x_100; +x_31 = x_77; goto block_60; } else { -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; -x_99 = lean_ctor_get(x_92, 1); -lean_inc(x_99); -lean_dec(x_92); -x_100 = lean_ctor_get(x_93, 0); -lean_inc(x_100); -lean_dec(x_93); -x_101 = l_Std_Format_join___closed__1; -x_102 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_84); -x_103 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6; -x_104 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_104, 0, x_102); +uint8_t x_101; +x_101 = !lean_is_exclusive(x_83); +if (x_101 == 0) +{ +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; +x_102 = lean_ctor_get(x_83, 0); +x_103 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_87); lean_ctor_set(x_104, 1, x_103); -x_105 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_105, 0, x_100); -x_106 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_83, 0, x_104); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_85); +lean_ctor_set(x_105, 1, x_83); +if (lean_is_scalar(x_79)) { + x_106 = lean_alloc_ctor(1, 1, 0); +} else { + x_106 = x_79; +} +lean_ctor_set(x_106, 0, x_105); +if (lean_is_scalar(x_69)) { + x_107 = lean_alloc_ctor(1, 1, 0); +} else { + x_107 = x_69; +} lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_101); x_108 = lean_box(0); -x_109 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_72, x_1, x_107, x_108, x_9, x_99); -lean_dec(x_72); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_30 = x_110; -x_31 = x_111; +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_110); +x_30 = x_111; +x_31 = x_77; +goto block_60; +} +else +{ +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; +x_112 = lean_ctor_get(x_83, 0); +lean_inc(x_112); +lean_dec(x_83); +x_113 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_112); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_87); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_85); +lean_ctor_set(x_116, 1, x_115); +if (lean_is_scalar(x_79)) { + x_117 = lean_alloc_ctor(1, 1, 0); +} else { + x_117 = x_79; +} +lean_ctor_set(x_117, 0, x_116); +if (lean_is_scalar(x_69)) { + x_118 = lean_alloc_ctor(1, 1, 0); +} else { + x_118 = x_69; +} +lean_ctor_set(x_118, 0, x_117); +x_119 = lean_box(0); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_121, 0, x_120); +x_122 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_122, 0, x_121); +x_30 = x_122; +x_31 = x_77; goto block_60; } } -else -{ -uint8_t x_112; -lean_dec(x_84); -lean_dec(x_72); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_112 = !lean_is_exclusive(x_92); -if (x_112 == 0) -{ -return x_92; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_92, 0); -x_114 = lean_ctor_get(x_92, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_92); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} } } } else { -uint8_t x_116; -lean_dec(x_74); -lean_dec(x_73); -lean_dec(x_72); +uint8_t x_128; lean_dec(x_71); +lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_116 = !lean_is_exclusive(x_78); -if (x_116 == 0) +x_128 = !lean_is_exclusive(x_72); +if (x_128 == 0) { -return x_78; +return x_72; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_78, 0); -x_118 = lean_ctor_get(x_78, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_78); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_72, 0); +x_130 = lean_ctor_get(x_72, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_72); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } @@ -10850,7 +10570,7 @@ goto block_29; } } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___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; @@ -10862,7 +10582,7 @@ lean_ctor_set(x_6, 1, x_4); return x_6; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___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* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; @@ -10870,7 +10590,7 @@ x_8 = lean_ctor_get(x_4, 0); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_9 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4(x_1, x_2, x_3, x_5, x_8, x_5, x_6, x_7); +x_9 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3(x_1, x_2, x_3, x_5, x_8, x_5, x_6, x_7); lean_dec(x_5); if (lean_obj_tag(x_9) == 0) { @@ -10992,7 +10712,7 @@ x_34 = lean_array_get_size(x_31); x_35 = lean_usize_of_nat(x_34); lean_dec(x_34); x_36 = 0; -x_37 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7(x_1, x_2, x_3, x_32, x_31, x_35, x_36, x_33, x_6, x_29); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(x_1, x_2, x_3, x_32, x_31, x_35, x_36, x_33, x_6, x_29); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; @@ -11072,7 +10792,7 @@ x_53 = lean_ctor_get(x_50, 1); lean_inc(x_53); lean_dec(x_50); x_54 = lean_box(0); -x_55 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_53, x_54, x_6, x_52); +x_55 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_53, x_54, x_6, x_52); return x_55; } else @@ -11126,7 +10846,7 @@ x_65 = lean_ctor_get(x_62, 1); lean_inc(x_65); lean_dec(x_62); x_66 = lean_box(0); -x_67 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_65, x_66, x_6, x_64); +x_67 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_65, x_66, x_6, x_64); return x_67; } else @@ -11237,7 +10957,7 @@ x_88 = lean_array_get_size(x_85); x_89 = lean_usize_of_nat(x_88); lean_dec(x_88); x_90 = 0; -x_91 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7(x_1, x_2, x_3, x_86, x_85, x_89, x_90, x_87, x_6, x_83); +x_91 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6(x_1, x_2, x_3, x_86, x_85, x_89, x_90, x_87, x_6, x_83); if (lean_obj_tag(x_91) == 0) { lean_object* x_92; @@ -11305,7 +11025,7 @@ x_103 = lean_ctor_get(x_99, 1); lean_inc(x_103); lean_dec(x_99); x_104 = lean_box(0); -x_105 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_103, x_104, x_6, x_102); +x_105 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_103, x_104, x_6, x_102); return x_105; } else @@ -11396,7 +11116,7 @@ return x_118; } } } -uint8_t l_Lean_Server_FileWorker_handleHover___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_Lean_Server_FileWorker_handleHover___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -11406,7 +11126,7 @@ lean_dec(x_3); return x_4; } } -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -11422,7 +11142,7 @@ x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_1); lean_ctor_set(x_12, 1, x_11); lean_inc(x_12); -x_13 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3(x_2, x_3, x_12, x_10, x_12, x_6, x_7); +x_13 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2(x_2, x_3, x_12, x_10, x_12, x_6, x_7); lean_dec(x_10); if (lean_obj_tag(x_13) == 0) { @@ -11639,7 +11359,7 @@ return x_51; } } } -static lean_object* _init_l_Lean_Server_FileWorker_handleHover___rarg___closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_handleHover___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -11649,7 +11369,7 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleHover___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_handleHover(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; @@ -11672,28 +11392,20 @@ lean_inc(x_10); lean_dec(x_1); x_11 = l_Lean_FileMap_lspPosToUtf8Pos(x_9, x_10); lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___rarg___lambda__1___boxed), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lambda__1___boxed), 2, 1); lean_closure_set(x_12, 0, x_11); x_13 = lean_box(0); x_14 = l_IO_AsyncList_waitFind_x3f___rarg___closed__1; -x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___rarg___lambda__2___boxed), 7, 4); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lambda__2___boxed), 7, 4); lean_closure_set(x_15, 0, x_13); lean_closure_set(x_15, 1, x_9); lean_closure_set(x_15, 2, x_11); lean_closure_set(x_15, 3, x_14); -x_16 = l_Lean_Server_FileWorker_handleHover___rarg___closed__1; +x_16 = l_Lean_Server_FileWorker_handleHover___closed__1; x_17 = l_Lean_Server_FileWorker_withWaitFindSnap___rarg(x_6, x_12, x_16, x_15, x_2, x_7); return x_17; } } -lean_object* l_Lean_Server_FileWorker_handleHover(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___rarg), 3, 0); -return x_2; -} -} lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleHover___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -11703,19 +11415,7 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___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_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___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); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__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* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -11723,7 +11423,7 @@ x_12 = lean_unbox_usize(x_7); lean_dec(x_7); x_13 = lean_unbox_usize(x_8); lean_dec(x_8); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_13, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_13, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_6); lean_dec(x_4); @@ -11731,26 +11431,41 @@ lean_dec(x_1); return x_14; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_12 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__5(x_1, x_2, x_3, x_4, x_5, x_11, x_12, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___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_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___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* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_7; -x_7 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_object* x_9; +x_9 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_9; } } lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___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) { @@ -11768,85 +11483,49 @@ lean_dec(x_1); return x_13; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7___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_6); -lean_dec(x_6); -x_12 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__7(x_1, x_2, x_3, x_4, x_5, x_11, x_12, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -return x_13; -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___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_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___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* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Server_FileWorker_handleHover___rarg___lambda__1(x_1, x_2); +x_3 = l_Lean_Server_FileWorker_handleHover___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_Server_FileWorker_handleHover___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_Server_FileWorker_handleHover___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Server_FileWorker_handleHover___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); return x_8; } } -lean_object* l_Lean_Server_FileWorker_handleHover___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleHover(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* l_Lean_Server_FileWorker_handleDefinition_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -11971,18 +11650,34 @@ return x_4; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_3); +lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_ctor_get(x_5, 0); +x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +if (lean_obj_tag(x_6) == 1) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_apply_2(x_2, x_6, x_7); -return x_8; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} } } } @@ -12830,7 +12525,7 @@ return x_28; } else { -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_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; uint8_t 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_dec(x_4); x_29 = lean_ctor_get(x_11, 1); lean_inc(x_29); @@ -12860,223 +12555,225 @@ if (lean_is_exclusive(x_7)) { lean_dec_ref(x_7); x_34 = lean_box(0); } -x_35 = l_Lean_Elab_TermInfo_pos_x3f(x_5); -x_36 = l_Lean_Elab_TermInfo_tailPos_x3f(x_5); -x_37 = lean_ctor_get(x_31, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +x_35 = lean_ctor_get(x_5, 2); +x_36 = 0; +x_37 = l_Lean_Syntax_getPos_x3f(x_35, x_36); +x_38 = l_Lean_Syntax_getTailPos_x3f(x_35, x_36); +x_39 = lean_ctor_get(x_31, 0); lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 2); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -x_41 = lean_ctor_get(x_37, 3); +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -lean_dec(x_37); -x_42 = lean_ctor_get(x_38, 0); +x_42 = lean_ctor_get(x_39, 2); lean_inc(x_42); -lean_dec(x_38); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_sub(x_42, x_43); -lean_dec(x_42); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_39); -x_46 = lean_ctor_get(x_40, 0); -lean_inc(x_46); +x_43 = lean_ctor_get(x_39, 3); +lean_inc(x_43); +lean_dec(x_39); +x_44 = lean_ctor_get(x_40, 0); +lean_inc(x_44); lean_dec(x_40); -x_47 = lean_nat_sub(x_46, x_43); -lean_dec(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_41); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_45); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_ctor_get(x_31, 1); -lean_inc(x_50); -lean_dec(x_31); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_sub(x_44, x_45); +lean_dec(x_44); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_41); +x_48 = lean_ctor_get(x_42, 0); +lean_inc(x_48); +lean_dec(x_42); +x_49 = lean_nat_sub(x_48, x_45); +lean_dec(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_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_47); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_ctor_get(x_31, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_50, 2); +lean_dec(x_31); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -x_54 = lean_ctor_get(x_50, 3); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); -lean_dec(x_50); -x_55 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_52, 2); lean_inc(x_55); -lean_dec(x_51); -x_56 = lean_nat_sub(x_55, x_43); -lean_dec(x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_52); -x_58 = lean_ctor_get(x_53, 0); -lean_inc(x_58); +x_56 = lean_ctor_get(x_52, 3); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_ctor_get(x_53, 0); +lean_inc(x_57); lean_dec(x_53); -x_59 = lean_nat_sub(x_58, x_43); -lean_dec(x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_54); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_57); -lean_ctor_set(x_61, 1, x_60); -if (lean_obj_tag(x_35) == 0) +x_58 = lean_nat_sub(x_57, x_45); +lean_dec(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_54); +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +lean_dec(x_55); +x_61 = lean_nat_sub(x_60, x_45); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_56); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_62); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = l_instInhabitedNat; -x_107 = l_Option_get_x21___rarg___closed__4; -x_108 = lean_panic_fn(x_106, x_107); -x_62 = x_108; -goto block_105; +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = l_instInhabitedNat; +x_109 = l_Option_get_x21___rarg___closed__4; +x_110 = lean_panic_fn(x_108, x_109); +x_64 = x_110; +goto block_107; } else { -lean_object* x_109; -x_109 = lean_ctor_get(x_35, 0); -lean_inc(x_109); -lean_dec(x_35); -x_62 = x_109; -goto block_105; +lean_object* x_111; +x_111 = lean_ctor_get(x_37, 0); +lean_inc(x_111); +lean_dec(x_37); +x_64 = x_111; +goto block_107; } -block_105: +block_107: { -lean_object* x_63; -x_63 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_62); -if (lean_obj_tag(x_36) == 0) +lean_object* x_65; +x_65 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_64); +if (lean_obj_tag(x_38) == 0) { -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; -x_64 = l_instInhabitedNat; -x_65 = l_Option_get_x21___rarg___closed__4; -x_66 = lean_panic_fn(x_64, x_65); -x_67 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_66); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_63); -lean_ctor_set(x_68, 1, x_67); +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; +x_66 = l_instInhabitedNat; +x_67 = l_Option_get_x21___rarg___closed__4; +x_68 = lean_panic_fn(x_66, x_67); +x_69 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_68); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_65); +lean_ctor_set(x_70, 1, x_69); if (lean_is_scalar(x_34)) { - x_69 = lean_alloc_ctor(1, 1, 0); + x_71 = lean_alloc_ctor(1, 1, 0); } else { - x_69 = x_34; + x_71 = x_34; } -lean_ctor_set(x_69, 0, x_68); -x_70 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_33); -lean_ctor_set(x_70, 2, x_49); -lean_ctor_set(x_70, 3, x_61); -x_71 = l_Lean_mkOptionalNode___closed__2; -x_72 = lean_array_push(x_71, x_70); +lean_ctor_set(x_71, 0, x_70); +x_72 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_33); +lean_ctor_set(x_72, 2, x_51); +lean_ctor_set(x_72, 3, x_63); +x_73 = l_Lean_mkOptionalNode___closed__2; +x_74 = lean_array_push(x_73, x_72); if (lean_is_scalar(x_32)) { - x_73 = lean_alloc_ctor(1, 1, 0); + x_75 = lean_alloc_ctor(1, 1, 0); } else { - x_73 = x_32; -} -lean_ctor_set(x_73, 0, x_72); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_77, 0, x_76); -if (lean_is_scalar(x_30)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_30; + x_75 = x_32; } +lean_ctor_set(x_75, 0, x_74); +x_76 = lean_box(0); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_29); -return x_78; +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_78); +if (lean_is_scalar(x_30)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_30; +} +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_29); +return x_80; } else { -uint8_t x_79; +uint8_t x_81; lean_dec(x_32); -x_79 = !lean_is_exclusive(x_36); -if (x_79 == 0) +x_81 = !lean_is_exclusive(x_38); +if (x_81 == 0) { -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; -x_80 = lean_ctor_get(x_36, 0); -x_81 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_80); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_63); -lean_ctor_set(x_82, 1, x_81); -lean_ctor_set(x_36, 0, x_82); -x_83 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_83, 0, x_36); -lean_ctor_set(x_83, 1, x_33); -lean_ctor_set(x_83, 2, x_49); -lean_ctor_set(x_83, 3, x_61); -x_84 = l_Lean_mkOptionalNode___closed__2; -x_85 = lean_array_push(x_84, x_83); +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; +x_82 = lean_ctor_get(x_38, 0); +x_83 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_82); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_65); +lean_ctor_set(x_84, 1, x_83); +lean_ctor_set(x_38, 0, x_84); +x_85 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_85, 0, x_38); +lean_ctor_set(x_85, 1, x_33); +lean_ctor_set(x_85, 2, x_51); +lean_ctor_set(x_85, 3, x_63); +x_86 = l_Lean_mkOptionalNode___closed__2; +x_87 = lean_array_push(x_86, x_85); if (lean_is_scalar(x_34)) { - x_86 = lean_alloc_ctor(1, 1, 0); + x_88 = lean_alloc_ctor(1, 1, 0); } else { - x_86 = x_34; -} -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_box(0); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_89, 0, x_88); -x_90 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_90, 0, x_89); -if (lean_is_scalar(x_30)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_30; + x_88 = x_34; } +lean_ctor_set(x_88, 0, x_87); +x_89 = lean_box(0); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +x_91 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_29); -return x_91; -} -else -{ -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; -x_92 = lean_ctor_get(x_36, 0); -lean_inc(x_92); -lean_dec(x_36); -x_93 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_92); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_63); -lean_ctor_set(x_94, 1, x_93); -x_95 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_95, 0, x_94); -x_96 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_33); -lean_ctor_set(x_96, 2, x_49); -lean_ctor_set(x_96, 3, x_61); -x_97 = l_Lean_mkOptionalNode___closed__2; -x_98 = lean_array_push(x_97, x_96); -if (lean_is_scalar(x_34)) { - x_99 = lean_alloc_ctor(1, 1, 0); -} else { - x_99 = x_34; -} -lean_ctor_set(x_99, 0, x_98); -x_100 = lean_box(0); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_102, 0, x_101); -x_103 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_103, 0, x_102); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_91); if (lean_is_scalar(x_30)) { - x_104 = lean_alloc_ctor(0, 2, 0); + x_93 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_30; + x_93 = x_30; } +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_29); +return x_93; +} +else +{ +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; +x_94 = lean_ctor_get(x_38, 0); +lean_inc(x_94); +lean_dec(x_38); +x_95 = l_Lean_FileMap_utf8PosToLspPos(x_6, x_94); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_65); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_96); +x_98 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_33); +lean_ctor_set(x_98, 2, x_51); +lean_ctor_set(x_98, 3, x_63); +x_99 = l_Lean_mkOptionalNode___closed__2; +x_100 = lean_array_push(x_99, x_98); +if (lean_is_scalar(x_34)) { + x_101 = lean_alloc_ctor(1, 1, 0); +} else { + x_101 = x_34; +} +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_box(0); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_29); -return x_104; +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_104); +if (lean_is_scalar(x_30)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_30; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_29); +return x_106; } } } @@ -13085,26 +12782,26 @@ return x_104; } else { -uint8_t x_110; +uint8_t x_112; lean_dec(x_7); lean_dec(x_4); -x_110 = !lean_is_exclusive(x_11); -if (x_110 == 0) +x_112 = !lean_is_exclusive(x_11); +if (x_112 == 0) { return x_11; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_11, 0); -x_112 = lean_ctor_get(x_11, 1); -lean_inc(x_112); -lean_inc(x_111); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_11, 0); +x_114 = lean_ctor_get(x_11, 1); +lean_inc(x_114); +lean_inc(x_113); lean_dec(x_11); -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_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; } } } @@ -13458,7 +13155,7 @@ lean_object* x_70; lean_object* x_71; lean_dec(x_11); x_70 = lean_array_uget(x_8, x_10); lean_inc(x_5); -x_71 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f(x_70, x_5); +x_71 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_70, x_5); if (lean_obj_tag(x_71) == 0) { lean_object* x_72; lean_object* x_73; @@ -13473,156 +13170,177 @@ goto block_66; } else { -lean_object* x_74; +lean_object* x_74; lean_object* x_75; x_74 = lean_ctor_get(x_71, 0); lean_inc(x_74); lean_dec(x_71); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_obj_tag(x_75) == 1) +{ if (x_1 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_74, 0); lean_inc(x_76); lean_dec(x_74); -x_77 = lean_ctor_get(x_76, 1); +x_77 = lean_ctor_get(x_75, 0); lean_inc(x_77); -lean_inc(x_6); -x_78 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_76, x_75, x_4, x_3, x_2, x_77, x_12, x_13); -lean_dec(x_77); lean_dec(x_75); -if (lean_obj_tag(x_78) == 0) -{ -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); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_inc(x_6); +x_79 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_77, x_76, x_4, x_3, x_2, x_78, x_12, x_13); lean_dec(x_78); -x_38 = x_79; -x_39 = x_80; +lean_dec(x_76); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_38 = x_80; +x_39 = x_81; goto block_66; } else { -uint8_t x_81; +uint8_t x_82; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_81 = !lean_is_exclusive(x_78); -if (x_81 == 0) +x_82 = !lean_is_exclusive(x_79); +if (x_82 == 0) { -return x_78; +return x_79; } 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_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 0); +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); 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_dec(x_79); +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 { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_85 = lean_ctor_get(x_74, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_74, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_86 = lean_ctor_get(x_74, 0); lean_inc(x_86); lean_dec(x_74); -x_87 = lean_ctor_get(x_86, 0); +x_87 = lean_ctor_get(x_75, 0); lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_dec(x_75); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -x_89 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_89, 0, x_88); -x_90 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_85, x_87, x_89, x_13); -if (lean_obj_tag(x_90) == 0) +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +x_90 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); +lean_closure_set(x_90, 0, x_89); +x_91 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_86, x_88, x_90, x_13); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); -lean_dec(x_90); -lean_inc(x_6); -x_93 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_86, x_85, x_4, x_3, x_2, x_91, x_12, x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); lean_dec(x_91); -lean_dec(x_85); -if (lean_obj_tag(x_93) == 0) +lean_inc(x_6); +x_94 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_87, x_86, x_4, x_3, x_2, x_92, x_12, x_93); +lean_dec(x_92); +lean_dec(x_86); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_94; lean_object* x_95; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_dec(x_93); -x_38 = x_94; -x_39 = x_95; +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_38 = x_95; +x_39 = x_96; goto block_66; } else { -uint8_t x_96; +uint8_t x_97; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_96 = !lean_is_exclusive(x_93); -if (x_96 == 0) +x_97 = !lean_is_exclusive(x_94); +if (x_97 == 0) { -return x_93; +return x_94; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_93, 0); -x_98 = lean_ctor_get(x_93, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_94, 0); +x_99 = lean_ctor_get(x_94, 1); +lean_inc(x_99); lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_93); -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_dec(x_94); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } else { -uint8_t x_100; +uint8_t x_101; +lean_dec(x_87); lean_dec(x_86); -lean_dec(x_85); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_100 = !lean_is_exclusive(x_90); -if (x_100 == 0) +x_101 = !lean_is_exclusive(x_91); +if (x_101 == 0) { -return x_90; +return x_91; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_90, 0); -x_102 = lean_ctor_get(x_90, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_91, 0); +x_103 = lean_ctor_get(x_91, 1); +lean_inc(x_103); lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_90); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_dec(x_91); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } } +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_75); +lean_dec(x_74); +lean_inc(x_6); +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_6); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +x_38 = x_106; +x_39 = x_13; +goto block_66; +} +} } block_37: { @@ -13969,7 +13687,7 @@ x_34 = lean_ctor_get(x_31, 1); lean_inc(x_34); lean_dec(x_31); x_35 = lean_box(0); -x_36 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_34, x_35, x_10, x_33); +x_36 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_34, x_35, x_10, x_33); return x_36; } else @@ -14023,7 +13741,7 @@ x_46 = lean_ctor_get(x_43, 1); lean_inc(x_46); lean_dec(x_43); x_47 = lean_box(0); -x_48 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_46, x_47, x_10, x_45); +x_48 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_46, x_47, x_10, x_45); return x_48; } else @@ -14172,7 +13890,7 @@ x_80 = lean_ctor_get(x_77, 1); lean_inc(x_80); lean_dec(x_77); x_81 = lean_box(0); -x_82 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_80, x_81, x_10, x_79); +x_82 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_80, x_81, x_10, x_79); return x_82; } else @@ -14226,7 +13944,7 @@ x_92 = lean_ctor_get(x_89, 1); lean_inc(x_92); lean_dec(x_89); x_93 = lean_box(0); -x_94 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__1(x_92, x_93, x_10, x_91); +x_94 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_92, x_93, x_10, x_91); return x_94; } else @@ -14309,7 +14027,7 @@ lean_object* x_75; lean_object* x_76; lean_dec(x_11); x_75 = lean_array_uget(x_8, x_10); lean_inc(x_5); -x_76 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f(x_75, x_5); +x_76 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_75, x_5); if (lean_obj_tag(x_76) == 0) { lean_object* x_77; lean_object* x_78; @@ -14324,156 +14042,177 @@ goto block_71; } else { -lean_object* x_79; +lean_object* x_79; lean_object* x_80; x_79 = lean_ctor_get(x_76, 0); lean_inc(x_79); lean_dec(x_76); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +if (lean_obj_tag(x_80) == 1) +{ if (x_1 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_79, 0); lean_inc(x_81); lean_dec(x_79); -x_82 = lean_ctor_get(x_81, 1); +x_82 = lean_ctor_get(x_80, 0); lean_inc(x_82); -lean_inc(x_6); -x_83 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_81, x_80, x_4, x_3, x_2, x_82, x_12, x_13); -lean_dec(x_82); lean_dec(x_80); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_inc(x_6); +x_84 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_82, x_81, x_4, x_3, x_2, x_83, x_12, x_13); lean_dec(x_83); -x_38 = x_84; -x_39 = x_85; +lean_dec(x_81); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_38 = x_85; +x_39 = x_86; goto block_71; } else { -uint8_t x_86; +uint8_t x_87; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_86 = !lean_is_exclusive(x_83); -if (x_86 == 0) +x_87 = !lean_is_exclusive(x_84); +if (x_87 == 0) { -return x_83; +return x_84; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_83, 0); -x_88 = lean_ctor_get(x_83, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_84, 0); +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_83); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; +lean_dec(x_84); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_90 = lean_ctor_get(x_79, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_79, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_91 = lean_ctor_get(x_79, 0); lean_inc(x_91); lean_dec(x_79); -x_92 = lean_ctor_get(x_91, 0); +x_92 = lean_ctor_get(x_80, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); +lean_dec(x_80); +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -x_94 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_94, 0, x_93); -x_95 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_90, x_92, x_94, x_13); -if (lean_obj_tag(x_95) == 0) +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +x_95 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); +lean_closure_set(x_95, 0, x_94); +x_96 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_91, x_93, x_95, x_13); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -lean_dec(x_95); -lean_inc(x_6); -x_98 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_91, x_90, x_4, x_3, x_2, x_96, x_12, x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); lean_dec(x_96); -lean_dec(x_90); -if (lean_obj_tag(x_98) == 0) +lean_inc(x_6); +x_99 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_92, x_91, x_4, x_3, x_2, x_97, x_12, x_98); +lean_dec(x_97); +lean_dec(x_91); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec(x_98); -x_38 = x_99; -x_39 = x_100; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_38 = x_100; +x_39 = x_101; goto block_71; } else { -uint8_t x_101; +uint8_t x_102; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_101 = !lean_is_exclusive(x_98); -if (x_101 == 0) +x_102 = !lean_is_exclusive(x_99); +if (x_102 == 0) { -return x_98; +return x_99; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_98, 0); -x_103 = lean_ctor_get(x_98, 1); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_99, 0); +x_104 = lean_ctor_get(x_99, 1); +lean_inc(x_104); lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_98); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; +lean_dec(x_99); +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_105; +uint8_t x_106; +lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_105 = !lean_is_exclusive(x_95); -if (x_105 == 0) +x_106 = !lean_is_exclusive(x_96); +if (x_106 == 0) { -return x_95; +return x_96; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_95, 0); -x_107 = lean_ctor_get(x_95, 1); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_96, 0); +x_108 = lean_ctor_get(x_96, 1); +lean_inc(x_108); lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_95); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +lean_dec(x_96); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; } } } } +else +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_80); +lean_dec(x_79); +lean_inc(x_6); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_6); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_110); +x_38 = x_111; +x_39 = x_13; +goto block_71; +} +} } block_37: { @@ -14969,7 +14708,7 @@ x_56 = lean_ctor_get(x_53, 1); lean_inc(x_56); lean_dec(x_53); x_57 = lean_box(0); -x_58 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_56, x_57, x_9, x_55); +x_58 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_56, x_57, x_9, x_55); return x_58; } else @@ -15023,7 +14762,7 @@ x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); lean_dec(x_65); x_69 = lean_box(0); -x_70 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_68, x_69, x_9, x_67); +x_70 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_68, x_69, x_9, x_67); return x_70; } else @@ -15202,7 +14941,7 @@ x_106 = lean_ctor_get(x_102, 1); lean_inc(x_106); lean_dec(x_102); x_107 = lean_box(0); -x_108 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_106, x_107, x_9, x_105); +x_108 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_106, x_107, x_9, x_105); return x_108; } else @@ -15542,43 +15281,43 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _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; 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_6 = lean_ctor_get(x_4, 4); -lean_inc(x_6); -x_7 = lean_st_ref_get(x_6, x_5); -lean_dec(x_6); -x_8 = lean_ctor_get(x_7, 0); +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; +x_5 = lean_ctor_get(x_3, 4); +lean_inc(x_5); +x_6 = lean_st_ref_get(x_5, x_4); +lean_dec(x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); +x_10 = lean_ctor_get(x_9, 2); lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 2); +x_11 = lean_ctor_get(x_2, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 1); +lean_dec(x_2); +x_12 = l_Lean_FileMap_lspPosToUtf8Pos(x_10, x_11); lean_inc(x_12); -lean_dec(x_3); -x_13 = l_Lean_FileMap_lspPosToUtf8Pos(x_11, x_12); -lean_inc(x_13); -x_14 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___rarg___lambda__1___boxed), 2, 1); -lean_closure_set(x_14, 0, x_13); -x_15 = l_Lean_Server_FileWorker_handleDefinition___closed__1; -x_16 = lean_box(x_1); -lean_inc(x_4); -x_17 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed), 9, 6); -lean_closure_set(x_17, 0, x_16); -lean_closure_set(x_17, 1, x_4); -lean_closure_set(x_17, 2, x_10); -lean_closure_set(x_17, 3, x_11); -lean_closure_set(x_17, 4, x_13); -lean_closure_set(x_17, 5, x_15); -x_18 = l_Lean_Server_FileWorker_handleDefinition___closed__2; -x_19 = l_Lean_Server_FileWorker_withWaitFindSnap___rarg(x_8, x_14, x_18, x_17, x_4, x_9); -return x_19; +x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lambda__1___boxed), 2, 1); +lean_closure_set(x_13, 0, x_12); +x_14 = l_Lean_Server_FileWorker_handleDefinition___closed__1; +x_15 = lean_box(x_1); +lean_inc(x_3); +x_16 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed), 9, 6); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_3); +lean_closure_set(x_16, 2, x_9); +lean_closure_set(x_16, 3, x_10); +lean_closure_set(x_16, 4, x_12); +lean_closure_set(x_16, 5, x_14); +x_17 = l_Lean_Server_FileWorker_handleDefinition___closed__2; +x_18 = l_Lean_Server_FileWorker_withWaitFindSnap___rarg(x_7, x_13, x_17, x_16, x_3, x_8); +return x_18; } } lean_object* l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___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) { @@ -15759,14 +15498,3369 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_1); +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); lean_dec(x_1); -x_7 = l_Lean_Server_FileWorker_handleDefinition(x_6, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_FileWorker_handleDefinition(x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +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_apply_2(x_2, x_6, x_7); +return x_8; +} +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal_match__3___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal_match__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Server_FileWorker_handlePlainGoal_match__3(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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 +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_1); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_12 = l_Lean_Meta_ppGoal(x_10, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1(x_11, x_2, x_3, x_4, x_5, x_14); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_ctor_set(x_1, 1, x_17); +lean_ctor_set(x_1, 0, x_13); +lean_ctor_set(x_15, 0, x_1); +return x_15; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_15); +lean_ctor_set(x_1, 1, x_18); +lean_ctor_set(x_1, 0, x_13); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_13); +lean_free_object(x_1); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +return x_15; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_15); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_free_object(x_1); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_12); +if (x_25 == 0) +{ +return x_12; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 0); +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_12); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_1, 0); +x_30 = lean_ctor_get(x_1, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_31 = l_Lean_Meta_ppGoal(x_29, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_29); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1(x_30, x_2, x_3, x_4, x_5, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_35); +if (lean_is_scalar(x_37)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_37; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_32); +x_40 = lean_ctor_get(x_34, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_42 = x_34; +} else { + lean_dec_ref(x_34); + x_42 = lean_box(0); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_30); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = lean_ctor_get(x_31, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_31, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_46 = x_31; +} else { + lean_dec_ref(x_31); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +} +} +lean_object* l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_Std_Format_defWidth; +x_7 = lean_format_pretty(x_4, x_6); +x_8 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; +x_9 = lean_string_append(x_8, x_7); +lean_dec(x_7); +x_10 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; +x_11 = lean_string_append(x_9, x_10); +x_12 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_5); +lean_ctor_set(x_1, 1, x_12); +lean_ctor_set(x_1, 0, x_11); +return x_1; +} +else +{ +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; +x_13 = lean_ctor_get(x_1, 0); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_1); +x_15 = l_Std_Format_defWidth; +x_16 = lean_format_pretty(x_13, x_15); +x_17 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; +x_18 = lean_string_append(x_17, x_16); +lean_dec(x_16); +x_19 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; +x_20 = lean_string_append(x_18, x_19); +x_21 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_35; +x_35 = x_7 < x_6; +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_8); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_10); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_array_uget(x_5, x_7); +x_39 = lean_ctor_get(x_8, 1); +lean_inc(x_39); +lean_dec(x_8); +lean_inc(x_9); +lean_inc(x_2); +lean_inc(x_1); +x_40 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4(x_1, x_2, x_3, x_38, x_39, x_9, x_10); +lean_dec(x_38); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = !lean_is_exclusive(x_41); +if (x_43 == 0) +{ +x_11 = x_41; +x_12 = x_42; +goto block_34; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_41, 0); +lean_inc(x_44); +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_11 = x_45; +x_12 = x_42; +goto block_34; +} +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_41, 0); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_dec(x_40); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_47); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_41, 0, x_52); +x_11 = x_41; +x_12 = x_48; +goto block_34; +} +else +{ +lean_object* x_53; uint8_t x_54; +x_53 = lean_ctor_get(x_40, 1); +lean_inc(x_53); +lean_dec(x_40); +x_54 = !lean_is_exclusive(x_47); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_47, 0); +lean_inc(x_4); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_4); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_47, 0, x_56); +x_11 = x_41; +x_12 = x_53; +goto block_34; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_47, 0); +lean_inc(x_57); +lean_dec(x_47); +lean_inc(x_4); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_4); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_41, 0, x_59); +x_11 = x_41; +x_12 = x_53; +goto block_34; +} +} +} +else +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_41, 0); +lean_inc(x_60); +lean_dec(x_41); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_ctor_get(x_40, 1); +lean_inc(x_61); +lean_dec(x_40); +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_60); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_11 = x_66; +x_12 = x_61; +goto block_34; +} +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; +x_67 = lean_ctor_get(x_40, 1); +lean_inc(x_67); +lean_dec(x_40); +x_68 = lean_ctor_get(x_60, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + x_69 = x_60; +} else { + lean_dec_ref(x_60); + x_69 = lean_box(0); +} +lean_inc(x_4); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_4); +lean_ctor_set(x_70, 1, x_68); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(1, 1, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_70); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_71); +x_11 = x_72; +x_12 = x_67; +goto block_34; +} +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_40); +if (x_73 == 0) +{ +return x_40; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_40, 0); +x_75 = lean_ctor_get(x_40, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_40); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +block_34: +{ +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_16, 0, x_15); +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 +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_11, 0); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +lean_ctor_set(x_11, 0, x_20); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; +} +else +{ +lean_object* x_22; size_t x_23; size_t x_24; +lean_free_object(x_11); +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +x_23 = 1; +x_24 = x_7 + x_23; +x_7 = x_24; +x_8 = x_22; +x_10 = x_12; +goto _start; +} +} +else +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_11, 0); +lean_inc(x_26); +lean_dec(x_11); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, 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_12); +return x_29; +} +else +{ +lean_object* x_30; size_t x_31; size_t x_32; +x_30 = lean_ctor_get(x_26, 0); +lean_inc(x_30); +lean_dec(x_26); +x_31 = 1; +x_32 = x_7 + x_31; +x_7 = x_32; +x_8 = x_30; +x_10 = x_12; +goto _start; +} +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1(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; +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_1); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +x_6 = lean_box(0); +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_alloc_ctor(0, 1, 0); +lean_ctor_set(x_8, 0, x_7); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, 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; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1___boxed), 3, 0); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\n---\n"); +return x_1; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t 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_34; lean_object* x_35; uint8_t x_63; +x_63 = x_6 < x_5; +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_7); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_9); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_7); +x_66 = lean_array_uget(x_4, x_6); +lean_inc(x_1); +x_67 = l_Lean_Elab_InfoTree_goalsAt_x3f(x_66, x_1); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; +lean_inc(x_2); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_2); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_34 = x_69; +x_35 = x_9; +goto block_62; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_70 = lean_ctor_get(x_67, 0); +lean_inc(x_70); +lean_dec(x_67); +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 = !lean_is_exclusive(x_71); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_74 = lean_ctor_get(x_71, 2); +lean_dec(x_74); +x_75 = lean_ctor_get(x_72, 3); +lean_inc(x_75); +lean_ctor_set(x_71, 2, x_75); +x_76 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1; +x_77 = lean_ctor_get(x_72, 4); +lean_inc(x_77); +lean_dec(x_72); +x_78 = l_List_isEmpty___rarg(x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_alloc_closure((void*)(l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1), 6, 1); +lean_closure_set(x_79, 0, x_77); +x_80 = l_Lean_LocalContext_mkEmpty___closed__1; +x_81 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_71, x_80, x_79, x_9); +lean_dec(x_71); +if (lean_obj_tag(x_81) == 0) +{ +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_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 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_82); +x_85 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2; +x_86 = l_String_intercalate(x_85, x_84); +lean_inc(x_8); +x_87 = lean_apply_3(x_76, x_86, x_8, x_83); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_34 = x_88; +x_35 = x_89; +goto block_62; +} +else +{ +uint8_t x_90; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_87); +if (x_90 == 0) +{ +return x_87; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_87, 0); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_87); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_94 = !lean_is_exclusive(x_81); +if (x_94 == 0) +{ +return x_81; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_81, 0); +x_96 = lean_ctor_get(x_81, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_81); +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; +} +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_77); +lean_dec(x_71); +x_98 = l_Lean_Elab_ContextInfo_ppGoals___closed__2; +lean_inc(x_8); +x_99 = lean_apply_3(x_76, x_98, x_8, x_9); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +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_34 = x_100; +x_35 = x_101; +goto block_62; +} +else +{ +uint8_t x_102; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_102 = !lean_is_exclusive(x_99); +if (x_102 == 0) +{ +return x_99; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_99, 0); +x_104 = lean_ctor_get(x_99, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_99); +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 +{ +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; uint8_t x_115; +x_106 = lean_ctor_get(x_71, 0); +x_107 = lean_ctor_get(x_71, 1); +x_108 = lean_ctor_get(x_71, 3); +x_109 = lean_ctor_get(x_71, 4); +x_110 = lean_ctor_get(x_71, 5); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_71); +x_111 = lean_ctor_get(x_72, 3); +lean_inc(x_111); +x_112 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_112, 0, x_106); +lean_ctor_set(x_112, 1, x_107); +lean_ctor_set(x_112, 2, x_111); +lean_ctor_set(x_112, 3, x_108); +lean_ctor_set(x_112, 4, x_109); +lean_ctor_set(x_112, 5, x_110); +x_113 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1; +x_114 = lean_ctor_get(x_72, 4); +lean_inc(x_114); +lean_dec(x_72); +x_115 = l_List_isEmpty___rarg(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_alloc_closure((void*)(l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1), 6, 1); +lean_closure_set(x_116, 0, x_114); +x_117 = l_Lean_LocalContext_mkEmpty___closed__1; +x_118 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_112, x_117, x_116, x_9); +lean_dec(x_112); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +x_121 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_119); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2; +x_123 = l_String_intercalate(x_122, x_121); +lean_inc(x_8); +x_124 = lean_apply_3(x_113, x_123, x_8, x_120); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +x_34 = x_125; +x_35 = x_126; +goto block_62; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_127 = lean_ctor_get(x_124, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_124, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_129 = x_124; +} else { + lean_dec_ref(x_124); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; +} +lean_ctor_set(x_130, 0, x_127); +lean_ctor_set(x_130, 1, x_128); +return x_130; +} +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_131 = lean_ctor_get(x_118, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_118, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_133 = x_118; +} else { + lean_dec_ref(x_118); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +else +{ +lean_object* x_135; lean_object* x_136; +lean_dec(x_114); +lean_dec(x_112); +x_135 = l_Lean_Elab_ContextInfo_ppGoals___closed__2; +lean_inc(x_8); +x_136 = lean_apply_3(x_113, x_135, x_8, x_9); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +x_34 = x_137; +x_35 = x_138; +goto block_62; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_141 = x_136; +} else { + lean_dec_ref(x_136); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +} +} +} +block_33: +{ +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_12; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_10, 0); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +lean_ctor_set(x_10, 0, x_19); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_11); +return x_20; +} +else +{ +lean_object* x_21; size_t x_22; size_t x_23; +lean_free_object(x_10); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = 1; +x_23 = x_6 + x_22; +x_6 = x_23; +x_7 = x_21; +x_9 = x_11; +goto _start; +} +} +else +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_10, 0); +lean_inc(x_25); +lean_dec(x_10); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_11); +return x_28; +} +else +{ +lean_object* x_29; size_t x_30; size_t x_31; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +lean_dec(x_25); +x_30 = 1; +x_31 = x_6 + x_30; +x_6 = x_31; +x_7 = x_29; +x_9 = x_11; +goto _start; +} +} +} +} +block_62: +{ +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 0); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_10 = x_38; +x_11 = x_35; +goto block_33; +} +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_34, 0); +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, 0); +lean_inc(x_41); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_40); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_34, 0, x_44); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_40, 0); +lean_inc(x_3); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_3); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_40, 0, x_47); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_40, 0); +lean_inc(x_48); +lean_dec(x_40); +lean_inc(x_3); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_3); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_34, 0, x_50); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +} +} +else +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_34, 0); +lean_inc(x_51); +lean_dec(x_34); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_10 = x_56; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_51, 0); +lean_inc(x_57); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + x_58 = x_51; +} else { + lean_dec_ref(x_51); + x_58 = lean_box(0); +} +lean_inc(x_3); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_3); +lean_ctor_set(x_59, 1, x_57); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(1, 1, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_10 = x_61; +x_11 = x_35; +goto block_33; +} +} +} +} +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; +x_8 = lean_ctor_get(x_4, 0); +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); +x_11 = lean_array_get_size(x_8); +x_12 = lean_usize_of_nat(x_11); +lean_dec(x_11); +x_13 = 0; +lean_inc(x_6); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__5(x_1, x_2, x_3, x_9, x_8, x_12, x_13, x_10, x_6, x_7); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +lean_dec(x_6); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_15, 0); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_14, 0, x_20); +return x_14; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + x_23 = x_15; +} else { + lean_dec_ref(x_15); + x_23 = lean_box(0); +} +if (lean_is_scalar(x_23)) { + x_24 = lean_alloc_ctor(0, 1, 0); +} else { + x_24 = x_23; +} +lean_ctor_set(x_24, 0, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_15); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_15, 0); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_free_object(x_15); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_dec(x_14); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_box(0); +x_32 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_30, x_31, x_6, x_29); +lean_dec(x_6); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_27); +lean_dec(x_6); +x_33 = !lean_is_exclusive(x_14); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_14, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_28, 0); +lean_inc(x_35); +lean_dec(x_28); +lean_ctor_set(x_15, 0, x_35); +return x_14; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_14, 1); +lean_inc(x_36); +lean_dec(x_14); +x_37 = lean_ctor_get(x_28, 0); +lean_inc(x_37); +lean_dec(x_28); +lean_ctor_set(x_15, 0, x_37); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_15); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_15, 0); +lean_inc(x_39); +lean_dec(x_15); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +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_14, 1); +lean_inc(x_41); +lean_dec(x_14); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_box(0); +x_44 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_42, x_43, x_6, x_41); +lean_dec(x_6); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_39); +lean_dec(x_6); +x_45 = lean_ctor_get(x_14, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_46 = x_14; +} else { + lean_dec_ref(x_14); + x_46 = lean_box(0); +} +x_47 = lean_ctor_get(x_40, 0); +lean_inc(x_47); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +if (lean_is_scalar(x_46)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_46; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; +} +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_6); +x_50 = !lean_is_exclusive(x_14); +if (x_50 == 0) +{ +return x_14; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_14, 0); +x_52 = lean_ctor_get(x_14, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_14); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; size_t x_58; size_t x_59; lean_object* x_60; +x_54 = lean_ctor_get(x_4, 0); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_5); +x_57 = lean_array_get_size(x_54); +x_58 = lean_usize_of_nat(x_57); +lean_dec(x_57); +x_59 = 0; +lean_inc(x_6); +x_60 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6(x_1, x_2, x_55, x_54, x_58, x_59, x_56, x_6, x_7); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +if (lean_obj_tag(x_61) == 0) +{ +uint8_t x_62; +lean_dec(x_6); +x_62 = !lean_is_exclusive(x_60); +if (x_62 == 0) +{ +lean_object* x_63; uint8_t x_64; +x_63 = lean_ctor_get(x_60, 0); +lean_dec(x_63); +x_64 = !lean_is_exclusive(x_61); +if (x_64 == 0) +{ +return x_60; +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_60, 0, x_66); +return x_60; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_ctor_get(x_60, 1); +lean_inc(x_67); +lean_dec(x_60); +x_68 = lean_ctor_get(x_61, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + x_69 = x_61; +} else { + lean_dec_ref(x_61); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 1, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_68); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_67); +return x_71; +} +} +else +{ +uint8_t x_72; +x_72 = !lean_is_exclusive(x_61); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_61, 0); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_free_object(x_61); +x_75 = lean_ctor_get(x_60, 1); +lean_inc(x_75); +lean_dec(x_60); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_box(0); +x_78 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_76, x_77, x_6, x_75); +lean_dec(x_6); +return x_78; +} +else +{ +uint8_t x_79; +lean_dec(x_73); +lean_dec(x_6); +x_79 = !lean_is_exclusive(x_60); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_60, 0); +lean_dec(x_80); +x_81 = lean_ctor_get(x_74, 0); +lean_inc(x_81); +lean_dec(x_74); +lean_ctor_set(x_61, 0, x_81); +return x_60; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_60, 1); +lean_inc(x_82); +lean_dec(x_60); +x_83 = lean_ctor_get(x_74, 0); +lean_inc(x_83); +lean_dec(x_74); +lean_ctor_set(x_61, 0, x_83); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_61); +lean_ctor_set(x_84, 1, x_82); +return x_84; +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_61, 0); +lean_inc(x_85); +lean_dec(x_61); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_60, 1); +lean_inc(x_87); +lean_dec(x_60); +x_88 = lean_ctor_get(x_85, 1); +lean_inc(x_88); +lean_dec(x_85); +x_89 = lean_box(0); +x_90 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__3___lambda__1(x_88, x_89, x_6, x_87); +lean_dec(x_6); +return x_90; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_6); +x_91 = lean_ctor_get(x_60, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_92 = x_60; +} else { + lean_dec_ref(x_60); + x_92 = lean_box(0); +} +x_93 = lean_ctor_get(x_86, 0); +lean_inc(x_93); +lean_dec(x_86); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_93); +if (lean_is_scalar(x_92)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_92; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_91); +return x_95; +} +} +} +} +else +{ +uint8_t x_96; +lean_dec(x_6); +x_96 = !lean_is_exclusive(x_60); +if (x_96 == 0) +{ +return x_60; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_60, 0); +x_98 = lean_ctor_get(x_60, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_60); +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* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t 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_34; lean_object* x_35; uint8_t x_68; +x_68 = x_6 < x_5; +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_7); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_9); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_7); +x_71 = lean_array_uget(x_4, x_6); +lean_inc(x_1); +x_72 = l_Lean_Elab_InfoTree_goalsAt_x3f(x_71, x_1); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_inc(x_2); +x_73 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_73, 0, x_2); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_34 = x_74; +x_35 = x_9; +goto block_67; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_75 = lean_ctor_get(x_72, 0); +lean_inc(x_75); +lean_dec(x_72); +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); +x_78 = !lean_is_exclusive(x_76); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_79 = lean_ctor_get(x_76, 2); +lean_dec(x_79); +x_80 = lean_ctor_get(x_77, 3); +lean_inc(x_80); +lean_ctor_set(x_76, 2, x_80); +x_81 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1; +x_82 = lean_ctor_get(x_77, 4); +lean_inc(x_82); +lean_dec(x_77); +x_83 = l_List_isEmpty___rarg(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_alloc_closure((void*)(l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1), 6, 1); +lean_closure_set(x_84, 0, x_82); +x_85 = l_Lean_LocalContext_mkEmpty___closed__1; +x_86 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_76, x_85, x_84, x_9); +lean_dec(x_76); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_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 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_87); +x_90 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2; +x_91 = l_String_intercalate(x_90, x_89); +lean_inc(x_8); +x_92 = lean_apply_3(x_81, x_91, x_8, x_88); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; +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); +x_34 = x_93; +x_35 = x_94; +goto block_67; +} +else +{ +uint8_t x_95; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_95 = !lean_is_exclusive(x_92); +if (x_95 == 0) +{ +return x_92; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_92, 0); +x_97 = lean_ctor_get(x_92, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_92); +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_99; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_99 = !lean_is_exclusive(x_86); +if (x_99 == 0) +{ +return x_86; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_86, 0); +x_101 = lean_ctor_get(x_86, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_86); +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 +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_76); +x_103 = l_Lean_Elab_ContextInfo_ppGoals___closed__2; +lean_inc(x_8); +x_104 = lean_apply_3(x_81, x_103, x_8, x_9); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_34 = x_105; +x_35 = x_106; +goto block_67; +} +else +{ +uint8_t x_107; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_104); +if (x_107 == 0) +{ +return x_104; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_104, 0); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_104); +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 +{ +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; uint8_t x_120; +x_111 = lean_ctor_get(x_76, 0); +x_112 = lean_ctor_get(x_76, 1); +x_113 = lean_ctor_get(x_76, 3); +x_114 = lean_ctor_get(x_76, 4); +x_115 = lean_ctor_get(x_76, 5); +lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_76); +x_116 = lean_ctor_get(x_77, 3); +lean_inc(x_116); +x_117 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_117, 0, x_111); +lean_ctor_set(x_117, 1, x_112); +lean_ctor_set(x_117, 2, x_116); +lean_ctor_set(x_117, 3, x_113); +lean_ctor_set(x_117, 4, x_114); +lean_ctor_set(x_117, 5, x_115); +x_118 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1; +x_119 = lean_ctor_get(x_77, 4); +lean_inc(x_119); +lean_dec(x_77); +x_120 = l_List_isEmpty___rarg(x_119); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_alloc_closure((void*)(l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__1), 6, 1); +lean_closure_set(x_121, 0, x_119); +x_122 = l_Lean_LocalContext_mkEmpty___closed__1; +x_123 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_117, x_122, x_121, x_9); +lean_dec(x_117); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l_List_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(x_124); +x_127 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2; +x_128 = l_String_intercalate(x_127, x_126); +lean_inc(x_8); +x_129 = lean_apply_3(x_118, x_128, x_8, x_125); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_34 = x_130; +x_35 = x_131; +goto block_67; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_132 = lean_ctor_get(x_129, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_129, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_134 = x_129; +} else { + lean_dec_ref(x_129); + 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_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; +} +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_136 = lean_ctor_get(x_123, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_123, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_138 = x_123; +} else { + lean_dec_ref(x_123); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = 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_140; lean_object* x_141; +lean_dec(x_119); +lean_dec(x_117); +x_140 = l_Lean_Elab_ContextInfo_ppGoals___closed__2; +lean_inc(x_8); +x_141 = lean_apply_3(x_118, x_140, x_8, x_9); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_34 = x_142; +x_35 = x_143; +goto block_67; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_144 = lean_ctor_get(x_141, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_141, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_146 = x_141; +} else { + lean_dec_ref(x_141); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(1, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +} +} +} +} +block_33: +{ +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_12; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_10, 0); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +lean_ctor_set(x_10, 0, x_19); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_11); +return x_20; +} +else +{ +lean_object* x_21; size_t x_22; size_t x_23; +lean_free_object(x_10); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = 1; +x_23 = x_6 + x_22; +x_6 = x_23; +x_7 = x_21; +x_9 = x_11; +goto _start; +} +} +else +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_10, 0); +lean_inc(x_25); +lean_dec(x_10); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_11); +return x_28; +} +else +{ +lean_object* x_29; size_t x_30; size_t x_31; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +lean_dec(x_25); +x_30 = 1; +x_31 = x_6 + x_30; +x_6 = x_31; +x_7 = x_29; +x_9 = x_11; +goto _start; +} +} +} +} +block_67: +{ +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 0); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_10 = x_38; +x_11 = x_35; +goto block_33; +} +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_34, 0); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, 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_42); +lean_ctor_set(x_40, 0, x_44); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +lean_dec(x_40); +lean_inc(x_45); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_34, 0, x_48); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +} +else +{ +uint8_t x_49; +x_49 = !lean_is_exclusive(x_40); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_40, 0); +lean_inc(x_3); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_3); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_40, 0, x_51); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_40, 0); +lean_inc(x_52); +lean_dec(x_40); +lean_inc(x_3); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_3); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_34, 0, x_54); +x_10 = x_34; +x_11 = x_35; +goto block_33; +} +} +} +else +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_34, 0); +lean_inc(x_55); +lean_dec(x_34); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +lean_inc(x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_56); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_56); +if (lean_is_scalar(x_57)) { + x_60 = lean_alloc_ctor(0, 1, 0); +} else { + x_60 = x_57; +} +lean_ctor_set(x_60, 0, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_10 = x_61; +x_11 = x_35; +goto block_33; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_55, 0); +lean_inc(x_62); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + x_63 = x_55; +} else { + lean_dec_ref(x_55); + x_63 = lean_box(0); +} +lean_inc(x_3); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_3); +lean_ctor_set(x_64, 1, x_62); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(1, 1, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_10 = x_66; +x_11 = x_35; +goto block_33; +} +} +} +} +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4(x_1, x_2, x_4, x_7, x_4, x_5, x_6); +lean_dec(x_4); +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) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_8, 0); +lean_dec(x_11); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +return x_8; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_9, 0); +lean_inc(x_13); +lean_dec(x_9); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_8, 0, x_14); +return x_8; +} +} +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_8, 1); +lean_inc(x_15); +lean_dec(x_8); +x_16 = lean_ctor_get(x_9, 0); +lean_inc(x_16); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + x_17 = x_9; +} else { + lean_dec_ref(x_9); + x_17 = lean_box(0); +} +if (lean_is_scalar(x_17)) { + x_18 = lean_alloc_ctor(0, 1, 0); +} else { + x_18 = x_17; +} +lean_ctor_set(x_18, 0, 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_15); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_9, 0); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_8); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_8, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +lean_ctor_set(x_9, 0, x_24); +return x_8; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_8, 1); +lean_inc(x_25); +lean_dec(x_8); +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +lean_dec(x_21); +lean_ctor_set(x_9, 0, x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_9); +lean_ctor_set(x_27, 1, x_25); +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; size_t x_34; size_t x_35; lean_object* x_36; +lean_free_object(x_9); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +lean_dec(x_8); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +x_30 = lean_ctor_get(x_3, 1); +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_29); +x_33 = lean_array_get_size(x_30); +x_34 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_35 = 0; +lean_inc(x_5); +x_36 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7(x_1, x_2, x_31, x_30, x_34, x_35, x_32, x_5, x_28); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_38; +lean_dec(x_5); +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_36, 0); +lean_dec(x_39); +x_40 = !lean_is_exclusive(x_37); +if (x_40 == 0) +{ +return x_36; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_37, 0); +lean_inc(x_41); +lean_dec(x_37); +x_42 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_36, 0, x_42); +return x_36; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +lean_dec(x_36); +x_44 = lean_ctor_get(x_37, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(0, 1, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_44); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_43); +return x_47; +} +} +else +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_37); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_37, 0); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_free_object(x_37); +x_51 = lean_ctor_get(x_36, 1); +lean_inc(x_51); +lean_dec(x_36); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = lean_box(0); +x_54 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_52, x_53, x_5, x_51); +lean_dec(x_5); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_5); +x_55 = !lean_is_exclusive(x_36); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_36, 0); +lean_dec(x_56); +x_57 = lean_ctor_get(x_50, 0); +lean_inc(x_57); +lean_dec(x_50); +lean_ctor_set(x_37, 0, x_57); +return x_36; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_36, 1); +lean_inc(x_58); +lean_dec(x_36); +x_59 = lean_ctor_get(x_50, 0); +lean_inc(x_59); +lean_dec(x_50); +lean_ctor_set(x_37, 0, x_59); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_37); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_37, 0); +lean_inc(x_61); +lean_dec(x_37); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_36, 1); +lean_inc(x_63); +lean_dec(x_36); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_box(0); +x_66 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_64, x_65, x_5, x_63); +lean_dec(x_5); +return x_66; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_61); +lean_dec(x_5); +x_67 = lean_ctor_get(x_36, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_68 = x_36; +} else { + lean_dec_ref(x_36); + x_68 = lean_box(0); +} +x_69 = lean_ctor_get(x_62, 0); +lean_inc(x_69); +lean_dec(x_62); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +if (lean_is_scalar(x_68)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_68; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_67); +return x_71; +} +} +} +} +else +{ +uint8_t x_72; +lean_dec(x_5); +x_72 = !lean_is_exclusive(x_36); +if (x_72 == 0) +{ +return x_36; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_36, 0); +x_74 = lean_ctor_get(x_36, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_36); +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; +x_76 = lean_ctor_get(x_9, 0); +lean_inc(x_76); +lean_dec(x_9); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_77 = lean_ctor_get(x_8, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_78 = x_8; +} else { + lean_dec_ref(x_8); + x_78 = lean_box(0); +} +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +if (lean_is_scalar(x_78)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_78; +} +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_77); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; lean_object* x_90; +x_82 = lean_ctor_get(x_8, 1); +lean_inc(x_82); +lean_dec(x_8); +x_83 = lean_ctor_get(x_76, 0); +lean_inc(x_83); +lean_dec(x_76); +x_84 = lean_ctor_get(x_3, 1); +x_85 = lean_box(0); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +x_87 = lean_array_get_size(x_84); +x_88 = lean_usize_of_nat(x_87); +lean_dec(x_87); +x_89 = 0; +lean_inc(x_5); +x_90 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7(x_1, x_2, x_85, x_84, x_88, x_89, x_86, x_5, x_82); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_5); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; +} else { + lean_dec_ref(x_90); + x_93 = lean_box(0); +} +x_94 = lean_ctor_get(x_91, 0); +lean_inc(x_94); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + x_95 = x_91; +} else { + lean_dec_ref(x_91); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(0, 1, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_94); +if (lean_is_scalar(x_93)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_93; +} +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_92); +return x_97; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_91, 0); +lean_inc(x_98); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + x_99 = x_91; +} else { + lean_dec_ref(x_91); + x_99 = lean_box(0); +} +x_100 = lean_ctor_get(x_98, 0); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_99); +x_101 = lean_ctor_get(x_90, 1); +lean_inc(x_101); +lean_dec(x_90); +x_102 = lean_ctor_get(x_98, 1); +lean_inc(x_102); +lean_dec(x_98); +x_103 = lean_box(0); +x_104 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__2___lambda__1(x_102, x_103, x_5, x_101); +lean_dec(x_5); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_98); +lean_dec(x_5); +x_105 = lean_ctor_get(x_90, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_106 = x_90; +} else { + lean_dec_ref(x_90); + x_106 = lean_box(0); +} +x_107 = lean_ctor_get(x_100, 0); +lean_inc(x_107); +lean_dec(x_100); +if (lean_is_scalar(x_99)) { + x_108 = lean_alloc_ctor(1, 1, 0); +} else { + x_108 = x_99; +} +lean_ctor_set(x_108, 0, x_107); +if (lean_is_scalar(x_106)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_106; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_105); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_5); +x_110 = lean_ctor_get(x_90, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_90, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_112 = x_90; +} else { + lean_dec_ref(x_90); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_114 = !lean_is_exclusive(x_8); +if (x_114 == 0) +{ +return x_8; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_8, 0); +x_116 = lean_ctor_get(x_8, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_8); +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* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = l_Lean_Server_Snapshots_Snapshot_toCmdState(x_4); +x_8 = lean_ctor_get(x_7, 7); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +lean_inc(x_11); +x_12 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___spec__3(x_2, x_11, x_9, x_11, x_5, x_6); +lean_dec(x_9); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +} +else +{ +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_12, 1); +lean_inc(x_19); +lean_dec(x_12); +x_20 = lean_ctor_get(x_13, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + x_21 = x_13; +} else { + lean_dec_ref(x_13); + x_21 = lean_box(0); +} +if (lean_is_scalar(x_21)) { + x_22 = lean_alloc_ctor(0, 1, 0); +} else { + x_22 = x_21; +} +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_free_object(x_13); +x_27 = !lean_is_exclusive(x_12); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_12, 0); +lean_dec(x_28); +lean_ctor_set(x_12, 0, x_3); +return x_12; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_dec(x_12); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_3); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_12); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_12, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_26, 0); +lean_inc(x_33); +lean_dec(x_26); +lean_ctor_set(x_13, 0, x_33); +return x_12; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_12, 1); +lean_inc(x_34); +lean_dec(x_12); +x_35 = lean_ctor_get(x_26, 0); +lean_inc(x_35); +lean_dec(x_26); +lean_ctor_set(x_13, 0, x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_13); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_13, 0); +lean_inc(x_37); +lean_dec(x_13); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_12, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_40 = x_12; +} else { + lean_dec_ref(x_12); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_3); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_3); +x_42 = lean_ctor_get(x_12, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_43 = x_12; +} else { + lean_dec_ref(x_12); + x_43 = lean_box(0); +} +x_44 = lean_ctor_get(x_38, 0); +lean_inc(x_44); +lean_dec(x_38); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +if (lean_is_scalar(x_43)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_43; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; +} +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_3); +x_47 = !lean_is_exclusive(x_12); +if (x_47 == 0) +{ +return x_12; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_12, 0); +x_49 = lean_ctor_get(x_12, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_12); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handlePlainGoal___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_IO_AsyncList_waitFind_x3f___rarg___closed__1; +x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Server_FileWorker_handleHover___spec__1___rarg___boxed), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal(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; +x_4 = lean_ctor_get(x_2, 4); +lean_inc(x_4); +x_5 = lean_st_ref_get(x_4, x_3); +lean_dec(x_4); +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_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = l_Lean_FileMap_lspPosToUtf8Pos(x_9, x_10); +lean_dec(x_9); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lambda__1___boxed), 2, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = lean_box(0); +x_14 = l_IO_AsyncList_waitFind_x3f___rarg___closed__1; +x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___boxed), 6, 3); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_11); +lean_closure_set(x_15, 2, x_14); +x_16 = l_Lean_Server_FileWorker_handlePlainGoal___closed__1; +x_17 = l_Lean_Server_FileWorker_withWaitFindSnap___rarg(x_6, x_12, x_16, x_15, x_2, x_7); +return x_17; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_12 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__5(x_1, x_2, x_3, x_4, x_5, x_11, x_12, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_3); +return x_13; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___lambda__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___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) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_11 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); +lean_dec(x_4); +return x_12; +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handlePlainGoal___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7___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_5); +lean_dec(x_5); +x_11 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__7(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); +lean_dec(x_4); +return x_12; +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handlePlainGoal___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_FileWorker_handlePlainGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); return x_7; } } @@ -19601,12 +22695,12 @@ x_8 = lean_io_as_task(x_6, x_7, x_2); return x_8; } } -lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol___rarg), 2, 0); -return x_3; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol___rarg), 2, 0); +return x_2; } } lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -19619,14 +22713,13 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = l_Lean_Server_FileWorker_handleDocumentSymbol(x_1, x_2); -lean_dec(x_2); +lean_object* x_2; +x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol(x_1); lean_dec(x_1); -return x_3; +return x_2; } } lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -20098,7 +23191,7 @@ return x_39; } } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -20108,15 +23201,15 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1; +x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1; return x_2; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -20126,7 +23219,7 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2() { _start: { lean_object* x_1; @@ -20134,7 +23227,7 @@ x_1 = lean_mk_string("Lean.Server.FileWorker"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -20142,36 +23235,36 @@ x_1 = lean_mk_string("Lean.Server.FileWorker.handleWaitForDiagnostics"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___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_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3; -x_3 = lean_unsigned_to_nat(507u); +x_1 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2; +x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3; +x_3 = lean_unsigned_to_nat(523u); x_4 = lean_unsigned_to_nat(26u); x_5 = l_Lean_Name_getString_x21___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_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___boxed), 1, 0); return x_1; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_1); -x_3 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1; -x_4 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4; +x_3 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; +x_4 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__4; x_5 = lean_panic_fn(x_3, x_4); x_6 = lean_apply_1(x_5, x_2); return x_6; @@ -20194,7 +23287,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_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5; +x_12 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5; 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); @@ -20208,7 +23301,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_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5; +x_17 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5; 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); @@ -20242,41 +23335,41 @@ return x_24; } } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1; +x_1 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1; +x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1; return x_2; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2() { +static lean_object* _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___boxed), 1, 0); return x_1; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(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; @@ -20293,7 +23386,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); -x_9 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1; +x_9 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1; x_10 = lean_io_bind_task(x_7, x_9, x_5, x_8); if (lean_obj_tag(x_10) == 0) { @@ -20303,7 +23396,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2; +x_13 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2; x_14 = lean_task_map(x_13, x_12, x_5); lean_ctor_set(x_10, 0, x_14); return x_10; @@ -20316,7 +23409,7 @@ x_16 = lean_ctor_get(x_10, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_10); -x_17 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2; +x_17 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2; x_18 = lean_task_map(x_17, x_15, x_5); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); @@ -20371,14 +23464,6 @@ return x_27; } } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg), 3, 0); -return x_2; -} -} lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___lambda__2___boxed(lean_object* x_1) { _start: { @@ -20388,29 +23473,20 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___boxed(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1(x_1); +x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___boxed(lean_object* x_1) { +lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics(x_1); +x_2 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3(x_1); lean_dec(x_1); return x_2; } @@ -23388,112 +26464,142 @@ x_1 = lean_mk_string("textDocument/documentSymbol"); return x_1; } } -lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6() { _start: { -lean_object* x_9; uint8_t x_10; -x_9 = l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; -x_10 = lean_string_dec_eq(x_1, x_9); -if (x_10 == 0) +lean_object* x_1; +x_1 = lean_mk_string("$/lean/plainGoal"); +return x_1; +} +} +lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: { -lean_object* x_11; uint8_t x_12; +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; +x_11 = lean_string_dec_eq(x_1, x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_dec(x_2); -x_11 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__1; -x_12 = lean_string_dec_eq(x_1, x_11); -if (x_12 == 0) +x_12 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__1; +x_13 = lean_string_dec_eq(x_1, x_12); +if (x_13 == 0) { -lean_object* x_13; uint8_t x_14; +lean_object* x_14; uint8_t x_15; lean_dec(x_3); -x_13 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__2; -x_14 = lean_string_dec_eq(x_1, x_13); -if (x_14 == 0) +x_14 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__2; +x_15 = lean_string_dec_eq(x_1, x_14); +if (x_15 == 0) { -lean_object* x_15; uint8_t x_16; +lean_object* x_16; uint8_t x_17; lean_dec(x_4); -x_15 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__3; -x_16 = lean_string_dec_eq(x_1, x_15); -if (x_16 == 0) +x_16 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__3; +x_17 = lean_string_dec_eq(x_1, x_16); +if (x_17 == 0) { -lean_object* x_17; uint8_t x_18; +lean_object* x_18; uint8_t x_19; lean_dec(x_5); -x_17 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__4; -x_18 = lean_string_dec_eq(x_1, x_17); -if (x_18 == 0) +x_18 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__4; +x_19 = lean_string_dec_eq(x_1, x_18); +if (x_19 == 0) { -lean_object* x_19; uint8_t x_20; +lean_object* x_20; uint8_t x_21; lean_dec(x_6); -x_19 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5; -x_20 = lean_string_dec_eq(x_1, x_19); -if (x_20 == 0) +x_20 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5; +x_21 = lean_string_dec_eq(x_1, x_20); +if (x_21 == 0) { -lean_object* x_21; +lean_object* x_22; uint8_t x_23; lean_dec(x_7); -x_21 = lean_apply_1(x_8, x_1); -return x_21; +x_22 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6; +x_23 = lean_string_dec_eq(x_1, x_22); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec(x_8); +x_24 = lean_apply_1(x_9, x_1); +return x_24; } else { -lean_object* x_22; lean_object* x_23; +lean_object* x_25; lean_object* x_26; +lean_dec(x_9); +lean_dec(x_1); +x_25 = lean_box(0); +x_26 = lean_apply_1(x_8, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_22 = lean_box(0); -x_23 = lean_apply_1(x_7, x_22); -return x_23; +x_27 = lean_box(0); +x_28 = lean_apply_1(x_7, x_27); +return x_28; } } else { -lean_object* x_24; lean_object* x_25; +lean_object* x_29; lean_object* x_30; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_24 = lean_box(0); -x_25 = lean_apply_1(x_6, x_24); -return x_25; +x_29 = lean_box(0); +x_30 = lean_apply_1(x_6, x_29); +return x_30; } } else { -lean_object* x_26; lean_object* x_27; +lean_object* x_31; lean_object* x_32; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_26 = lean_box(0); -x_27 = lean_apply_1(x_5, x_26); -return x_27; +x_31 = lean_box(0); +x_32 = lean_apply_1(x_5, x_31); +return x_32; } } else { -lean_object* x_28; lean_object* x_29; +lean_object* x_33; lean_object* x_34; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_28 = lean_box(0); -x_29 = lean_apply_1(x_4, x_28); -return x_29; +x_33 = lean_box(0); +x_34 = lean_apply_1(x_4, x_33); +return x_34; } } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_35; lean_object* x_36; +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); -x_30 = lean_box(0); -x_31 = lean_apply_1(x_3, x_30); -return x_31; +x_35 = lean_box(0); +x_36 = lean_apply_1(x_3, x_35); +return x_36; } } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_37; lean_object* x_38; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -23501,9 +26607,9 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_32 = lean_box(0); -x_33 = lean_apply_1(x_2, x_32); -return x_33; +x_37 = lean_box(0); +x_38 = lean_apply_1(x_2, x_37); +return x_38; } } } @@ -23511,7 +26617,7 @@ lean_object* l_Lean_Server_FileWorker_handleRequest_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest_match__2___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest_match__2___rarg), 9, 0); return x_2; } } @@ -23519,6 +26625,76 @@ lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_ha _start: { lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(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; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_1); +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +} +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +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_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = l_IO_FS_Stream_writeLspMessage(x_1, x_7, x_3); +lean_dec(x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_ctor_get(x_4, 0); +lean_inc(x_10); +lean_dec(x_4); +x_11 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_220_(x_10); +x_12 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_IO_FS_Stream_writeLspMessage(x_1, x_12, x_3); +lean_dec(x_12); +return x_13; +} +} +} +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_411_(x_1); if (lean_obj_tag(x_4) == 0) { @@ -23546,7 +26722,7 @@ return x_12; } } } -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__4(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; size_t x_7; size_t 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; @@ -23572,7 +26748,7 @@ lean_dec(x_13); return x_14; } } -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -23603,7 +26779,7 @@ return x_12; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -23632,7 +26808,7 @@ goto _start; } } } -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__6(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; size_t x_7; size_t 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; @@ -23646,7 +26822,7 @@ x_7 = lean_usize_of_nat(x_6); lean_dec(x_6); x_8 = 0; x_9 = x_5; -x_10 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5(x_7, x_8, x_9); +x_10 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7(x_7, x_8, x_9); x_11 = x_10; x_12 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_12, 0, x_11); @@ -23658,7 +26834,7 @@ lean_dec(x_13); return x_14; } } -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -23689,7 +26865,7 @@ return x_12; } } } -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -23728,7 +26904,7 @@ return x_13; } } } -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -23759,7 +26935,7 @@ return x_12; } } } -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11(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; @@ -23981,7 +27157,7 @@ lean_dec(x_1); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_2); lean_ctor_set(x_22, 1, x_20); -x_23 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__7(x_21, x_22, x_4); +x_23 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__6(x_21, x_22, x_4); return x_23; } } @@ -24053,6 +27229,77 @@ x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_2); lean_ctor_set(x_22, 1, x_20); x_23 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9(x_21, x_22, x_4); +return x_23; +} +} +} +} +lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_io_error_to_string(x_5); +x_8 = lean_box(0); +x_9 = 4; +x_10 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_7); +lean_ctor_set(x_10, 2, x_8); +lean_ctor_set_uint8(x_10, sizeof(void*)*3, x_9); +x_11 = l_IO_FS_Stream_writeLspResponseError(x_6, x_10, x_4); +lean_dec(x_10); +return x_11; +} +else +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +lean_dec(x_3); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_16); +lean_ctor_set(x_18, 2, x_17); +lean_ctor_set_uint8(x_18, sizeof(void*)*3, x_15); +x_19 = l_IO_FS_Stream_writeLspResponseError(x_14, x_18, x_4); +lean_dec(x_18); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_dec(x_1); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11(x_21, x_22, x_4); lean_dec(x_22); return x_23; } @@ -24100,716 +27347,838 @@ x_16 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5; x_17 = lean_string_dec_eq(x_2, 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_18; uint8_t x_19; +x_18 = l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6; +x_19 = lean_string_dec_eq(x_2, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_18 = l_Lean_Server_FileWorker_handleRequest___closed__1; -x_19 = lean_string_append(x_18, x_2); -x_20 = l_Lean_instInhabitedParserDescr___closed__1; -x_21 = lean_string_append(x_19, x_20); -x_22 = l_IO_throwServerError___rarg(x_21, x_5); -return x_22; +x_20 = l_Lean_Server_FileWorker_handleRequest___closed__1; +x_21 = lean_string_append(x_20, x_2); +x_22 = l_Lean_instInhabitedParserDescr___closed__1; +x_23 = lean_string_append(x_21, x_22); +x_24 = l_IO_throwServerError___rarg(x_23, x_5); +return x_24; } else { -lean_object* x_23; -x_23 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__1(x_3, x_4, x_5); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -lean_inc(x_4); -x_25 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(x_4, x_24); +lean_object* x_25; +x_25 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__1(x_3, x_4, x_5); if (lean_obj_tag(x_25) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); +lean_inc(x_4); +x_28 = l_Lean_Server_FileWorker_handlePlainGoal(x_26, x_4, x_27); +if (lean_obj_tag(x_28) == 0) +{ +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_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); lean_inc(x_1); lean_inc(x_4); -x_28 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__1), 4, 2); -lean_closure_set(x_28, 0, x_4); -lean_closure_set(x_28, 1, x_1); -x_29 = l_Task_Priority_default; -x_30 = lean_io_map_task(x_28, x_26, x_29, x_27); -if (lean_obj_tag(x_30) == 0) +x_31 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__1), 4, 2); +lean_closure_set(x_31, 0, x_4); +lean_closure_set(x_31, 1, x_1); +x_32 = l_Task_Priority_default; +x_33 = lean_io_map_task(x_31, x_29, x_32, x_30); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Server_FileWorker_queueRequest(x_1, x_31, x_4, x_32); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_Server_FileWorker_queueRequest(x_1, x_34, x_4, x_35); lean_dec(x_4); +return x_36; +} +else +{ +uint8_t x_37; +lean_dec(x_4); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) +{ return x_33; } else { -uint8_t x_34; -lean_dec(x_4); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) -{ -return x_30; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_30, 0); -x_36 = lean_ctor_get(x_30, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_30); -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_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_38; +uint8_t x_41; lean_dec(x_4); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_25); -if (x_38 == 0) +x_41 = !lean_is_exclusive(x_28); +if (x_41 == 0) +{ +return x_28; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_28, 0); +x_43 = lean_ctor_get(x_28, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_28); +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_4); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_25); +if (x_45 == 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 -{ -uint8_t x_42; -lean_dec(x_4); -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_23); -if (x_42 == 0) -{ -return x_23; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_23, 0); -x_44 = lean_ctor_get(x_23, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_23); -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; -} -} -} -} -else -{ -lean_object* x_46; -x_46 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(x_3, x_4, x_5); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_25, 0); +x_47 = lean_ctor_get(x_25, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = 1; -lean_inc(x_4); -x_50 = l_Lean_Server_FileWorker_handleDefinition(x_49, x_1, x_47, x_4, x_48); -if (lean_obj_tag(x_50) == 0) +lean_inc(x_46); +lean_dec(x_25); +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 { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +lean_object* x_49; +x_49 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(x_3, x_4, x_5); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +lean_inc(x_4); +x_51 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(x_4, x_50); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); lean_inc(x_1); lean_inc(x_4); -x_53 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__2), 4, 2); -lean_closure_set(x_53, 0, x_4); -lean_closure_set(x_53, 1, x_1); -x_54 = l_Task_Priority_default; -x_55 = lean_io_map_task(x_53, x_51, x_54, x_52); -if (lean_obj_tag(x_55) == 0) +x_54 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__2), 4, 2); +lean_closure_set(x_54, 0, x_4); +lean_closure_set(x_54, 1, x_1); +x_55 = l_Task_Priority_default; +x_56 = lean_io_map_task(x_54, x_52, x_55, x_53); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -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; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_Server_FileWorker_queueRequest(x_1, x_56, x_4, x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Server_FileWorker_queueRequest(x_1, x_57, x_4, x_58); lean_dec(x_4); -return x_58; +return x_59; } else { -uint8_t x_59; +uint8_t x_60; lean_dec(x_4); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_55); -if (x_59 == 0) +x_60 = !lean_is_exclusive(x_56); +if (x_60 == 0) { -return x_55; +return x_56; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_55, 0); -x_61 = lean_ctor_get(x_55, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 0); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_55); -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; +lean_dec(x_56); +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 { -uint8_t x_63; +uint8_t x_64; lean_dec(x_4); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_50); -if (x_63 == 0) +x_64 = !lean_is_exclusive(x_51); +if (x_64 == 0) { -return x_50; +return x_51; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_50, 0); -x_65 = lean_ctor_get(x_50, 1); +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_inc(x_66); lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_50); -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; +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; } } } else { -uint8_t x_67; +uint8_t x_68; lean_dec(x_4); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_46); -if (x_67 == 0) +x_68 = !lean_is_exclusive(x_49); +if (x_68 == 0) { -return x_46; +return x_49; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_46, 0); -x_69 = lean_ctor_get(x_46, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_49, 0); +x_70 = lean_ctor_get(x_49, 1); +lean_inc(x_70); lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_46); -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 -{ -lean_object* x_71; -x_71 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(x_3, x_4, x_5); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = 0; -lean_inc(x_4); -x_75 = l_Lean_Server_FileWorker_handleDefinition(x_74, x_1, x_72, x_4, x_73); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -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_1); -lean_inc(x_4); -x_78 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__2), 4, 2); -lean_closure_set(x_78, 0, x_4); -lean_closure_set(x_78, 1, x_1); -x_79 = l_Task_Priority_default; -x_80 = lean_io_map_task(x_78, x_76, x_79, x_77); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = l_Lean_Server_FileWorker_queueRequest(x_1, x_81, x_4, x_82); -lean_dec(x_4); -return x_83; -} -else -{ -uint8_t x_84; -lean_dec(x_4); -lean_dec(x_1); -x_84 = !lean_is_exclusive(x_80); -if (x_84 == 0) -{ -return x_80; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_80, 0); -x_86 = lean_ctor_get(x_80, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_80); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -} -else -{ -uint8_t x_88; -lean_dec(x_4); -lean_dec(x_1); -x_88 = !lean_is_exclusive(x_75); -if (x_88 == 0) -{ -return x_75; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_75, 0); -x_90 = lean_ctor_get(x_75, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_75); -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_92; -lean_dec(x_4); -lean_dec(x_1); -x_92 = !lean_is_exclusive(x_71); -if (x_92 == 0) -{ +lean_dec(x_49); +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_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_71, 0); -x_94 = lean_ctor_get(x_71, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_71); -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; -x_96 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3(x_3, x_4, x_5); -if (lean_obj_tag(x_96) == 0) +lean_object* x_72; +x_72 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(x_3, x_4, x_5); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = 0; +lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = 1; lean_inc(x_4); -x_100 = l_Lean_Server_FileWorker_handleDefinition(x_99, x_1, x_97, x_4, x_98); -if (lean_obj_tag(x_100) == 0) +x_76 = l_Lean_Server_FileWorker_handleDefinition(x_75, x_73, x_4, x_74); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +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); lean_inc(x_1); lean_inc(x_4); -x_103 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__2), 4, 2); -lean_closure_set(x_103, 0, x_4); -lean_closure_set(x_103, 1, x_1); -x_104 = l_Task_Priority_default; -x_105 = lean_io_map_task(x_103, x_101, x_104, x_102); -if (lean_obj_tag(x_105) == 0) +x_79 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__3), 4, 2); +lean_closure_set(x_79, 0, x_4); +lean_closure_set(x_79, 1, x_1); +x_80 = l_Task_Priority_default; +x_81 = lean_io_map_task(x_79, x_77, x_80, x_78); +if (lean_obj_tag(x_81) == 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 = l_Lean_Server_FileWorker_queueRequest(x_1, x_106, x_4, x_107); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +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 = l_Lean_Server_FileWorker_queueRequest(x_1, x_82, x_4, x_83); lean_dec(x_4); -return x_108; +return x_84; } else { -uint8_t x_109; +uint8_t x_85; lean_dec(x_4); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_105); -if (x_109 == 0) +x_85 = !lean_is_exclusive(x_81); +if (x_85 == 0) { -return x_105; +return x_81; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_105, 0); -x_111 = lean_ctor_get(x_105, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_105); -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; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_81, 0); +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_81); +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; } } } else { -uint8_t x_113; +uint8_t x_89; lean_dec(x_4); lean_dec(x_1); -x_113 = !lean_is_exclusive(x_100); -if (x_113 == 0) +x_89 = !lean_is_exclusive(x_76); +if (x_89 == 0) { -return x_100; +return x_76; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_100, 0); -x_115 = lean_ctor_get(x_100, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_100); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_76, 0); +x_91 = lean_ctor_get(x_76, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_76); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } else { -uint8_t x_117; +uint8_t x_93; lean_dec(x_4); lean_dec(x_1); -x_117 = !lean_is_exclusive(x_96); -if (x_117 == 0) +x_93 = !lean_is_exclusive(x_72); +if (x_93 == 0) { +return x_72; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_72, 0); +x_95 = lean_ctor_get(x_72, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_72); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); return x_96; } -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_96, 0); -x_119 = lean_ctor_get(x_96, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_96); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; -} } } } else { -lean_object* x_121; -x_121 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6(x_3, x_4, x_5); -if (lean_obj_tag(x_121) == 0) +lean_object* x_97; +x_97 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(x_3, x_4, x_5); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_122; lean_object* x_123; lean_object* x_124; -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); +lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = 0; lean_inc(x_4); -x_124 = l_Lean_Server_FileWorker_handleHover___rarg(x_122, x_4, x_123); -if (lean_obj_tag(x_124) == 0) +x_101 = l_Lean_Server_FileWorker_handleDefinition(x_100, x_98, x_4, x_99); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec(x_124); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); lean_inc(x_1); lean_inc(x_4); -x_127 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__3), 4, 2); -lean_closure_set(x_127, 0, x_4); -lean_closure_set(x_127, 1, x_1); -x_128 = l_Task_Priority_default; -x_129 = lean_io_map_task(x_127, x_125, x_128, x_126); -if (lean_obj_tag(x_129) == 0) +x_104 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__3), 4, 2); +lean_closure_set(x_104, 0, x_4); +lean_closure_set(x_104, 1, x_1); +x_105 = l_Task_Priority_default; +x_106 = lean_io_map_task(x_104, x_102, x_105, x_103); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = l_Lean_Server_FileWorker_queueRequest(x_1, x_130, x_4, x_131); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = l_Lean_Server_FileWorker_queueRequest(x_1, x_107, x_4, x_108); lean_dec(x_4); -return x_132; +return x_109; } else { -uint8_t x_133; +uint8_t x_110; lean_dec(x_4); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_129); -if (x_133 == 0) +x_110 = !lean_is_exclusive(x_106); +if (x_110 == 0) { -return x_129; +return x_106; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_129, 0); -x_135 = lean_ctor_get(x_129, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_129); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_106, 0); +x_112 = lean_ctor_get(x_106, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_106); +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; } } } else { -uint8_t x_137; +uint8_t x_114; lean_dec(x_4); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_124); -if (x_137 == 0) +x_114 = !lean_is_exclusive(x_101); +if (x_114 == 0) { -return x_124; +return x_101; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_124, 0); -x_139 = lean_ctor_get(x_124, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_124); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_101, 0); +x_116 = lean_ctor_get(x_101, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_101); +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; } } } else { -uint8_t x_141; +uint8_t x_118; lean_dec(x_4); lean_dec(x_1); -x_141 = !lean_is_exclusive(x_121); -if (x_141 == 0) +x_118 = !lean_is_exclusive(x_97); +if (x_118 == 0) { +return x_97; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_97, 0); +x_120 = lean_ctor_get(x_97, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_97); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); return x_121; } -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_121, 0); -x_143 = lean_ctor_get(x_121, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_121); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} } } } else { -lean_object* x_145; -x_145 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8(x_3, x_4, x_5); -if (lean_obj_tag(x_145) == 0) +lean_object* x_122; +x_122 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(x_3, x_4, x_5); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; +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 = 0; lean_inc(x_4); -x_148 = l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg(x_146, x_4, x_147); -if (lean_obj_tag(x_148) == 0) +x_126 = l_Lean_Server_FileWorker_handleDefinition(x_125, x_123, x_4, x_124); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); +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_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); lean_inc(x_1); lean_inc(x_4); -x_151 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__4), 4, 2); -lean_closure_set(x_151, 0, x_4); -lean_closure_set(x_151, 1, x_1); -x_152 = l_Task_Priority_default; -x_153 = lean_io_map_task(x_151, x_149, x_152, x_150); -if (lean_obj_tag(x_153) == 0) +x_129 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__3), 4, 2); +lean_closure_set(x_129, 0, x_4); +lean_closure_set(x_129, 1, x_1); +x_130 = l_Task_Priority_default; +x_131 = lean_io_map_task(x_129, x_127, x_130, x_128); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_154; lean_object* x_155; lean_object* x_156; -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_Server_FileWorker_queueRequest(x_1, x_154, x_4, x_155); +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 = l_Lean_Server_FileWorker_queueRequest(x_1, x_132, x_4, x_133); lean_dec(x_4); -return x_156; +return x_134; } else { -uint8_t x_157; +uint8_t x_135; lean_dec(x_4); lean_dec(x_1); -x_157 = !lean_is_exclusive(x_153); -if (x_157 == 0) +x_135 = !lean_is_exclusive(x_131); +if (x_135 == 0) { -return x_153; +return x_131; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_153, 0); -x_159 = lean_ctor_get(x_153, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_153); -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_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_131, 0); +x_137 = lean_ctor_get(x_131, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_131); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; } } } else { -uint8_t x_161; +uint8_t x_139; lean_dec(x_4); lean_dec(x_1); -x_161 = !lean_is_exclusive(x_148); -if (x_161 == 0) +x_139 = !lean_is_exclusive(x_126); +if (x_139 == 0) { -return x_148; +return x_126; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_148, 0); -x_163 = lean_ctor_get(x_148, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_148); -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_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_126, 0); +x_141 = lean_ctor_get(x_126, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_126); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; } } } else { -uint8_t x_165; +uint8_t x_143; lean_dec(x_4); lean_dec(x_1); -x_165 = !lean_is_exclusive(x_145); -if (x_165 == 0) +x_143 = !lean_is_exclusive(x_122); +if (x_143 == 0) { -return x_145; +return x_122; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_145, 0); -x_167 = lean_ctor_get(x_145, 1); -lean_inc(x_167); -lean_inc(x_166); -lean_dec(x_145); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_167); -return x_168; +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_122, 0); +x_145 = lean_ctor_get(x_122, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_122); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +return x_146; +} +} +} +} +else +{ +lean_object* x_147; +x_147 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8(x_3, x_4, x_5); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +lean_inc(x_4); +x_150 = l_Lean_Server_FileWorker_handleHover(x_148, x_4, x_149); +if (lean_obj_tag(x_150) == 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_inc(x_152); +lean_dec(x_150); +lean_inc(x_1); +lean_inc(x_4); +x_153 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__4), 4, 2); +lean_closure_set(x_153, 0, x_4); +lean_closure_set(x_153, 1, x_1); +x_154 = l_Task_Priority_default; +x_155 = lean_io_map_task(x_153, x_151, x_154, x_152); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = l_Lean_Server_FileWorker_queueRequest(x_1, x_156, x_4, x_157); +lean_dec(x_4); +return x_158; +} +else +{ +uint8_t x_159; +lean_dec(x_4); +lean_dec(x_1); +x_159 = !lean_is_exclusive(x_155); +if (x_159 == 0) +{ +return x_155; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_155, 0); +x_161 = lean_ctor_get(x_155, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_155); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +} +else +{ +uint8_t x_163; +lean_dec(x_4); +lean_dec(x_1); +x_163 = !lean_is_exclusive(x_150); +if (x_163 == 0) +{ +return x_150; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_150, 0); +x_165 = lean_ctor_get(x_150, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_150); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; +} +} +} +else +{ +uint8_t x_167; +lean_dec(x_4); +lean_dec(x_1); +x_167 = !lean_is_exclusive(x_147); +if (x_167 == 0) +{ +return x_147; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_147, 0); +x_169 = lean_ctor_get(x_147, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_147); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_169); +return x_170; +} +} +} +} +else +{ +lean_object* x_171; +x_171 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10(x_3, x_4, x_5); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +lean_inc(x_4); +x_174 = l_Lean_Server_FileWorker_handleWaitForDiagnostics(x_172, x_4, x_173); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +lean_inc(x_1); +lean_inc(x_4); +x_177 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleRequest___lambda__5), 4, 2); +lean_closure_set(x_177, 0, x_4); +lean_closure_set(x_177, 1, x_1); +x_178 = l_Task_Priority_default; +x_179 = lean_io_map_task(x_177, x_175, x_178, x_176); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = l_Lean_Server_FileWorker_queueRequest(x_1, x_180, x_4, x_181); +lean_dec(x_4); +return x_182; +} +else +{ +uint8_t x_183; +lean_dec(x_4); +lean_dec(x_1); +x_183 = !lean_is_exclusive(x_179); +if (x_183 == 0) +{ +return x_179; +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_179, 0); +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_179); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; +} +} +} +else +{ +uint8_t x_187; +lean_dec(x_4); +lean_dec(x_1); +x_187 = !lean_is_exclusive(x_174); +if (x_187 == 0) +{ +return x_174; +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_ctor_get(x_174, 0); +x_189 = lean_ctor_get(x_174, 1); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_174); +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_188); +lean_ctor_set(x_190, 1, x_189); +return x_190; +} +} +} +else +{ +uint8_t x_191; +lean_dec(x_4); +lean_dec(x_1); +x_191 = !lean_is_exclusive(x_171); +if (x_191 == 0) +{ +return x_171; +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_171, 0); +x_193 = lean_ctor_get(x_171, 1); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_171); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +return x_194; } } } @@ -24833,7 +28202,16 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7___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; @@ -24841,19 +28219,10 @@ 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_handleRequest___spec__5(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__7(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__6(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -24863,11 +28232,20 @@ lean_dec(x_2); return x_4; } } -lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__9(x_1, x_2, x_3); +x_4 = l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__10(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__11(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -25990,18 +29368,18 @@ goto block_46; block_46: { 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; -x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; +x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; x_24 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_22, x_23); -x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; +x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_22, x_25); -x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; +x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_22, x_27); -x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; -x_30 = l_Lean_Json_getObjVal_x3f(x_22, x_29); -x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; -x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_22, x_31); -x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; -x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_33); +x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; +x_30 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(x_22, x_29); +x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; +x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_31); +x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; +x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_22, x_33); lean_dec(x_22); if (lean_obj_tag(x_32) == 0) { @@ -28538,26 +31916,20 @@ l_Lean_Server_FileWorker_RequestError_fileChanged = _init_l_Lean_Server_FileWork lean_mark_persistent(l_Lean_Server_FileWorker_RequestError_fileChanged); l_Lean_Server_FileWorker_withWaitFindSnap___rarg___lambda__1___closed__1 = _init_l_Lean_Server_FileWorker_withWaitFindSnap___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_withWaitFindSnap___rarg___lambda__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__5); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6); -l_Lean_Server_FileWorker_handleHover___rarg___closed__1 = _init_l_Lean_Server_FileWorker_handleHover___rarg___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleHover___rarg___closed__1); +l_Lean_Server_FileWorker_handleHover___closed__1 = _init_l_Lean_Server_FileWorker_handleHover___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleHover___closed__1); l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1); l_Lean_Server_FileWorker_handleDefinition___closed__1 = _init_l_Lean_Server_FileWorker_handleDefinition___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDefinition___closed__1); l_Lean_Server_FileWorker_handleDefinition___closed__2 = _init_l_Lean_Server_FileWorker_handleDefinition___closed__2(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDefinition___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__6___closed__2); +l_Lean_Server_FileWorker_handlePlainGoal___closed__1 = _init_l_Lean_Server_FileWorker_handlePlainGoal___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handlePlainGoal___closed__1); l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__1 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__1); l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__2 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___closed__2(); @@ -28574,24 +31946,24 @@ l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___sp lean_mark_persistent(l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__1); l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__2 = _init_l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__2(); lean_mark_persistent(l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__2); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1___closed__1); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__1); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__2); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__3); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__4); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__2___closed__5); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__3___closed__1); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__1); -l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___closed__2); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__2); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__3); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__4 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__4); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__5); +l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___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_FileWorker_handleWaitForDiagnostics___closed__2 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__2); l_Lean_Server_FileWorker_parseParams___rarg___closed__1 = _init_l_Lean_Server_FileWorker_parseParams___rarg___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_parseParams___rarg___closed__1); l_Lean_Server_FileWorker_handleNotification_match__1___rarg___closed__1 = _init_l_Lean_Server_FileWorker_handleNotification_match__1___rarg___closed__1(); @@ -28610,6 +31982,8 @@ l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__4 = _init_l_Lea lean_mark_persistent(l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__4); l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5 = _init_l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5(); lean_mark_persistent(l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5); +l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6 = _init_l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__6); l_Lean_Server_FileWorker_handleRequest___closed__1 = _init_l_Lean_Server_FileWorker_handleRequest___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleRequest___closed__1); l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__1 = _init_l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__1(); diff --git a/stage0/stdlib/Lean/Server/InfoUtils.c b/stage0/stdlib/Lean/Server/InfoUtils.c index 9f4e0065ca..6ca7ce3f07 100644 --- a/stage0/stdlib/Lean/Server/InfoUtils.c +++ b/stage0/stdlib/Lean/Server/InfoUtils.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Server.InfoUtils -// Imports: Init Lean.Elab.InfoTree Lean.Util.Sorry +// Imports: Init Lean.DocString Lean.Elab.InfoTree Lean.Util.Sorry #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,131 +13,214 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_TermInfo_pos_x3f(lean_object*); +lean_object* l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_fieldIdxKind; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__3(lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__6(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Lean_Elab_TacticInfo_tailPos_x3f___boxed(lean_object*); +lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1(lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1(lean_object*); lean_object* l_Std_PersistentArray_get_x21___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__13(lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); -lean_object* l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestNodes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapIdxM_map___at_Array_mapIdx___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__2(lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7; +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_Format_join___closed__1; lean_object* l_Lean_Elab_InfoTree_smallestNode_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; +lean_object* l_Lean_Meta_ppExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe___at_Array_any___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7; +lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentArray_empty___closed__1; +uint8_t l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1(lean_object*, lean_object*); extern lean_object* l_instInhabitedNat; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_interpolatedStrKind; -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1(lean_object*); +lean_object* l_Lean_Elab_Info_pos_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2(lean_object*); lean_object* l_List_join___rarg(lean_object*); uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nameLitKind; +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3; +lean_object* l_Lean_Elab_Info_tailPos_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates___closed__1; +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; lean_object* l_Lean_Elab_InfoTree_smallestNodes_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe___at_Array_foldl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5; extern lean_object* l_Lean_numLitKind; -lean_object* l_Lean_Elab_TermInfo_pos_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestNode_x3f_match__1(lean_object*); +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1(lean_object*); extern lean_object* l_Lean_strLitKind; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__4(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_getAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__14(lean_object*, size_t, size_t); lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_qsort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object*, lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__2; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__1; lean_object* l_Std_PersistentArray_get_x21___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__13___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__7(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__3(lean_object*); -uint8_t l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2; +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__3(lean_object*); lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1___boxed(lean_object*); +lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(lean_object*); extern lean_object* l_Lean_charLitKind; lean_object* l_Lean_Elab_InfoTree_smallestNode_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_TermInfo_tailPos_x3f___boxed(lean_object*); size_t l_USize_shiftLeft(size_t, size_t); -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8; -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___boxed(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2(lean_object*); +extern lean_object* l_Lean_docStringExt; +lean_object* l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1; +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_stx(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__3(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates(lean_object*); lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__4(lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves_match__1(lean_object*); +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___boxed(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4; size_t l_USize_land(size_t, size_t); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9; +lean_object* l_Array_mapIdxM_map_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1; +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__2(lean_object*); lean_object* l_Std_PersistentArray_toList___rarg(lean_object*); -lean_object* l_Lean_Elab_TacticInfo_pos_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f(lean_object*, lean_object*); +lean_object* l_Std_fmt___at_Lean_Level_PP_Result_format___spec__1(lean_object*); +lean_object* l_Array_qsort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); extern lean_object* l_Option_get_x21___rarg___closed__4; +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8; lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3; +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9; lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_scientificLitKind; -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2; -lean_object* l_Lean_Elab_TacticInfo_pos_x3f(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1; +lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2; lean_object* l_Std_PersistentArray_getAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__14___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Name_beq___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__5(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*); -uint8_t l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1(lean_object*, lean_object*); -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3(lean_object*); -lean_object* l_Lean_Elab_TacticInfo_tailPos_x3f(lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_instInhabitedContextInfo; +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_stx_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_InfoTree_smallestNodes___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_match__1(lean_object*); +lean_object* l_Lean_Elab_Info_stx___boxed(lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_InfoTree_smallestNodes___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6; +uint8_t l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1; +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4; +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestNodes(lean_object*, lean_object*); -lean_object* l_Lean_Elab_TermInfo_tailPos_x3f(lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__1; +lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); +lean_object* l_Lean_Elab_Info_stx_match__1(lean_object*); +lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2(lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +extern lean_object* l_Lean_Elab_instInhabitedTacticInfo; +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2(lean_object*); lean_object* lean_usize_to_nat(size_t); +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__4(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1(lean_object*); extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__14; +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_interpolatedStrLitKind; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__1(lean_object*); extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; lean_object* l_Lean_Elab_InfoTree_smallestNode_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: @@ -1266,136 +1349,1746 @@ return x_18; } } } -lean_object* l_Lean_Elab_TermInfo_pos_x3f(lean_object* x_1) { +lean_object* l_Lean_Elab_Info_stx_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_apply_1(x_4, x_10); +return x_11; +} +default: +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_apply_1(x_5, x_12); +return x_13; +} +} +} +} +lean_object* l_Lean_Elab_Info_stx_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Info_stx_match__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_stx(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 2: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_2, 1); +lean_inc(x_3); +return x_3; +} +case 3: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_4, 3); +lean_inc(x_5); +return x_5; +} +default: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_6, 2); +lean_inc(x_7); +return x_7; +} +} +} +} +lean_object* l_Lean_Elab_Info_stx___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Info_stx(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_pos_x3f(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_2 = lean_ctor_get(x_1, 2); +x_2 = l_Lean_Elab_Info_stx(x_1); x_3 = 1; x_4 = l_Lean_Syntax_getPos_x3f(x_2, x_3); +lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_TermInfo_pos_x3f___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Info_pos_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Elab_TermInfo_pos_x3f(x_1); +x_2 = l_Lean_Elab_Info_pos_x3f(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Elab_TermInfo_tailPos_x3f(lean_object* x_1) { +lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_2 = lean_ctor_get(x_1, 2); +x_2 = l_Lean_Elab_Info_stx(x_1); x_3 = 1; x_4 = l_Lean_Syntax_getTailPos_x3f(x_2, x_3); +lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_TermInfo_tailPos_x3f___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Info_tailPos_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Elab_TermInfo_tailPos_x3f(x_1); +x_2 = l_Lean_Elab_Info_tailPos_x3f(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Elab_TacticInfo_pos_x3f(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_2 = lean_ctor_get(x_1, 2); -x_3 = 1; -x_4 = l_Lean_Syntax_getPos_x3f(x_2, x_3); -return x_4; -} -} -lean_object* l_Lean_Elab_TacticInfo_pos_x3f___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_TacticInfo_pos_x3f(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_TacticInfo_tailPos_x3f(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_2 = lean_ctor_get(x_1, 2); -x_3 = 1; -x_4 = l_Lean_Syntax_getTailPos_x3f(x_2, x_3); -return x_4; -} -} -lean_object* l_Lean_Elab_TacticInfo_tailPos_x3f___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_TacticInfo_tailPos_x3f(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_5; +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 1) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_3); -x_5 = lean_apply_2(x_4, x_1, x_2); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_apply_3(x_2, x_5, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_4); +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 1) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_1, 0); +lean_dec(x_7); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = l_Lean_Elab_Info_tailPos_x3f(x_9); +x_11 = l_Lean_Elab_Info_pos_x3f(x_9); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l_instInhabitedNat; +x_14 = l_Option_get_x21___rarg___closed__4; +x_15 = lean_panic_fn(x_13, x_14); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_panic_fn(x_13, x_14); +x_17 = lean_nat_sub(x_15, x_16); +lean_dec(x_16); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_12); +x_19 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_6); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +return x_1; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_11, 0); +lean_inc(x_20); +lean_dec(x_11); +x_21 = lean_nat_sub(x_15, x_20); +lean_dec(x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_12); +x_23 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_6); +lean_ctor_set(x_1, 1, x_23); +lean_ctor_set(x_1, 0, x_22); +return x_1; +} +} +else +{ +if (lean_obj_tag(x_11) == 0) +{ +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_24 = lean_ctor_get(x_10, 0); +lean_inc(x_24); +lean_dec(x_10); +x_25 = l_instInhabitedNat; +x_26 = l_Option_get_x21___rarg___closed__4; +x_27 = lean_panic_fn(x_25, x_26); +x_28 = lean_nat_sub(x_24, x_27); +lean_dec(x_27); +lean_dec(x_24); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_12); +x_30 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_6); +lean_ctor_set(x_1, 1, x_30); +lean_ctor_set(x_1, 0, x_29); +return x_1; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_10, 0); +lean_inc(x_31); +lean_dec(x_10); +x_32 = lean_ctor_get(x_11, 0); +lean_inc(x_32); +lean_dec(x_11); +x_33 = lean_nat_sub(x_31, x_32); +lean_dec(x_32); +lean_dec(x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_12); +x_35 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_6); +lean_ctor_set(x_1, 1, x_35); +lean_ctor_set(x_1, 0, x_34); +return x_1; +} +} +} +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; +x_36 = lean_ctor_get(x_1, 1); +lean_inc(x_36); +lean_dec(x_1); +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +lean_dec(x_3); +x_38 = lean_ctor_get(x_4, 0); +lean_inc(x_38); +lean_dec(x_4); +x_39 = l_Lean_Elab_Info_tailPos_x3f(x_38); +x_40 = l_Lean_Elab_Info_pos_x3f(x_38); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_38); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = l_instInhabitedNat; +x_43 = l_Option_get_x21___rarg___closed__4; +x_44 = lean_panic_fn(x_42, x_43); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_panic_fn(x_42, x_43); +x_46 = lean_nat_sub(x_44, x_45); +lean_dec(x_45); +lean_dec(x_44); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_41); +x_48 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_36); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_40, 0); +lean_inc(x_50); +lean_dec(x_40); +x_51 = lean_nat_sub(x_44, x_50); +lean_dec(x_50); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_41); +x_53 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_36); +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 +{ +if (lean_obj_tag(x_40) == 0) +{ +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; +x_55 = lean_ctor_get(x_39, 0); +lean_inc(x_55); +lean_dec(x_39); +x_56 = l_instInhabitedNat; +x_57 = l_Option_get_x21___rarg___closed__4; +x_58 = lean_panic_fn(x_56, x_57); +x_59 = lean_nat_sub(x_55, x_58); +lean_dec(x_58); +lean_dec(x_55); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_41); +x_61 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_36); +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; +} +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; +x_63 = lean_ctor_get(x_39, 0); +lean_inc(x_63); +lean_dec(x_39); +x_64 = lean_ctor_get(x_40, 0); +lean_inc(x_64); +lean_dec(x_40); +x_65 = lean_nat_sub(x_63, x_64); +lean_dec(x_64); +lean_dec(x_63); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_41); +x_67 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_36); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +else +{ +lean_object* x_69; +lean_dec(x_4); +lean_dec(x_3); +x_69 = lean_ctor_get(x_1, 1); +lean_inc(x_69); +lean_dec(x_1); +x_1 = x_69; +goto _start; +} +} +else +{ +lean_object* x_71; +lean_dec(x_3); +x_71 = lean_ctor_get(x_1, 1); +lean_inc(x_71); +lean_dec(x_1); +x_1 = x_71; +goto _start; +} +} +} +} +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_nat_dec_lt(x_3, x_4); +if (x_5 == 0) +{ +lean_inc(x_1); +return x_1; +} +else +{ +lean_inc(x_2); +return x_2; +} +} +} +static lean_object* _init_l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1___boxed), 2, 0); +return x_1; +} +} +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = lean_array_get_size(x_1); +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_nat_dec_lt(x_3, x_2); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_2); +x_5 = lean_box(0); return x_5; } else { -if (lean_obj_tag(x_2) == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_array_fget(x_1, x_3); +x_7 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Array_foldlMUnsafe___at_Array_foldl___spec__1___rarg(x_7, x_6, x_1, x_8, x_2); +lean_dec(x_2); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} +} +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f(lean_object* x_1, lean_object* x_2) { +_start: { -lean_object* x_6; -lean_dec(x_3); -x_6 = lean_apply_2(x_4, x_1, x_2); -return x_6; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = l_Lean_Elab_InfoTree_smallestNodes(x_1, x_2); +x_4 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_3); +x_5 = l_List_redLength___rarg(x_4); +x_6 = lean_mk_empty_array_with_capacity(x_5); +lean_dec(x_5); +x_7 = l_List_toArrayAux___rarg(x_4, x_6); +x_8 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2(x_7); +lean_dec(x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_box(0); +return x_9; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_ctor_set(x_8, 0, x_12); +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, 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; lean_object* x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_8, 0); +lean_inc(x_17); +lean_dec(x_8); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +if (lean_is_scalar(x_21)) { + x_22 = lean_alloc_ctor(0, 2, 0); +} else { + x_22 = x_21; +} +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_20); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +return x_23; +} +} +} +} +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 3: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); x_7 = lean_ctor_get(x_1, 0); lean_inc(x_7); lean_dec(x_1); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; +lean_dec(x_3); lean_dec(x_2); -x_9 = lean_apply_2(x_3, x_7, x_8); +x_9 = lean_apply_1(x_4, x_1); return x_9; } } } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__1(lean_object* x_1) { +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__1___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1___rarg), 4, 0); return x_2; } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_1) == 1) +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_2); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_ctor_get(x_4, 0); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_apply_2(x_2, x_8, x_9); +return x_10; +} +} +} +} +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +uint8_t l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_alloc_closure((void*)(l_Lean_Name_beq___boxed), 2, 1); +lean_closure_set(x_3, 0, x_2); +x_4 = lean_array_get_size(x_1); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_anyMUnsafe___at_Array_any___spec__1___rarg(x_3, x_1, x_5, x_4); +lean_dec(x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__14; +x_2 = l_Lean_identKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1; +x_2 = l_Lean_strLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2; +x_2 = l_Lean_charLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3; +x_2 = l_Lean_numLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4; +x_2 = l_Lean_scientificLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5; +x_2 = l_Lean_nameLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6; +x_2 = l_Lean_fieldIdxKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7; +x_2 = l_Lean_interpolatedStrLitKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8; +x_2 = l_Lean_interpolatedStrKind; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +uint8_t l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Info_pos_x3f(x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Lean_Elab_Info_tailPos_x3f(x_2); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_nat_dec_le(x_5, x_1); +lean_dec(x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_8); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_lt(x_1, x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 1: +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_13, 1); +x_15 = l_Lean_Expr_isSyntheticSorry(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = l_Lean_Elab_Info_stx(x_2); +x_17 = l_Lean_Syntax_getKind(x_16); +x_18 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9; +x_19 = l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1(x_18, x_17); +return x_19; +} +else +{ +uint8_t x_20; +x_20 = 0; +return x_20; +} +} +case 3: +{ +uint8_t x_21; +x_21 = 1; +return x_21; +} +default: +{ +uint8_t x_22; +x_22 = 0; +return x_22; +} +} +} +} +} +} +} +} +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___boxed), 2, 1); +lean_closure_set(x_3, 0, x_2); +x_4 = l_Lean_Elab_InfoTree_smallestInfo_x3f(x_3, x_1); +return x_4; +} +} +lean_object* l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1(x_1, x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 3: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_apply_1(x_4, x_1); +return x_9; +} +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 3: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_apply_1(x_4, x_1); +return x_9; +} +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f_match__4___rarg), 4, 0); +return x_2; +} +} +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___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: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = !lean_is_exclusive(x_7); +if (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_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_docStringExt; +x_12 = l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(x_11, x_10, x_1); +lean_dec(x_10); +lean_ctor_set(x_7, 0, x_12); +return x_7; +} +else +{ +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_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_docStringExt; +x_17 = l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(x_16, x_15, x_1); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_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) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("```lean\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\n```"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\n***\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_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) { +_start: +{ +lean_object* x_8; +lean_inc(x_1); +x_8 = l_Lean_Meta_ppExpr(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +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 = l_Lean_Meta_ppExpr(x_2, x_3, x_4, x_5, x_6, 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +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_Elab_Info_fmtHover_x3f___lambda__2___closed__2; +x_15 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +x_16 = l_Lean_Meta_ppGoal_ppVars___closed__1; +x_17 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_12); +x_19 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4; +x_20 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_Expr_constName_x3f(x_1); +lean_dec(x_1); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l_Lean_Elab_Info_fmtHover_x3f___lambda__1(x_20, x_22, x_3, x_4, x_5, x_6, x_13); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +x_25 = l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___spec__2(x_24, x_3, x_4, x_5, x_6, x_13); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_box(0); +x_29 = l_Lean_Elab_Info_fmtHover_x3f___lambda__1(x_20, x_28, x_3, x_4, x_5, x_6, x_27); +return x_29; +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_25, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) +{ +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_33 = lean_ctor_get(x_26, 0); +x_34 = l_Std_Format_join___closed__1; +x_35 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_20); +x_36 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6; +x_37 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_38, 0, x_33); +x_39 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_34); +lean_ctor_set(x_26, 0, x_40); +return x_25; +} +else +{ +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; +x_41 = lean_ctor_get(x_26, 0); +lean_inc(x_41); +lean_dec(x_26); +x_42 = l_Std_Format_join___closed__1; +x_43 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_20); +x_44 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6; +x_45 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_41); +x_47 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_42); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_25, 0, x_49); +return x_25; +} +} +else +{ +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; +x_50 = lean_ctor_get(x_25, 1); +lean_inc(x_50); +lean_dec(x_25); +x_51 = lean_ctor_get(x_26, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + x_52 = x_26; +} else { + lean_dec_ref(x_26); + x_52 = lean_box(0); +} +x_53 = l_Std_Format_join___closed__1; +x_54 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_20); +x_55 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6; +x_56 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_57, 0, x_51); +x_58 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_53); +if (lean_is_scalar(x_52)) { + x_60 = lean_alloc_ctor(1, 1, 0); +} else { + x_60 = x_52; +} +lean_ctor_set(x_60, 0, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_50); +return x_61; +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_9); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_11); +if (x_62 == 0) +{ +return x_11; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_11, 0); +x_64 = lean_ctor_get(x_11, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_11); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_2); +lean_dec(x_1); +x_66 = !lean_is_exclusive(x_8); +if (x_66 == 0) +{ +return x_8; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_8, 0); +x_68 = lean_ctor_get(x_8, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_8); +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; +} +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_ppExpr(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; 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_8, 0); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = l_Std_fmt___at_Lean_Level_PP_Result_format___spec__1(x_11); +x_13 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2; +x_14 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_Meta_ppGoal_ppVars___closed__1; +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_10); +x_18 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4; +x_19 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_8, 0, x_20); +return x_8; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_21 = lean_ctor_get(x_8, 0); +x_22 = lean_ctor_get(x_8, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_8); +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +lean_dec(x_1); +x_24 = l_Std_fmt___at_Lean_Level_PP_Result_format___spec__1(x_23); +x_25 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2; +x_26 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Meta_ppGoal_ppVars___closed__1; +x_28 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_21); +x_30 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4; +x_31 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_22); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_8); +if (x_34 == 0) +{ +return x_8; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_8, 0); +x_36 = lean_ctor_get(x_8, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_8); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg___boxed), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +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_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +lean_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); +lean_closure_set(x_7, 0, x_6); +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___boxed), 7, 1); +lean_closure_set(x_8, 0, x_6); +x_9 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); +lean_closure_set(x_9, 0, x_7); +lean_closure_set(x_9, 1, x_8); +x_10 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_2, x_3, x_9, x_4); +return x_10; +} +case 3: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_11, 2); +lean_inc(x_12); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); +lean_closure_set(x_13, 0, x_12); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Info_fmtHover_x3f___lambda__3___boxed), 7, 1); +lean_closure_set(x_14, 0, x_11); +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_2, x_3, x_15, x_4); +return x_16; +} +default: +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_1); +x_17 = l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1; +x_18 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_2, x_3, x_17, x_4); +return x_18; +} +} +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 1: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Elab_Info_fmtHover_x3f___lambda__4(x_2, x_1, x_5, x_3); +return x_6; +} +case 3: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_Elab_Info_fmtHover_x3f___lambda__4(x_2, x_1, x_8, x_3); +return x_9; +} +default: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_3); +return x_11; +} +} +} +} +lean_object* l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_ReaderT_pure___at_Lean_Elab_Info_fmtHover_x3f___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___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_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___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); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Info_fmtHover_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Info_fmtHover_x3f___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Info_fmtHover_x3f___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___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_Elab_Info_fmtHover_x3f___lambda__4(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_Info_fmtHover_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Info_fmtHover_x3f(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) { lean_object* x_4; lean_object* x_5; lean_dec(x_3); x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_1(x_2, x_4); +x_5 = lean_apply_2(x_2, x_1, x_4); return x_5; } else @@ -1407,15 +3100,15 @@ return x_6; } } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__2(lean_object* x_1) { +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves_match__1___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1428,7 +3121,7 @@ if (lean_obj_tag(x_4) == 1) lean_object* x_5; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -if (lean_obj_tag(x_5) == 1) +if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_3); @@ -1440,8 +3133,7 @@ lean_inc(x_7); lean_dec(x_4); x_8 = lean_ctor_get(x_5, 0); lean_inc(x_8); -lean_dec(x_5); -x_9 = lean_apply_3(x_2, x_6, x_8, x_7); +x_9 = lean_apply_4(x_2, x_6, x_5, x_8, x_7); return x_9; } else @@ -1472,54 +3164,83 @@ return x_12; } } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__3(lean_object* x_1) { +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__3___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestTacticStates_match__1___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__4___rarg(lean_object* x_1, lean_object* x_2) { +uint8_t l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 1); -lean_inc(x_6); -lean_dec(x_3); -x_7 = lean_apply_3(x_2, x_4, x_5, x_6); -return x_7; -} -} -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__4(lean_object* x_1) { -_start: +if (lean_obj_tag(x_1) == 0) { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableTermAt_x3f_match__4___rarg), 2, 0); -return x_2; -} -} -uint8_t l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1(lean_object* x_1, lean_object* x_2) { -_start: +x_2 = l_Lean_Elab_Info_pos_x3f(x_1); +if (lean_obj_tag(x_2) == 0) { -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_alloc_closure((void*)(l_Lean_Name_beq___boxed), 2, 1); -lean_closure_set(x_3, 0, x_2); -x_4 = lean_array_get_size(x_1); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_anyMUnsafe___at_Array_any___spec__1___rarg(x_3, x_1, x_5, x_4); +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = l_Lean_Elab_Info_tailPos_x3f(x_1); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +uint8_t x_6; lean_dec(x_4); +x_6 = 1; return x_6; } } -lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(lean_object* x_1) { +} +else +{ +uint8_t x_7; +x_7 = 0; +return x_7; +} +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1___boxed), 1, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1; +x_3 = l_Lean_Elab_InfoTree_smallestNodes(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1544,13 +3265,13 @@ lean_object* x_5; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); lean_dec(x_4); -if (lean_obj_tag(x_5) == 1) +if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_1); if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_7 = lean_ctor_get(x_1, 1); x_8 = lean_ctor_get(x_1, 0); lean_dec(x_8); @@ -1559,606 +3280,814 @@ lean_inc(x_9); lean_dec(x_3); x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); +x_11 = l_Lean_Elab_Info_pos_x3f(x_5); lean_dec(x_5); -x_11 = l_Lean_Elab_TermInfo_tailPos_x3f(x_10); -x_12 = l_Lean_Elab_TermInfo_pos_x3f(x_10); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); if (lean_obj_tag(x_11) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = l_instInhabitedNat; -x_15 = l_Option_get_x21___rarg___closed__4; -x_16 = lean_panic_fn(x_14, x_15); -if (lean_obj_tag(x_12) == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = l_instInhabitedNat; +x_14 = l_Option_get_x21___rarg___closed__4; +x_15 = lean_panic_fn(x_13, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +x_17 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(x_7); +lean_ctor_set(x_1, 1, x_17); +lean_ctor_set(x_1, 0, x_16); +return x_1; +} +else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_panic_fn(x_14, x_15); -x_18 = lean_nat_sub(x_16, x_17); -lean_dec(x_17); -lean_dec(x_16); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_13); -x_20 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_7); +lean_ctor_set(x_19, 1, x_12); +x_20 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(x_7); lean_ctor_set(x_1, 1, x_20); lean_ctor_set(x_1, 0, x_19); return x_1; } +} else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_12, 0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); -lean_dec(x_12); -x_22 = lean_nat_sub(x_16, x_21); -lean_dec(x_21); -lean_dec(x_16); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_13); -x_24 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_7); -lean_ctor_set(x_1, 1, x_24); -lean_ctor_set(x_1, 0, x_23); -return x_1; -} -} -else +lean_dec(x_1); +x_22 = lean_ctor_get(x_3, 0); +lean_inc(x_22); +lean_dec(x_3); +x_23 = lean_ctor_get(x_5, 0); +lean_inc(x_23); +x_24 = l_Lean_Elab_Info_pos_x3f(x_5); +lean_dec(x_5); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_23); +if (lean_obj_tag(x_24) == 0) { -if (lean_obj_tag(x_12) == 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_11, 0); -lean_inc(x_25); -lean_dec(x_11); +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_26 = l_instInhabitedNat; x_27 = l_Option_get_x21___rarg___closed__4; x_28 = lean_panic_fn(x_26, x_27); -x_29 = lean_nat_sub(x_25, x_28); -lean_dec(x_28); -lean_dec(x_25); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_13); -x_31 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_7); -lean_ctor_set(x_1, 1, x_31); -lean_ctor_set(x_1, 0, x_30); -return x_1; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_25); +x_30 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(x_21); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_11, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_24, 0); lean_inc(x_32); -lean_dec(x_11); -x_33 = lean_ctor_get(x_12, 0); -lean_inc(x_33); -lean_dec(x_12); -x_34 = lean_nat_sub(x_32, x_33); -lean_dec(x_33); -lean_dec(x_32); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_13); -x_36 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_7); -lean_ctor_set(x_1, 1, x_36); -lean_ctor_set(x_1, 0, x_35); -return x_1; +lean_dec(x_24); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +x_34 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(x_21); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_37 = lean_ctor_get(x_1, 1); -lean_inc(x_37); -lean_dec(x_1); -x_38 = lean_ctor_get(x_3, 0); -lean_inc(x_38); -lean_dec(x_3); -x_39 = lean_ctor_get(x_5, 0); -lean_inc(x_39); -lean_dec(x_5); -x_40 = l_Lean_Elab_TermInfo_tailPos_x3f(x_39); -x_41 = l_Lean_Elab_TermInfo_pos_x3f(x_39); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_39); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = l_instInhabitedNat; -x_44 = l_Option_get_x21___rarg___closed__4; -x_45 = lean_panic_fn(x_43, x_44); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_panic_fn(x_43, x_44); -x_47 = lean_nat_sub(x_45, x_46); -lean_dec(x_46); -lean_dec(x_45); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_42); -x_49 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_37); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_51 = lean_ctor_get(x_41, 0); -lean_inc(x_51); -lean_dec(x_41); -x_52 = lean_nat_sub(x_45, x_51); -lean_dec(x_51); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_42); -x_54 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_37); -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 -{ -if (lean_obj_tag(x_41) == 0) -{ -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; -x_56 = lean_ctor_get(x_40, 0); -lean_inc(x_56); -lean_dec(x_40); -x_57 = l_instInhabitedNat; -x_58 = l_Option_get_x21___rarg___closed__4; -x_59 = lean_panic_fn(x_57, x_58); -x_60 = lean_nat_sub(x_56, x_59); -lean_dec(x_59); -lean_dec(x_56); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_42); -x_62 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_37); -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_object* x_67; lean_object* x_68; lean_object* x_69; -x_64 = lean_ctor_get(x_40, 0); -lean_inc(x_64); -lean_dec(x_40); -x_65 = lean_ctor_get(x_41, 0); -lean_inc(x_65); -lean_dec(x_41); -x_66 = lean_nat_sub(x_64, x_65); -lean_dec(x_65); -lean_dec(x_64); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_42); -x_68 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_37); -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 -{ -lean_object* x_70; +lean_object* x_36; lean_dec(x_5); lean_dec(x_3); -x_70 = lean_ctor_get(x_1, 1); -lean_inc(x_70); +x_36 = lean_ctor_get(x_1, 1); +lean_inc(x_36); lean_dec(x_1); -x_1 = x_70; +x_1 = x_36; goto _start; } } else { -lean_object* x_72; +lean_object* x_38; lean_dec(x_4); lean_dec(x_3); -x_72 = lean_ctor_get(x_1, 1); -lean_inc(x_72); +x_38 = lean_ctor_get(x_1, 1); +lean_inc(x_38); lean_dec(x_1); -x_1 = x_72; +x_1 = x_38; goto _start; } } else { -lean_object* x_74; +lean_object* x_40; lean_dec(x_3); -x_74 = lean_ctor_get(x_1, 1); -lean_inc(x_74); +x_40 = lean_ctor_get(x_1, 1); +lean_inc(x_40); lean_dec(x_1); -x_1 = x_74; +x_1 = x_40; goto _start; } } } } -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_instInhabitedContextInfo; +x_2 = l_Lean_Elab_instInhabitedTacticInfo; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_instInhabitedNat; +x_2 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___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_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_nat_dec_lt(x_6, x_2); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_array_swap(x_4, x_5, x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; +x_11 = lean_array_get(x_10, x_4, x_6); +lean_inc(x_1); +lean_inc(x_3); +x_12 = lean_apply_2(x_1, x_11, x_3); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +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_6 = x_15; +goto _start; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_array_swap(x_4, x_5, x_6); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = lean_nat_add(x_6, x_18); +lean_dec(x_6); +x_4 = x_17; +x_5 = x_19; +x_6 = x_20; +goto _start; +} +} +} +} +lean_object* l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_14; +x_14 = lean_nat_dec_lt(x_3, x_4); +if (x_14 == 0) +{ +lean_dec(x_3); +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_15 = lean_nat_add(x_3, x_4); +x_16 = lean_unsigned_to_nat(2u); +x_17 = lean_nat_div(x_15, x_16); +lean_dec(x_15); +x_41 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; +x_42 = lean_array_get(x_41, x_2, x_17); +x_43 = lean_array_get(x_41, x_2, x_3); +lean_inc(x_1); +x_44 = lean_apply_2(x_1, x_42, x_43); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +x_18 = x_2; +goto block_40; +} +else +{ +lean_object* x_46; +x_46 = lean_array_swap(x_2, x_3, x_17); +x_18 = x_46; +goto block_40; +} +block_40: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; +x_20 = lean_array_get(x_19, x_18, x_4); +x_21 = lean_array_get(x_19, x_18, x_3); +lean_inc(x_1); +lean_inc(x_20); +x_22 = lean_apply_2(x_1, x_20, x_21); +x_23 = lean_unbox(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_array_get(x_19, x_18, x_17); +lean_inc(x_1); +lean_inc(x_20); +x_25 = lean_apply_2(x_1, x_24, x_20); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec(x_17); +lean_inc_n(x_3, 2); +lean_inc(x_1); +x_27 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(x_1, x_4, x_20, x_18, x_3, x_3); +x_5 = x_27; +goto block_13; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_20); +x_28 = lean_array_swap(x_18, x_17, x_4); +lean_dec(x_17); +x_29 = lean_array_get(x_19, x_28, x_4); +lean_inc_n(x_3, 2); +lean_inc(x_1); +x_30 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(x_1, x_4, x_29, x_28, x_3, x_3); +x_5 = x_30; +goto block_13; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_dec(x_20); +x_31 = lean_array_swap(x_18, x_3, x_4); +x_32 = lean_array_get(x_19, x_31, x_17); +x_33 = lean_array_get(x_19, x_31, x_4); +lean_inc(x_1); +lean_inc(x_33); +x_34 = lean_apply_2(x_1, x_32, x_33); +x_35 = lean_unbox(x_34); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +lean_dec(x_17); +lean_inc_n(x_3, 2); +lean_inc(x_1); +x_36 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(x_1, x_4, x_33, x_31, x_3, x_3); +x_5 = x_36; +goto block_13; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_33); +x_37 = lean_array_swap(x_31, x_17, x_4); +lean_dec(x_17); +x_38 = lean_array_get(x_19, x_37, x_4); +lean_inc_n(x_3, 2); +lean_inc(x_1); +x_39 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(x_1, x_4, x_38, x_37, x_3, x_3); +x_5 = x_39; +goto block_13; +} +} +} +} +block_13: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +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_nat_dec_le(x_4, x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_1); +x_9 = l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(x_1, x_7, x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_6, x_10); +lean_dec(x_6); +x_2 = x_9; +x_3 = x_11; +goto _start; +} +else +{ +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_7; +} +} +} +} +lean_object* l_Array_qsort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(x_2, x_1, x_3, x_4); +return x_5; +} +} +uint8_t l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_2, 0); x_5 = lean_nat_dec_lt(x_3, x_4); -if (x_5 == 0) -{ -lean_inc(x_1); -return x_1; -} -else -{ -lean_inc(x_2); -return x_2; +return x_5; } } -} -static lean_object* _init_l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1() { +static lean_object* _init_l_Lean_Elab_InfoTree_smallestTacticStates___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1___boxed), 2, 0); return x_1; } } -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3(lean_object* x_1) { +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = lean_array_get_size(x_1); -x_3 = lean_unsigned_to_nat(0u); -x_4 = lean_nat_dec_lt(x_3, x_2); -if (x_4 == 0) +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_2 = l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1; +x_3 = l_Lean_Elab_InfoTree_smallestNodes(x_2, x_1); +x_4 = l_List_filterMap___at_Lean_Elab_InfoTree_smallestTacticStates___spec__1(x_3); +x_5 = l_List_redLength___rarg(x_4); +x_6 = lean_mk_empty_array_with_capacity(x_5); +lean_dec(x_5); +x_7 = l_List_toArrayAux___rarg(x_4, x_6); +x_8 = lean_array_get_size(x_7); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_8, x_9); +lean_dec(x_8); +x_11 = l_Lean_Elab_InfoTree_smallestTacticStates___closed__1; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(x_11, x_7, x_12, x_10); +lean_dec(x_10); +return x_13; +} +} +lean_object* l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { lean_object* x_5; -lean_dec(x_2); -x_5 = lean_box(0); +x_5 = l_Array_qsort_sort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_4); return x_5; } -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = lean_array_fget(x_1, x_3); -x_7 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1; -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Array_foldlMUnsafe___at_Array_foldl___spec__1___rarg(x_7, x_6, x_1, x_8, x_2); -lean_dec(x_2); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -return x_10; } -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1() { +lean_object* l_Array_qsort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__14; -x_2 = l_Lean_identKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1; -x_2 = l_Lean_strLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2; -x_2 = l_Lean_charLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3; -x_2 = l_Lean_numLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4; -x_2 = l_Lean_scientificLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5; -x_2 = l_Lean_nameLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6; -x_2 = l_Lean_fieldIdxKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7; -x_2 = l_Lean_interpolatedStrLitKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8; -x_2 = l_Lean_interpolatedStrKind; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -uint8_t l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -x_5 = l_Lean_Expr_isSyntheticSorry(x_4); +lean_object* x_5; +x_5 = l_Array_qsort___at_Lean_Elab_InfoTree_smallestTacticStates___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = l_Lean_Syntax_getKind(x_6); -x_8 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9; -x_9 = l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1(x_8, x_7); -if (x_9 == 0) -{ -uint8_t x_10; -lean_dec(x_3); -x_10 = 0; -return x_10; -} -else -{ -lean_object* x_11; -x_11 = l_Lean_Elab_TermInfo_pos_x3f(x_3); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_3); -x_12 = 0; -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_TermInfo_tailPos_x3f(x_3); -lean_dec(x_3); -if (lean_obj_tag(x_14) == 0) -{ -uint8_t x_15; -lean_dec(x_13); -x_15 = 0; -return x_15; -} -else -{ -lean_object* x_16; uint8_t x_17; -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_nat_dec_le(x_13, x_1); -lean_dec(x_13); -if (x_17 == 0) -{ -uint8_t x_18; -lean_dec(x_16); -x_18 = 0; -return x_18; -} -else -{ -uint8_t x_19; -x_19 = lean_nat_dec_lt(x_1, x_16); -lean_dec(x_16); -return x_19; +return x_5; } } -} -} -} -else -{ -uint8_t x_20; -lean_dec(x_3); -x_20 = 0; -return x_20; -} -} -else -{ -uint8_t x_21; -lean_dec(x_2); -x_21 = 0; -return x_21; -} -} -} -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f(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; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___boxed), 2, 1); -lean_closure_set(x_3, 0, x_2); -x_4 = l_Lean_Elab_InfoTree_smallestNodes(x_3, x_1); -x_5 = l_List_filterMap___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__2(x_4); -x_6 = l_List_redLength___rarg(x_5); -x_7 = lean_mk_empty_array_with_capacity(x_6); -lean_dec(x_6); -x_8 = l_List_toArrayAux___rarg(x_5, x_7); -x_9 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3(x_8); -lean_dec(x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_box(0); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -lean_ctor_set(x_9, 0, x_17); -return x_9; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_18 = lean_ctor_get(x_9, 0); -lean_inc(x_18); -lean_dec(x_9); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_22 = x_19; -} else { - lean_dec_ref(x_19); - x_22 = lean_box(0); -} -if (lean_is_scalar(x_22)) { - x_23 = lean_alloc_ctor(0, 2, 0); -} else { - x_23 = x_22; -} -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -return x_24; -} -} -} -} -lean_object* l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_contains___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__1(x_1, x_2); +x_3 = l_Lean_Elab_InfoTree_smallestTacticStates___lambda__1(x_1, x_2); +lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___lambda__1(x_1, x_2); -lean_dec(x_2); +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); lean_dec(x_1); -return x_3; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; } } -lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3(x_1); -lean_dec(x_1); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg), 2, 0); return x_2; } } -lean_object* l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_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_array_fget(x_1, x_2); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_2, x_9); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 0); +lean_inc(x_12); +lean_dec(x_8); +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 = lean_ctor_get(x_11, 0); +lean_dec(x_15); +x_16 = lean_array_get_size(x_3); +x_17 = lean_nat_dec_lt(x_10, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 2); +lean_inc(x_18); +lean_dec(x_14); +x_19 = 0; +x_20 = l_Lean_Syntax_getTailPos_x3f(x_18, x_19); +lean_dec(x_18); +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; +x_21 = l_instInhabitedNat; +x_22 = l_Option_get_x21___rarg___closed__4; +x_23 = lean_panic_fn(x_21, x_22); +lean_ctor_set(x_11, 1, x_23); +lean_ctor_set(x_11, 0, x_12); +x_24 = lean_array_push(x_4, x_11); +x_25 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_24); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +lean_dec(x_20); +lean_ctor_set(x_11, 1, x_26); +lean_ctor_set(x_11, 0, x_12); +x_27 = lean_array_push(x_4, x_11); +x_28 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_27); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_14); +x_29 = lean_array_fget(x_3, x_10); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +lean_dec(x_29); +lean_ctor_set(x_11, 1, x_30); +lean_ctor_set(x_11, 0, x_12); +x_31 = lean_array_push(x_4, x_11); +x_32 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_31); +return x_32; +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_11, 1); +lean_inc(x_33); +lean_dec(x_11); +x_34 = lean_array_get_size(x_3); +x_35 = lean_nat_dec_lt(x_10, x_34); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_33, 2); +lean_inc(x_36); +lean_dec(x_33); +x_37 = 0; +x_38 = l_Lean_Syntax_getTailPos_x3f(x_36, x_37); +lean_dec(x_36); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_39 = l_instInhabitedNat; +x_40 = l_Option_get_x21___rarg___closed__4; +x_41 = lean_panic_fn(x_39, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_12); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_array_push(x_4, x_42); +x_44 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_43); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_38, 0); +lean_inc(x_45); +lean_dec(x_38); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_12); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_array_push(x_4, x_46); +x_48 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_47); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_33); +x_49 = lean_array_fget(x_3, x_10); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_12); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_array_push(x_4, x_51); +x_53 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_5, x_3, x_1, x_6, x_10, lean_box(0), x_52); +return x_53; +} +} +} +} +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_inc(x_7); +x_8 = lean_alloc_closure((void*)(l_Array_mapIdxM_map___at_Array_mapIdx___spec__1___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_8, 0, x_7); +x_9 = lean_alloc_closure((void*)(l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___lambda__1___boxed), 7, 5); +lean_closure_set(x_9, 0, x_3); +lean_closure_set(x_9, 1, x_5); +lean_closure_set(x_9, 2, x_2); +lean_closure_set(x_9, 3, x_7); +lean_closure_set(x_9, 4, x_1); +x_10 = l_Array_mapIdxM_map_match__1___rarg(x_4, lean_box(0), x_8, x_9); +return x_10; +} +} +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_nat_dec_le(x_3, x_1); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = 0; +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_nat_dec_lt(x_1, x_4); +return x_7; +} +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(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_inc(x_1); +x_3 = l_Lean_Elab_InfoTree_smallestTacticStates(x_1); +x_4 = lean_array_get_size(x_3); +x_5 = lean_mk_empty_array_with_capacity(x_4); +x_6 = lean_unsigned_to_nat(0u); +lean_inc_n(x_3, 2); +x_7 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_1, x_3, x_3, x_4, x_6, lean_box(0), x_5); +lean_dec(x_4); +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed), 2, 1); +lean_closure_set(x_8, 0, x_2); +x_9 = lean_array_get_size(x_7); +x_10 = l_Array_findIdx_x3f_loop___rarg(x_7, x_8, x_9, x_6, lean_box(0)); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +lean_dec(x_3); +x_11 = lean_box(0); +return x_11; +} +else +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (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_10, 0); +x_14 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; +x_15 = lean_array_get(x_14, x_3, x_13); +lean_dec(x_13); +lean_dec(x_3); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_ctor_set(x_10, 0, x_16); +return x_10; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +lean_ctor_set(x_10, 0, x_20); +return x_10; +} +} +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; +x_21 = lean_ctor_get(x_10, 0); +lean_inc(x_21); +lean_dec(x_10); +x_22 = l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2; +x_23 = lean_array_get(x_22, x_3, x_21); +lean_dec(x_21); +lean_dec(x_3); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +if (lean_is_scalar(x_27)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_27; +} +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +return x_29; +} +} +} +} +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_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) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_mapIdxM_map___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_4); +return x_8; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1(x_1, x_2); +x_3 = l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(x_1, x_2); +lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_DocString(lean_object*); lean_object* initialize_Lean_Elab_InfoTree(lean_object*); lean_object* initialize_Lean_Util_Sorry(lean_object*); static bool _G_initialized = false; @@ -2169,6 +4098,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_DocString(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_InfoTree(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -2179,26 +4111,48 @@ l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_ lean_mark_persistent(l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__1); l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__2 = _init_l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__2(); lean_mark_persistent(l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_smallestNode_x3f___spec__8___closed__2); -l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1 = _init_l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1(); -lean_mark_persistent(l_Array_getMax_x3f___at_Lean_Elab_InfoTree_hoverableTermAt_x3f___spec__3___closed__1); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__1); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__2); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__3); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__4); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__5); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__6); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__7); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__8); -l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9 = _init_l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableTermAt_x3f___lambda__1___closed__9); +l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1 = _init_l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1(); +lean_mark_persistent(l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___closed__1); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__1); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__2); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8); +l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__9); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__2); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5); +l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6); +l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1 = _init_l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f___lambda__4___closed__1); +l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1 = _init_l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_smallestTacticStates_tacticLeaves___closed__1); +l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__1 = _init_l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__1(); +lean_mark_persistent(l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__1); +l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2 = _init_l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2(); +lean_mark_persistent(l_Array_qpartition_loop___at_Lean_Elab_InfoTree_smallestTacticStates___spec__4___closed__2); +l_Lean_Elab_InfoTree_smallestTacticStates___closed__1 = _init_l_Lean_Elab_InfoTree_smallestTacticStates___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_smallestTacticStates___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Server/Watchdog.c b/stage0/stdlib/Lean/Server/Watchdog.c index fdd716e3d7..1f7b605932 100644 --- a/stage0/stdlib/Lean/Server/Watchdog.c +++ b/stage0/stdlib/Lean/Server/Watchdog.c @@ -15,7 +15,8 @@ extern "C" { #endif lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleEdits___spec__3(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__1(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40(size_t, size_t, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__38(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__2___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__3; lean_object* lean_string_push(lean_object*, uint32_t); @@ -24,6 +25,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___ lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__15___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker(lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Server_Watchdog_runClientTask_match__1(lean_object*); @@ -34,15 +36,16 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___ lean_object* lean_get_stdin(lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleCancelRequest___spec__3(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; lean_object* l_Std_RBNode_insert___at_Lean_Server_Watchdog_updateFileWorkers___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* lean_io_mono_ms_now(lean_object*); lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_88_(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidOpen(lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_quote___closed__1; lean_object* l_Lean_Server_Watchdog_handleRequest___closed__1; @@ -56,6 +59,7 @@ lean_object* l_Lean_Server_Watchdog_handleNotification___boxed(lean_object*, lea lean_object* l_Lean_Server_Watchdog_handleEdits___lambda__1___closed__1; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_87_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(lean_object*); lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Watchdog_log___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__3; lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask_match__1(lean_object*); @@ -69,10 +73,12 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask_loopAction_mat lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__1; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__3; lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__37(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__5; extern lean_object* l_Lean_Lsp_Ipc_ipcStdioConfig___closed__1; +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2___boxed(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*); extern lean_object* l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; lean_object* l_Std_RBNode_erase___at_Lean_Server_Watchdog_eraseFileWorker___spec__1___boxed(lean_object*, lean_object*); @@ -81,11 +87,13 @@ lean_object* l_Lean_Server_Watchdog_findFileWorker_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__4___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__6; +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest___closed__4; lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits___closed__3; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -109,6 +117,7 @@ lean_object* l_Lean_Server_Watchdog_eraseFileWorker___boxed(lean_object*, lean_o lean_object* l_IO_getStdin___at_Lean_Server_Watchdog_watchdogMain___spec__1(lean_object*); lean_object* l_IO_FS_Stream_readLspMessage(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_handleRequest___closed__8; lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_watchdogMain___boxed__const__2; @@ -121,11 +130,13 @@ lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_Watchdog_initAndRu lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__3; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_168_(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__4(lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_mainLoop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_Watchdog_initAndRunWatchdogAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux(lean_object*, lean_object*); lean_object* l_IO_sleep(uint32_t, lean_object*); @@ -143,6 +154,7 @@ lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileW lean_object* l_Std_RBNode_insert___at_Lean_Server_Watchdog_FileWorker_writeRequest___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_Watchdog_initAndRunWatchdogAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* lean_io_process_spawn(lean_object*, lean_object*); lean_object* lean_io_getenv(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest(lean_object*); @@ -151,7 +163,9 @@ lean_object* l_Lean_Server_Watchdog_handleRequest___closed__5; lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__4; uint32_t lean_uint32_of_nat(lean_object*); uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_handleEdits___spec__1(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_374_(lean_object*); lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__19___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -169,26 +183,34 @@ lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handl lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest___closed__3; +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4___closed__1; lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_shutdown___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeMessage___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__10; lean_object* l_Lean_Server_Watchdog_workerCfg; +lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__44(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__5; lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage_match__1(lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__5(lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2; lean_object* l_Lean_Server_Watchdog_findFileWorker_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleEdits___spec__6(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__5; lean_object* l_Lean_Server_Watchdog_mainLoop_match__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__3; +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1; lean_object* l_Lean_Server_Watchdog_handleEdits___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_erase___at_Lean_Server_Watchdog_eraseFileWorker___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); @@ -206,6 +228,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle lean_object* l_Lean_Server_Watchdog_handleEdits_match__3(lean_object*); uint8_t l_instDecidableNot___rarg(uint8_t); extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__1; +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask___closed__1; lean_object* l_Lean_Server_Watchdog_handleDidClose(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -223,10 +246,12 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_Watchdog_initAndRunWatchdogAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_parseHeaderAst(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask___closed__2; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; lean_object* l_Lean_Server_Watchdog_shutdown_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest_match__1(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop___closed__2; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__7; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,23 +259,21 @@ size_t l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__2; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__4; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__4; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask___closed__1; lean_object* l_Lean_Server_Watchdog_mainLoop___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___boxed(lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; extern lean_object* l_IO_FS_Stream_readLspNotificationAs___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__7(size_t, size_t, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* lean_io_wait(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_eraseFileWorker(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__1___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleEdits___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidClose___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); @@ -262,13 +285,13 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_mainLo lean_object* l_Std_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeMessage(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__4(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_0__mkPanicMessage___closed__2; +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_212_(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__1(lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(lean_object*); @@ -278,7 +301,6 @@ lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Watchdog_handleNotificatio lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask___lambda__1___boxed(lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__2___boxed(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__5; lean_object* l_IO_FS_Stream_writeLspResponseError(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -286,6 +308,7 @@ lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_obj lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__3(lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__8___closed__1; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_153_(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__8; @@ -299,7 +322,6 @@ lean_object* l_Lean_Server_Watchdog_handleCrash(lean_object*, lean_object*, lean lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__1; lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__2(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___closed__2; -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleCancelRequest___spec__7(size_t, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__14(size_t, size_t, lean_object*); @@ -309,12 +331,13 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_ha lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_FileWorker_errorPendingRequests___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_stream_of_handle(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_mainLoop___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___closed__1; lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__8___closed__2; lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__2___rarg(lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__21(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_stdout(lean_object*); @@ -326,6 +349,7 @@ lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDefini lean_object* l_Lean_Server_Watchdog_handleNotification_match__1(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_411_(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_84_(lean_object*); @@ -346,6 +370,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleEdits___spec__4___closed__2; extern lean_object* l_Task_Priority_default; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_mainLoop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification(lean_object*, lean_object*, lean_object*, lean_object*); @@ -366,6 +391,7 @@ extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__36; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__27(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__1; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___closed__2; +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits___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*); extern lean_object* l_IO_FS_Stream_readNotificationAs___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__3(lean_object*); @@ -386,7 +412,6 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWor uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Server_Watchdog_mainLoop_match__7(lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__11(lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities; lean_object* l_List_redLength___rarg(lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_match__1(lean_object*); @@ -417,7 +442,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___ uint8_t l_Std_RBNode_isRed___rarg(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__32; lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_275_(lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__25(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_tryWriteMessage___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); @@ -443,9 +467,7 @@ extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__4; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__40; lean_object* l_Lean_Server_Watchdog_watchdogMain___closed__1; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__19___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask_loopAction___closed__1; -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2; lean_object* l_Lean_Server_Watchdog_mainLoop_match__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2(lean_object*, lean_object*, lean_object*); @@ -453,7 +475,6 @@ extern lean_object* l_Lean_getBuiltinSearchPath___closed__4; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__11; lean_object* l_Lean_Server_Watchdog_FileWorker_stdin(lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__2(lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits___closed__1; extern lean_object* l_IO_FS_Stream_readRequestAs___closed__2; @@ -485,31 +506,30 @@ lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDoc lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__1; lean_object* l_Lean_Server_Watchdog_parseParams_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__2; +lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6; lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask_loopAction___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__1; lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_mainLoop___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_updateFileWorkers___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_runEditsSignalTask_loopAction(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_330_(lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleEdits___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__3; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__4; extern lean_object* l_prec_x28___x29___closed__7; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__21___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification(lean_object*); lean_object* l_Lean_Server_Watchdog_findFileWorker___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; lean_object* l_Lean_Server_Watchdog_mainLoop___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__1; lean_object* l_Lean_Server_Watchdog_handleEdits_match__2___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; +lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__19___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleEdits___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*); @@ -524,6 +544,7 @@ lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequ lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__1; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_441_(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_tryWriteMessage___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_FileWorker_errorPendingRequests___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__36___boxed(lean_object*, lean_object*, lean_object*); @@ -547,10 +568,9 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_ha lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__6(lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_Server_Watchdog_FileWorker_writeRequest___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219_(lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__24(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__9; lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5; @@ -562,16 +582,17 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__4___rarg(lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__35___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_findFileWorker(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__5___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__3___rarg(lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__2(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__2; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__2___closed__1; -lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450_(lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_RequestID_lt(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__29___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_lt(lean_object*, lean_object*); @@ -7905,7 +7926,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWor _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165_(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -8047,7 +8068,7 @@ lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = lean_ctor_get(x_2, 6); +x_11 = lean_ctor_get(x_2, 7); lean_inc(x_11); x_12 = lean_ctor_get(x_2, 3); lean_inc(x_12); @@ -11395,112 +11416,142 @@ x_1 = lean_mk_string("textDocument/documentSymbol"); return x_1; } } -lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6() { _start: { -lean_object* x_9; uint8_t x_10; -x_9 = l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; -x_10 = lean_string_dec_eq(x_1, x_9); -if (x_10 == 0) +lean_object* x_1; +x_1 = lean_mk_string("$/lean/plainGoal"); +return x_1; +} +} +lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: { -lean_object* x_11; uint8_t x_12; +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; +x_11 = lean_string_dec_eq(x_1, x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_dec(x_2); -x_11 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__1; -x_12 = lean_string_dec_eq(x_1, x_11); -if (x_12 == 0) +x_12 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__1; +x_13 = lean_string_dec_eq(x_1, x_12); +if (x_13 == 0) { -lean_object* x_13; uint8_t x_14; +lean_object* x_14; uint8_t x_15; lean_dec(x_3); -x_13 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__2; -x_14 = lean_string_dec_eq(x_1, x_13); -if (x_14 == 0) +x_14 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__2; +x_15 = lean_string_dec_eq(x_1, x_14); +if (x_15 == 0) { -lean_object* x_15; uint8_t x_16; +lean_object* x_16; uint8_t x_17; lean_dec(x_4); -x_15 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__3; -x_16 = lean_string_dec_eq(x_1, x_15); -if (x_16 == 0) +x_16 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__3; +x_17 = lean_string_dec_eq(x_1, x_16); +if (x_17 == 0) { -lean_object* x_17; uint8_t x_18; +lean_object* x_18; uint8_t x_19; lean_dec(x_5); -x_17 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__4; -x_18 = lean_string_dec_eq(x_1, x_17); -if (x_18 == 0) +x_18 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__4; +x_19 = lean_string_dec_eq(x_1, x_18); +if (x_19 == 0) { -lean_object* x_19; uint8_t x_20; +lean_object* x_20; uint8_t x_21; lean_dec(x_6); -x_19 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5; -x_20 = lean_string_dec_eq(x_1, x_19); -if (x_20 == 0) +x_20 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5; +x_21 = lean_string_dec_eq(x_1, x_20); +if (x_21 == 0) { -lean_object* x_21; +lean_object* x_22; uint8_t x_23; lean_dec(x_7); -x_21 = lean_apply_1(x_8, x_1); -return x_21; +x_22 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6; +x_23 = lean_string_dec_eq(x_1, x_22); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec(x_8); +x_24 = lean_apply_1(x_9, x_1); +return x_24; } else { -lean_object* x_22; lean_object* x_23; +lean_object* x_25; lean_object* x_26; +lean_dec(x_9); +lean_dec(x_1); +x_25 = lean_box(0); +x_26 = lean_apply_1(x_8, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_22 = lean_box(0); -x_23 = lean_apply_1(x_7, x_22); -return x_23; +x_27 = lean_box(0); +x_28 = lean_apply_1(x_7, x_27); +return x_28; } } else { -lean_object* x_24; lean_object* x_25; +lean_object* x_29; lean_object* x_30; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_24 = lean_box(0); -x_25 = lean_apply_1(x_6, x_24); -return x_25; +x_29 = lean_box(0); +x_30 = lean_apply_1(x_6, x_29); +return x_30; } } else { -lean_object* x_26; lean_object* x_27; +lean_object* x_31; lean_object* x_32; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_26 = lean_box(0); -x_27 = lean_apply_1(x_5, x_26); -return x_27; +x_31 = lean_box(0); +x_32 = lean_apply_1(x_5, x_31); +return x_32; } } else { -lean_object* x_28; lean_object* x_29; +lean_object* x_33; lean_object* x_34; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_28 = lean_box(0); -x_29 = lean_apply_1(x_4, x_28); -return x_29; +x_33 = lean_box(0); +x_34 = lean_apply_1(x_4, x_33); +return x_34; } } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_35; lean_object* x_36; +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); -x_30 = lean_box(0); -x_31 = lean_apply_1(x_3, x_30); -return x_31; +x_35 = lean_box(0); +x_36 = lean_apply_1(x_3, x_35); +return x_36; } } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_37; lean_object* x_38; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11508,9 +11559,9 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_32 = lean_box(0); -x_33 = lean_apply_1(x_2, x_32); -return x_33; +x_37 = lean_box(0); +x_38 = lean_apply_1(x_2, x_37); +return x_38; } } } @@ -11518,7 +11569,7 @@ lean_object* l_Lean_Server_Watchdog_handleRequest_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest_match__1___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest_match__1___rarg), 9, 0); return x_2; } } @@ -11526,7 +11577,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_411_(x_1); +x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_109_(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; lean_object* x_9; lean_object* x_10; @@ -11557,7 +11608,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_441_(x_1); +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_153_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -12152,7 +12203,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_330_(x_1); +x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_411_(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; lean_object* x_9; lean_object* x_10; @@ -12183,7 +12234,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_374_(x_1); +x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_441_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -12778,7 +12829,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_249_(x_1); +x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_330_(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; lean_object* x_9; lean_object* x_10; @@ -12809,7 +12860,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_293_(x_1); +x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonTypeDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_374_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -13404,7 +13455,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_168_(x_1); +x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_249_(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; lean_object* x_9; lean_object* x_10; @@ -13435,7 +13486,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_212_(x_1); +x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDefinitionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_293_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -14030,7 +14081,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_87_(x_1); +x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_168_(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; lean_object* x_9; lean_object* x_10; @@ -14061,7 +14112,7 @@ lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleReques _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_131_(x_1); +x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDeclarationParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_212_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); @@ -14656,7 +14707,7 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle _start: { lean_object* x_4; -x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_42_(x_1); +x_4 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_87_(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; lean_object* x_9; lean_object* x_10; @@ -14683,6 +14734,42 @@ return x_12; } } } +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_131_(x_1); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +} +lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__38(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 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_2, 2); +lean_inc(x_6); +lean_dec(x_2); +x_7 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(x_6); +x_8 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_5); +lean_ctor_set(x_8, 2, x_7); +x_9 = l_IO_FS_Stream_writeLspMessage(x_1, x_8, x_3); +lean_dec(x_8); +return x_9; +} +} lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -14690,7 +14777,7 @@ lean_object* x_4; lean_object* x_5; lean_inc(x_1); x_4 = l_Lean_Server_Watchdog_FileWorker_stdin(x_1); lean_inc(x_2); -x_5 = l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(x_4, x_2, x_3); +x_5 = l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__38(x_4, x_2, x_3); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -14713,7 +14800,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_2, 2); lean_inc(x_13); lean_dec(x_2); -x_14 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_13); +x_14 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(x_13); lean_inc(x_11); x_15 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_15, 0, x_11); @@ -14767,7 +14854,7 @@ return x_25; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39(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* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41(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) { _start: { uint8_t x_8; @@ -14817,7 +14904,7 @@ goto _start; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -14842,7 +14929,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_9, 2); lean_inc(x_12); lean_dec(x_9); -x_13 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_12); +x_13 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(x_12); x_14 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_14, 0, x_10); lean_ctor_set(x_14, 1, x_11); @@ -14857,7 +14944,7 @@ goto _start; } } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -14893,7 +14980,7 @@ x_17 = lean_usize_of_nat(x_16); lean_dec(x_16); x_18 = 0; x_19 = l_Array_empty___closed__1; -x_20 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39(x_14, x_3, x_17, x_18, x_19, x_5, x_15); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41(x_14, x_3, x_17, x_18, x_19, x_5, x_15); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -15052,7 +15139,7 @@ return x_49; } } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2(uint8_t 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 (x_1 == 0) @@ -15070,32 +15157,32 @@ else { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1(x_2, x_3, x_4, x_10, x_6, x_7); +x_11 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1(x_2, x_3, x_4, x_10, x_6, x_7); return x_11; } } } -static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1() { +static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1() { _start: { size_t x_1; size_t x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; x_2 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__2; x_3 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__3; -x_4 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40(x_2, x_1, x_3); +x_4 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42(x_2, x_1, x_3); return x_4; } } -static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2() { +static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1; +x_1 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1; x_2 = x_1; return x_2; } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; @@ -15121,7 +15208,7 @@ x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec(x_10); x_13 = lean_box(0); -x_14 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2(x_5, x_1, x_9, x_12, x_13, x_6, x_11); +x_14 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2(x_5, x_1, x_9, x_12, x_13, x_6, x_11); lean_dec(x_12); return x_14; } @@ -15141,14 +15228,14 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_2, 2); lean_inc(x_19); lean_dec(x_2); -x_20 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_19); +x_20 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__39(x_19); x_21 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_21, 0, x_17); lean_ctor_set(x_21, 1, x_18); lean_ctor_set(x_21, 2, x_20); x_22 = lean_array_push(x_16, x_21); x_23 = lean_box(0); -x_24 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2(x_5, x_1, x_9, x_22, x_23, x_6, x_15); +x_24 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2(x_5, x_1, x_9, x_22, x_23, x_6, x_15); lean_dec(x_22); return x_24; } @@ -15173,7 +15260,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); -x_28 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2; +x_28 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2; x_29 = l_Lean_Server_Watchdog_handleCrash(x_1, x_28, x_6, x_27); lean_dec(x_6); return x_29; @@ -15206,7 +15293,597 @@ x_36 = lean_usize_of_nat(x_35); lean_dec(x_35); x_37 = 0; x_38 = x_32; -x_39 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40(x_36, x_37, x_38); +x_39 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42(x_36, x_37, x_38); +x_40 = x_39; +x_41 = l_Lean_Server_Watchdog_handleCrash(x_1, x_40, x_6, x_34); +lean_dec(x_6); +return x_41; +} +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_42 = !lean_is_exclusive(x_8); +if (x_42 == 0) +{ +return x_8; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_8, 0); +x_44 = lean_ctor_get(x_8, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_8); +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_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_42_(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; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_1); +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +} +lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__44(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +lean_inc(x_1); +x_4 = l_Lean_Server_Watchdog_FileWorker_stdin(x_1); +lean_inc(x_2); +x_5 = l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(x_4, x_2, x_3); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_ctor_get(x_1, 4); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_st_ref_take(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_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 2); +lean_inc(x_13); +lean_dec(x_2); +x_14 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_13); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_12); +lean_ctor_set(x_15, 2, x_14); +x_16 = l_Std_RBNode_insert___at_Lean_Server_Watchdog_FileWorker_writeRequest___spec__1(x_9, x_11, x_15); +x_17 = lean_st_ref_set(x_7, x_16, x_10); +lean_dec(x_7); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +return x_17; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_5); +if (x_22 == 0) +{ +return x_5; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_5, 0); +x_24 = lean_ctor_get(x_5, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_5); +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_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46(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) { +_start: +{ +uint8_t x_8; +x_8 = x_4 < x_3; +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_11 = l_Lean_Server_Watchdog_FileWorker_writeMessage(x_1, x_10, x_7); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; size_t x_13; size_t x_14; +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = 1; +x_14 = x_4 + x_13; +x_4 = x_14; +x_7 = x_12; +goto _start; +} +else +{ +lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_array_push(x_5, x_10); +x_18 = 1; +x_19 = x_4 + x_18; +x_4 = x_19; +x_5 = x_17; +x_7 = x_16; +goto _start; +} +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 2); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_12); +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_11); +lean_ctor_set(x_14, 2, x_13); +x_15 = 1; +x_16 = x_2 + x_15; +x_17 = x_14; +x_18 = lean_array_uset(x_8, x_2, x_17); +x_2 = x_16; +x_3 = x_18; +goto _start; +} +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = l_Lean_Server_Watchdog_eraseFileWorker(x_1, x_5, x_6); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +lean_inc(x_5); +x_11 = l_Lean_Server_Watchdog_startFileWorker(x_10, x_5, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Server_Watchdog_findFileWorker(x_1, x_5, x_12); +if (lean_obj_tag(x_13) == 0) +{ +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; uint8_t x_21; +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_array_get_size(x_3); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = l_Array_empty___closed__1; +x_20 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46(x_14, x_3, x_17, x_18, x_19, x_5, x_15); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = l_Array_isEmpty___rarg(x_22); +if (x_24 == 0) +{ +uint8_t x_25; +x_25 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__1; +if (x_25 == 0) +{ +lean_object* x_26; +lean_dec(x_22); +lean_dec(x_5); +x_26 = lean_box(0); +lean_ctor_set(x_20, 0, x_26); +return x_20; +} +else +{ +lean_object* x_27; +lean_free_object(x_20); +x_27 = l_Lean_Server_Watchdog_handleCrash(x_1, x_22, x_5, x_23); +lean_dec(x_5); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__2; +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_22); +lean_dec(x_5); +x_29 = lean_box(0); +lean_ctor_set(x_20, 0, x_29); +return x_20; +} +else +{ +lean_object* x_30; +lean_free_object(x_20); +x_30 = l_Lean_Server_Watchdog_handleCrash(x_1, x_22, x_5, x_23); +lean_dec(x_5); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_20, 0); +x_32 = lean_ctor_get(x_20, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_20); +x_33 = l_Array_isEmpty___rarg(x_31); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__1; +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_31); +lean_dec(x_5); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_32); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = l_Lean_Server_Watchdog_handleCrash(x_1, x_31, x_5, x_32); +lean_dec(x_5); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__2; +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_31); +lean_dec(x_5); +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_32); +return x_40; +} +else +{ +lean_object* x_41; +x_41 = l_Lean_Server_Watchdog_handleCrash(x_1, x_31, x_5, x_32); +lean_dec(x_5); +return x_41; +} +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_5); +x_42 = !lean_is_exclusive(x_13); +if (x_42 == 0) +{ +return x_13; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_13, 0); +x_44 = lean_ctor_get(x_13, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_13); +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; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_5); +x_46 = !lean_is_exclusive(x_11); +if (x_46 == 0) +{ +return x_11; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_ctor_get(x_11, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_11); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2(uint8_t 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 (x_1 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_3); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1(x_2, x_3, x_4, x_10, x_6, x_7); +return x_11; +} +} +} +static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1() { +_start: +{ +size_t x_1; size_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = 0; +x_2 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__2; +x_3 = l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__3; +x_4 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47(x_2, x_1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1; +x_2 = x_1; +return x_2; +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_Watchdog_findFileWorker(x_1, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_3); +if (x_4 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2(x_5, x_1, x_9, x_12, x_13, x_6, x_11); +lean_dec(x_12); +return x_14; +} +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; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_dec(x_8); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_2, 2); +lean_inc(x_19); +lean_dec(x_2); +x_20 = l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(x_19); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_20); +x_22 = lean_array_push(x_16, x_21); +x_23 = lean_box(0); +x_24 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2(x_5, x_1, x_9, x_22, x_23, x_6, x_15); +lean_dec(x_22); +return x_24; +} +} +else +{ +if (x_4 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_8, 1); +lean_inc(x_25); +lean_dec(x_8); +x_26 = lean_apply_3(x_3, x_9, x_2, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_dec(x_6); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2; +x_29 = l_Lean_Server_Watchdog_handleCrash(x_1, x_28, x_6, x_27); +lean_dec(x_6); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_dec(x_8); +x_31 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_2); +x_32 = lean_array_push(x_31, x_2); +x_33 = lean_apply_3(x_3, x_9, x_2, x_30); +if (lean_obj_tag(x_33) == 0) +{ +lean_dec(x_32); +lean_dec(x_6); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_array_get_size(x_32); +x_36 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_37 = 0; +x_38 = x_32; +x_39 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47(x_36, x_37, x_38); x_40 = x_39; x_41 = l_Lean_Server_Watchdog_handleCrash(x_1, x_40, x_6, x_34); lean_dec(x_6); @@ -15298,6 +15975,14 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_FileWorker_writeRequest_ return x_1; } } +static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__44), 3, 0); +return x_1; +} +} lean_object* l_Lean_Server_Watchdog_handleRequest(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -15331,334 +16016,391 @@ x_16 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5; x_17 = lean_string_dec_eq(x_2, 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; uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6; +x_19 = lean_string_dec_eq(x_2, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_3); -x_18 = lean_ctor_get(x_4, 1); -lean_inc(x_18); +x_20 = lean_ctor_get(x_4, 1); +lean_inc(x_20); lean_dec(x_4); -x_19 = l_Lean_Server_Watchdog_handleRequest___closed__1; -x_20 = lean_string_append(x_19, x_2); +x_21 = l_Lean_Server_Watchdog_handleRequest___closed__1; +x_22 = lean_string_append(x_21, x_2); lean_dec(x_2); -x_21 = l_Lean_instInhabitedParserDescr___closed__1; -x_22 = lean_string_append(x_20, x_21); -x_23 = lean_box(0); -x_24 = 2; -x_25 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_25, 0, x_1); -lean_ctor_set(x_25, 1, x_22); -lean_ctor_set(x_25, 2, x_23); -lean_ctor_set_uint8(x_25, sizeof(void*)*3, x_24); -x_26 = l_IO_FS_Stream_writeLspResponseError(x_18, x_25, x_5); -lean_dec(x_25); -return x_26; -} -else -{ -lean_object* x_27; -x_27 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__1(x_3, x_4, x_5); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); +x_23 = l_Lean_instInhabitedParserDescr___closed__1; +x_24 = lean_string_append(x_22, x_23); +x_25 = lean_box(0); +x_26 = 2; +x_27 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_24); +lean_ctor_set(x_27, 2, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*3, x_26); +x_28 = l_IO_FS_Stream_writeLspResponseError(x_20, x_27, x_5); lean_dec(x_27); -lean_inc(x_28); -x_30 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_30, 1, x_2); -lean_ctor_set(x_30, 2, x_28); -x_31 = l_Lean_Server_Watchdog_handleRequest___closed__2; -x_32 = 1; -x_33 = 0; -x_34 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5(x_28, x_30, x_31, x_32, x_33, x_4, x_29); -lean_dec(x_28); -return x_34; +return x_28; } else { -uint8_t x_35; +lean_object* x_29; +x_29 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__1(x_3, x_4, x_5); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; +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_alloc_ctor(0, 3, 0); +lean_ctor_set(x_33, 0, x_1); +lean_ctor_set(x_33, 1, x_2); +lean_ctor_set(x_33, 2, x_30); +x_34 = l_Lean_Server_Watchdog_handleRequest___closed__2; +x_35 = 1; +x_36 = 0; +x_37 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5(x_32, x_33, x_34, x_35, x_36, x_4, x_31); +lean_dec(x_32); +return x_37; +} +else +{ +uint8_t x_38; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_27); -if (x_35 == 0) +x_38 = !lean_is_exclusive(x_29); +if (x_38 == 0) { -return x_27; +return x_29; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_27, 0); -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_27); -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; -x_39 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8(x_3, x_4, x_5); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; -x_40 = lean_ctor_get(x_39, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_29, 0); +x_40 = lean_ctor_get(x_29, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -x_43 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_43, 0, x_1); -lean_ctor_set(x_43, 1, x_2); -lean_ctor_set(x_43, 2, x_40); -x_44 = l_Lean_Server_Watchdog_handleRequest___closed__3; -x_45 = 1; -x_46 = 0; -x_47 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12(x_42, x_43, x_44, x_45, x_46, x_4, x_41); +lean_inc(x_39); +lean_dec(x_29); +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; +x_42 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8(x_3, x_4, x_5); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; +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); -return x_47; +lean_inc(x_43); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_2); +lean_ctor_set(x_45, 2, x_43); +x_46 = l_Lean_Server_Watchdog_handleRequest___closed__3; +x_47 = 1; +x_48 = 0; +x_49 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12(x_43, x_45, x_46, x_47, x_48, x_4, x_44); +lean_dec(x_43); +return x_49; } else { -uint8_t x_48; +uint8_t x_50; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_39); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_42); +if (x_50 == 0) { -return x_39; +return x_42; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_39, 0); -x_50 = lean_ctor_get(x_39, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_39); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_42, 0); +x_52 = lean_ctor_get(x_42, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_42); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } } else { -lean_object* x_52; -x_52 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__15(x_3, x_4, x_5); -if (lean_obj_tag(x_52) == 0) +lean_object* x_54; +x_54 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__15(x_3, x_4, x_5); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; lean_object* x_60; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_53, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; uint8_t x_61; lean_object* x_62; +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -x_56 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_56, 0, x_1); -lean_ctor_set(x_56, 1, x_2); -lean_ctor_set(x_56, 2, x_53); -x_57 = l_Lean_Server_Watchdog_handleRequest___closed__4; -x_58 = 1; -x_59 = 0; -x_60 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__19(x_55, x_56, x_57, x_58, x_59, x_4, x_54); -lean_dec(x_55); -return x_60; +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_2); +lean_ctor_set(x_58, 2, x_55); +x_59 = l_Lean_Server_Watchdog_handleRequest___closed__4; +x_60 = 1; +x_61 = 0; +x_62 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__19(x_57, x_58, x_59, x_60, x_61, x_4, x_56); +lean_dec(x_57); +return x_62; } else { -uint8_t x_61; +uint8_t x_63; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_52); -if (x_61 == 0) +x_63 = !lean_is_exclusive(x_54); +if (x_63 == 0) { -return x_52; +return x_54; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_52, 0); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_52); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_54, 0); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_54); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } } else { -lean_object* x_65; -x_65 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__22(x_3, x_4, x_5); -if (lean_obj_tag(x_65) == 0) +lean_object* x_67; +x_67 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__22(x_3, x_4, x_5); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_ctor_get(x_66, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -x_69 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_69, 0, x_1); -lean_ctor_set(x_69, 1, x_2); -lean_ctor_set(x_69, 2, x_66); -x_70 = l_Lean_Server_Watchdog_handleRequest___closed__5; -x_71 = 1; -x_72 = 0; -x_73 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26(x_68, x_69, x_70, x_71, x_72, x_4, x_67); -lean_dec(x_68); -return x_73; +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +x_71 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_71, 0, x_1); +lean_ctor_set(x_71, 1, x_2); +lean_ctor_set(x_71, 2, x_68); +x_72 = l_Lean_Server_Watchdog_handleRequest___closed__5; +x_73 = 1; +x_74 = 0; +x_75 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26(x_70, x_71, x_72, x_73, x_74, x_4, x_69); +lean_dec(x_70); +return x_75; } else { -uint8_t x_74; +uint8_t x_76; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_65); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_67); +if (x_76 == 0) { -return x_65; +return x_67; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_65, 0); -x_76 = lean_ctor_get(x_65, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_65); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_67, 0); +x_78 = lean_ctor_get(x_67, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_67); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } } else { -lean_object* x_78; -x_78 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__29(x_3, x_4, x_5); -if (lean_obj_tag(x_78) == 0) +lean_object* x_80; +x_80 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__29(x_3, x_4, x_5); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; -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_81 = lean_ctor_get(x_79, 0); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -x_82 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_82, 0, x_1); -lean_ctor_set(x_82, 1, x_2); -lean_ctor_set(x_82, 2, x_79); -x_83 = l_Lean_Server_Watchdog_handleRequest___closed__6; -x_84 = 1; -x_85 = 0; -x_86 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33(x_81, x_82, x_83, x_84, x_85, x_4, x_80); -lean_dec(x_81); -return x_86; +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_1); +lean_ctor_set(x_84, 1, x_2); +lean_ctor_set(x_84, 2, x_81); +x_85 = l_Lean_Server_Watchdog_handleRequest___closed__6; +x_86 = 1; +x_87 = 0; +x_88 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33(x_83, x_84, x_85, x_86, x_87, x_4, x_82); +lean_dec(x_83); +return x_88; } else { -uint8_t x_87; +uint8_t x_89; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_87 = !lean_is_exclusive(x_78); -if (x_87 == 0) +x_89 = !lean_is_exclusive(x_80); +if (x_89 == 0) { -return x_78; +return x_80; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_78, 0); -x_89 = lean_ctor_get(x_78, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_78); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_80, 0); +x_91 = lean_ctor_get(x_80, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_80); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } } else { -lean_object* x_91; -x_91 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__36(x_3, x_4, x_5); -if (lean_obj_tag(x_91) == 0) +lean_object* x_93; +x_93 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__36(x_3, x_4, x_5); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_98; lean_object* x_99; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_ctor_get(x_92, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -x_95 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_95, 0, x_1); -lean_ctor_set(x_95, 1, x_2); -lean_ctor_set(x_95, 2, x_92); -x_96 = l_Lean_Server_Watchdog_handleRequest___closed__7; -x_97 = 1; -x_98 = 0; -x_99 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38(x_94, x_95, x_96, x_97, x_98, x_4, x_93); -lean_dec(x_94); -return x_99; +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = lean_ctor_get(x_94, 0); +lean_inc(x_96); +x_97 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_97, 0, x_1); +lean_ctor_set(x_97, 1, x_2); +lean_ctor_set(x_97, 2, x_94); +x_98 = l_Lean_Server_Watchdog_handleRequest___closed__7; +x_99 = 1; +x_100 = 0; +x_101 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40(x_96, x_97, x_98, x_99, x_100, x_4, x_95); +lean_dec(x_96); +return x_101; } else { -uint8_t x_100; +uint8_t x_102; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_100 = !lean_is_exclusive(x_91); -if (x_100 == 0) +x_102 = !lean_is_exclusive(x_93); +if (x_102 == 0) { -return x_91; +return x_93; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_91, 0); -x_102 = lean_ctor_get(x_91, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_91); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_93, 0); +x_104 = lean_ctor_get(x_93, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_93); +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 +{ +lean_object* x_106; +x_106 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43(x_3, x_4, x_5); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_109); +x_110 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_110, 0, x_1); +lean_ctor_set(x_110, 1, x_2); +lean_ctor_set(x_110, 2, x_107); +x_111 = l_Lean_Server_Watchdog_handleRequest___closed__8; +x_112 = 1; +x_113 = 0; +x_114 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45(x_109, x_110, x_111, x_112, x_113, x_4, x_108); +lean_dec(x_109); +return x_114; +} +else +{ +uint8_t x_115; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_115 = !lean_is_exclusive(x_106); +if (x_115 == 0) +{ +return x_106; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_106, 0); +x_117 = lean_ctor_get(x_106, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_106); +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; } } } @@ -16033,7 +16775,7 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41___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: { size_t x_8; size_t x_9; lean_object* x_10; @@ -16041,13 +16783,13 @@ x_8 = lean_unbox_usize(x_3); lean_dec(x_3); x_9 = lean_unbox_usize(x_4); lean_dec(x_4); -x_10 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__39(x_1, x_2, x_8, x_9, x_5, x_6, x_7); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__41(x_1, x_2, x_8, x_9, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_2); return x_10; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__40___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42___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; @@ -16055,35 +16797,35 @@ 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_Watchdog_handleRequest___spec__40(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__42(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_1); lean_dec(x_1); -x_9 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__2(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___lambda__2(x_8, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); return x_9; } } -lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___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: { uint8_t x_8; uint8_t x_9; lean_object* x_10; @@ -16091,7 +16833,79 @@ x_8 = lean_unbox(x_4); lean_dec(x_4); x_9 = lean_unbox(x_5); lean_dec(x_5); -x_10 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38(x_1, x_2, x_3, x_8, x_9, x_6, x_7); +x_10 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40(x_1, x_2, x_3, x_8, x_9, x_6, x_7); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__43(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46___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: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__46(x_1, x_2, x_8, x_9, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__47(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___lambda__2(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___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: +{ +uint8_t x_8; uint8_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_4); +lean_dec(x_4); +x_9 = lean_unbox(x_5); +lean_dec(x_5); +x_10 = l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45(x_1, x_2, x_3, x_8, x_9, x_6, x_7); lean_dec(x_1); return x_10; } @@ -18334,8 +19148,10 @@ lean_inc(x_159); x_160 = lean_ctor_get(x_158, 1); lean_inc(x_160); lean_dec(x_158); -x_161 = lean_unsigned_to_nat(500u); +x_161 = lean_ctor_get(x_2, 6); +lean_inc(x_161); x_162 = lean_nat_add(x_159, x_161); +lean_dec(x_161); lean_dec(x_159); x_163 = lean_ctor_get(x_156, 5); lean_inc(x_163); @@ -18840,8 +19656,10 @@ lean_inc(x_292); x_293 = lean_ctor_get(x_291, 1); lean_inc(x_293); lean_dec(x_291); -x_294 = lean_unsigned_to_nat(500u); +x_294 = lean_ctor_get(x_2, 6); +lean_inc(x_294); x_295 = lean_nat_add(x_292, x_294); +lean_dec(x_294); lean_dec(x_292); x_296 = lean_ctor_get(x_289, 5); lean_inc(x_296); @@ -19353,8 +20171,10 @@ lean_inc(x_426); x_427 = lean_ctor_get(x_425, 1); lean_inc(x_427); lean_dec(x_425); -x_428 = lean_unsigned_to_nat(500u); +x_428 = lean_ctor_get(x_2, 6); +lean_inc(x_428); x_429 = lean_nat_add(x_426, x_428); +lean_dec(x_428); lean_dec(x_426); x_430 = lean_ctor_get(x_423, 5); lean_inc(x_430); @@ -19711,8 +20531,10 @@ lean_inc(x_512); x_513 = lean_ctor_get(x_511, 1); lean_inc(x_513); lean_dec(x_511); -x_514 = lean_unsigned_to_nat(500u); +x_514 = lean_ctor_get(x_2, 6); +lean_inc(x_514); x_515 = lean_nat_add(x_512, x_514); +lean_dec(x_514); lean_dec(x_512); x_516 = lean_ctor_get(x_509, 5); lean_inc(x_516); @@ -21692,18 +22514,18 @@ goto block_46; block_46: { 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; -x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; +x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__1; x_24 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_22, x_23); -x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2; +x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__2; x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_22, x_25); -x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__3; +x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__3; x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_22, x_27); -x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__4; -x_30 = l_Lean_Json_getObjVal_x3f(x_22, x_29); -x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9; -x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_22, x_31); -x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__8; -x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_33); +x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__4; +x_30 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(x_22, x_29); +x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__9; +x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_31); +x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_219____closed__8; +x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_22, x_33); lean_dec(x_22); if (lean_obj_tag(x_32) == 0) { @@ -22417,7 +23239,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); -x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_395_(x_5); +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_450_(x_5); lean_inc(x_4); x_7 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_7, 0, x_4); @@ -22571,24 +23393,79 @@ x_34 = l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_initAndRunWatch lean_dec(x_33); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 1); +lean_object* x_35; +x_35 = lean_ctor_get(x_31, 3); lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -x_36 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_36, 0, x_15); -lean_ctor_set(x_36, 1, x_20); -lean_ctor_set(x_36, 2, x_24); -lean_ctor_set(x_36, 3, x_4); -lean_ctor_set(x_36, 4, x_10); -lean_ctor_set(x_36, 5, x_31); -lean_ctor_set(x_36, 6, x_5); -x_37 = l_Lean_Server_Watchdog_initAndRunWatchdogAux(x_36, x_35); -return x_37; +x_37 = lean_unsigned_to_nat(200u); +x_38 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_38, 0, x_15); +lean_ctor_set(x_38, 1, x_20); +lean_ctor_set(x_38, 2, x_24); +lean_ctor_set(x_38, 3, x_4); +lean_ctor_set(x_38, 4, x_10); +lean_ctor_set(x_38, 5, x_31); +lean_ctor_set(x_38, 6, x_37); +lean_ctor_set(x_38, 7, x_5); +x_39 = l_Lean_Server_Watchdog_initAndRunWatchdogAux(x_38, x_36); +return x_39; } else { -uint8_t x_38; +lean_object* x_40; +x_40 = lean_ctor_get(x_35, 0); +lean_inc(x_40); +lean_dec(x_35); +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_34, 1); +lean_inc(x_41); +lean_dec(x_34); +x_42 = lean_unsigned_to_nat(200u); +x_43 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_43, 0, x_15); +lean_ctor_set(x_43, 1, x_20); +lean_ctor_set(x_43, 2, x_24); +lean_ctor_set(x_43, 3, x_4); +lean_ctor_set(x_43, 4, x_10); +lean_ctor_set(x_43, 5, x_31); +lean_ctor_set(x_43, 6, x_42); +lean_ctor_set(x_43, 7, x_5); +x_44 = l_Lean_Server_Watchdog_initAndRunWatchdogAux(x_43, x_41); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_34, 1); +lean_inc(x_45); +lean_dec(x_34); +x_46 = lean_ctor_get(x_40, 0); +lean_inc(x_46); +lean_dec(x_40); +x_47 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_47, 0, x_15); +lean_ctor_set(x_47, 1, x_20); +lean_ctor_set(x_47, 2, x_24); +lean_ctor_set(x_47, 3, x_4); +lean_ctor_set(x_47, 4, x_10); +lean_ctor_set(x_47, 5, x_31); +lean_ctor_set(x_47, 6, x_46); +lean_ctor_set(x_47, 7, x_5); +x_48 = l_Lean_Server_Watchdog_initAndRunWatchdogAux(x_47, x_45); +return x_48; +} +} +} +else +{ +uint8_t x_49; lean_dec(x_31); lean_dec(x_24); lean_dec(x_20); @@ -22596,136 +23473,136 @@ lean_dec(x_15); lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_49 = !lean_is_exclusive(x_34); +if (x_49 == 0) { return x_34; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_34, 0); +x_51 = lean_ctor_get(x_34, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_34); -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; +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_42; +uint8_t x_53; lean_dec(x_24); lean_dec(x_20); lean_dec(x_15); lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); -x_42 = !lean_is_exclusive(x_27); -if (x_42 == 0) +x_53 = !lean_is_exclusive(x_27); +if (x_53 == 0) { return x_27; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_27, 0); -x_44 = lean_ctor_get(x_27, 1); -lean_inc(x_44); -lean_inc(x_43); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_27, 0); +x_55 = lean_ctor_get(x_27, 1); +lean_inc(x_55); +lean_inc(x_54); lean_dec(x_27); -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; +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_46; +uint8_t x_57; lean_dec(x_20); lean_dec(x_15); lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); -x_46 = !lean_is_exclusive(x_23); -if (x_46 == 0) +x_57 = !lean_is_exclusive(x_23); +if (x_57 == 0) { return x_23; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_23, 0); -x_48 = lean_ctor_get(x_23, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_23, 0); +x_59 = lean_ctor_get(x_23, 1); +lean_inc(x_59); +lean_inc(x_58); lean_dec(x_23); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } else { -uint8_t x_50; +uint8_t x_61; lean_dec(x_15); lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_50 = !lean_is_exclusive(x_19); -if (x_50 == 0) +x_61 = !lean_is_exclusive(x_19); +if (x_61 == 0) { return x_19; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_19, 0); -x_52 = lean_ctor_get(x_19, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_19, 0); +x_63 = lean_ctor_get(x_19, 1); +lean_inc(x_63); +lean_inc(x_62); lean_dec(x_19); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +x_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_54; +uint8_t x_65; lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = !lean_is_exclusive(x_14); -if (x_54 == 0) +x_65 = !lean_is_exclusive(x_14); +if (x_65 == 0) { return x_14; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_14, 0); -x_56 = lean_ctor_get(x_14, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_14, 0); +x_67 = lean_ctor_get(x_14, 1); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_14); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +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; } } } @@ -23320,6 +24197,8 @@ l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__4 = _init_l_Lean_ lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__4); l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5 = _init_l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5(); lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__5); +l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6 = _init_l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__6); l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__1 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__1); l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__2(); @@ -23340,10 +24219,14 @@ l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest__ lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__1); l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__2(); lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___closed__2); -l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1(); -lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__1); -l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2(); -lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2); +l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1(); +lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__1); +l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2(); +lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__40___closed__2); +l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1(); +lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__1); +l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2(); +lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__45___closed__2); l_Lean_Server_Watchdog_handleRequest___closed__1 = _init_l_Lean_Server_Watchdog_handleRequest___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__1); l_Lean_Server_Watchdog_handleRequest___closed__2 = _init_l_Lean_Server_Watchdog_handleRequest___closed__2(); @@ -23358,6 +24241,8 @@ l_Lean_Server_Watchdog_handleRequest___closed__6 = _init_l_Lean_Server_Watchdog_ lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__6); l_Lean_Server_Watchdog_handleRequest___closed__7 = _init_l_Lean_Server_Watchdog_handleRequest___closed__7(); lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__7); +l_Lean_Server_Watchdog_handleRequest___closed__8 = _init_l_Lean_Server_Watchdog_handleRequest___closed__8(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__8); l_Lean_Server_Watchdog_handleNotification_match__1___rarg___closed__1 = _init_l_Lean_Server_Watchdog_handleNotification_match__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_handleNotification_match__1___rarg___closed__1); l_Lean_Server_Watchdog_handleNotification___closed__1 = _init_l_Lean_Server_Watchdog_handleNotification___closed__1();