chore: update stage0

This commit is contained in:
Sebastian Ullrich 2020-12-03 17:57:40 +01:00
parent 80d4ae82e8
commit 07ba3cd171
28 changed files with 11346 additions and 9161 deletions

View file

@ -49,8 +49,10 @@ def processCommand : FrontendM Bool := do
let cmdState ← getCommandState
let ictx ← getInputContext
let pstate ← getParserState
let scope := cmdState.scopes.head!
let pmctx := { env := cmdState.env, currNamespace := scope.currNamespace, openDecls := scope.openDecls }
let pos := ictx.fileMap.toPosition pstate.pos
match profileit "parsing" pos fun _ => Parser.parseCommand cmdState.env ictx pstate cmdState.messages with
match profileit "parsing" pos fun _ => Parser.parseCommand ictx pmctx pstate cmdState.messages with
| (cmd, ps, messages) =>
modify fun s => { s with commands := s.commands.push cmd }
setParserState ps

View file

@ -62,6 +62,7 @@ import Lean.Environment
import Lean.Attributes
import Lean.Message
import Lean.Compiler.InitAttr
import Lean.ResolveName
namespace Lean
@ -120,15 +121,24 @@ instance : Inhabited InputContext := ⟨{
input := "", fileName := "", fileMap := arbitrary
}⟩
structure ParserContext extends InputContext where
/-- Input context derived from elaboration of previous commands. -/
structure ParserModuleContext where
env : Environment
-- for name lookup
currNamespace : Name := Name.anonymous
openDecls : List OpenDecl := []
structure ParserContext extends InputContext, ParserModuleContext where
prec : Nat
env : Environment
tokens : TokenTable
insideQuot : Bool := false
suppressInsideQuot : Bool := false
savedPos? : Option String.Pos := none
forbiddenTk? : Option Token := none
def ParserContext.resolveName (ctx : ParserContext) (id : Name) : List (Name × List String) :=
ResolveName.resolveGlobalName ctx.env ctx.currNamespace ctx.openDecls id
structure Error where
unexpected : String := ""
expected : List String := []
@ -1654,6 +1664,27 @@ def categoryParserOfStackFn (offset : Nat) : ParserFn := fun ctx s =>
def categoryParserOfStack (offset : Nat) (prec : Nat := 0) : Parser :=
{ fn := fun c s => categoryParserOfStackFn offset { c with prec := prec } s }
unsafe def parserOfStackFnUnsafe (offset : Nat) : ParserFn := fun ctx s =>
let stack := s.stxStack
if stack.size < offset + 1 then
s.mkUnexpectedError ("failed to determine parser using syntax stack, stack is too small")
else
match stack.get! (stack.size - offset - 1) with
| Syntax.ident (val := parserName) .. =>
match ctx.resolveName parserName with
| [(parserName, [])] => match ctx.env.evalConstCheck Parser {} `Lean.Parser.Parser parserName with
| Except.ok p => p.fn ctx s
| Except.error e => s.mkUnexpectedError s!"error running parser {parserName}: {e}"
| _::_::_ => s.mkUnexpectedError s!"ambiguous parser name {parserName}"
| _ => s.mkUnexpectedError s!"unknown parser {parserName}"
| _ => s.mkUnexpectedError ("failed to determine parser using syntax stack, the specified element on the stack is not an identifier")
@[implementedBy parserOfStackFnUnsafe]
constant parserOfStackFn (offset : Nat) : ParserFn
def parserOfStack (offset : Nat) (prec : Nat := 0) : Parser :=
{ fn := fun c s => parserOfStackFn offset { c with prec := prec } s }
private def mkResult (s : ParserState) (iniSz : Nat) : ParserState :=
if s.stackSize == iniSz + 1 then s
else s.mkNode nullKind iniSz -- throw error instead?

View file

@ -422,11 +422,11 @@ def mkInputContext (input : String) (fileName : String) : InputContext := {
fileMap := input.toFileMap
}
def mkParserContext (env : Environment) (ctx : InputContext) : ParserContext := {
prec := 0,
toInputContext := ctx,
env := env,
tokens := getTokenTable env
def mkParserContext (ictx : InputContext) (pmctx : ParserModuleContext) : ParserContext := {
prec := 0,
toInputContext := ictx,
toParserModuleContext := pmctx,
tokens := getTokenTable pmctx.env
}
def mkParserState (input : String) : ParserState :=
@ -434,7 +434,7 @@ def mkParserState (input : String) : ParserState :=
/- convenience function for testing -/
def runParserCategory (env : Environment) (catName : Name) (input : String) (fileName := "<input>") : Except String Syntax :=
let c := mkParserContext env (mkInputContext input fileName)
let c := mkParserContext (mkInputContext input fileName) { env := env }
let s := mkParserState input
let s := whitespace c s
let s := categoryParserFnImpl catName c s

View file

@ -40,7 +40,7 @@ private def mkErrorMessage (c : ParserContext) (pos : String.Pos) (errorMsg : St
def parseHeader (inputCtx : InputContext) : IO (Syntax × ModuleParserState × MessageLog) := do
let dummyEnv ← mkEmptyEnvironment
let ctx := mkParserContext dummyEnv inputCtx
let ctx := mkParserContext inputCtx { env := dummyEnv }
let ctx := Module.updateTokens ctx
let s := mkParserState ctx.input
let s := whitespace ctx s
@ -76,13 +76,13 @@ def topLevelCommandParserFn : ParserFn :=
(andthenFn (lookaheadFn termParser.fn) (errorFn "expected command, but found term; this error may be due to parsing precedence levels, consider parenthesizing the term"))
false /- do not merge errors -/
partial def parseCommand (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (messages : MessageLog) : Syntax × ModuleParserState × MessageLog :=
partial def parseCommand (inputCtx : InputContext) (pmctx : ParserModuleContext) (s : ModuleParserState) (messages : MessageLog) : Syntax × ModuleParserState × MessageLog :=
let rec parse (s : ModuleParserState) (messages : MessageLog) :=
let { pos := pos, recovering := recovering } := s
if inputCtx.input.atEnd pos then
(mkEOI pos, s, messages)
else
let c := mkParserContext env inputCtx
let c := mkParserContext inputCtx pmctx
let s := { cache := initCacheForInput c.input, pos := pos : ParserState }
let s := whitespace c s
let s := topLevelCommandParserFn c s
@ -104,29 +104,11 @@ partial def parseCommand (env : Environment) (inputCtx : InputContext) (s : Modu
-- (stx, { pos := pos, recovering := true }, messages)
parse s messages
private partial def testModuleParserAux (env : Environment) (inputCtx : InputContext) (displayStx : Bool) (s : ModuleParserState) (messages : MessageLog) : IO Bool :=
let rec loop (s : ModuleParserState) (messages : MessageLog) := do
match parseCommand env inputCtx s messages with
| (stx, s, messages) =>
if isEOI stx || isExitCommand stx then
messages.forM fun msg => msg.toString >>= IO.println
pure (!messages.hasErrors)
else
if displayStx then IO.println stx
loop s messages
loop s messages
-- only useful for testing since most Lean files cannot be parsed without elaboration
@[export lean_test_module_parser]
def testModuleParser (env : Environment) (input : String) (fileName := "<input>") (displayStx := false) : IO Bool :=
timeit (fileName ++ " parser") do
let inputCtx := mkInputContext input fileName
let (stx, s, messages) ← parseHeader inputCtx
if displayStx then IO.println stx
testModuleParserAux env inputCtx displayStx s messages
partial def parseModuleAux (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (msgs : MessageLog) (stxs : Array Syntax) : IO (Array Syntax) :=
partial def testParseModuleAux (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (msgs : MessageLog) (stxs : Array Syntax) : IO (Array Syntax) :=
let rec parse (state : ModuleParserState) (msgs : MessageLog) (stxs : Array Syntax) :=
match parseCommand env inputCtx state msgs with
match parseCommand inputCtx { env := env } state msgs with
| (stx, state, msgs) =>
if isEOI stx then
if msgs.isEmpty then
@ -138,17 +120,17 @@ partial def parseModuleAux (env : Environment) (inputCtx : InputContext) (s : Mo
parse state msgs (stxs.push stx)
parse s msgs stxs
def parseModule (env : Environment) (fname contents : String) : IO Syntax := do
def testParseModule (env : Environment) (fname contents : String) : IO Syntax := do
let fname ← IO.realPath fname
let inputCtx := mkInputContext contents fname
let (header, state, messages) ← parseHeader inputCtx
let cmds ← parseModuleAux env inputCtx state messages #[]
let cmds ← testParseModuleAux env inputCtx state messages #[]
let stx := Syntax.node `Lean.Parser.Module.module #[header, mkListNode cmds]
pure stx.updateLeading
def parseFile (env : Environment) (fname : String) : IO Syntax := do
def testParseFile (env : Environment) (fname : String) : IO Syntax := do
let contents ← IO.FS.readFile fname
parseModule env fname contents
testParseModule env fname contents
end Parser
end Lean

View file

@ -207,6 +207,8 @@ def macroLastArg := macroDollarArg <|> macroArg
-- Macro for avoiding exponentially big terms when using `STWorld`
@[builtinTermParser] def stateRefT := parser! "StateRefT" >> macroArg >> macroLastArg
@[builtinTermParser] def dynamicQuot := parser! "`(" >> ident >> "|" >> parserOfStack 1 >> ")"
end Term
@[builtinTermParser 1] def Tactic.quot : Parser := parser! "`(tactic|" >> toggleInsideQuot tacticParser >> ")"

View file

@ -190,6 +190,12 @@ def categoryParserOfStack.formatter (offset : Nat) : Formatter := do
let stx := st.stxTrav.parents.back.getArg (st.stxTrav.idxs.back - offset)
categoryParser.formatter stx.getId
@[combinatorFormatter Lean.Parser.parserOfStack]
def parserOfStack.formatter (offset : Nat) (prec : Nat := 0) : Formatter := do
let st ← get
let stx := st.stxTrav.parents.back.getArg (st.stxTrav.idxs.back - offset)
formatterForKind stx.getKind
@[combinatorFormatter Lean.Parser.error]
def error.formatter (msg : String) : Formatter := pure ()
@[combinatorFormatter Lean.Parser.errorAtSavedPos]

View file

@ -310,6 +310,12 @@ def categoryParserOfStack.parenthesizer (offset : Nat) (prec : Nat) : Parenthesi
let stx := st.stxTrav.parents.back.getArg (st.stxTrav.idxs.back - offset)
categoryParser.parenthesizer stx.getId prec
@[combinatorParenthesizer Lean.Parser.parserOfStack]
def parserOfStack.parenthesizer (offset : Nat) (prec : Nat := 0) : Parenthesizer := do
let st ← get
let stx := st.stxTrav.parents.back.getArg (st.stxTrav.idxs.back - offset)
parenthesizerForKind stx.getKind
@[builtinCategoryParenthesizer term]
def term.parenthesizer : CategoryParenthesizer | prec => do
let stx ← getCur

View file

@ -78,8 +78,11 @@ through the file. -/
-- isServer? conditionals and not be worth it due to how short it is.
def compileNextCmd (contents : String) (snap : Snapshot) : IO (Sum Snapshot MessageLog) := do
let inputCtx := Parser.mkInputContext contents "<input>";
let cmdState := snap.toCmdState;
let scope := cmdState.scopes.head!
let pmctx := { env := cmdState.env, currNamespace := scope.currNamespace, openDecls := scope.openDecls }
let (cmdStx, cmdParserState, msgLog) :=
Parser.parseCommand snap.env inputCtx snap.mpState snap.msgLog;
Parser.parseCommand inputCtx pmctx snap.mpState snap.msgLog;
let cmdPos := cmdStx.getHeadInfo.get!.pos.get!; -- TODO(WN): always `some`?
if Parser.isEOI cmdStx || Parser.isExitCommand cmdStx then
pure $ Sum.inr msgLog

View file

@ -332,11 +332,6 @@ public:
};
namespace lean {
extern "C" object* lean_test_module_parser(object* env, object* input, object* filename, uint8 displayCtx, object* w);
bool test_module_parser(environment const & env, std::string const & input, std::string const & filename) {
return get_io_scalar_result<bool>(lean_test_module_parser(env.to_obj_arg(), mk_string(input), mk_string(filename), false, io_mk_world()));
}
typedef list_ref<object_ref> messages;
typedef object_ref module_stx;
extern "C" object * lean_run_frontend(object * input, object * opts, object * filename, object * main_module_name, object * w);

File diff suppressed because one or more lines are too long

View file

@ -14,6 +14,7 @@
extern "C" {
#endif
lean_object* l_Lean_Elab_runFrontend_match__2___rarg(lean_object*, lean_object*);
lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*);
lean_object* l_Lean_Elab_Frontend_runCommandElabM_match__1___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Elab_IO_processCommands_match__1___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*);
@ -41,7 +42,7 @@ extern lean_object* l_Lean_Elab_parseImports___closed__1;
lean_object* l_Lean_Elab_runFrontend_match__1___rarg(lean_object*, lean_object*);
lean_object* l_Lean_MessageLog_toList(lean_object*);
lean_object* l_Lean_Elab_runFrontend_match__1(lean_object*);
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_take(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_getInputContext___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_setParserState___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -70,7 +71,7 @@ lean_object* l_Lean_Elab_Frontend_getCommandState(lean_object*);
lean_object* l_Lean_Elab_Frontend_getParserState(lean_object*);
lean_object* l_Lean_Elab_Frontend_getParserState___rarg(lean_object*, lean_object*);
lean_object* lean_process_input(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Frontend_runCommandElabM_match__2(lean_object*);
lean_object* l_Lean_Elab_IO_processCommands_match__1(lean_object*);
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
@ -1008,16 +1009,14 @@ x_2 = lean_alloc_closure((void*)(l_Lean_profileitM___at_Lean_Elab_Frontend_proce
return x_2;
}
}
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_object* x_6; lean_object* x_7;
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = l_Lean_Parser_parseCommand_parse(x_5, x_2, x_3, x_6);
x_7 = l_Lean_Parser_parseCommand_parse(x_2, x_3, x_4, x_6);
return x_7;
}
}
@ -1040,7 +1039,7 @@ return x_1;
lean_object* l_Lean_Elab_Frontend_processCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25;
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
x_4 = l_Lean_Elab_Frontend_updateCmdPos___rarg(x_2, x_3);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
@ -1057,394 +1056,410 @@ lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_ctor_get(x_1, 2);
x_12 = lean_ctor_get(x_7, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_7, 2);
lean_inc(x_13);
x_14 = l_Lean_FileMap_toPosition(x_12, x_13);
lean_dec(x_12);
lean_inc(x_1);
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_processCommand___lambda__1___boxed), 4, 3);
lean_closure_set(x_15, 0, x_7);
lean_closure_set(x_15, 1, x_1);
lean_closure_set(x_15, 2, x_10);
x_16 = l_Lean_Elab_Frontend_processCommand___closed__1;
x_17 = lean_profileit(x_16, x_14, x_15);
x_18 = lean_ctor_get(x_17, 1);
x_14 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_13);
lean_dec(x_13);
x_15 = lean_ctor_get(x_14, 3);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 4);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_17, 0, x_12);
lean_ctor_set(x_17, 1, x_15);
lean_ctor_set(x_17, 2, x_16);
x_18 = lean_ctor_get(x_1, 2);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 0);
x_19 = lean_ctor_get(x_10, 0);
lean_inc(x_19);
lean_dec(x_17);
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
x_21 = lean_ctor_get(x_18, 1);
lean_inc(x_21);
x_20 = l_Lean_FileMap_toPosition(x_18, x_19);
lean_dec(x_18);
x_22 = lean_st_ref_take(x_2, x_11);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_1);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_processCommand___lambda__1___boxed), 5, 4);
lean_closure_set(x_21, 0, x_7);
lean_closure_set(x_21, 1, x_1);
lean_closure_set(x_21, 2, x_17);
lean_closure_set(x_21, 3, x_10);
x_22 = l_Lean_Elab_Frontend_processCommand___closed__1;
x_23 = lean_profileit(x_22, x_20, x_21);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = !lean_is_exclusive(x_23);
if (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_31; lean_object* x_32; uint8_t x_33;
x_26 = lean_ctor_get(x_23, 3);
lean_inc(x_19);
x_27 = lean_array_push(x_26, x_19);
lean_ctor_set(x_23, 3, x_27);
x_28 = lean_st_ref_set(x_2, x_23, x_24);
x_29 = lean_ctor_get(x_28, 1);
x_25 = lean_ctor_get(x_23, 0);
lean_inc(x_25);
lean_dec(x_23);
x_26 = lean_ctor_get(x_24, 0);
lean_inc(x_26);
x_27 = lean_ctor_get(x_24, 1);
lean_inc(x_27);
lean_dec(x_24);
x_28 = lean_st_ref_take(x_2, x_11);
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);
x_30 = l_Lean_Elab_Frontend_setParserState(x_20, x_1, x_2, x_29);
x_31 = lean_ctor_get(x_30, 1);
lean_inc(x_31);
lean_dec(x_30);
x_32 = l_Lean_Elab_Frontend_setMessages(x_21, x_1, x_2, x_31);
x_33 = !lean_is_exclusive(x_32);
if (x_33 == 0)
x_31 = !lean_is_exclusive(x_29);
if (x_31 == 0)
{
lean_object* x_34; lean_object* x_35; uint8_t x_36;
x_34 = lean_ctor_get(x_32, 1);
x_35 = lean_ctor_get(x_32, 0);
lean_dec(x_35);
lean_inc(x_19);
x_36 = l_Lean_Parser_isEOI(x_19);
if (x_36 == 0)
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
x_32 = lean_ctor_get(x_29, 3);
lean_inc(x_25);
x_33 = lean_array_push(x_32, x_25);
lean_ctor_set(x_29, 3, x_33);
x_34 = lean_st_ref_set(x_2, x_29, x_30);
x_35 = lean_ctor_get(x_34, 1);
lean_inc(x_35);
lean_dec(x_34);
x_36 = l_Lean_Elab_Frontend_setParserState(x_26, x_1, x_2, x_35);
x_37 = lean_ctor_get(x_36, 1);
lean_inc(x_37);
lean_dec(x_36);
x_38 = l_Lean_Elab_Frontend_setMessages(x_27, x_1, x_2, x_37);
x_39 = !lean_is_exclusive(x_38);
if (x_39 == 0)
{
uint8_t x_37;
lean_inc(x_19);
x_37 = l_Lean_Parser_isExitCommand(x_19);
if (x_37 == 0)
lean_object* x_40; lean_object* x_41; uint8_t x_42;
x_40 = lean_ctor_get(x_38, 1);
x_41 = lean_ctor_get(x_38, 0);
lean_dec(x_41);
lean_inc(x_25);
x_42 = l_Lean_Parser_isEOI(x_25);
if (x_42 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40;
lean_free_object(x_32);
x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_38, 0, x_19);
x_39 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_40 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_39, x_14, x_38, x_1, x_2, x_34);
lean_dec(x_14);
if (lean_obj_tag(x_40) == 0)
uint8_t x_43;
lean_inc(x_25);
x_43 = l_Lean_Parser_isExitCommand(x_25);
if (x_43 == 0)
{
uint8_t x_41;
x_41 = !lean_is_exclusive(x_40);
if (x_41 == 0)
lean_object* x_44; lean_object* x_45; lean_object* x_46;
lean_free_object(x_38);
x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_44, 0, x_25);
x_45 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_46 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_45, x_20, x_44, x_1, x_2, x_40);
lean_dec(x_20);
if (lean_obj_tag(x_46) == 0)
{
lean_object* x_42; uint8_t x_43; lean_object* x_44;
x_42 = lean_ctor_get(x_40, 0);
lean_dec(x_42);
x_43 = 0;
x_44 = lean_box(x_43);
lean_ctor_set(x_40, 0, x_44);
return x_40;
uint8_t x_47;
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
lean_object* x_48; uint8_t x_49; lean_object* x_50;
x_48 = lean_ctor_get(x_46, 0);
lean_dec(x_48);
x_49 = 0;
x_50 = lean_box(x_49);
lean_ctor_set(x_46, 0, x_50);
return x_46;
}
else
{
lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48;
x_45 = lean_ctor_get(x_40, 1);
lean_inc(x_45);
lean_dec(x_40);
x_46 = 0;
x_47 = lean_box(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_45);
return x_48;
}
}
else
{
uint8_t x_49;
x_49 = !lean_is_exclusive(x_40);
if (x_49 == 0)
{
return x_40;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52;
x_50 = lean_ctor_get(x_40, 0);
x_51 = lean_ctor_get(x_40, 1);
lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54;
x_51 = lean_ctor_get(x_46, 1);
lean_inc(x_51);
lean_inc(x_50);
lean_dec(x_40);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
return x_52;
}
}
}
else
{
uint8_t x_53; lean_object* x_54;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_53 = 1;
x_54 = lean_box(x_53);
lean_ctor_set(x_32, 0, x_54);
return x_32;
lean_dec(x_46);
x_52 = 0;
x_53 = lean_box(x_52);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_51);
return x_54;
}
}
else
{
uint8_t x_55; lean_object* x_56;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_55 = 1;
x_56 = lean_box(x_55);
lean_ctor_set(x_32, 0, x_56);
return x_32;
}
uint8_t x_55;
x_55 = !lean_is_exclusive(x_46);
if (x_55 == 0)
{
return x_46;
}
else
{
lean_object* x_57; uint8_t x_58;
x_57 = lean_ctor_get(x_32, 1);
lean_object* x_56; lean_object* x_57; lean_object* x_58;
x_56 = lean_ctor_get(x_46, 0);
x_57 = lean_ctor_get(x_46, 1);
lean_inc(x_57);
lean_dec(x_32);
lean_inc(x_19);
x_58 = l_Lean_Parser_isEOI(x_19);
if (x_58 == 0)
{
uint8_t x_59;
lean_inc(x_19);
x_59 = l_Lean_Parser_isExitCommand(x_19);
if (x_59 == 0)
{
lean_object* x_60; lean_object* x_61; lean_object* x_62;
x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_60, 0, x_19);
x_61 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_62 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_61, x_14, x_60, x_1, x_2, x_57);
lean_dec(x_14);
if (lean_obj_tag(x_62) == 0)
{
lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67;
x_63 = lean_ctor_get(x_62, 1);
lean_inc(x_63);
if (lean_is_exclusive(x_62)) {
lean_ctor_release(x_62, 0);
lean_ctor_release(x_62, 1);
x_64 = x_62;
} else {
lean_dec_ref(x_62);
x_64 = lean_box(0);
lean_inc(x_56);
lean_dec(x_46);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_56);
lean_ctor_set(x_58, 1, x_57);
return x_58;
}
x_65 = 0;
x_66 = lean_box(x_65);
if (lean_is_scalar(x_64)) {
x_67 = lean_alloc_ctor(0, 2, 0);
} else {
x_67 = x_64;
}
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_63);
return x_67;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71;
x_68 = lean_ctor_get(x_62, 0);
lean_inc(x_68);
x_69 = lean_ctor_get(x_62, 1);
uint8_t x_59; lean_object* x_60;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_59 = 1;
x_60 = lean_box(x_59);
lean_ctor_set(x_38, 0, x_60);
return x_38;
}
}
else
{
uint8_t x_61; lean_object* x_62;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_61 = 1;
x_62 = lean_box(x_61);
lean_ctor_set(x_38, 0, x_62);
return x_38;
}
}
else
{
lean_object* x_63; uint8_t x_64;
x_63 = lean_ctor_get(x_38, 1);
lean_inc(x_63);
lean_dec(x_38);
lean_inc(x_25);
x_64 = l_Lean_Parser_isEOI(x_25);
if (x_64 == 0)
{
uint8_t x_65;
lean_inc(x_25);
x_65 = l_Lean_Parser_isExitCommand(x_25);
if (x_65 == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68;
x_66 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_66, 0, x_25);
x_67 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_68 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_67, x_20, x_66, x_1, x_2, x_63);
lean_dec(x_20);
if (lean_obj_tag(x_68) == 0)
{
lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73;
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
if (lean_is_exclusive(x_62)) {
lean_ctor_release(x_62, 0);
lean_ctor_release(x_62, 1);
x_70 = x_62;
if (lean_is_exclusive(x_68)) {
lean_ctor_release(x_68, 0);
lean_ctor_release(x_68, 1);
x_70 = x_68;
} else {
lean_dec_ref(x_62);
lean_dec_ref(x_68);
x_70 = lean_box(0);
}
x_71 = 0;
x_72 = lean_box(x_71);
if (lean_is_scalar(x_70)) {
x_71 = lean_alloc_ctor(1, 2, 0);
x_73 = lean_alloc_ctor(0, 2, 0);
} else {
x_71 = x_70;
}
lean_ctor_set(x_71, 0, x_68);
lean_ctor_set(x_71, 1, x_69);
return x_71;
x_73 = x_70;
}
lean_ctor_set(x_73, 0, x_72);
lean_ctor_set(x_73, 1, x_69);
return x_73;
}
else
{
uint8_t x_72; lean_object* x_73; lean_object* x_74;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_72 = 1;
x_73 = lean_box(x_72);
x_74 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_57);
return x_74;
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77;
x_74 = lean_ctor_get(x_68, 0);
lean_inc(x_74);
x_75 = lean_ctor_get(x_68, 1);
lean_inc(x_75);
if (lean_is_exclusive(x_68)) {
lean_ctor_release(x_68, 0);
lean_ctor_release(x_68, 1);
x_76 = x_68;
} else {
lean_dec_ref(x_68);
x_76 = lean_box(0);
}
if (lean_is_scalar(x_76)) {
x_77 = lean_alloc_ctor(1, 2, 0);
} else {
x_77 = x_76;
}
else
{
uint8_t x_75; lean_object* x_76; lean_object* x_77;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_75 = 1;
x_76 = lean_box(x_75);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_57);
lean_ctor_set(x_77, 0, x_74);
lean_ctor_set(x_77, 1, x_75);
return x_77;
}
}
else
{
uint8_t x_78; lean_object* x_79; lean_object* x_80;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_78 = 1;
x_79 = lean_box(x_78);
x_80 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_80, 0, x_79);
lean_ctor_set(x_80, 1, x_63);
return x_80;
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91;
x_78 = lean_ctor_get(x_23, 0);
x_79 = lean_ctor_get(x_23, 1);
x_80 = lean_ctor_get(x_23, 2);
x_81 = lean_ctor_get(x_23, 3);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_inc(x_78);
lean_dec(x_23);
lean_inc(x_19);
x_82 = lean_array_push(x_81, x_19);
x_83 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_83, 0, x_78);
lean_ctor_set(x_83, 1, x_79);
lean_ctor_set(x_83, 2, x_80);
lean_ctor_set(x_83, 3, x_82);
x_84 = lean_st_ref_set(x_2, x_83, x_24);
x_85 = lean_ctor_get(x_84, 1);
lean_inc(x_85);
lean_dec(x_84);
x_86 = l_Lean_Elab_Frontend_setParserState(x_20, x_1, x_2, x_85);
x_87 = lean_ctor_get(x_86, 1);
uint8_t x_81; lean_object* x_82; lean_object* x_83;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_81 = 1;
x_82 = lean_box(x_81);
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_63);
return x_83;
}
}
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97;
x_84 = lean_ctor_get(x_29, 0);
x_85 = lean_ctor_get(x_29, 1);
x_86 = lean_ctor_get(x_29, 2);
x_87 = lean_ctor_get(x_29, 3);
lean_inc(x_87);
lean_dec(x_86);
x_88 = l_Lean_Elab_Frontend_setMessages(x_21, x_1, x_2, x_87);
x_89 = lean_ctor_get(x_88, 1);
lean_inc(x_89);
if (lean_is_exclusive(x_88)) {
lean_ctor_release(x_88, 0);
lean_ctor_release(x_88, 1);
x_90 = x_88;
} else {
lean_dec_ref(x_88);
x_90 = lean_box(0);
}
lean_inc(x_19);
x_91 = l_Lean_Parser_isEOI(x_19);
if (x_91 == 0)
{
uint8_t x_92;
lean_inc(x_19);
x_92 = l_Lean_Parser_isExitCommand(x_19);
if (x_92 == 0)
{
lean_object* x_93; lean_object* x_94; lean_object* x_95;
lean_inc(x_86);
lean_inc(x_85);
lean_inc(x_84);
lean_dec(x_29);
lean_inc(x_25);
x_88 = lean_array_push(x_87, x_25);
x_89 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_89, 0, x_84);
lean_ctor_set(x_89, 1, x_85);
lean_ctor_set(x_89, 2, x_86);
lean_ctor_set(x_89, 3, x_88);
x_90 = lean_st_ref_set(x_2, x_89, x_30);
x_91 = lean_ctor_get(x_90, 1);
lean_inc(x_91);
lean_dec(x_90);
x_93 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_93, 0, x_19);
x_94 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_95 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_94, x_14, x_93, x_1, x_2, x_89);
lean_dec(x_14);
if (lean_obj_tag(x_95) == 0)
{
lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100;
x_96 = lean_ctor_get(x_95, 1);
lean_inc(x_96);
if (lean_is_exclusive(x_95)) {
lean_ctor_release(x_95, 0);
lean_ctor_release(x_95, 1);
x_97 = x_95;
x_92 = l_Lean_Elab_Frontend_setParserState(x_26, x_1, x_2, x_91);
x_93 = lean_ctor_get(x_92, 1);
lean_inc(x_93);
lean_dec(x_92);
x_94 = l_Lean_Elab_Frontend_setMessages(x_27, x_1, x_2, x_93);
x_95 = lean_ctor_get(x_94, 1);
lean_inc(x_95);
if (lean_is_exclusive(x_94)) {
lean_ctor_release(x_94, 0);
lean_ctor_release(x_94, 1);
x_96 = x_94;
} else {
lean_dec_ref(x_95);
x_97 = lean_box(0);
lean_dec_ref(x_94);
x_96 = lean_box(0);
}
x_98 = 0;
x_99 = lean_box(x_98);
if (lean_is_scalar(x_97)) {
x_100 = lean_alloc_ctor(0, 2, 0);
} else {
x_100 = x_97;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_96);
return x_100;
}
else
lean_inc(x_25);
x_97 = l_Lean_Parser_isEOI(x_25);
if (x_97 == 0)
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
x_101 = lean_ctor_get(x_95, 0);
lean_inc(x_101);
x_102 = lean_ctor_get(x_95, 1);
uint8_t x_98;
lean_inc(x_25);
x_98 = l_Lean_Parser_isExitCommand(x_25);
if (x_98 == 0)
{
lean_object* x_99; lean_object* x_100; lean_object* x_101;
lean_dec(x_96);
x_99 = lean_alloc_closure((void*)(l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed), 4, 1);
lean_closure_set(x_99, 0, x_25);
x_100 = l_Lean_Elab_Frontend_processCommand___closed__2;
x_101 = l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___spec__1___rarg(x_100, x_20, x_99, x_1, x_2, x_95);
lean_dec(x_20);
if (lean_obj_tag(x_101) == 0)
{
lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106;
x_102 = lean_ctor_get(x_101, 1);
lean_inc(x_102);
if (lean_is_exclusive(x_95)) {
lean_ctor_release(x_95, 0);
lean_ctor_release(x_95, 1);
x_103 = x_95;
if (lean_is_exclusive(x_101)) {
lean_ctor_release(x_101, 0);
lean_ctor_release(x_101, 1);
x_103 = x_101;
} else {
lean_dec_ref(x_95);
lean_dec_ref(x_101);
x_103 = lean_box(0);
}
x_104 = 0;
x_105 = lean_box(x_104);
if (lean_is_scalar(x_103)) {
x_104 = lean_alloc_ctor(1, 2, 0);
x_106 = lean_alloc_ctor(0, 2, 0);
} else {
x_104 = x_103;
}
lean_ctor_set(x_104, 0, x_101);
lean_ctor_set(x_104, 1, x_102);
return x_104;
x_106 = x_103;
}
lean_ctor_set(x_106, 0, x_105);
lean_ctor_set(x_106, 1, x_102);
return x_106;
}
else
{
uint8_t x_105; lean_object* x_106; lean_object* x_107;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_105 = 1;
x_106 = lean_box(x_105);
if (lean_is_scalar(x_90)) {
x_107 = lean_alloc_ctor(0, 2, 0);
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110;
x_107 = lean_ctor_get(x_101, 0);
lean_inc(x_107);
x_108 = lean_ctor_get(x_101, 1);
lean_inc(x_108);
if (lean_is_exclusive(x_101)) {
lean_ctor_release(x_101, 0);
lean_ctor_release(x_101, 1);
x_109 = x_101;
} else {
x_107 = x_90;
lean_dec_ref(x_101);
x_109 = lean_box(0);
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_89);
return x_107;
}
}
else
{
uint8_t x_108; lean_object* x_109; lean_object* x_110;
lean_dec(x_19);
lean_dec(x_14);
lean_dec(x_2);
lean_dec(x_1);
x_108 = 1;
x_109 = lean_box(x_108);
if (lean_is_scalar(x_90)) {
x_110 = lean_alloc_ctor(0, 2, 0);
if (lean_is_scalar(x_109)) {
x_110 = lean_alloc_ctor(1, 2, 0);
} else {
x_110 = x_90;
x_110 = x_109;
}
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_89);
lean_ctor_set(x_110, 0, x_107);
lean_ctor_set(x_110, 1, x_108);
return x_110;
}
}
else
{
uint8_t x_111; lean_object* x_112; lean_object* x_113;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_111 = 1;
x_112 = lean_box(x_111);
if (lean_is_scalar(x_96)) {
x_113 = lean_alloc_ctor(0, 2, 0);
} else {
x_113 = x_96;
}
lean_ctor_set(x_113, 0, x_112);
lean_ctor_set(x_113, 1, x_95);
return x_113;
}
}
else
{
uint8_t x_114; lean_object* x_115; lean_object* x_116;
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_114 = 1;
x_115 = lean_box(x_114);
if (lean_is_scalar(x_96)) {
x_116 = lean_alloc_ctor(0, 2, 0);
} else {
x_116 = x_96;
}
lean_ctor_set(x_116, 0, x_115);
lean_ctor_set(x_116, 1, x_95);
return x_116;
}
}
}
}
lean_object* l_Lean_profileitM___at_Lean_Elab_Frontend_processCommand___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) {
@ -1457,13 +1472,13 @@ lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_5;
x_5 = l_Lean_Elab_Frontend_processCommand___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
lean_object* x_6;
x_6 = l_Lean_Elab_Frontend_processCommand___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
lean_object* l_Lean_Elab_Frontend_processCommands(lean_object* x_1, lean_object* x_2, lean_object* x_3) {

View file

@ -43,7 +43,6 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
lean_object* lean_erase_macro_scopes(lean_object*);
extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__2;
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1;
lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
@ -95,6 +94,7 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_object* lean_array_uget(lean_object*, size_t);
lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__3;
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1;
lean_object* lean_io_error_to_string(lean_object*);
lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1;
lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__12;
@ -256,7 +256,6 @@ lean_object* l_Lean_Elab_Command_expandMixfix___closed__21;
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27;
lean_object* l_Lean_Elab_Command_expandElab___closed__28;
lean_object* l_Lean_Elab_Command_expandElab___closed__14;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__6;
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__37;
@ -272,6 +271,7 @@ lean_object* l_Lean_Elab_Command_expandMixfix___closed__1;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_54____closed__5;
lean_object* l_Lean_Elab_Command_expandElab___closed__3;
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
lean_object* l_Lean_Elab_Term_expandOptPrecedence___boxed(lean_object*);
lean_object* l_Lean_Elab_Command_expandElab___closed__15;
lean_object* l___regBuiltin_Lean_Elab_Command_elabElab___closed__2;
@ -507,6 +507,7 @@ lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__8;
lean_object* l_Lean_Elab_Command_expandMixfix___closed__11;
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__25;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2;
lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__17;
lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__50;
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
@ -532,7 +533,6 @@ uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___lambda__1(
lean_object* l_Lean_Elab_Command_expandElab___closed__25;
lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabBinders___rarg___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_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2;
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1;
lean_object* l_Lean_Elab_Command_elabMacro(lean_object*, lean_object*, lean_object*, lean_object*);
@ -9619,7 +9619,7 @@ static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_decl
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
@ -9628,7 +9628,7 @@ static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_decl
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3;
x_4 = lean_alloc_ctor(0, 3, 0);
@ -10031,7 +10031,7 @@ lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2;
x_18 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2;
lean_inc(x_13);
lean_inc(x_16);
x_19 = l_Lean_addMacroScope(x_16, x_18, x_13);
@ -25958,7 +25958,7 @@ x_60 = lean_name_eq(x_22, x_59);
if (x_60 == 0)
{
lean_object* x_61; uint8_t x_62;
x_61 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_61 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_62 = lean_name_eq(x_22, x_61);
if (x_62 == 0)
{
@ -27109,7 +27109,7 @@ x_729 = lean_name_eq(x_22, x_728);
if (x_729 == 0)
{
lean_object* x_730; uint8_t x_731;
x_730 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_730 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_731 = lean_name_eq(x_22, x_730);
if (x_731 == 0)
{

File diff suppressed because it is too large Load diff

View file

@ -79,7 +79,6 @@ lean_object* l_Lean_Parser_Command_declModifiers___elambda__1___closed__3;
lean_object* l___regBuiltin_Lean_Parser_Command_set__option_parenthesizer___closed__1;
lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_extends___elambda__1___closed__3;
lean_object* l_Lean_Parser_Term_quot___closed__11;
lean_object* l_Lean_Parser_Command_ctor;
lean_object* l_Lean_Parser_Command_structure___closed__3;
lean_object* l_Lean_Parser_Command_declSig_parenthesizer___closed__2;
@ -253,7 +252,6 @@ lean_object* l_Lean_Parser_Command_example_formatter___closed__3;
lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_structInstBinder___closed__5;
lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__14;
lean_object* l_Lean_Parser_Term_quot_formatter___closed__9;
lean_object* l_Lean_Parser_Command_section_parenthesizer___closed__3;
lean_object* l_Lean_Parser_Command_eval_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_structCtor_formatter___closed__2;
@ -724,6 +722,7 @@ lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__3;
lean_object* l_Lean_Parser_checkPrecFn(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__9;
extern lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__39;
lean_object* l_Lean_Parser_Command_docComment_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_variables___closed__6;
lean_object* l_Lean_PrettyPrinter_Parenthesizer_atomic_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -765,13 +764,11 @@ lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__9
lean_object* l_Lean_Parser_Command_set__option_formatter___closed__9;
lean_object* l_Lean_Parser_Command_inductive_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_check___elambda__1___closed__2;
lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__13;
lean_object* l___regBuiltinParser_Lean_Parser_Term_quot(lean_object*);
lean_object* l_Lean_PrettyPrinter_Formatter_optional_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___regBuiltin_Lean_Parser_Command_open_formatter___closed__1;
lean_object* l_Lean_Parser_Command_initialize___closed__8;
lean_object* l_Lean_Parser_Command_constant_parenthesizer___closed__5;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
lean_object* l_Lean_Parser_Command_print___closed__7;
lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_variables___elambda__1___closed__8;
@ -831,6 +828,7 @@ lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__1;
lean_object* l_Lean_Parser_Command_axiom_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__12;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
lean_object* l_Lean_Parser_Command_structure_formatter___closed__21;
lean_object* l_Lean_Parser_Command_structSimpleBinder_parenthesizer___closed__5;
lean_object* l_Lean_Parser_Command_inferMod_parenthesizer___closed__2;
@ -905,7 +903,6 @@ lean_object* l___regBuiltin_Lean_Parser_Command_open_parenthesizer(lean_object*)
lean_object* l_Lean_Parser_Command_classTk_formatter___closed__2;
lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__9;
lean_object* l_Lean_Parser_Command_builtin__initialize_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__39;
lean_object* l_Lean_Parser_Command_attribute___closed__5;
lean_object* l_Lean_Parser_Command_classInductive___closed__7;
lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__19;
@ -1128,6 +1125,7 @@ lean_object* l_Lean_Parser_Command_abbrev_parenthesizer(lean_object*, lean_objec
extern lean_object* l_Lean_Parser_Term_explicitUniv___closed__3;
lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_openRenamingItem___closed__2;
extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__39;
lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__13;
lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__5;
lean_object* l_Lean_Parser_Command_openRenaming___elambda__1___closed__8;
@ -1171,6 +1169,7 @@ lean_object* l_Lean_Parser_Command_inductive___closed__2;
lean_object* l_Lean_Parser_Command_eval_formatter___closed__3;
lean_object* l_Lean_Parser_Command_structure___closed__11;
lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__7;
extern lean_object* l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
lean_object* l_Lean_Parser_Command_axiom___closed__3;
lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__10;
lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__1;
@ -1463,6 +1462,7 @@ lean_object* l_Lean_Parser_Command_declModifiers___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_theorem_formatter___closed__1;
lean_object* l_Lean_Parser_Command_open_formatter___closed__3;
extern lean_object* l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
extern lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_ctor_formatter___closed__4;
lean_object* l___regBuiltin_Lean_Parser_Command_printAxioms_formatter___closed__1;
@ -1489,7 +1489,6 @@ lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__12;
lean_object* l_Lean_Parser_Command_abbrev___closed__8;
lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__1;
extern lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__39;
lean_object* l_Lean_Parser_Command_initialize_formatter___closed__3;
lean_object* l_Lean_Parser_Command_exit_formatter___closed__1;
extern lean_object* l_Lean_Parser_antiquotNestedExpr_formatter___closed__1;
@ -1645,6 +1644,7 @@ lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_declVal_parenthesizer___closed__3;
lean_object* l_Lean_Parser_Command_structSimpleBinder;
lean_object* l_Lean_Parser_Command_extends___closed__4;
extern lean_object* l_Lean_Parser_Term_dynamicQuot___closed__6;
lean_object* l_Lean_Parser_Term_quot_formatter___closed__3;
lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_check___elambda__1___closed__9;
@ -2495,7 +2495,6 @@ lean_object* l_Lean_Parser_Command_attribute___closed__4;
lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__7;
lean_object* l_Lean_Parser_Term_quot_parenthesizer___closed__8;
lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__7;
lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__15;
lean_object* l_Lean_Parser_withResultOfInfo(lean_object*);
lean_object* l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_declSig;
@ -2609,7 +2608,6 @@ lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__1;
lean_object* l_Lean_Parser_Command_docComment_formatter___closed__6;
lean_object* l_Lean_Parser_Command_structure_formatter___closed__18;
lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__14;
lean_object* l_Lean_Parser_Command_declaration___closed__14;
lean_object* l_Lean_Parser_Command_example___closed__1;
lean_object* l_Lean_Parser_Command_protected_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -2700,7 +2698,7 @@ static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_categoryParser___elambda__1), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -2767,35 +2765,8 @@ return x_3;
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__10() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("`(");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__10;
x_2 = l_String_trim(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__11;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__12;
x_1 = l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__9;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -2803,24 +2774,24 @@ lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__14() {
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1;
x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__13;
x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__10;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__15() {
static lean_object* _init_l_Lean_Parser_Term_quot___elambda__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8;
x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__14;
x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__11;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
@ -2834,7 +2805,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object*
x_3 = l_Lean_Parser_Term_quot___elambda__1___closed__3;
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = l_Lean_Parser_Term_quot___elambda__1___closed__15;
x_5 = l_Lean_Parser_Term_quot___elambda__1___closed__12;
x_6 = 1;
x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2);
return x_7;
@ -2844,7 +2815,7 @@ static lean_object* _init_l_Lean_Parser_Term_quot___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Parser_categoryParser(x_1, x_2);
return x_3;
@ -2886,19 +2857,20 @@ return x_3;
static lean_object* _init_l_Lean_Parser_Term_quot___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__11;
x_2 = l_Lean_Parser_symbolInfo(x_1);
return x_2;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_dynamicQuot___closed__6;
x_2 = l_Lean_Parser_Term_quot___closed__4;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___closed__5;
x_2 = l_Lean_Parser_Term_quot___closed__4;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1;
x_2 = l_Lean_Parser_Term_quot___closed__5;
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
return x_3;
}
}
@ -2906,35 +2878,25 @@ static lean_object* _init_l_Lean_Parser_Term_quot___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1;
x_1 = l_Lean_Parser_epsilonInfo;
x_2 = l_Lean_Parser_Term_quot___closed__6;
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_epsilonInfo;
x_2 = l_Lean_Parser_Term_quot___closed__7;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__3;
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = l_Lean_Parser_Term_quot___closed__8;
x_3 = l_Lean_Parser_Term_quot___closed__7;
x_4 = l_Lean_Parser_orelseInfo(x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___closed__10() {
static lean_object* _init_l_Lean_Parser_Term_quot___closed__9() {
_start:
{
lean_object* x_1;
@ -2942,12 +2904,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_quot___elambda__1), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot___closed__11() {
static lean_object* _init_l_Lean_Parser_Term_quot___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___closed__9;
x_2 = l_Lean_Parser_Term_quot___closed__10;
x_1 = l_Lean_Parser_Term_quot___closed__8;
x_2 = l_Lean_Parser_Term_quot___closed__9;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
@ -2958,7 +2920,7 @@ static lean_object* _init_l_Lean_Parser_Term_quot() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Parser_Term_quot___closed__11;
x_1 = l_Lean_Parser_Term_quot___closed__10;
return x_1;
}
}
@ -2993,59 +2955,61 @@ return x_5;
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__10;
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Lean_Parser_commandParser_formatter___rarg), 5, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__4() {
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1Unbox_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__5() {
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__4;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__3;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__6() {
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__5;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__4;
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_toggleInsideQuot_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__5;
x_2 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__6;
x_2 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__4;
x_1 = l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__6;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
@ -3055,22 +3019,10 @@ return x_3;
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__7;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Term_quot_formatter___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__1;
x_2 = lean_unsigned_to_nat(1024u);
x_3 = l_Lean_Parser_Term_quot_formatter___closed__8;
x_3 = l_Lean_Parser_Term_quot_formatter___closed__7;
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
lean_closure_set(x_4, 0, x_1);
lean_closure_set(x_4, 1, x_2);
@ -3083,7 +3035,7 @@ _start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8;
x_6 = l_Lean_Parser_Term_quot_formatter___closed__1;
x_7 = l_Lean_Parser_Term_quot_formatter___closed__9;
x_7 = l_Lean_Parser_Term_quot_formatter___closed__8;
x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
return x_8;
}
@ -11449,7 +11401,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_declaration(lean_object* x
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__4;
x_4 = 1;
x_5 = l_Lean_Parser_Command_declaration;
@ -14262,7 +14214,7 @@ static lean_object* _init_l_Lean_Parser_Command_structFields_formatter___closed_
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__39;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__39;
x_2 = l_Lean_Parser_Command_structFields_formatter___closed__8;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -17192,7 +17144,7 @@ static lean_object* _init_l_Lean_Parser_Command_structFields_parenthesizer___clo
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__39;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__39;
x_2 = l_Lean_Parser_Command_structFields_parenthesizer___closed__8;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -17945,7 +17897,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_section(lean_object* x_1)
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_section___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_section;
@ -18322,7 +18274,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_namespace(lean_object* x_1
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_namespace___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_namespace;
@ -18677,7 +18629,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_end(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_end;
@ -19016,7 +18968,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_variable(lean_object* x_1)
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_variable___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_variable;
@ -19377,7 +19329,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_variables(lean_object* x_1
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_variables___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_variables;
@ -19754,7 +19706,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_universe(lean_object* x_1)
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_universe___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_universe;
@ -20099,7 +20051,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_universes(lean_object* x_1
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_universes;
@ -20456,7 +20408,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_check(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_check___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_check;
@ -20801,7 +20753,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_check__failure(lean_object
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_check__failure___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_check__failure;
@ -21146,7 +21098,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_eval(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_eval___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_eval;
@ -21491,7 +21443,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_synth(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_synth___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_synth;
@ -21812,7 +21764,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_exit(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_exit___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_exit;
@ -22169,7 +22121,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_print(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_print___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_print;
@ -22573,7 +22525,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_printAxioms(lean_object* x
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_printAxioms___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_printAxioms;
@ -22954,7 +22906,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_resolve__name(lean_object*
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_resolve__name___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_resolve__name;
@ -23267,7 +23219,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_init__quot(lean_object* x_
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_init__quot___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_init__quot;
@ -23724,7 +23676,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_set__option(lean_object* x
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_set__option___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_set__option;
@ -24352,7 +24304,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_attribute(lean_object* x_1
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_attribute;
@ -24891,7 +24843,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_export(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_export___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_export;
@ -26439,7 +26391,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_open(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_open___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_open;
@ -27686,7 +27638,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_mutual(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_mutual___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_mutual;
@ -27735,7 +27687,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_mutual_formatter___closed__3;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__3;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
@ -28242,7 +28194,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_initialize(lean_object* x_
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_initialize___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_initialize;
@ -28709,7 +28661,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_builtin__initialize(lean_o
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_builtin__initialize;
@ -28916,7 +28868,7 @@ lean_inc(x_11);
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;
x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_13 = lean_unsigned_to_nat(0u);
x_14 = l_Lean_Parser_categoryParser___elambda__1(x_12, x_13, x_1, x_10);
x_15 = l_Lean_Parser_Command_in___elambda__1___closed__2;
@ -29007,7 +28959,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_in(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_in___elambda__1___closed__2;
x_4 = 0;
x_5 = l_Lean_Parser_Command_in;
@ -29021,7 +28973,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_doFor_formatter___closed__3;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__3;
x_2 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
@ -29141,12 +29093,6 @@ l_Lean_Parser_Term_quot___elambda__1___closed__11 = _init_l_Lean_Parser_Term_quo
lean_mark_persistent(l_Lean_Parser_Term_quot___elambda__1___closed__11);
l_Lean_Parser_Term_quot___elambda__1___closed__12 = _init_l_Lean_Parser_Term_quot___elambda__1___closed__12();
lean_mark_persistent(l_Lean_Parser_Term_quot___elambda__1___closed__12);
l_Lean_Parser_Term_quot___elambda__1___closed__13 = _init_l_Lean_Parser_Term_quot___elambda__1___closed__13();
lean_mark_persistent(l_Lean_Parser_Term_quot___elambda__1___closed__13);
l_Lean_Parser_Term_quot___elambda__1___closed__14 = _init_l_Lean_Parser_Term_quot___elambda__1___closed__14();
lean_mark_persistent(l_Lean_Parser_Term_quot___elambda__1___closed__14);
l_Lean_Parser_Term_quot___elambda__1___closed__15 = _init_l_Lean_Parser_Term_quot___elambda__1___closed__15();
lean_mark_persistent(l_Lean_Parser_Term_quot___elambda__1___closed__15);
l_Lean_Parser_Term_quot___closed__1 = _init_l_Lean_Parser_Term_quot___closed__1();
lean_mark_persistent(l_Lean_Parser_Term_quot___closed__1);
l_Lean_Parser_Term_quot___closed__2 = _init_l_Lean_Parser_Term_quot___closed__2();
@ -29167,8 +29113,6 @@ l_Lean_Parser_Term_quot___closed__9 = _init_l_Lean_Parser_Term_quot___closed__9(
lean_mark_persistent(l_Lean_Parser_Term_quot___closed__9);
l_Lean_Parser_Term_quot___closed__10 = _init_l_Lean_Parser_Term_quot___closed__10();
lean_mark_persistent(l_Lean_Parser_Term_quot___closed__10);
l_Lean_Parser_Term_quot___closed__11 = _init_l_Lean_Parser_Term_quot___closed__11();
lean_mark_persistent(l_Lean_Parser_Term_quot___closed__11);
l_Lean_Parser_Term_quot = _init_l_Lean_Parser_Term_quot();
lean_mark_persistent(l_Lean_Parser_Term_quot);
res = l___regBuiltinParser_Lean_Parser_Term_quot(lean_io_mk_world());
@ -29190,8 +29134,6 @@ l_Lean_Parser_Term_quot_formatter___closed__7 = _init_l_Lean_Parser_Term_quot_fo
lean_mark_persistent(l_Lean_Parser_Term_quot_formatter___closed__7);
l_Lean_Parser_Term_quot_formatter___closed__8 = _init_l_Lean_Parser_Term_quot_formatter___closed__8();
lean_mark_persistent(l_Lean_Parser_Term_quot_formatter___closed__8);
l_Lean_Parser_Term_quot_formatter___closed__9 = _init_l_Lean_Parser_Term_quot_formatter___closed__9();
lean_mark_persistent(l_Lean_Parser_Term_quot_formatter___closed__9);
l___regBuiltin_Lean_Parser_Term_quot_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_quot_formatter___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_quot_formatter___closed__1);
res = l___regBuiltin_Lean_Parser_Term_quot_formatter(lean_io_mk_world());

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,6 @@ lean_object* l_Lean_Parser_declareLeadingBuiltinParser___closed__2;
lean_object* l_Lean_Parser_builtinTokenTable;
extern lean_object* l_Lean_Name_toString___closed__1;
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_updateBuiltinTokens_match__1(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1;
lean_object* l_List_map___at_Lean_Parser_addLeadingParser___spec__1(lean_object*);
extern lean_object* l_Std_RBTree_toList___rarg___closed__1;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__39;
@ -34,7 +33,6 @@ lean_object* l_Lean_Parser_declareLeadingBuiltinParser___closed__1;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__11;
extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3;
lean_object* l_Std_PersistentHashMap_containsAtAux___at_Lean_Parser_isValidSyntaxNodeKind___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1;
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtension_addImported___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*);
@ -42,6 +40,7 @@ lean_object* l_Lean_Parser_leadingIdentAsSymbol___boxed(lean_object*, lean_objec
lean_object* l_Lean_Parser_notFollowedByTermToken___closed__1;
lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*);
lean_object* l_Lean_Parser_compileParserDescr_visit_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1;
lean_object* l_Lean_Parser_mkParserContext(lean_object*, lean_object*);
extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__10;
lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Parser_Extension_0__Lean_Parser_addParserCategoryCore___spec__4(lean_object*, lean_object*, lean_object*);
@ -64,9 +63,11 @@ uint8_t l_USize_decEq(size_t, size_t);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_registerParserAttributeImplBuilder_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_BuiltinParserAttribute_add___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1;
lean_object* lean_io_error_to_string(lean_object*);
extern lean_object* l___kind_term____x40_Init_Notation___hyg_11713____closed__5;
lean_object* l_Lean_getConstInfo___at_Lean_KeyedDeclsAttribute_init___spec__8(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1;
lean_object* l_Lean_Parser_getBinaryAlias___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____lambda__3(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____lambda__5(lean_object*, lean_object*);
@ -77,27 +78,26 @@ lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2458____clo
lean_object* l_Functor_discard___at_Lean_Parser_ensureBinaryParserAlias___spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_registerParserAttributeHook(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2458____closed__3;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1;
lean_object* l_Lean_Parser_lookahead(lean_object*);
uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*);
lean_object* l_List_foldlM___at_Lean_Parser_addParserTokens___spec__1(lean_object*, lean_object*);
extern lean_object* l_Lean_LocalContext_fvarIdToDecl___default___closed__1;
extern lean_object* l_Lean_Parser_charLit;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__44;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1;
lean_object* l_Lean_Parser_mkParserOfConstantAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_IO_mkRef___at_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2399____spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2709____lambda__1(lean_object*);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addTokenConfig_match__1(lean_object*);
lean_object* l_Lean_Parser_registerBuiltinParserAttribute___closed__1;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2;
lean_object* l_Lean_Parser_parserExtension___elambda__1___boxed(lean_object*);
lean_object* l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_getTokenTable___boxed(lean_object*);
lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn_match__1(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__1;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2;
extern lean_object* l_Lean_identKind___closed__2;
extern lean_object* l_Lean_registerInternalExceptionId___closed__2;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1;
lean_object* l_Lean_Parser_addParser(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_categoryParserFnRef;
lean_object* l_Lean_Parser_compileParserDescr_visit_match__1(lean_object*);
@ -208,7 +208,6 @@ lean_object* l_Lean_Parser_optional(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__34;
lean_object* l_Lean_Parser_parserExtension___closed__3;
lean_object* l_Lean_Parser_parserExtension___elambda__2___boxed(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2458____lambda__2___closed__3;
lean_object* l_Lean_Parser_declareTrailingBuiltinParser___closed__1;
lean_object* l_Lean_Parser_getUnaryAlias(lean_object*);
@ -229,6 +228,7 @@ lean_object* l_List_eraseDups___at_Lean_ResolveName_resolveGlobalName_loop___spe
lean_object* l_Lean_Parser_getParserPriority_match__1(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__38;
lean_object* l_Lean_Parser_setCategoryParserFnRef(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__21;
lean_object* l_Lean_Parser_throwUnknownParserCategory(lean_object*);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -293,10 +293,10 @@ lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2513_(lean_
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2399_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2458_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1756_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_106_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_49_(lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_4_(lean_object*);
@ -399,7 +399,6 @@ lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtensionAdd
lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Trie_insert_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_mkParserOfConstantAux(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2;
lean_object* l_Lean_Parser_getCategory___boxed(lean_object*, lean_object*);
lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*);
lean_object* l_IO_ofExcept___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtension_addImported___spec__1___boxed(lean_object*, lean_object*);
@ -425,11 +424,13 @@ lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_ad
lean_object* l_Lean_Parser_registerAliasCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_getTokenTable(lean_object*);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_mkCategoryAntiquotParserFn(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__15;
lean_object* l_Lean_Parser_getParserPriority___closed__2;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__18;
uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_Parser_isValidSyntaxNodeKind___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_1890____closed__22;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2;
lean_object* l_Lean_Parser_isValidSyntaxNodeKind___boxed(lean_object*, lean_object*);
extern lean_object* l_Lean_registerAttributeImplBuilder___closed__2;
lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn(lean_object*, lean_object*, lean_object*);
@ -442,6 +443,7 @@ lean_object* l_Lean_Parser_addTrailingParser(lean_object*, lean_object*, lean_ob
extern lean_object* l_Lean_registerTagAttribute___lambda__6___closed__2;
lean_object* l_Lean_ConstantInfo_type(lean_object*);
lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2709____spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2;
lean_object* l_Lean_Parser_trailingNodeFn(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_addBuiltinLeadingParser(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_updateBuiltinTokens_match__1___rarg(lean_object*, lean_object*, lean_object*);
@ -449,7 +451,6 @@ extern lean_object* l_Lean___kind_command____x40_Init_NotationExtra___hyg_918___
lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*);
size_t l_USize_land(size_t, size_t);
lean_object* l_Lean_Parser_parserExtension___elambda__4___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2;
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_addBuiltinParserCategory(lean_object*, uint8_t, lean_object*);
lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__6(lean_object*);
lean_object* l_Lean_Parser_getUnaryAlias___rarg___boxed(lean_object*, lean_object*, lean_object*);
@ -467,7 +468,6 @@ lean_object* l_Lean_Parser_categoryParserFnImpl_match__1___rarg(lean_object*, le
lean_object* l_Lean_Parser_sepBy1Fn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2458____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_getConstAlias___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2;
lean_object* l_Lean_Parser_declareLeadingBuiltinParser(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_checkColGeFn(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_ParserExtension_addImported___boxed(lean_object*, lean_object*, lean_object*);
@ -11735,116 +11735,119 @@ return x_3;
lean_object* l_Lean_Parser_categoryParserFnImpl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t 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_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
x_4 = l_Lean_Parser_categoryParserFnImpl___closed__2;
x_5 = lean_name_eq(x_1, x_4);
x_6 = lean_ctor_get(x_2, 2);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
x_7 = l_Lean_Parser_parserExtension;
x_8 = l_Lean_PersistentEnvExtension_getState___rarg(x_7, x_6);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
x_9 = lean_ctor_get(x_8, 2);
lean_inc(x_9);
lean_dec(x_8);
x_8 = l_Lean_Parser_parserExtension;
x_9 = l_Lean_PersistentEnvExtension_getState___rarg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 2);
lean_inc(x_10);
lean_dec(x_9);
if (x_5 == 0)
{
x_10 = x_1;
goto block_33;
x_11 = x_1;
goto block_34;
}
else
{
lean_object* x_34;
lean_object* x_35;
lean_dec(x_1);
x_34 = l___kind_stx____x40_Init_Notation___hyg_12802____closed__2;
x_10 = x_34;
goto block_33;
x_35 = l___kind_stx____x40_Init_Notation___hyg_12802____closed__2;
x_11 = x_35;
goto block_34;
}
block_33:
block_34:
{
lean_object* x_11;
x_11 = l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(x_9, x_10);
if (lean_obj_tag(x_11) == 0)
lean_object* x_12;
x_12 = l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(x_10, x_11);
if (lean_obj_tag(x_12) == 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_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_dec(x_2);
x_12 = l_Lean_Name_toString___closed__1;
x_13 = l_Lean_Name_toStringWithSep(x_12, x_10);
x_14 = l_Lean_Parser_throwUnknownParserCategory___rarg___closed__1;
x_15 = lean_string_append(x_14, x_13);
lean_dec(x_13);
x_16 = l_instReprChar___closed__1;
x_17 = lean_string_append(x_15, x_16);
x_18 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_17);
return x_18;
x_13 = l_Lean_Name_toString___closed__1;
x_14 = l_Lean_Name_toStringWithSep(x_13, x_11);
x_15 = l_Lean_Parser_throwUnknownParserCategory___rarg___closed__1;
x_16 = lean_string_append(x_15, x_14);
lean_dec(x_14);
x_17 = l_instReprChar___closed__1;
x_18 = lean_string_append(x_16, x_17);
x_19 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_18);
return x_19;
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25;
x_19 = lean_ctor_get(x_11, 0);
lean_inc(x_19);
lean_dec(x_11);
x_20 = lean_ctor_get(x_19, 0);
lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
x_20 = lean_ctor_get(x_12, 0);
lean_inc(x_20);
x_21 = lean_ctor_get_uint8(x_19, sizeof(void*)*1);
lean_dec(x_19);
lean_inc(x_10);
x_22 = lean_alloc_closure((void*)(l___private_Lean_Parser_Extension_0__Lean_Parser_mkCategoryAntiquotParserFn), 3, 1);
lean_closure_set(x_22, 0, x_10);
x_23 = lean_box(x_21);
lean_inc(x_20);
lean_inc(x_10);
x_24 = lean_alloc_closure((void*)(l_Lean_Parser_leadingParserAux___boxed), 5, 3);
lean_closure_set(x_24, 0, x_10);
lean_closure_set(x_24, 1, x_20);
lean_closure_set(x_24, 2, x_23);
lean_dec(x_12);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get_uint8(x_20, sizeof(void*)*1);
lean_dec(x_20);
lean_inc(x_11);
x_23 = lean_alloc_closure((void*)(l___private_Lean_Parser_Extension_0__Lean_Parser_mkCategoryAntiquotParserFn), 3, 1);
lean_closure_set(x_23, 0, x_11);
x_24 = lean_box(x_22);
lean_inc(x_21);
lean_inc(x_11);
x_25 = lean_alloc_closure((void*)(l_Lean_Parser_leadingParserAux___boxed), 5, 3);
lean_closure_set(x_25, 0, x_11);
lean_closure_set(x_25, 1, x_21);
lean_closure_set(x_25, 2, x_24);
lean_inc(x_3);
lean_inc(x_2);
x_25 = l_Lean_Parser_tryAnti(x_2, x_3);
if (x_25 == 0)
x_26 = l_Lean_Parser_tryAnti(x_2, x_3);
if (x_26 == 0)
{
lean_object* x_26; lean_object* x_27;
lean_dec(x_24);
lean_dec(x_22);
lean_object* x_27; lean_object* x_28;
lean_dec(x_25);
lean_dec(x_23);
lean_inc(x_2);
lean_inc(x_20);
x_26 = l_Lean_Parser_leadingParserAux(x_10, x_20, x_21, x_2, x_3);
x_27 = lean_ctor_get(x_26, 3);
lean_inc(x_27);
if (lean_obj_tag(x_27) == 0)
lean_inc(x_21);
x_27 = l_Lean_Parser_leadingParserAux(x_11, x_21, x_22, x_2, x_3);
x_28 = lean_ctor_get(x_27, 3);
lean_inc(x_28);
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_28;
x_28 = l_Lean_Parser_trailingLoop(x_20, x_2, x_26);
return x_28;
lean_object* x_29;
x_29 = l_Lean_Parser_trailingLoop(x_21, x_2, x_27);
return x_29;
}
else
{
lean_dec(x_27);
lean_dec(x_20);
lean_dec(x_28);
lean_dec(x_21);
lean_dec(x_2);
return x_26;
return x_27;
}
}
else
{
uint8_t x_29; lean_object* x_30; lean_object* x_31;
lean_dec(x_10);
x_29 = 1;
uint8_t x_30; lean_object* x_31; lean_object* x_32;
lean_dec(x_11);
x_30 = 1;
lean_inc(x_2);
x_30 = l_Lean_Parser_orelseFnCore(x_22, x_24, x_29, x_2, x_3);
x_31 = lean_ctor_get(x_30, 3);
lean_inc(x_31);
if (lean_obj_tag(x_31) == 0)
x_31 = l_Lean_Parser_orelseFnCore(x_23, x_25, x_30, x_2, x_3);
x_32 = lean_ctor_get(x_31, 3);
lean_inc(x_32);
if (lean_obj_tag(x_32) == 0)
{
lean_object* x_32;
x_32 = l_Lean_Parser_trailingLoop(x_20, x_2, x_30);
return x_32;
lean_object* x_33;
x_33 = l_Lean_Parser_trailingLoop(x_21, x_2, x_31);
return x_33;
}
else
{
lean_dec(x_31);
lean_dec(x_20);
lean_dec(x_32);
lean_dec(x_21);
lean_dec(x_2);
return x_30;
return x_31;
}
}
}
@ -12377,21 +12380,24 @@ return x_4;
lean_object* l_Lean_Parser_mkParserContext(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7;
x_3 = l_Lean_Parser_getTokenTable(x_1);
x_4 = lean_box(0);
x_5 = lean_unsigned_to_nat(0u);
x_6 = 0;
x_7 = lean_alloc_ctor(0, 6, 2);
lean_ctor_set(x_7, 0, x_2);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 2, x_1);
lean_ctor_set(x_7, 3, x_3);
lean_ctor_set(x_7, 4, x_4);
lean_ctor_set(x_7, 5, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*6, x_6);
lean_ctor_set_uint8(x_7, sizeof(void*)*6 + 1, x_6);
return x_7;
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8;
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
x_4 = l_Lean_Parser_getTokenTable(x_3);
lean_dec(x_3);
x_5 = lean_box(0);
x_6 = lean_unsigned_to_nat(0u);
x_7 = 0;
x_8 = lean_alloc_ctor(0, 6, 2);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_2);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 3, x_4);
lean_ctor_set(x_8, 4, x_5);
lean_ctor_set(x_8, 5, x_5);
lean_ctor_set_uint8(x_8, sizeof(void*)*6, x_7);
lean_ctor_set_uint8(x_8, sizeof(void*)*6 + 1, x_7);
return x_8;
}
}
lean_object* l_Lean_Parser_mkParserState(lean_object* x_1) {
@ -12422,57 +12428,63 @@ return x_2;
lean_object* l_Lean_Parser_runParserCategory(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
lean_object* x_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_inc(x_3);
x_5 = l_Lean_Parser_mkInputContext(x_3, x_4);
x_6 = l_Lean_Parser_mkParserContext(x_1, x_5);
x_7 = l_Lean_Parser_mkParserState(x_3);
x_8 = l_Lean_Parser_whitespace(x_6, x_7);
lean_inc(x_6);
x_9 = l_Lean_Parser_categoryParserFnImpl(x_2, x_6, x_8);
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
x_6 = lean_box(0);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
lean_ctor_set(x_8, 2, x_6);
x_9 = l_Lean_Parser_mkParserContext(x_5, x_8);
x_10 = l_Lean_Parser_mkParserState(x_3);
x_11 = l_Lean_Parser_whitespace(x_9, x_10);
lean_inc(x_9);
x_12 = l_Lean_Parser_categoryParserFnImpl(x_2, x_9, x_11);
x_13 = lean_ctor_get(x_12, 3);
lean_inc(x_13);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_11; uint8_t x_12;
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
x_12 = lean_string_utf8_at_end(x_3, x_11);
lean_dec(x_11);
lean_object* x_14; uint8_t x_15;
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
x_15 = lean_string_utf8_at_end(x_3, x_14);
lean_dec(x_14);
lean_dec(x_3);
if (x_12 == 0)
if (x_15 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
x_13 = l_Lean_Parser_ParserState_mkEOIError___closed__1;
x_14 = l_Lean_Parser_ParserState_mkError(x_9, x_13);
x_15 = l_Lean_Parser_ParserState_toErrorMsg(x_6, x_14);
x_16 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19;
lean_dec(x_6);
x_17 = lean_ctor_get(x_9, 0);
lean_inc(x_17);
lean_dec(x_9);
x_18 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_17);
lean_dec(x_17);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
x_16 = l_Lean_Parser_ParserState_mkEOIError___closed__1;
x_17 = l_Lean_Parser_ParserState_mkError(x_12, x_16);
x_18 = l_Lean_Parser_ParserState_toErrorMsg(x_9, x_17);
x_19 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_19, 0, x_18);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22;
lean_dec(x_9);
x_20 = lean_ctor_get(x_12, 0);
lean_inc(x_20);
lean_dec(x_12);
x_21 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_20);
lean_dec(x_20);
x_22 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
}
else
{
lean_object* x_20; lean_object* x_21;
lean_dec(x_10);
lean_object* x_23; lean_object* x_24;
lean_dec(x_13);
lean_dec(x_3);
x_20 = l_Lean_Parser_ParserState_toErrorMsg(x_6, x_9);
x_21 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
x_23 = l_Lean_Parser_ParserState_toErrorMsg(x_9, x_12);
x_24 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
}
}
@ -15861,7 +15873,7 @@ x_7 = l_Lean_Parser_registerParserCategory(x_1, x_2, x_3, x_6, x_5);
return x_7;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1() {
_start:
{
lean_object* x_1;
@ -15869,28 +15881,28 @@ x_1 = lean_mk_string("builtinTermParser");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875_(lean_object* x_1) {
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2;
x_3 = l___kind_term____x40_Init_Notation___hyg_19____closed__14;
x_4 = 0;
x_5 = l_Lean_Parser_registerBuiltinParserAttribute(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1() {
_start:
{
lean_object* x_1;
@ -15898,27 +15910,27 @@ x_1 = lean_mk_string("termParser");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885_(lean_object* x_1) {
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2;
x_3 = l___kind_term____x40_Init_Notation___hyg_19____closed__14;
x_4 = l_Lean_Parser_registerBuiltinDynamicParserAttribute(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1() {
_start:
{
lean_object* x_1;
@ -15926,17 +15938,17 @@ x_1 = lean_mk_string("builtinCommandParser");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
@ -15946,18 +15958,18 @@ x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895_(lean_object* x_1) {
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_4 = 0;
x_5 = l_Lean_Parser_registerBuiltinParserAttribute(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1() {
_start:
{
lean_object* x_1;
@ -15965,22 +15977,22 @@ x_1 = lean_mk_string("commandParser");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2() {
static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905_(lean_object* x_1) {
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_4 = l_Lean_Parser_registerBuiltinDynamicParserAttribute(x_2, x_3, x_1);
return x_4;
}
@ -15989,7 +16001,7 @@ lean_object* l_Lean_Parser_commandParser(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_categoryParser(x_2, x_1);
return x_3;
}
@ -16169,157 +16181,160 @@ goto _start;
lean_object* l_Lean_Parser_notFollowedByCategoryTokenFn(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;
x_4 = lean_ctor_get(x_2, 2);
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, 1);
lean_inc(x_4);
x_5 = l_Lean_Parser_parserExtension;
x_6 = l_Lean_PersistentEnvExtension_getState___rarg(x_5, x_4);
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(x_7, x_1);
if (lean_obj_tag(x_8) == 0)
x_6 = l_Lean_Parser_parserExtension;
x_7 = l_Lean_PersistentEnvExtension_getState___rarg(x_6, x_5);
lean_dec(x_5);
x_8 = lean_ctor_get(x_7, 2);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(x_8, x_1);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
lean_object* x_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_dec(x_2);
x_9 = l_Lean_Name_toString___closed__1;
x_10 = l_Lean_Name_toStringWithSep(x_9, x_1);
x_11 = l_Lean_Parser_throwUnknownParserCategory___rarg___closed__1;
x_12 = lean_string_append(x_11, x_10);
lean_dec(x_10);
x_13 = l_instReprChar___closed__1;
x_14 = lean_string_append(x_12, x_13);
x_15 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_14);
return x_15;
x_10 = l_Lean_Name_toString___closed__1;
x_11 = l_Lean_Name_toStringWithSep(x_10, x_1);
x_12 = l_Lean_Parser_throwUnknownParserCategory___rarg___closed__1;
x_13 = lean_string_append(x_12, x_11);
lean_dec(x_11);
x_14 = l_instReprChar___closed__1;
x_15 = lean_string_append(x_13, x_14);
x_16 = l_Lean_Parser_ParserState_mkUnexpectedError(x_3, x_15);
return x_16;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18;
x_16 = lean_ctor_get(x_8, 0);
lean_inc(x_16);
lean_dec(x_8);
lean_object* x_17; lean_object* x_18; lean_object* x_19;
x_17 = lean_ctor_get(x_9, 0);
lean_inc(x_17);
lean_dec(x_9);
lean_inc(x_2);
x_17 = l_Lean_Parser_peekToken(x_2, x_3);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19;
lean_dec(x_16);
lean_dec(x_2);
lean_dec(x_1);
x_19 = lean_ctor_get(x_17, 0);
x_18 = l_Lean_Parser_peekToken(x_2, x_3);
x_19 = lean_ctor_get(x_18, 1);
lean_inc(x_19);
lean_dec(x_17);
return x_19;
}
else
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20;
lean_dec(x_17);
lean_dec(x_2);
lean_dec(x_1);
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
lean_dec(x_18);
if (lean_obj_tag(x_20) == 2)
return x_20;
}
else
{
uint8_t x_21;
x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*6);
lean_object* x_21;
x_21 = lean_ctor_get(x_19, 0);
lean_inc(x_21);
lean_dec(x_19);
if (lean_obj_tag(x_21) == 2)
{
uint8_t x_22;
x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*6);
lean_dec(x_2);
if (x_21 == 0)
if (x_22 == 0)
{
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_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = lean_ctor_get(x_20, 1);
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_23 = lean_ctor_get(x_18, 0);
lean_inc(x_23);
lean_dec(x_20);
x_24 = lean_ctor_get(x_16, 0);
lean_dec(x_18);
x_24 = lean_ctor_get(x_21, 1);
lean_inc(x_24);
lean_dec(x_16);
x_25 = lean_ctor_get(x_24, 0);
lean_dec(x_21);
x_25 = lean_ctor_get(x_17, 0);
lean_inc(x_25);
lean_dec(x_24);
x_26 = lean_box(0);
x_27 = lean_name_mk_string(x_26, x_23);
x_28 = l_Std_RBNode_find___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_25, x_27);
lean_dec(x_27);
lean_dec(x_25);
if (lean_obj_tag(x_28) == 0)
{
lean_dec(x_1);
return x_22;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31;
lean_dec(x_28);
x_29 = l_Lean_Name_toString___closed__1;
x_30 = l_Lean_Name_toStringWithSep(x_29, x_1);
x_31 = l_Lean_Parser_ParserState_mkUnexpectedError(x_22, x_30);
return x_31;
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35;
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_ctor_get(x_20, 1);
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
lean_dec(x_25);
x_27 = lean_box(0);
x_28 = lean_name_mk_string(x_27, x_24);
x_29 = l_Std_RBNode_find___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_26, x_28);
lean_dec(x_28);
lean_dec(x_26);
if (lean_obj_tag(x_29) == 0)
{
lean_dec(x_1);
return x_23;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32;
lean_dec(x_29);
x_30 = l_Lean_Name_toString___closed__1;
x_31 = l_Lean_Name_toStringWithSep(x_30, x_1);
x_32 = l_Lean_Parser_ParserState_mkUnexpectedError(x_23, x_31);
return x_32;
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36;
x_33 = lean_ctor_get(x_18, 0);
lean_inc(x_33);
lean_dec(x_20);
x_34 = l___kind_term____x40_Init_Notation___hyg_12477____closed__2;
x_35 = lean_string_dec_eq(x_33, x_34);
if (x_35 == 0)
lean_dec(x_18);
x_34 = lean_ctor_get(x_21, 1);
lean_inc(x_34);
lean_dec(x_21);
x_35 = l___kind_term____x40_Init_Notation___hyg_12477____closed__2;
x_36 = lean_string_dec_eq(x_34, x_35);
if (x_36 == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
x_36 = lean_ctor_get(x_16, 0);
lean_inc(x_36);
lean_dec(x_16);
x_37 = lean_ctor_get(x_36, 0);
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
x_37 = lean_ctor_get(x_17, 0);
lean_inc(x_37);
lean_dec(x_36);
x_38 = lean_box(0);
x_39 = lean_name_mk_string(x_38, x_33);
x_40 = l_Std_RBNode_find___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_37, x_39);
lean_dec(x_39);
lean_dec(x_17);
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
lean_dec(x_37);
if (lean_obj_tag(x_40) == 0)
{
lean_dec(x_1);
return x_32;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_39 = lean_box(0);
x_40 = lean_name_mk_string(x_39, x_34);
x_41 = l_Std_RBNode_find___at_Lean_Parser_notFollowedByCategoryTokenFn___spec__1(x_38, x_40);
lean_dec(x_40);
x_41 = l_Lean_Name_toString___closed__1;
x_42 = l_Lean_Name_toStringWithSep(x_41, x_1);
x_43 = l_Lean_Parser_ParserState_mkUnexpectedError(x_32, x_42);
return x_43;
}
}
else
lean_dec(x_38);
if (lean_obj_tag(x_41) == 0)
{
lean_dec(x_33);
lean_dec(x_16);
lean_dec(x_1);
return x_32;
return x_33;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44;
lean_dec(x_41);
x_42 = l_Lean_Name_toString___closed__1;
x_43 = l_Lean_Name_toStringWithSep(x_42, x_1);
x_44 = l_Lean_Parser_ParserState_mkUnexpectedError(x_33, x_43);
return x_44;
}
}
else
{
lean_dec(x_34);
lean_dec(x_17);
lean_dec(x_1);
return x_33;
}
}
}
else
{
lean_object* x_44;
lean_dec(x_20);
lean_dec(x_16);
lean_object* x_45;
lean_dec(x_21);
lean_dec(x_17);
lean_dec(x_2);
lean_dec(x_1);
x_44 = lean_ctor_get(x_17, 0);
lean_inc(x_44);
lean_dec(x_17);
return x_44;
x_45 = lean_ctor_get(x_18, 0);
lean_inc(x_45);
lean_dec(x_18);
return x_45;
}
}
}
@ -16352,7 +16367,7 @@ static lean_object* _init_l_Lean_Parser_notFollowedByCommandToken___closed__1()
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByCategoryTokenFn), 3, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -16771,34 +16786,34 @@ lean_mark_persistent(l___private_Lean_Parser_Extension_0__Lean_Parser_registerPa
res = l___private_Lean_Parser_Extension_0__Lean_Parser_registerParserAttributeImplBuilder(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3875_(lean_io_mk_world());
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3877_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3885_(lean_io_mk_world());
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3887_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__2);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895_(lean_io_mk_world());
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__2);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3905_(lean_io_mk_world());
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__1);
l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2();
lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907____closed__2);
res = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3907_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_notFollowedByCommandToken___closed__1 = _init_l_Lean_Parser_notFollowedByCommandToken___closed__1();

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -141,6 +141,7 @@ lean_object* l_Lean_Parser_Command_notation_formatter___closed__7;
lean_object* l_Lean_Parser_Syntax_cat___closed__4;
lean_object* l_Lean_Parser_Command_macroTail_parenthesizer___closed__4;
lean_object* l___regBuiltinParser_Lean_Parser_Syntax_cat(lean_object*);
extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__3;
lean_object* l_Lean_Parser_Command_infixr_parenthesizer___closed__1;
lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__8;
lean_object* l_Lean_Parser_Syntax_paren___elambda__1___closed__3;
@ -179,7 +180,6 @@ lean_object* l_Lean_Parser_Term_stx_quot___closed__2;
lean_object* l_Lean_Parser_Command_parserKind___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_syntaxAbbrev___closed__4;
lean_object* l___regBuiltin_Lean_Parser_Term_stx_quot_formatter(lean_object*);
extern lean_object* l_Lean_Parser_Term_quot_formatter___closed__4;
lean_object* l_Lean_Parser_Command_macroTailDefault_parenthesizer___closed__4;
lean_object* l_Lean_Parser_Command_elab__rules_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_parserPrio_formatter___closed__1;
@ -319,7 +319,6 @@ lean_object* l_Lean_Parser_leadingNode_formatter___boxed(lean_object*, lean_obje
lean_object* l_Lean_Parser_Syntax_paren___closed__3;
extern lean_object* l_Lean_Parser_Tactic_orelse___closed__5;
lean_object* l_Lean_Parser_Syntax_unary___elambda__1(lean_object*, lean_object*);
extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__3;
lean_object* l_Lean_Parser_Syntax_binary;
lean_object* l_Lean_Parser_Command_elabArg;
lean_object* l_Lean_Parser_Command_macroArgSimple___closed__9;
@ -366,7 +365,6 @@ lean_object* l_Lean_Parser_Command_infixl_parenthesizer(lean_object*, lean_objec
lean_object* l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_syntax___closed__5;
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Syntax___hyg_4____closed__2;
extern lean_object* l_Lean_Parser_Term_quot_formatter___closed__2;
extern lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__4;
lean_object* l___regBuiltin_Lean_Parser_Command_syntaxAbbrev_formatter(lean_object*);
lean_object* l_Lean_Parser_identEqFn(lean_object*, lean_object*, lean_object*);
@ -376,7 +374,6 @@ lean_object* l_Lean_Parser_Command_elab__rules___closed__3;
lean_object* l_Lean_PrettyPrinter_Formatter_optional_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_optKindPrio_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_nonReserved___closed__3;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
lean_object* l_Lean_Parser_Command_macroArgSimple_parenthesizer___closed__6;
lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Syntax___hyg_15____closed__1;
@ -408,6 +405,7 @@ lean_object* l_Lean_Parser_Syntax_nonReserved_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_infix___closed__4;
lean_object* l_Lean_Parser_Syntax_paren_formatter___closed__1;
extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
lean_object* l_Lean_Parser_Command_elabTail___closed__8;
lean_object* l_Lean_Parser_Command_prefix___closed__4;
lean_object* l_Lean_Parser_Syntax_cat_formatter___closed__3;
@ -642,6 +640,7 @@ lean_object* l_Lean_Parser_Command_optKindPrio_formatter___closed__3;
lean_object* l_Lean_Parser_Command_parserKind___closed__3;
lean_object* l_Lean_Parser_Command_optPrio_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_mixfix_formatter___closed__2;
extern lean_object* l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
lean_object* l_Lean_Parser_Term_stx_quot___elambda__1___closed__12;
lean_object* l_Lean_Parser_Command_elab_formatter___closed__11;
lean_object* l_Lean_Parser_Syntax_binary_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -739,7 +738,6 @@ lean_object* l_Lean_Parser_Command_optKindPrio_parenthesizer___closed__4;
lean_object* l_Lean_Parser_Command_elab___elambda__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_macroTailCommand_formatter___closed__5;
lean_object* l_Lean_Parser_Command_macroTailCommand_parenthesizer___closed__2;
extern lean_object* l_Lean_Parser_Term_quot___closed__5;
lean_object* l___regBuiltin_Lean_Parser_Command_syntax_formatter(lean_object*);
lean_object* l_Lean_Parser_precedence_parenthesizer___closed__4;
lean_object* l_Lean_Parser_Command_syntax_parenthesizer___closed__4;
@ -766,6 +764,7 @@ lean_object* l_Lean_Parser_Command_parserKind___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_elabTail___closed__6;
lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_macroTailDefault_parenthesizer___closed__3;
extern lean_object* l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
lean_object* l_Lean_Parser_Syntax_unary;
lean_object* l_Lean_Parser_Term_stx_quot_parenthesizer___closed__3;
lean_object* l___regBuiltin_Lean_Parser_Syntax_cat_formatter(lean_object*);
@ -869,6 +868,8 @@ lean_object* l_Lean_Parser_precedenceLit___closed__3;
lean_object* l_Lean_Parser_Command_parserKind___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_optKindPrio___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_optKindPrio___elambda__1(lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_dynamicQuot___closed__6;
extern lean_object* l_Lean_Parser_Term_quot_formatter___closed__3;
lean_object* l_Lean_Parser_Syntax_nonReserved_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_atom___closed__1;
lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__10;
@ -885,7 +886,6 @@ lean_object* l_Lean_Parser_Command_syntaxCat___closed__6;
lean_object* l_Lean_Parser_Command_macro_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__13;
lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__6;
extern lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__12;
lean_object* l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__1;
lean_object* l_Lean_Parser_Command_optKind___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_parserKindPrio_formatter___closed__2;
@ -934,7 +934,6 @@ lean_object* l_Lean_Parser_Command_macro;
lean_object* l_Lean_Parser_Command_syntax___closed__6;
lean_object* l_Lean_Parser_Term_stx_quot___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_infix_parenthesizer___closed__1;
extern lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__3;
lean_object* l_Lean_Parser_Command_optKindPrio___closed__2;
lean_object* l_Lean_Parser_Command_notation_formatter___closed__1;
lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__1;
@ -1031,6 +1030,7 @@ lean_object* l_Lean_Parser_Term_stx_quot_formatter(lean_object*, lean_object*, l
lean_object* l_Lean_Parser_Command_identPrec___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_macroTailDefault;
lean_object* l_Lean_Parser_Term_stx_quot___closed__7;
extern lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__3;
lean_object* l_Lean_Parser_Command_mixfix___closed__6;
lean_object* l_Lean_Parser_Command_elab___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_elab___closed__11;
@ -3193,7 +3193,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_unary_formatter___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__3;
x_2 = l_Lean_Parser_Syntax_paren_formatter___closed__5;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -3273,7 +3273,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_unary_parenthesizer___closed__2()
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__3;
x_2 = l_Lean_Parser_Syntax_paren_parenthesizer___closed__5;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -3636,7 +3636,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_binary_formatter___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__3;
x_2 = l_Lean_Parser_Syntax_binary_formatter___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -3740,7 +3740,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_binary_parenthesizer___closed__4(
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__3;
x_2 = l_Lean_Parser_Syntax_binary_parenthesizer___closed__3;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -6143,7 +6143,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_mixfix(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_mixfix___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_mixfix;
@ -7752,7 +7752,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_notation(lean_object* x_1)
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_notation___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_notation;
@ -8433,7 +8433,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_macro__rules(lean_object*
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_macro__rules;
@ -9580,7 +9580,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_syntax(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_syntax___elambda__1___closed__1;
x_4 = 1;
x_5 = l_Lean_Parser_Command_syntax;
@ -10483,7 +10483,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_syntaxAbbrev(lean_object*
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_syntaxAbbrev___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_syntaxAbbrev;
@ -10878,7 +10878,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_syntaxCat(lean_object* x_1
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_syntaxCat;
@ -11393,7 +11393,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailTactic___elambda__1___c
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__12;
x_1 = l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
x_2 = l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__6;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -11455,7 +11455,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailTactic___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___closed__5;
x_1 = l_Lean_Parser_Term_dynamicQuot___closed__6;
x_2 = l_Lean_Parser_Tactic_quotSeq___closed__1;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
@ -11527,7 +11527,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailCommand___elambda__1___
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_1 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_identEqFn), 3, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -11571,7 +11571,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailCommand___elambda__1___
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__12;
x_1 = l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
x_2 = l_Lean_Parser_Command_macroTailCommand___elambda__1___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -11633,7 +11633,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailCommand___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___closed__5;
x_1 = l_Lean_Parser_Term_dynamicQuot___closed__6;
x_2 = l_Lean_Parser_Command_macroTailCommand___closed__1;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
@ -11739,7 +11739,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailDefault___elambda__1___
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__12;
x_1 = l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__13;
x_2 = l_Lean_Parser_Command_macroTailDefault___elambda__1___closed__3;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -11813,7 +11813,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailDefault___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot___closed__5;
x_1 = l_Lean_Parser_Term_dynamicQuot___closed__6;
x_2 = l_Lean_Parser_Command_macroTailDefault___closed__2;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
@ -12283,7 +12283,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_macro(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_macro___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_macro;
@ -12323,7 +12323,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroArgSimple_formatter___close
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2470____closed__3;
x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2500____closed__3;
x_2 = l_Lean_Parser_Command_macroArgSimple_formatter___closed__2;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -12447,7 +12447,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailTactic_formatter___clos
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_1 = l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
x_2 = l_Lean_Parser_Tactic_quotSeq_formatter___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -12493,7 +12493,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailCommand_formatter___clo
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__4;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__3;
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_toggleInsideQuot_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -12515,7 +12515,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailCommand_formatter___clo
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_1 = l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
x_2 = l_Lean_Parser_Command_macroTailCommand_formatter___closed__2;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -12603,7 +12603,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroTailDefault_formatter___clo
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_quot_formatter___closed__2;
x_1 = l_Lean_Parser_Term_dynamicQuot_formatter___closed__2;
x_2 = l_Lean_Parser_Command_macroTailDefault_formatter___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -12894,7 +12894,7 @@ static lean_object* _init_l_Lean_Parser_Command_macroArgSimple_parenthesizer___c
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2429____closed__3;
x_1 = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2459____closed__3;
x_2 = l_Lean_Parser_Command_macroArgSimple_parenthesizer___closed__3;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
lean_closure_set(x_3, 0, x_1);
@ -13673,7 +13673,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_elab__rules(lean_object* x
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_elab__rules___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_elab__rules;
@ -14457,7 +14457,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_elab(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3895____closed__3;
x_2 = l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3897____closed__3;
x_3 = l_Lean_Parser_Command_elab___elambda__1___closed__2;
x_4 = 1;
x_5 = l_Lean_Parser_Command_elab;

View file

@ -226,147 +226,239 @@ uint8_t x_3;
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; uint8_t x_6;
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 4);
lean_dec(x_5);
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
x_5 = lean_ctor_get(x_1, 1);
x_6 = lean_ctor_get(x_1, 4);
lean_dec(x_6);
x_7 = !lean_is_exclusive(x_4);
if (x_7 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_1, 4, x_8);
uint8_t x_8;
x_8 = !lean_is_exclusive(x_5);
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_2, 1);
lean_inc(x_9);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_1, 4, x_10);
lean_inc(x_1);
x_9 = l_Lean_Parser_ident___elambda__1(x_1, x_2);
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
x_11 = l_Lean_Parser_ident___elambda__1(x_1, x_2);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_11; uint8_t x_12; lean_object* x_13;
x_11 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_12 = 1;
x_13 = l_Lean_Parser_errorAtSavedPosFn(x_11, x_12, x_1, x_9);
return x_13;
lean_object* x_13; uint8_t x_14; lean_object* x_15;
x_13 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_14 = 1;
x_15 = l_Lean_Parser_errorAtSavedPosFn(x_13, x_14, x_1, x_11);
return x_15;
}
else
{
lean_dec(x_10);
lean_dec(x_12);
lean_dec(x_1);
return x_9;
return x_11;
}
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
x_14 = lean_ctor_get(x_4, 0);
x_15 = lean_ctor_get(x_4, 1);
x_16 = lean_ctor_get(x_4, 2);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_4);
x_17 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_17, 0, x_14);
lean_ctor_set(x_17, 1, x_15);
lean_ctor_set(x_17, 2, x_16);
x_18 = lean_ctor_get(x_2, 1);
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
x_16 = lean_ctor_get(x_5, 0);
x_17 = lean_ctor_get(x_5, 1);
x_18 = lean_ctor_get(x_5, 2);
lean_inc(x_18);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_1, 4, x_19);
lean_ctor_set(x_1, 0, x_17);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_5);
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_16);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_18);
x_20 = lean_ctor_get(x_2, 1);
lean_inc(x_20);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_1, 4, x_21);
lean_ctor_set(x_1, 1, x_19);
lean_inc(x_1);
x_20 = l_Lean_Parser_ident___elambda__1(x_1, x_2);
x_21 = lean_ctor_get(x_20, 3);
lean_inc(x_21);
if (lean_obj_tag(x_21) == 0)
x_22 = l_Lean_Parser_ident___elambda__1(x_1, x_2);
x_23 = lean_ctor_get(x_22, 3);
lean_inc(x_23);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_22; uint8_t x_23; lean_object* x_24;
x_22 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_23 = 1;
x_24 = l_Lean_Parser_errorAtSavedPosFn(x_22, x_23, x_1, x_20);
return x_24;
lean_object* x_24; uint8_t x_25; lean_object* x_26;
x_24 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_25 = 1;
x_26 = l_Lean_Parser_errorAtSavedPosFn(x_24, x_25, x_1, x_22);
return x_26;
}
else
{
lean_dec(x_21);
lean_dec(x_23);
lean_dec(x_1);
return x_20;
return x_22;
}
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
x_25 = lean_ctor_get(x_1, 0);
x_26 = lean_ctor_get(x_1, 1);
x_27 = lean_ctor_get(x_1, 2);
x_28 = lean_ctor_get(x_1, 3);
x_29 = lean_ctor_get_uint8(x_1, sizeof(void*)*6);
x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*6 + 1);
x_31 = lean_ctor_get(x_1, 5);
lean_inc(x_31);
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_27 = lean_ctor_get(x_4, 0);
x_28 = lean_ctor_get(x_4, 1);
x_29 = lean_ctor_get(x_4, 2);
lean_inc(x_29);
lean_inc(x_28);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_1);
x_32 = lean_ctor_get(x_25, 0);
lean_dec(x_4);
x_30 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_30, 0, x_27);
lean_ctor_set(x_30, 1, x_28);
lean_ctor_set(x_30, 2, x_29);
x_31 = lean_ctor_get(x_5, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_5, 1);
lean_inc(x_32);
x_33 = lean_ctor_get(x_25, 1);
x_33 = lean_ctor_get(x_5, 2);
lean_inc(x_33);
x_34 = lean_ctor_get(x_25, 2);
lean_inc(x_34);
if (lean_is_exclusive(x_25)) {
lean_ctor_release(x_25, 0);
lean_ctor_release(x_25, 1);
lean_ctor_release(x_25, 2);
x_35 = x_25;
if (lean_is_exclusive(x_5)) {
lean_ctor_release(x_5, 0);
lean_ctor_release(x_5, 1);
lean_ctor_release(x_5, 2);
x_34 = x_5;
} else {
lean_dec_ref(x_25);
x_35 = lean_box(0);
lean_dec_ref(x_5);
x_34 = lean_box(0);
}
if (lean_is_scalar(x_35)) {
x_36 = lean_alloc_ctor(0, 3, 0);
if (lean_is_scalar(x_34)) {
x_35 = lean_alloc_ctor(0, 3, 0);
} else {
x_36 = x_35;
x_35 = x_34;
}
lean_ctor_set(x_36, 0, x_32);
lean_ctor_set(x_36, 1, x_33);
lean_ctor_set(x_36, 2, x_34);
x_37 = lean_ctor_get(x_2, 1);
lean_inc(x_37);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_37);
x_39 = lean_alloc_ctor(0, 6, 2);
lean_ctor_set(x_39, 0, x_36);
lean_ctor_set(x_39, 1, x_26);
lean_ctor_set(x_39, 2, x_27);
lean_ctor_set(x_39, 3, x_28);
lean_ctor_set(x_39, 4, x_38);
lean_ctor_set(x_39, 5, x_31);
lean_ctor_set_uint8(x_39, sizeof(void*)*6, x_29);
lean_ctor_set_uint8(x_39, sizeof(void*)*6 + 1, x_30);
lean_ctor_set(x_35, 0, x_31);
lean_ctor_set(x_35, 1, x_32);
lean_ctor_set(x_35, 2, x_33);
x_36 = lean_ctor_get(x_2, 1);
lean_inc(x_36);
x_37 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_1, 4, x_37);
lean_ctor_set(x_1, 1, x_35);
lean_ctor_set(x_1, 0, x_30);
lean_inc(x_1);
x_38 = l_Lean_Parser_ident___elambda__1(x_1, x_2);
x_39 = lean_ctor_get(x_38, 3);
lean_inc(x_39);
x_40 = l_Lean_Parser_ident___elambda__1(x_39, x_2);
x_41 = lean_ctor_get(x_40, 3);
lean_inc(x_41);
if (lean_obj_tag(x_41) == 0)
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_42; uint8_t x_43; lean_object* x_44;
x_42 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_43 = 1;
x_44 = l_Lean_Parser_errorAtSavedPosFn(x_42, x_43, x_39, x_40);
return x_44;
lean_object* x_40; uint8_t x_41; lean_object* x_42;
x_40 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_41 = 1;
x_42 = l_Lean_Parser_errorAtSavedPosFn(x_40, x_41, x_1, x_38);
return x_42;
}
else
{
lean_dec(x_41);
lean_dec(x_39);
return x_40;
lean_dec(x_1);
return x_38;
}
}
}
else
{
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; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
x_43 = lean_ctor_get(x_1, 0);
x_44 = lean_ctor_get(x_1, 1);
x_45 = lean_ctor_get(x_1, 2);
x_46 = lean_ctor_get(x_1, 3);
x_47 = lean_ctor_get_uint8(x_1, sizeof(void*)*6);
x_48 = lean_ctor_get_uint8(x_1, sizeof(void*)*6 + 1);
x_49 = lean_ctor_get(x_1, 5);
lean_inc(x_49);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_1);
x_50 = lean_ctor_get(x_43, 0);
lean_inc(x_50);
x_51 = lean_ctor_get(x_43, 1);
lean_inc(x_51);
x_52 = lean_ctor_get(x_43, 2);
lean_inc(x_52);
if (lean_is_exclusive(x_43)) {
lean_ctor_release(x_43, 0);
lean_ctor_release(x_43, 1);
lean_ctor_release(x_43, 2);
x_53 = x_43;
} else {
lean_dec_ref(x_43);
x_53 = lean_box(0);
}
if (lean_is_scalar(x_53)) {
x_54 = lean_alloc_ctor(0, 3, 0);
} else {
x_54 = x_53;
}
lean_ctor_set(x_54, 0, x_50);
lean_ctor_set(x_54, 1, x_51);
lean_ctor_set(x_54, 2, x_52);
x_55 = lean_ctor_get(x_44, 0);
lean_inc(x_55);
x_56 = lean_ctor_get(x_44, 1);
lean_inc(x_56);
x_57 = lean_ctor_get(x_44, 2);
lean_inc(x_57);
if (lean_is_exclusive(x_44)) {
lean_ctor_release(x_44, 0);
lean_ctor_release(x_44, 1);
lean_ctor_release(x_44, 2);
x_58 = x_44;
} else {
lean_dec_ref(x_44);
x_58 = lean_box(0);
}
if (lean_is_scalar(x_58)) {
x_59 = lean_alloc_ctor(0, 3, 0);
} else {
x_59 = x_58;
}
lean_ctor_set(x_59, 0, x_55);
lean_ctor_set(x_59, 1, x_56);
lean_ctor_set(x_59, 2, x_57);
x_60 = lean_ctor_get(x_2, 1);
lean_inc(x_60);
x_61 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_61, 0, x_60);
x_62 = lean_alloc_ctor(0, 6, 2);
lean_ctor_set(x_62, 0, x_54);
lean_ctor_set(x_62, 1, x_59);
lean_ctor_set(x_62, 2, x_45);
lean_ctor_set(x_62, 3, x_46);
lean_ctor_set(x_62, 4, x_61);
lean_ctor_set(x_62, 5, x_49);
lean_ctor_set_uint8(x_62, sizeof(void*)*6, x_47);
lean_ctor_set_uint8(x_62, sizeof(void*)*6 + 1, x_48);
lean_inc(x_62);
x_63 = l_Lean_Parser_ident___elambda__1(x_62, x_2);
x_64 = lean_ctor_get(x_63, 3);
lean_inc(x_64);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; uint8_t x_66; lean_object* x_67;
x_65 = l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1;
x_66 = 1;
x_67 = l_Lean_Parser_errorAtSavedPosFn(x_65, x_66, x_62, x_63);
return x_67;
}
else
{
lean_dec(x_64);
lean_dec(x_62);
return x_63;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -39,7 +39,6 @@ extern lean_object* l_Lean_nullKind;
lean_object* l_Lean_ParserCompiler_compileCategoryParser_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_54____closed__3;
uint8_t l_USize_decEq(size_t, size_t);
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg___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_array_uget(lean_object*, size_t);
@ -120,7 +119,6 @@ lean_object* l_Lean_ParserCompiler_preprocessParserBody___rarg___boxed(lean_obje
lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1;
lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -187,6 +185,7 @@ lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr__
lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__15(lean_object*);
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg___boxed(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_Parser_parserOfStackFnUnsafe___closed__3;
lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__26(lean_object*);
lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -422,16 +421,6 @@ lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_myMacro____x40_Init_Notation___hyg_54____closed__4;
x_2 = l_myMacro____x40_Init_Notation___hyg_54____closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
@ -447,7 +436,7 @@ x_10 = x_9 == x_5;
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12;
x_11 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_11 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_12 = l_Lean_Expr_isConstOf(x_3, x_11);
if (x_12 == 0)
{
@ -18003,7 +17992,7 @@ x_31 = l_Lean_Expr_isConstOf(x_28, x_30);
if (x_31 == 0)
{
lean_object* x_63; uint8_t x_64;
x_63 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_63 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_64 = l_Lean_Expr_isConstOf(x_28, x_63);
lean_dec(x_28);
if (x_64 == 0)
@ -18174,7 +18163,7 @@ lean_dec(x_17);
if (lean_obj_tag(x_45) == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48;
x_46 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_46 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_47 = lean_box(0);
x_48 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(x_1, x_44, x_2, x_46, x_25, x_21, x_19, x_13, x_10, x_26, x_47, x_4, x_5, x_6, x_7, x_29);
return x_48;
@ -18228,7 +18217,7 @@ return x_58;
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61;
x_59 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_59 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_60 = lean_box(0);
x_61 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(x_1, x_44, x_2, x_59, x_25, x_21, x_19, x_13, x_10, x_26, x_60, x_4, x_5, x_6, x_7, x_29);
return x_61;
@ -18487,7 +18476,7 @@ x_138 = l_Lean_Expr_isConstOf(x_135, x_137);
if (x_138 == 0)
{
lean_object* x_170; uint8_t x_171;
x_170 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_170 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_171 = l_Lean_Expr_isConstOf(x_135, x_170);
lean_dec(x_135);
if (x_171 == 0)
@ -18658,7 +18647,7 @@ lean_dec(x_124);
if (lean_obj_tag(x_152) == 0)
{
lean_object* x_153; lean_object* x_154; lean_object* x_155;
x_153 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_153 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_154 = lean_box(0);
x_155 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(x_1, x_151, x_2, x_153, x_132, x_128, x_126, x_120, x_10, x_133, x_154, x_4, x_5, x_6, x_7, x_136);
return x_155;
@ -18712,7 +18701,7 @@ return x_165;
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168;
x_166 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_166 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_167 = lean_box(0);
x_168 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(x_1, x_151, x_2, x_166, x_132, x_128, x_126, x_120, x_10, x_133, x_167, x_4, x_5, x_6, x_7, x_136);
return x_168;
@ -18943,7 +18932,7 @@ x_241 = l_Lean_Expr_isConstOf(x_238, x_240);
if (x_241 == 0)
{
lean_object* x_273; uint8_t x_274;
x_273 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_273 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_274 = l_Lean_Expr_isConstOf(x_238, x_273);
lean_dec(x_238);
if (x_274 == 0)
@ -19114,7 +19103,7 @@ lean_dec(x_227);
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_256; lean_object* x_257; lean_object* x_258;
x_256 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_256 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_257 = lean_box(0);
x_258 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(x_1, x_254, x_2, x_256, x_235, x_231, x_229, x_223, x_10, x_236, x_257, x_4, x_5, x_6, x_7, x_239);
return x_258;
@ -19168,7 +19157,7 @@ return x_268;
else
{
lean_object* x_269; lean_object* x_270; lean_object* x_271;
x_269 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_269 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_270 = lean_box(0);
x_271 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(x_1, x_254, x_2, x_269, x_235, x_231, x_229, x_223, x_10, x_236, x_270, x_4, x_5, x_6, x_7, x_239);
return x_271;
@ -19399,7 +19388,7 @@ x_344 = l_Lean_Expr_isConstOf(x_341, x_343);
if (x_344 == 0)
{
lean_object* x_376; uint8_t x_377;
x_376 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_376 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_377 = l_Lean_Expr_isConstOf(x_341, x_376);
lean_dec(x_341);
if (x_377 == 0)
@ -19570,7 +19559,7 @@ lean_dec(x_330);
if (lean_obj_tag(x_358) == 0)
{
lean_object* x_359; lean_object* x_360; lean_object* x_361;
x_359 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_359 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_360 = lean_box(0);
x_361 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(x_1, x_357, x_2, x_359, x_338, x_334, x_332, x_326, x_10, x_339, x_360, x_4, x_5, x_6, x_7, x_342);
return x_361;
@ -19624,7 +19613,7 @@ return x_371;
else
{
lean_object* x_372; lean_object* x_373; lean_object* x_374;
x_372 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_372 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_373 = lean_box(0);
x_374 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(x_1, x_357, x_2, x_372, x_338, x_334, x_332, x_326, x_10, x_339, x_373, x_4, x_5, x_6, x_7, x_342);
return x_374;
@ -19855,7 +19844,7 @@ x_447 = l_Lean_Expr_isConstOf(x_444, x_446);
if (x_447 == 0)
{
lean_object* x_479; uint8_t x_480;
x_479 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_479 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_480 = l_Lean_Expr_isConstOf(x_444, x_479);
lean_dec(x_444);
if (x_480 == 0)
@ -20026,7 +20015,7 @@ lean_dec(x_433);
if (lean_obj_tag(x_461) == 0)
{
lean_object* x_462; lean_object* x_463; lean_object* x_464;
x_462 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_462 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_463 = lean_box(0);
x_464 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(x_1, x_460, x_2, x_462, x_441, x_437, x_435, x_429, x_10, x_442, x_463, x_4, x_5, x_6, x_7, x_445);
return x_464;
@ -20080,7 +20069,7 @@ return x_474;
else
{
lean_object* x_475; lean_object* x_476; lean_object* x_477;
x_475 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_475 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_476 = lean_box(0);
x_477 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(x_1, x_460, x_2, x_475, x_441, x_437, x_435, x_429, x_10, x_442, x_476, x_4, x_5, x_6, x_7, x_445);
return x_477;
@ -20324,7 +20313,7 @@ x_554 = l_Lean_Expr_isConstOf(x_551, x_553);
if (x_554 == 0)
{
lean_object* x_586; uint8_t x_587;
x_586 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_586 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_587 = l_Lean_Expr_isConstOf(x_551, x_586);
lean_dec(x_551);
if (x_587 == 0)
@ -20495,7 +20484,7 @@ lean_dec(x_540);
if (lean_obj_tag(x_568) == 0)
{
lean_object* x_569; lean_object* x_570; lean_object* x_571;
x_569 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_569 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_570 = lean_box(0);
x_571 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(x_1, x_567, x_2, x_569, x_548, x_544, x_542, x_536, x_10, x_549, x_570, x_4, x_5, x_6, x_7, x_552);
return x_571;
@ -20549,7 +20538,7 @@ return x_581;
else
{
lean_object* x_582; lean_object* x_583; lean_object* x_584;
x_582 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_582 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_583 = lean_box(0);
x_584 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(x_1, x_567, x_2, x_582, x_548, x_544, x_542, x_536, x_10, x_549, x_583, x_4, x_5, x_6, x_7, x_552);
return x_584;
@ -20780,7 +20769,7 @@ x_657 = l_Lean_Expr_isConstOf(x_654, x_656);
if (x_657 == 0)
{
lean_object* x_689; uint8_t x_690;
x_689 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_689 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_690 = l_Lean_Expr_isConstOf(x_654, x_689);
lean_dec(x_654);
if (x_690 == 0)
@ -20951,7 +20940,7 @@ lean_dec(x_643);
if (lean_obj_tag(x_671) == 0)
{
lean_object* x_672; lean_object* x_673; lean_object* x_674;
x_672 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_672 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_673 = lean_box(0);
x_674 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(x_1, x_670, x_2, x_672, x_651, x_647, x_645, x_639, x_10, x_652, x_673, x_4, x_5, x_6, x_7, x_655);
return x_674;
@ -21005,7 +20994,7 @@ return x_684;
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687;
x_685 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_685 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_686 = lean_box(0);
x_687 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(x_1, x_670, x_2, x_685, x_651, x_647, x_645, x_639, x_10, x_652, x_686, x_4, x_5, x_6, x_7, x_655);
return x_687;
@ -21236,7 +21225,7 @@ x_760 = l_Lean_Expr_isConstOf(x_757, x_759);
if (x_760 == 0)
{
lean_object* x_792; uint8_t x_793;
x_792 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_792 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_793 = l_Lean_Expr_isConstOf(x_757, x_792);
lean_dec(x_757);
if (x_793 == 0)
@ -21407,7 +21396,7 @@ lean_dec(x_746);
if (lean_obj_tag(x_774) == 0)
{
lean_object* x_775; lean_object* x_776; lean_object* x_777;
x_775 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_775 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_776 = lean_box(0);
x_777 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(x_1, x_773, x_2, x_775, x_754, x_750, x_748, x_742, x_10, x_755, x_776, x_4, x_5, x_6, x_7, x_758);
return x_777;
@ -21461,7 +21450,7 @@ return x_787;
else
{
lean_object* x_788; lean_object* x_789; lean_object* x_790;
x_788 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_788 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_789 = lean_box(0);
x_790 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(x_1, x_773, x_2, x_788, x_754, x_750, x_748, x_742, x_10, x_755, x_789, x_4, x_5, x_6, x_7, x_758);
return x_790;
@ -21692,7 +21681,7 @@ x_863 = l_Lean_Expr_isConstOf(x_860, x_862);
if (x_863 == 0)
{
lean_object* x_895; uint8_t x_896;
x_895 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_895 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_896 = l_Lean_Expr_isConstOf(x_860, x_895);
lean_dec(x_860);
if (x_896 == 0)
@ -21863,7 +21852,7 @@ lean_dec(x_849);
if (lean_obj_tag(x_877) == 0)
{
lean_object* x_878; lean_object* x_879; lean_object* x_880;
x_878 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_878 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_879 = lean_box(0);
x_880 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(x_1, x_876, x_2, x_878, x_857, x_853, x_851, x_845, x_10, x_858, x_879, x_4, x_5, x_6, x_7, x_861);
return x_880;
@ -21917,7 +21906,7 @@ return x_890;
else
{
lean_object* x_891; lean_object* x_892; lean_object* x_893;
x_891 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_891 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_892 = lean_box(0);
x_893 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(x_1, x_876, x_2, x_891, x_857, x_853, x_851, x_845, x_10, x_858, x_892, x_4, x_5, x_6, x_7, x_861);
return x_893;
@ -22148,7 +22137,7 @@ x_966 = l_Lean_Expr_isConstOf(x_963, x_965);
if (x_966 == 0)
{
lean_object* x_998; uint8_t x_999;
x_998 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_998 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_999 = l_Lean_Expr_isConstOf(x_963, x_998);
lean_dec(x_963);
if (x_999 == 0)
@ -22319,7 +22308,7 @@ lean_dec(x_952);
if (lean_obj_tag(x_980) == 0)
{
lean_object* x_981; lean_object* x_982; lean_object* x_983;
x_981 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_981 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_982 = lean_box(0);
x_983 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(x_1, x_979, x_2, x_981, x_960, x_956, x_954, x_948, x_10, x_961, x_982, x_4, x_5, x_6, x_7, x_964);
return x_983;
@ -22373,7 +22362,7 @@ return x_993;
else
{
lean_object* x_994; lean_object* x_995; lean_object* x_996;
x_994 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1;
x_994 = l_Lean_Parser_parserOfStackFnUnsafe___closed__3;
x_995 = lean_box(0);
x_996 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(x_1, x_979, x_2, x_994, x_960, x_956, x_954, x_948, x_10, x_961, x_995, x_4, x_5, x_6, x_7, x_964);
return x_996;
@ -24791,8 +24780,6 @@ lean_dec_ref(res);
res = initialize_Lean_Parser_Extension(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1 = _init_l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1();
lean_mark_persistent(l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_preprocessParserBody___spec__1___rarg___closed__1);
l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__5___rarg___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__5___rarg___closed__1();
lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__5___rarg___closed__1);
l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg___closed__1();

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -69,7 +69,6 @@ lean_object* l_Lean_Server_handleDidOpen_match__1___rarg(lean_object*, lean_obje
lean_object* l_Lean_Server_parseParams___rarg___closed__1;
lean_object* l_Lean_Server_handleHover___rarg(lean_object*);
lean_object* l_Lean_Server_handleNotification___closed__1;
lean_object* l_IO_FS_Handle_mk___at_Lean_Parser_parseFile___spec__2(lean_object*, uint8_t, uint8_t, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_Lean_Server_Snapshots_compileCmdsAfter(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Server_mainLoop___rarg___closed__1;
@ -115,6 +114,7 @@ lean_object* l_Std_RBNode_del___at_Lean_Server_handleDidClose___spec__2(lean_obj
lean_object* l_Lean_Server_handleDidOpen(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*);
extern lean_object* l_Lean_Lsp_msgToDiagnostic___closed__1;
lean_object* l_IO_FS_Handle_mk___at_Lean_Parser_testParseFile___spec__2(lean_object*, uint8_t, uint8_t, lean_object*);
lean_object* l___private_Lean_Server_0__Lean_Server_replaceLspRange(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_RBNode_find___at_Lean_Server_findOpenDocument___spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Server_updateOpenDocuments___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -8447,7 +8447,7 @@ lean_inc(x_9);
lean_dec(x_7);
x_10 = 0;
x_11 = 1;
x_12 = l_IO_FS_Handle_mk___at_Lean_Parser_parseFile___spec__2(x_1, x_10, x_11, x_9);
x_12 = l_IO_FS_Handle_mk___at_Lean_Parser_testParseFile___spec__2(x_1, x_10, x_11, x_9);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15;

View file

@ -1,330 +0,0 @@
// Lean compiler output
// Module: Lean.Server.ServerBin
// Imports: Init Init.System.IO Lean.Server
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* lean_get_stdin(lean_object*);
lean_object* lean_io_error_to_string(lean_object*);
lean_object* _lean_main(lean_object*, lean_object*);
lean_object* lean_get_stderr(lean_object*);
lean_object* l_main___boxed__const__1;
lean_object* l_IO_getStdin___at_main___spec__1(lean_object*);
lean_object* lean_init_search_path(lean_object*, lean_object*);
lean_object* lean_get_stdout(lean_object*);
lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Test_runWithInputFile___spec__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Server_initAndRunServer(lean_object*, lean_object*, lean_object*);
lean_object* l_IO_getStdin___at_main___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = lean_get_stdin(x_1);
return x_2;
}
}
static lean_object* _init_l_main___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2;
x_1 = 0;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
lean_object* _lean_main(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
lean_dec(x_1);
x_3 = lean_get_stdin(x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_get_stdout(x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9;
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_get_stderr(x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_box(0);
x_13 = lean_init_search_path(x_12, x_11);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15;
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = l_Lean_Server_initAndRunServer(x_4, x_7, x_14);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16;
lean_dec(x_10);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18;
x_17 = lean_ctor_get(x_15, 0);
lean_dec(x_17);
x_18 = l_main___boxed__const__1;
lean_ctor_set(x_15, 0, x_18);
return x_15;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21;
x_19 = lean_ctor_get(x_15, 1);
lean_inc(x_19);
lean_dec(x_15);
x_20 = l_main___boxed__const__1;
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
x_22 = lean_ctor_get(x_15, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_15, 1);
lean_inc(x_23);
lean_dec(x_15);
x_24 = lean_io_error_to_string(x_22);
x_25 = l_IO_FS_Stream_putStrLn___at_Lean_Server_Test_runWithInputFile___spec__1(x_10, x_24, x_23);
if (lean_obj_tag(x_25) == 0)
{
uint8_t x_26;
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28;
x_27 = lean_ctor_get(x_25, 0);
lean_dec(x_27);
x_28 = l_main___boxed__const__1;
lean_ctor_set(x_25, 0, x_28);
return x_25;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31;
x_29 = lean_ctor_get(x_25, 1);
lean_inc(x_29);
lean_dec(x_25);
x_30 = l_main___boxed__const__1;
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
return x_31;
}
}
else
{
uint8_t x_32;
x_32 = !lean_is_exclusive(x_25);
if (x_32 == 0)
{
return x_25;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35;
x_33 = lean_ctor_get(x_25, 0);
x_34 = lean_ctor_get(x_25, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_25);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
return x_35;
}
}
}
}
else
{
uint8_t x_36;
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_4);
x_36 = !lean_is_exclusive(x_13);
if (x_36 == 0)
{
return x_13;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_37 = lean_ctor_get(x_13, 0);
x_38 = lean_ctor_get(x_13, 1);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_13);
x_39 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
return x_39;
}
}
}
else
{
uint8_t x_40;
lean_dec(x_7);
lean_dec(x_4);
x_40 = !lean_is_exclusive(x_9);
if (x_40 == 0)
{
return x_9;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_41 = lean_ctor_get(x_9, 0);
x_42 = lean_ctor_get(x_9, 1);
lean_inc(x_42);
lean_inc(x_41);
lean_dec(x_9);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
return x_43;
}
}
}
else
{
uint8_t x_44;
lean_dec(x_4);
x_44 = !lean_is_exclusive(x_6);
if (x_44 == 0)
{
return x_6;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47;
x_45 = lean_ctor_get(x_6, 0);
x_46 = lean_ctor_get(x_6, 1);
lean_inc(x_46);
lean_inc(x_45);
lean_dec(x_6);
x_47 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_47, 0, x_45);
lean_ctor_set(x_47, 1, x_46);
return x_47;
}
}
}
else
{
uint8_t x_48;
x_48 = !lean_is_exclusive(x_3);
if (x_48 == 0)
{
return x_3;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51;
x_49 = lean_ctor_get(x_3, 0);
x_50 = lean_ctor_get(x_3, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_3);
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* initialize_Init(lean_object*);
lean_object* initialize_Init_System_IO(lean_object*);
lean_object* initialize_Lean_Server(lean_object*);
static bool _G_initialized = false;
lean_object* initialize_Lean_Server_ServerBin(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_System_IO(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Server(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_main___boxed__const__1 = _init_l_main___boxed__const__1();
lean_mark_persistent(l_main___boxed__const__1);
return lean_io_result_mk_ok(lean_box(0));
}
void lean_initialize();
#if defined(WIN32) || defined(_WIN32)
#include <windows.h>
#endif
int main(int argc, char ** argv) {
#if defined(WIN32) || defined(_WIN32)
SetErrorMode(SEM_FAILCRITICALERRORS);
#endif
lean_object* in; lean_object* res;
lean_initialize();
res = initialize_Lean_Server_ServerBin(lean_io_mk_world());
lean_io_mark_end_initialization();
if (lean_io_result_is_ok(res)) {
lean_dec_ref(res);
lean_init_task_manager();
in = lean_box(0);
int i = argc;
while (i > 1) {
lean_object* n;
i--;
n = lean_alloc_ctor(1,2,0); lean_ctor_set(n, 0, lean_mk_string(argv[i])); lean_ctor_set(n, 1, in);
in = n;
}
res = _lean_main(in, lean_io_mk_world());
}
if (lean_io_result_is_ok(res)) {
int ret = lean_unbox(lean_io_result_get_value(res));
lean_dec_ref(res);
return ret;
} else {
lean_io_result_show_error(res);
lean_dec_ref(res);
return 1;
}
}
#ifdef __cplusplus
}
#endif

View file

@ -16,6 +16,7 @@ extern "C" {
lean_object* l_Lean_Server_Snapshots_Snapshot_toCmdState_match__1(lean_object*);
lean_object* l_Lean_Server_Snapshots_Snapshot_msgLog___boxed(lean_object*);
lean_object* l___private_Lean_Server_Snapshots_0__Lean_Server_Snapshots_ioErrorFromEmpty_match__1(lean_object*, uint8_t);
lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*);
lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Command_withLogging___closed__2;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
@ -598,466 +599,345 @@ return x_7;
lean_object* l_Lean_Server_Snapshots_compileNextCmd(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; uint8_t x_15; lean_object* x_16;
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27;
x_4 = l_Lean_Elab_parseImports___closed__1;
lean_inc(x_1);
x_5 = l_Lean_Parser_mkInputContext(x_1, x_4);
x_6 = l_Lean_Server_Snapshots_Snapshot_env(x_2);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
x_8 = l_Lean_Server_Snapshots_Snapshot_msgLog(x_2);
x_9 = l_Lean_Parser_parseCommand_parse(x_6, x_5, x_7, x_8);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_dec(x_10);
x_14 = l_Lean_Syntax_getHeadInfo(x_11);
lean_inc(x_11);
x_15 = l_Lean_Parser_isEOI(x_11);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124;
x_121 = l_Lean_instInhabitedSourceInfo;
x_122 = l_Option_get_x21___rarg___closed__4;
x_123 = lean_panic_fn(x_121, x_122);
x_124 = lean_ctor_get(x_123, 1);
lean_inc(x_124);
lean_dec(x_123);
if (lean_obj_tag(x_124) == 0)
{
lean_object* x_125; lean_object* x_126;
x_125 = l_instInhabitedNat;
x_126 = lean_panic_fn(x_125, x_122);
x_16 = x_126;
goto block_120;
}
else
{
lean_object* x_127;
x_127 = lean_ctor_get(x_124, 0);
lean_inc(x_127);
lean_dec(x_124);
x_16 = x_127;
goto block_120;
}
}
else
{
lean_object* x_128; lean_object* x_129;
x_128 = lean_ctor_get(x_14, 0);
lean_inc(x_128);
lean_dec(x_14);
x_129 = lean_ctor_get(x_128, 1);
lean_inc(x_129);
lean_dec(x_128);
if (lean_obj_tag(x_129) == 0)
{
lean_object* x_130; lean_object* x_131; lean_object* x_132;
x_130 = l_instInhabitedNat;
x_131 = l_Option_get_x21___rarg___closed__4;
x_132 = lean_panic_fn(x_130, x_131);
x_16 = x_132;
goto block_120;
}
else
{
lean_object* x_133;
x_133 = lean_ctor_get(x_129, 0);
lean_inc(x_133);
lean_dec(x_129);
x_16 = x_133;
goto block_120;
}
}
block_120:
{
if (x_15 == 0)
{
uint8_t x_17;
lean_inc(x_11);
x_17 = l_Lean_Parser_isExitCommand(x_11);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19;
lean_inc(x_2);
x_18 = l_Lean_Server_Snapshots_Snapshot_toCmdState(x_2);
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_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;
x_20 = lean_ctor_get(x_18, 1);
x_6 = l_Lean_Server_Snapshots_Snapshot_toCmdState(x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 2);
lean_inc(x_8);
x_9 = lean_ctor_get(x_6, 3);
lean_inc(x_9);
x_10 = lean_ctor_get(x_6, 4);
lean_inc(x_10);
x_11 = lean_ctor_get(x_6, 5);
lean_inc(x_11);
x_12 = lean_ctor_get(x_6, 6);
lean_inc(x_12);
if (lean_is_exclusive(x_6)) {
lean_ctor_release(x_6, 0);
lean_ctor_release(x_6, 1);
lean_ctor_release(x_6, 2);
lean_ctor_release(x_6, 3);
lean_ctor_release(x_6, 4);
lean_ctor_release(x_6, 5);
lean_ctor_release(x_6, 6);
x_13 = x_6;
} else {
lean_dec_ref(x_6);
x_13 = lean_box(0);
}
x_14 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_8);
x_15 = lean_ctor_get(x_14, 3);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 4);
lean_inc(x_16);
lean_dec(x_14);
lean_inc(x_7);
x_17 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_17, 0, x_7);
lean_ctor_set(x_17, 1, x_15);
lean_ctor_set(x_17, 2, x_16);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_18);
x_19 = l_Lean_Server_Snapshots_Snapshot_msgLog(x_2);
x_20 = l_Lean_Parser_parseCommand_parse(x_5, x_17, x_18, x_19);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
lean_ctor_set(x_18, 1, x_13);
x_21 = l_IO_mkRef___at_Lean_Server_Snapshots_compileNextCmd___spec__1(x_18, x_3);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_21, 1);
lean_inc(x_24);
lean_dec(x_21);
x_38 = l_Lean_FileMap_ofString(x_1);
x_39 = l_Lean_Server_Snapshots_Snapshot_endPos(x_2);
lean_dec(x_2);
x_40 = lean_box(0);
x_41 = lean_unsigned_to_nat(0u);
x_42 = l_Lean_firstFrontendMacroScope;
x_43 = lean_box(0);
x_44 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_44, 0, x_4);
lean_ctor_set(x_44, 1, x_38);
lean_ctor_set(x_44, 2, x_41);
lean_ctor_set(x_44, 3, x_39);
lean_ctor_set(x_44, 4, x_40);
lean_ctor_set(x_44, 5, x_42);
lean_ctor_set(x_44, 6, x_43);
x_25 = l_Lean_Syntax_getHeadInfo(x_22);
lean_inc(x_22);
x_45 = l_Lean_Elab_Command_elabCommand(x_11, x_44, x_22, x_23);
if (lean_obj_tag(x_45) == 0)
x_26 = l_Lean_Parser_isEOI(x_22);
if (lean_obj_tag(x_25) == 0)
{
lean_object* x_46;
lean_dec(x_44);
x_46 = lean_ctor_get(x_45, 1);
lean_inc(x_46);
lean_dec(x_45);
x_24 = x_46;
goto block_37;
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84;
x_81 = l_Lean_instInhabitedSourceInfo;
x_82 = l_Option_get_x21___rarg___closed__4;
x_83 = lean_panic_fn(x_81, x_82);
x_84 = lean_ctor_get(x_83, 1);
lean_inc(x_84);
lean_dec(x_83);
if (lean_obj_tag(x_84) == 0)
{
lean_object* x_85; lean_object* x_86;
x_85 = l_instInhabitedNat;
x_86 = lean_panic_fn(x_85, x_82);
x_27 = x_86;
goto block_80;
}
else
{
lean_object* x_47;
x_47 = lean_ctor_get(x_45, 0);
lean_inc(x_47);
if (lean_obj_tag(x_47) == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50;
x_48 = lean_ctor_get(x_45, 1);
lean_inc(x_48);
lean_dec(x_45);
x_49 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_47, x_44, x_22, x_48);
lean_dec(x_44);
x_50 = lean_ctor_get(x_49, 1);
lean_inc(x_50);
lean_dec(x_49);
x_24 = x_50;
goto block_37;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54;
x_51 = lean_ctor_get(x_45, 1);
lean_inc(x_51);
lean_dec(x_45);
x_52 = lean_ctor_get(x_47, 0);
lean_inc(x_52);
lean_dec(x_47);
x_53 = l_Lean_Elab_abortExceptionId;
x_54 = lean_nat_dec_eq(x_52, x_53);
if (x_54 == 0)
{
lean_object* x_55;
x_55 = l_Lean_InternalExceptionId_getName(x_52, x_51);
lean_dec(x_52);
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; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65;
x_56 = lean_ctor_get(x_55, 0);
lean_inc(x_56);
x_57 = lean_ctor_get(x_55, 1);
lean_inc(x_57);
lean_dec(x_55);
x_58 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_58, 0, x_56);
x_59 = l_Lean_Elab_Command_withLogging___closed__2;
x_60 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_58);
x_61 = l_Lean_KernelException_toMessageData___closed__15;
x_62 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_62, 0, x_60);
lean_ctor_set(x_62, 1, x_61);
x_63 = 2;
x_64 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_62, x_63, x_44, x_22, x_57);
lean_dec(x_44);
x_65 = lean_ctor_get(x_64, 1);
lean_inc(x_65);
lean_dec(x_64);
x_24 = x_65;
goto block_37;
}
else
{
lean_object* x_66;
lean_dec(x_44);
x_66 = lean_ctor_get(x_55, 1);
lean_inc(x_66);
lean_dec(x_55);
x_24 = x_66;
goto block_37;
lean_object* x_87;
x_87 = lean_ctor_get(x_84, 0);
lean_inc(x_87);
lean_dec(x_84);
x_27 = x_87;
goto block_80;
}
}
else
{
lean_dec(x_52);
lean_dec(x_44);
x_24 = x_51;
goto block_37;
}
}
}
block_37:
lean_object* x_88; lean_object* x_89;
x_88 = lean_ctor_get(x_25, 0);
lean_inc(x_88);
lean_dec(x_25);
x_89 = lean_ctor_get(x_88, 1);
lean_inc(x_89);
lean_dec(x_88);
if (lean_obj_tag(x_89) == 0)
{
lean_object* x_90; lean_object* x_91; lean_object* x_92;
x_90 = l_instInhabitedNat;
x_91 = l_Option_get_x21___rarg___closed__4;
x_92 = lean_panic_fn(x_90, x_91);
x_27 = x_92;
goto block_80;
}
else
{
lean_object* x_93;
x_93 = lean_ctor_get(x_89, 0);
lean_inc(x_93);
lean_dec(x_89);
x_27 = x_93;
goto block_80;
}
}
block_80:
{
lean_object* x_25; uint8_t x_26;
x_25 = lean_st_ref_get(x_22, x_24);
lean_dec(x_22);
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
x_27 = lean_ctor_get(x_25, 0);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_27);
x_29 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_29, 0, x_16);
lean_ctor_set(x_29, 1, x_12);
lean_ctor_set(x_29, 2, x_28);
x_30 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_25, 0, x_30);
return x_25;
}
else
uint8_t x_28;
lean_inc(x_22);
x_28 = l_Lean_Parser_isExitCommand(x_22);
if (x_28 == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
x_31 = lean_ctor_get(x_25, 0);
x_32 = lean_ctor_get(x_25, 1);
lean_inc(x_32);
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 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;
if (lean_is_scalar(x_13)) {
x_29 = lean_alloc_ctor(0, 7, 0);
} else {
x_29 = x_13;
}
lean_ctor_set(x_29, 0, x_7);
lean_ctor_set(x_29, 1, x_24);
lean_ctor_set(x_29, 2, x_8);
lean_ctor_set(x_29, 3, x_9);
lean_ctor_set(x_29, 4, x_10);
lean_ctor_set(x_29, 5, x_11);
lean_ctor_set(x_29, 6, x_12);
x_30 = l_IO_mkRef___at_Lean_Server_Snapshots_compileNextCmd___spec__1(x_29, x_3);
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec(x_25);
x_33 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_33, 0, x_31);
x_34 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_34, 0, x_16);
lean_ctor_set(x_34, 1, x_12);
lean_ctor_set(x_34, 2, x_33);
x_35 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_35, 0, x_34);
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_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_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;
x_67 = lean_ctor_get(x_18, 0);
x_68 = lean_ctor_get(x_18, 2);
x_69 = lean_ctor_get(x_18, 3);
x_70 = lean_ctor_get(x_18, 4);
x_71 = lean_ctor_get(x_18, 5);
x_72 = lean_ctor_get(x_18, 6);
lean_inc(x_72);
lean_inc(x_71);
lean_inc(x_70);
lean_inc(x_69);
lean_inc(x_68);
lean_inc(x_67);
lean_dec(x_18);
x_73 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_73, 0, x_67);
lean_ctor_set(x_73, 1, x_13);
lean_ctor_set(x_73, 2, x_68);
lean_ctor_set(x_73, 3, x_69);
lean_ctor_set(x_73, 4, x_70);
lean_ctor_set(x_73, 5, x_71);
lean_ctor_set(x_73, 6, x_72);
x_74 = l_IO_mkRef___at_Lean_Server_Snapshots_compileNextCmd___spec__1(x_73, x_3);
x_75 = lean_ctor_get(x_74, 0);
lean_inc(x_75);
x_76 = lean_ctor_get(x_74, 1);
lean_inc(x_76);
lean_dec(x_74);
x_87 = l_Lean_FileMap_ofString(x_1);
x_88 = l_Lean_Server_Snapshots_Snapshot_endPos(x_2);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
x_47 = l_Lean_FileMap_ofString(x_1);
x_48 = l_Lean_Server_Snapshots_Snapshot_endPos(x_2);
lean_dec(x_2);
x_89 = lean_box(0);
x_90 = lean_unsigned_to_nat(0u);
x_91 = l_Lean_firstFrontendMacroScope;
x_92 = lean_box(0);
x_93 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_93, 0, x_4);
lean_ctor_set(x_93, 1, x_87);
lean_ctor_set(x_93, 2, x_90);
lean_ctor_set(x_93, 3, x_88);
lean_ctor_set(x_93, 4, x_89);
lean_ctor_set(x_93, 5, x_91);
lean_ctor_set(x_93, 6, x_92);
x_49 = lean_box(0);
x_50 = lean_unsigned_to_nat(0u);
x_51 = l_Lean_firstFrontendMacroScope;
x_52 = lean_box(0);
x_53 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_53, 0, x_4);
lean_ctor_set(x_53, 1, x_47);
lean_ctor_set(x_53, 2, x_50);
lean_ctor_set(x_53, 3, x_48);
lean_ctor_set(x_53, 4, x_49);
lean_ctor_set(x_53, 5, x_51);
lean_ctor_set(x_53, 6, x_52);
lean_inc(x_31);
x_54 = l_Lean_Elab_Command_elabCommand(x_22, x_53, x_31, x_32);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55;
lean_dec(x_53);
x_55 = lean_ctor_get(x_54, 1);
lean_inc(x_55);
lean_dec(x_54);
x_33 = x_55;
goto block_46;
}
else
{
lean_object* x_56;
x_56 = lean_ctor_get(x_54, 0);
lean_inc(x_56);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_57; lean_object* x_58; lean_object* x_59;
x_57 = lean_ctor_get(x_54, 1);
lean_inc(x_57);
lean_dec(x_54);
x_58 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_56, x_53, x_31, x_57);
lean_dec(x_53);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_33 = x_59;
goto block_46;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63;
x_60 = lean_ctor_get(x_54, 1);
lean_inc(x_60);
lean_dec(x_54);
x_61 = lean_ctor_get(x_56, 0);
lean_inc(x_61);
lean_dec(x_56);
x_62 = l_Lean_Elab_abortExceptionId;
x_63 = lean_nat_dec_eq(x_61, x_62);
if (x_63 == 0)
{
lean_object* x_64;
x_64 = l_Lean_InternalExceptionId_getName(x_61, x_60);
lean_dec(x_61);
if (lean_obj_tag(x_64) == 0)
{
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; uint8_t x_72; lean_object* x_73; lean_object* x_74;
x_65 = lean_ctor_get(x_64, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_64, 1);
lean_inc(x_66);
lean_dec(x_64);
x_67 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_67, 0, x_65);
x_68 = l_Lean_Elab_Command_withLogging___closed__2;
x_69 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_67);
x_70 = l_Lean_KernelException_toMessageData___closed__15;
x_71 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_71, 0, x_69);
lean_ctor_set(x_71, 1, x_70);
x_72 = 2;
x_73 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_71, x_72, x_53, x_31, x_66);
lean_dec(x_53);
x_74 = lean_ctor_get(x_73, 1);
lean_inc(x_74);
lean_dec(x_73);
x_33 = x_74;
goto block_46;
}
else
{
lean_object* x_75;
lean_dec(x_53);
x_75 = lean_ctor_get(x_64, 1);
lean_inc(x_75);
x_94 = l_Lean_Elab_Command_elabCommand(x_11, x_93, x_75, x_76);
if (lean_obj_tag(x_94) == 0)
{
lean_object* x_95;
lean_dec(x_93);
x_95 = lean_ctor_get(x_94, 1);
lean_inc(x_95);
lean_dec(x_94);
x_77 = x_95;
goto block_86;
}
else
{
lean_object* x_96;
x_96 = lean_ctor_get(x_94, 0);
lean_inc(x_96);
if (lean_obj_tag(x_96) == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99;
x_97 = lean_ctor_get(x_94, 1);
lean_inc(x_97);
lean_dec(x_94);
x_98 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_96, x_93, x_75, x_97);
lean_dec(x_93);
x_99 = lean_ctor_get(x_98, 1);
lean_inc(x_99);
lean_dec(x_98);
x_77 = x_99;
goto block_86;
}
else
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103;
x_100 = lean_ctor_get(x_94, 1);
lean_inc(x_100);
lean_dec(x_94);
x_101 = lean_ctor_get(x_96, 0);
lean_inc(x_101);
lean_dec(x_96);
x_102 = l_Lean_Elab_abortExceptionId;
x_103 = lean_nat_dec_eq(x_101, x_102);
if (x_103 == 0)
{
lean_object* x_104;
x_104 = l_Lean_InternalExceptionId_getName(x_101, x_100);
lean_dec(x_101);
if (lean_obj_tag(x_104) == 0)
{
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; uint8_t x_112; lean_object* x_113; lean_object* x_114;
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_107 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_107, 0, x_105);
x_108 = l_Lean_Elab_Command_withLogging___closed__2;
x_109 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_107);
x_110 = l_Lean_KernelException_toMessageData___closed__15;
x_111 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_111, 0, x_109);
lean_ctor_set(x_111, 1, x_110);
x_112 = 2;
x_113 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_111, x_112, x_93, x_75, x_106);
lean_dec(x_93);
x_114 = lean_ctor_get(x_113, 1);
lean_inc(x_114);
lean_dec(x_113);
x_77 = x_114;
goto block_86;
}
else
{
lean_object* x_115;
lean_dec(x_93);
x_115 = lean_ctor_get(x_104, 1);
lean_inc(x_115);
lean_dec(x_104);
x_77 = x_115;
goto block_86;
lean_dec(x_64);
x_33 = x_75;
goto block_46;
}
}
else
{
lean_dec(x_101);
lean_dec(x_93);
x_77 = x_100;
goto block_86;
lean_dec(x_61);
lean_dec(x_53);
x_33 = x_60;
goto block_46;
}
}
}
block_86:
block_46:
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
x_78 = lean_st_ref_get(x_75, x_77);
lean_dec(x_75);
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
if (lean_is_exclusive(x_78)) {
lean_ctor_release(x_78, 0);
lean_ctor_release(x_78, 1);
x_81 = x_78;
} else {
lean_dec_ref(x_78);
x_81 = lean_box(0);
lean_object* x_34; uint8_t x_35;
x_34 = lean_st_ref_get(x_31, x_33);
lean_dec(x_31);
x_35 = !lean_is_exclusive(x_34);
if (x_35 == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_36 = lean_ctor_get(x_34, 0);
x_37 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_37, 0, x_36);
x_38 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_38, 0, x_27);
lean_ctor_set(x_38, 1, x_23);
lean_ctor_set(x_38, 2, x_37);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
lean_ctor_set(x_34, 0, x_39);
return x_34;
}
x_82 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_82, 0, x_79);
x_83 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_83, 0, x_16);
lean_ctor_set(x_83, 1, x_12);
lean_ctor_set(x_83, 2, x_82);
x_84 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_84, 0, x_83);
if (lean_is_scalar(x_81)) {
x_85 = lean_alloc_ctor(0, 2, 0);
} else {
x_85 = x_81;
}
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_80);
return x_85;
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45;
x_40 = lean_ctor_get(x_34, 0);
x_41 = lean_ctor_get(x_34, 1);
lean_inc(x_41);
lean_inc(x_40);
lean_dec(x_34);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_40);
x_43 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_43, 0, x_27);
lean_ctor_set(x_43, 1, x_23);
lean_ctor_set(x_43, 2, x_42);
x_44 = lean_alloc_ctor(0, 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_44);
lean_ctor_set(x_45, 1, x_41);
return x_45;
}
}
}
else
{
lean_object* x_116; lean_object* x_117;
lean_dec(x_16);
lean_object* x_76; lean_object* x_77;
lean_dec(x_27);
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
x_116 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_116, 0, x_13);
x_117 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_117, 0, x_116);
lean_ctor_set(x_117, 1, x_3);
return x_117;
x_76 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_76, 0, x_24);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_3);
return x_77;
}
}
else
{
lean_object* x_118; lean_object* x_119;
lean_dec(x_16);
lean_object* x_78; lean_object* x_79;
lean_dec(x_27);
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
x_118 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_118, 0, x_13);
x_119 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_119, 0, x_118);
lean_ctor_set(x_119, 1, x_3);
return x_119;
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_24);
x_79 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_79, 0, x_78);
lean_ctor_set(x_79, 1, x_3);
return x_79;
}
}
}